Update to Unicode 5.2.0.
[gnulib.git] / ChangeLog
1 2011-01-09  Bruno Haible  <bruno@clisp.org>
2
3         Update to Unicode 5.2.0.
4         * lib/gen-uni-tables.c (output_predicate, output_category,
5         output_combclass, output_bidi_category, output_decimal_digit_test,
6         output_decimal_digit, output_digit_test, output_digit,
7         output_numeric_test, output_numeric, output_mirror, output_scripts,
8         output_scripts_byname, output_blocks, output_ident_category): Fix
9         comment header.
10         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11         get_wbp.
12         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13         items.
14         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15         Changes_When_Lowercased, Changes_When_Uppercased,
16         Changes_When_Titlecased, Changes_When_Casefolded,
17         Changes_When_Casemapped.
18         (is_property_alphabetic, is_property_default_ignorable_code_point):
19         Update for Unicode 5.2.0.
20         (is_property_cased, is_property_case_ignorable,
21         is_property_changes_when_lowercased,
22         is_property_changes_when_uppercased,
23         is_property_changes_when_titlecased,
24         is_property_changes_when_casefolded,
25         is_property_changes_when_casemapped): New functions.
26         (output_properties): Output also the properties cased, case_ignorable,
27         changes_when_lowercased, changes_when_uppercased,
28         changes_when_titlecased, changes_when_casefolded,
29         changes_when_casemapped.
30         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
31         Unicode TR#11 revision 17 -> 19.
32         (LBP_CP): New enumeration value.
33         (LBP_*): Adjust values accordingly.
34         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
35         TR#14 revision 22 -> 24.
36         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
37         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
38         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
40         is_WBP_MIDLETTER.
41         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42         the code1 and code2 of each composition rule.
43         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44         * lib/unicase/ignorable.h: Likewise.
45         * lib/unicase/tocasefold.h: Likewise.
46         * lib/unicase/tolower.h: Likewise.
47         * lib/unicase/totitle.h: Likewise.
48         * lib/unicase/toupper.h: Likewise.
49         * lib/unictype/bidi_of.h: Likewise.
50         * lib/unictype/blocks.h: Likewise.
51         * lib/unictype/categ_C.h: Likewise.
52         * lib/unictype/categ_Cf.h: Likewise.
53         * lib/unictype/categ_Cn.h: Likewise.
54         * lib/unictype/categ_L.h: Likewise.
55         * lib/unictype/categ_Ll.h: Likewise.
56         * lib/unictype/categ_Lm.h: Likewise.
57         * lib/unictype/categ_Lo.h: Likewise.
58         * lib/unictype/categ_Lu.h: Likewise.
59         * lib/unictype/categ_M.h: Likewise.
60         * lib/unictype/categ_Mc.h: Likewise.
61         * lib/unictype/categ_Mn.h: Likewise.
62         * lib/unictype/categ_N.h: Likewise.
63         * lib/unictype/categ_Nd.h: Likewise.
64         * lib/unictype/categ_Nl.h: Likewise.
65         * lib/unictype/categ_No.h: Likewise.
66         * lib/unictype/categ_P.h: Likewise.
67         * lib/unictype/categ_Pd.h: Likewise.
68         * lib/unictype/categ_Po.h: Likewise.
69         * lib/unictype/categ_S.h: Likewise.
70         * lib/unictype/categ_Sc.h: Likewise.
71         * lib/unictype/categ_So.h: Likewise.
72         * lib/unictype/categ_of.h: Likewise.
73         * lib/unictype/combining.h: Likewise.
74         * lib/unictype/ctype_alnum.h: Likewise.
75         * lib/unictype/ctype_alpha.h: Likewise.
76         * lib/unictype/ctype_graph.h: Likewise.
77         * lib/unictype/ctype_lower.h: Likewise.
78         * lib/unictype/ctype_print.h: Likewise.
79         * lib/unictype/ctype_punct.h: Likewise.
80         * lib/unictype/ctype_upper.h: Likewise.
81         * lib/unictype/decdigit.h: Likewise.
82         * lib/unictype/digit.h: Likewise.
83         * lib/unictype/numeric.h: Likewise.
84         * lib/unictype/pr_alphabetic.h: Likewise.
85         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
86         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
87         * lib/unictype/pr_bidi_european_digit.h: Likewise.
88         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
89         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
90         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
91         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
92         * lib/unictype/pr_combining.h: Likewise.
93         * lib/unictype/pr_composite.h: Likewise.
94         * lib/unictype/pr_currency_symbol.h: Likewise.
95         * lib/unictype/pr_dash.h: Likewise.
96         * lib/unictype/pr_decimal_digit.h: Likewise.
97         * lib/unictype/pr_deprecated.h: Likewise.
98         * lib/unictype/pr_diacritic.h: Likewise.
99         * lib/unictype/pr_extender.h: Likewise.
100         * lib/unictype/pr_grapheme_base.h: Likewise.
101         * lib/unictype/pr_grapheme_extend.h: Likewise.
102         * lib/unictype/pr_grapheme_link.h: Likewise.
103         * lib/unictype/pr_id_continue.h: Likewise.
104         * lib/unictype/pr_id_start.h: Likewise.
105         * lib/unictype/pr_ideographic.h: Likewise.
106         * lib/unictype/pr_ignorable_control.h: Likewise.
107         * lib/unictype/pr_logical_order_exception.h: Likewise.
108         * lib/unictype/pr_lowercase.h: Likewise.
109         * lib/unictype/pr_numeric.h: Likewise.
110         * lib/unictype/pr_other_alphabetic.h: Likewise.
111         * lib/unictype/pr_punctuation.h: Likewise.
112         * lib/unictype/pr_sentence_terminal.h: Likewise.
113         * lib/unictype/pr_terminal_punctuation.h: Likewise.
114         * lib/unictype/pr_unassigned_code_value.h: Likewise.
115         * lib/unictype/pr_unified_ideograph.h: Likewise.
116         * lib/unictype/pr_uppercase.h: Likewise.
117         * lib/unictype/pr_xid_continue.h: Likewise.
118         * lib/unictype/pr_xid_start.h: Likewise.
119         * lib/unictype/pr_zero_width.h: Likewise.
120         * lib/unictype/scripts.h: Likewise.
121         * lib/unictype/scripts_byname.gperf: Likewise.
122         * lib/unictype/sy_java_ident.h: Likewise.
123         * lib/unigbrk/gbrkprop.h: Likewise.
124         * lib/unilbrk/lbrkprop1.h: Likewise.
125         * lib/unilbrk/lbrkprop2.h: Likewise.
126         * lib/unilbrk/lbrktables.h: Likewise.
127         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
128         LBP_CP. Implement rule LB30.
129         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
130         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
131         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
132         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
133         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
134         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
135         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
136         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
137         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
138         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
139         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
140         bits instead of 16 bits in the code1 and code2 of each composition
141         rule.
142         (uc_composition): Update for Unicode 5.2.0.
143         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
144         * lib/uninorm/decomposition-table2.h: Likewise.
145         * lib/uniwbrk/wbrkprop.h: Likewise.
146         * tests/unicase/test-cased.c: Likewise.
147         * tests/unicase/test-ignorable.c: Likewise.
148         * tests/unicase/test-uc_tolower.c: Likewise.
149         * tests/unicase/test-uc_totitle.c: Likewise.
150         * tests/unicase/test-uc_toupper.c: Likewise.
151         * tests/unictype/test-categ_C.c: Likewise.
152         * tests/unictype/test-categ_Cf.c: Likewise.
153         * tests/unictype/test-categ_Cn.c: Likewise.
154         * tests/unictype/test-categ_L.c: Likewise.
155         * tests/unictype/test-categ_Ll.c: Likewise.
156         * tests/unictype/test-categ_Lm.c: Likewise.
157         * tests/unictype/test-categ_Lo.c: Likewise.
158         * tests/unictype/test-categ_Lu.c: Likewise.
159         * tests/unictype/test-categ_M.c: Likewise.
160         * tests/unictype/test-categ_Mc.c: Likewise.
161         * tests/unictype/test-categ_Mn.c: Likewise.
162         * tests/unictype/test-categ_N.c: Likewise.
163         * tests/unictype/test-categ_Nd.c: Likewise.
164         * tests/unictype/test-categ_Nl.c: Likewise.
165         * tests/unictype/test-categ_No.c: Likewise.
166         * tests/unictype/test-categ_P.c: Likewise.
167         * tests/unictype/test-categ_Pd.c: Likewise.
168         * tests/unictype/test-categ_Po.c: Likewise.
169         * tests/unictype/test-categ_S.c: Likewise.
170         * tests/unictype/test-categ_Sc.c: Likewise.
171         * tests/unictype/test-categ_So.c: Likewise.
172         * tests/unictype/test-ctype_alnum.c: Likewise.
173         * tests/unictype/test-ctype_alpha.c: Likewise.
174         * tests/unictype/test-ctype_graph.c: Likewise.
175         * tests/unictype/test-ctype_lower.c: Likewise.
176         * tests/unictype/test-ctype_print.c: Likewise.
177         * tests/unictype/test-ctype_punct.c: Likewise.
178         * tests/unictype/test-ctype_upper.c: Likewise.
179         * tests/unictype/test-decdigit.h: Likewise.
180         * tests/unictype/test-digit.h: Likewise.
181         * tests/unictype/test-numeric.h: Likewise.
182         * tests/unictype/test-pr_alphabetic.c: Likewise.
183         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
184         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
185         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
186         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
187         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
188         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
189         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
190         * tests/unictype/test-pr_combining.c: Likewise.
191         * tests/unictype/test-pr_composite.c: Likewise.
192         * tests/unictype/test-pr_currency_symbol.c: Likewise.
193         * tests/unictype/test-pr_dash.c: Likewise.
194         * tests/unictype/test-pr_decimal_digit.c: Likewise.
195         * tests/unictype/test-pr_deprecated.c: Likewise.
196         * tests/unictype/test-pr_diacritic.c: Likewise.
197         * tests/unictype/test-pr_extender.c: Likewise.
198         * tests/unictype/test-pr_grapheme_base.c: Likewise.
199         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
200         * tests/unictype/test-pr_grapheme_link.c: Likewise.
201         * tests/unictype/test-pr_id_continue.c: Likewise.
202         * tests/unictype/test-pr_id_start.c: Likewise.
203         * tests/unictype/test-pr_ideographic.c: Likewise.
204         * tests/unictype/test-pr_ignorable_control.c: Likewise.
205         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
206         * tests/unictype/test-pr_lowercase.c: Likewise.
207         * tests/unictype/test-pr_numeric.c: Likewise.
208         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
209         * tests/unictype/test-pr_punctuation.c: Likewise.
210         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
211         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
212         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
213         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
214         * tests/unictype/test-pr_uppercase.c: Likewise.
215         * tests/unictype/test-pr_xid_continue.c: Likewise.
216         * tests/unictype/test-pr_xid_start.c: Likewise.
217         * tests/unictype/test-pr_zero_width.c: Likewise.
218         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
219         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
220         changed behaviour: line breaking is now disallowed between a letter
221         or '=' and '('.
222         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
223         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
224         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
225         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
226         * tests/uniwidth/test-uc_width2.sh: Same updates as in
227         lib/uniwidth/width.c.
228         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
229         without comments, but with the original copyright notice.
230         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
231         changes.
232         * lib/unictype/categ_Cc.h: Likewise.
233         * lib/unictype/categ_Co.h: Likewise.
234         * lib/unictype/categ_Cs.h: Likewise.
235         * lib/unictype/categ_Lt.h: Likewise.
236         * lib/unictype/categ_Me.h: Likewise.
237         * lib/unictype/categ_Pc.h: Likewise.
238         * lib/unictype/categ_Pe.h: Likewise.
239         * lib/unictype/categ_Pf.h: Likewise.
240         * lib/unictype/categ_Pi.h: Likewise.
241         * lib/unictype/categ_Ps.h: Likewise.
242         * lib/unictype/categ_Sk.h: Likewise.
243         * lib/unictype/categ_Sm.h: Likewise.
244         * lib/unictype/categ_Z.h: Likewise.
245         * lib/unictype/categ_Zl.h: Likewise.
246         * lib/unictype/categ_Zp.h: Likewise.
247         * lib/unictype/categ_Zs.h: Likewise.
248         * lib/unictype/ctype_blank.h: Likewise.
249         * lib/unictype/ctype_cntrl.h: Likewise.
250         * lib/unictype/ctype_digit.h: Likewise.
251         * lib/unictype/ctype_space.h: Likewise.
252         * lib/unictype/ctype_xdigit.h: Likewise.
253         * lib/unictype/mirror.h: Likewise.
254         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
255         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
256         * lib/unictype/pr_bidi_block_separator.h: Likewise.
257         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
258         * lib/unictype/pr_bidi_common_separator.h: Likewise.
259         * lib/unictype/pr_bidi_control.h: Likewise.
260         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
261         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
262         * lib/unictype/pr_bidi_pdf.h: Likewise.
263         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
264         * lib/unictype/pr_bidi_whitespace.h: Likewise.
265         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
266         * lib/unictype/pr_format_control.h: Likewise.
267         * lib/unictype/pr_hex_digit.h: Likewise.
268         * lib/unictype/pr_hyphen.h: Likewise.
269         * lib/unictype/pr_ids_binary_operator.h: Likewise.
270         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
271         * lib/unictype/pr_iso_control.h: Likewise.
272         * lib/unictype/pr_join_control.h: Likewise.
273         * lib/unictype/pr_left_of_pair.h: Likewise.
274         * lib/unictype/pr_line_separator.h: Likewise.
275         * lib/unictype/pr_math.h: Likewise.
276         * lib/unictype/pr_non_break.h: Likewise.
277         * lib/unictype/pr_not_a_character.h: Likewise.
278         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
279         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
280         * lib/unictype/pr_other_id_continue.h: Likewise.
281         * lib/unictype/pr_other_id_start.h: Likewise.
282         * lib/unictype/pr_other_lowercase.h: Likewise.
283         * lib/unictype/pr_other_math.h: Likewise.
284         * lib/unictype/pr_other_uppercase.h: Likewise.
285         * lib/unictype/pr_paired_punctuation.h: Likewise.
286         * lib/unictype/pr_paragraph_separator.h: Likewise.
287         * lib/unictype/pr_pattern_syntax.h: Likewise.
288         * lib/unictype/pr_pattern_white_space.h: Likewise.
289         * lib/unictype/pr_private_use.h: Likewise.
290         * lib/unictype/pr_quotation_mark.h: Likewise.
291         * lib/unictype/pr_radical.h: Likewise.
292         * lib/unictype/pr_soft_dotted.h: Likewise.
293         * lib/unictype/pr_space.h: Likewise.
294         * lib/unictype/pr_titlecase.h: Likewise.
295         * lib/unictype/pr_variation_selector.h: Likewise.
296         * lib/unictype/pr_white_space.h: Likewise.
297         * lib/unictype/sy_c_ident.h: Likewise.
298         * lib/unictype/sy_c_whitespace.h: Likewise.
299         * lib/unictype/sy_java_whitespace.h: Likewise.
300         * modules/uni*/*: Bump version number of expected libunistring version.
301         Reported by Simon Josefsson.
302
303 2011-01-09  Karl Heuer  <kwzh@gnu.org>
304
305         useless-if-before-free: fix typo in --help and make the internal,
306         automatic version date update process work once again.
307         --help output contained a NUL character instead of the
308         backslash-zero that was intended.  Also, the "must lie within
309         the first 8 lines" line is on line 9, and hence not getting
310         automatically updated.
311         * build-aux/useless-if-before-free: Fix the former by adding a
312         backslash, and the latter by condensing the three lines of what-it-does
313         to a single line, leaving one line of slack for the future.
314
315 2011-01-09  Bruno Haible  <bruno@clisp.org>
316
317         uniwidth/width: Fix width of U+1D173..U+1D17A.
318         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
319         symbolic_width, output_width_property_test): New functions.
320         (main): Invoke output_nonspacing_property, output_width_property_test.
321         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
322         U+1D173..U+1D17A.
323         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
324         1.
325         * modules/uniwidth/*: Bump version number of expected libunistring
326         version.
327         * modules/unilbrk/*: Likewise.
328
329 2011-01-08  Bruno Haible  <bruno@clisp.org>
330
331         uninorm tests: Preserve copyright of Unicode data file.
332         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
333         Mention modifications.
334
335 2011-01-08  Bruno Haible  <bruno@clisp.org>
336
337         gen-uni-tables: Prepare for Unicode 5.2.0.
338         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
339         (debug_output_lbp, output_lbp): Update.
340
341 2011-01-08  Bruno Haible  <bruno@clisp.org>
342
343         unilbrk: Clarify gen-uni-tables.c code.
344         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
345         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
346         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
347
348 2011-01-07  Bruno Haible  <bruno@clisp.org>
349
350         strtod: Restore errno when successfully parsing Infinity or NaN.
351         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
352         restore the original errno.
353
354 2011-01-07  Bruno Haible  <bruno@clisp.org>
355
356         remove test: Avoid failure on HP-UX 11.
357         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
358
359 2011-01-07  Bruno Haible  <bruno@clisp.org>
360
361         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
362         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
363         error code.
364
365 2011-01-07  Pádraig Brady <P@draigBrady.com>
366
367         ignore-value: fixup comments, and add Eric Blake
368         as an author since he rewrote the macros.
369         * lib/ignore-value.h (ignore_value):  State that
370         we now support aggregates.  Also specify exactly
371         when the GCC warn_unused_result feature was added.
372
373 2011-01-06  Eric Blake  <eblake@redhat.com>
374
375         ignore-value: support aggregate types
376         * lib/ignore-value.h (ignore_value): Provide separate gcc
377         definition.
378         * modules/ignore-value-tests: New test module.
379         * tests/test-ignore-value.c: New test.
380
381         maint.mk: improve sc_prohibit_strcmp regex
382         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
383         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
384         definition of STRNEQ.
385
386         signal: work around Haiku issue with SIGBUS
387         * lib/siglist.h: Add comment.
388         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
389         strsignal's favoring of SIGSEGV.
390         * tests/test-signal.c (main): Avoid test failure.
391         * doc/posix-headers/signal.texi (signal.h): Document the issue.
392         Reported by Scott McCreary.
393
394         maint.mk: add pre-release check to ensure submodule commits are public
395         * top/maint.mk (public-submodule-commit): New rule.
396         (submodule-checks): New variable.
397         (alpha beta stable): Depend on the variable.
398
399 2011-01-05  Pádraig Brady <P@draigBrady.com>
400         and Jim Meyering  <meyering@redhat.com>
401
402         ignore-value: make ignore_value more generic; deprecate ignore_ptr
403         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
404         (ATTRIBUTE_DEPRECATED): Define.
405         (_ignore_case): New function.
406         (ignore_value): New macro, to replace the old function.
407         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
408         * modules/ignore-value (Depends-on): Add stdint.
409
410 2011-01-04  Eric Blake  <eblake@redhat.com>
411
412         doc: regenerate INSTALL
413         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
414         @firstparagraphindent support, now that autoconf dropped it.
415         (INSTALL_PRELUDE): Reinstate old macro.
416         * doc/install.texi: Resync from autoconf.
417         * doc/INSTALL: Reflect recent autoconf update.
418         * doc/INSTALL.ISO: Likewise.
419         * doc/INSTALL.UTF-8: Likewise.
420         Reported by Karl Berry.
421
422 2011-01-04  Bruce Korb  <address@hidden>
423
424         git-version-gen: avoid a sub-shell
425         * build-aux/git-version-gen: Redirect stderr in `...` via
426         "exec 2>...", rather than via an added sub-shell.
427
428 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
429
430         git-version-gen: use (...) rather than sh -c '...'
431         * build-aux/git-version-gen: Rather than hard-coding a shell's name
432         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
433
434 2011-01-03  Jim Meyering  <meyering@redhat.com>
435
436         git-version-gen: convert leading TABs to spaces
437         * build-aux/git-version-gen: Expand leading TABs.
438
439         git-version-gen: handle failed "git rev-list"
440         * build-aux/git-version-gen: Rather than leaking a "fatal" error
441         from git and proceeding as if it had succeeded but printed no SHA1
442         checksums, suppress the diagnostic and handle the failure.
443         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
444
445         git-version-gen: include command name in one more diagnostic
446         * build-aux/git-version-gen: When the required .tarball-version file
447         was missing or unreadable, you might see the diagnostic from "cat",
448         but no trace of the name of the invoking script.  Now, you still see
449         the diagnostic from cat, but also get one from "git-version-gen: ".
450         Inspired by a patch from Bruce Korb.
451
452         update-copyright: adjust test to match changed code
453         * tests/test-update-copyright.sh: Change test's expected output
454         to match new actual output.
455
456 2011-01-02  Bruno Haible  <bruno@clisp.org>
457
458         getlogin_r: Avoid test failure on HP-UX 11.
459         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
460         ERANGE when the second argument is zero.
461         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
462         portability problem.
463
464 2011-01-02  Bruce Korb  <bkorb@gnu.org>
465
466         * build-aux/update-copyright: doc Simon's changes
467
468 2011-01-02  Simon Josefsson  <simon@josefsson.org>
469
470         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
471         environment variable.
472
473 2011-01-02  Bruno Haible  <bruno@clisp.org>
474
475         unigbrk: Avoid gcc warnings.
476         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
477         unused variable.
478         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
479         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
480         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
481         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
482         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
483         Change type of first argument to 'const char *'.
484         (main): Remove unused variable.
485         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
486         type of first argument to 'const char *'.
487         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
488         Likewise.
489         (main): Change type of variable 's'.
490         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
491         to 'int'.
492
493 2011-01-02  Bruno Haible  <bruno@clisp.org>
494
495         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
496         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
497         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
498         bug.
499         * lib/pwrite.c: Undo 2010-12-31 patch.
500         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
501
502 2011-01-02  Bruno Haible  <bruno@clisp.org>
503
504         pread: Fix test whether it works.
505         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
506
507 2011-01-02  Bruno Haible  <bruno@clisp.org>
508
509         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
510         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
511         ends in "6". Don't require a specific month name. Try also the locale
512         names found on HP-UX 11 and Solaris 7.
513
514 2011-01-02  Bruno Haible  <bruno@clisp.org>
515
516         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
517         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
518         C linkage.
519         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
520
521 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
522
523         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
524         for consistency, since the "cluster" term is not used elsewhere.
525         * lib/unigbrk.in.h: Update name.
526         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
527         * lib/unigbrk/u16-grapheme-next.c: Update name.
528         * lib/unigbrk/u16-grapheme-prev.c: Update name.
529         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
530         * lib/unigbrk/u32-grapheme-next.c: Update name.
531         * lib/unigbrk/u32-grapheme-prev.c: Update name.
532         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
533         * lib/unigbrk/u8-grapheme-next.c: Update name.
534         * lib/unigbrk/u8-grapheme-prev.c: Update name.
535         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
536         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
537         Suggested by Bruno Haible.
538
539 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
540
541         Remove module 'u8-grapheme-len' as too redundant with
542         'u8-grapheme-next'.
543         * modules/unigbrk/u8-grapheme-len: Delete file.
544         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
545         * lib/unigbrk.in.h: Remove prototype for deleted function.
546         * lib/unigbrk/u8-grapheme-len.c: Delete file.
547         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
548
549         Remove module 'u16-grapheme-len' as too redundant with
550         'u16-grapheme-next'.
551         * modules/unigbrk/u16-grapheme-len: Delete file.
552         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
553         * lib/unigbrk.in.h: Remove prototype for deleted function.
554         * lib/unigbrk/u16-grapheme-len.c: Delete file.
555         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
556
557         Remove module 'u32-grapheme-len' as too redundant with
558         'u32-grapheme-next'.
559         * modules/unigbrk/u32-grapheme-len: Delete file.
560         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
561         * lib/unigbrk.in.h: Remove prototype for deleted function.
562         * lib/unigbrk/u32-grapheme-len.c: Delete file.
563         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
564
565         Suggested by Bruno Haible.
566
567 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
568
569         * unigbrk.in.h: Fix typo: "ben" => "been".
570         Reported by Bruno Haible.
571
572 2011-01-01  Jim Meyering  <meyering@redhat.com>
573
574         maint: update almost all copyright ranges to include 2011
575         Run the new "make update-copyright" rule.
576
577 2011-01-01  Jim Meyering  <meyering@redhat.com>
578
579         maint: update-copyright: exempt doc/INSTALL*
580         * Makefile (update-copyright): Also exclude doc/INSTALL*,
581         since they are generated.  Suggested by Bruno Haible.
582
583 2011-01-01  Jim Meyering  <meyering@redhat.com>
584
585         maint: refine the update-copyright rule
586         * Makefile (update-copyright): Also exclude any file that includes
587         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
588         code that merely generates the comment.
589
590 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
591
592         New module 'u8-grapheme-len'.
593         * modules/unigbrk/u8-grapheme-len: New file.
594         * modules/unigbrk/u8-grapheme-len-tests: New file.
595         * lib/unigbrk.in.h: Add prototype for new function.
596         * lib/unigbrk/u8-grapheme-len.c: New file.
597         * tests/unigbrk/test-u8-grapheme-len.c: New file.
598
599         New module 'u16-grapheme-len'.
600         * modules/unigbrk/u16-grapheme-len: New file.
601         * modules/unigbrk/u16-grapheme-len-tests: New file.
602         * lib/unigbrk.in.h: Add prototype for new function.
603         * lib/unigbrk/u16-grapheme-len.c: New file.
604         * tests/unigbrk/test-u16-grapheme-len.c: New file.
605
606         New module 'u32-grapheme-len'.
607         * modules/unigbrk/u32-grapheme-len: New file.
608         * modules/unigbrk/u32-grapheme-len-tests: New file.
609         * lib/unigbrk.in.h: Add prototype for new function.
610         * lib/unigbrk/u32-grapheme-len.c: New file.
611         * tests/unigbrk/test-u32-grapheme-len.c: New file.
612
613         New module 'u8-grapheme-next'.
614         * modules/unigbrk/u8-grapheme-next: New file.
615         * modules/unigbrk/u8-grapheme-next-tests: New file.
616         * lib/unigbrk.in.h: Add prototype for new function.
617         * lib/unigbrk/u8-grapheme-next.c: New file.
618         * tests/unigbrk/test-u8-grapheme-next.c: New file.
619
620         New module 'u16-grapheme-next'.
621         * modules/unigbrk/u16-grapheme-next: New file.
622         * modules/unigbrk/u16-grapheme-next-tests: New file.
623         * lib/unigbrk.in.h: Add prototype for new function.
624         * lib/unigbrk/u16-grapheme-next.c: New file.
625         * tests/unigbrk/test-u16-grapheme-next.c: New file.
626
627         New module 'u32-grapheme-next'.
628         * modules/unigbrk/u32-grapheme-next: New file.
629         * modules/unigbrk/u32-grapheme-next-tests: New file.
630         * lib/unigbrk.in.h: Add prototype for new function.
631         * lib/unigbrk/u32-grapheme-next.c: New file.
632         * tests/unigbrk/test-u32-grapheme-next.c: New file.
633
634         New module 'u8-grapheme-prev'.
635         * modules/unigbrk/u8-grapheme-prev: New file.
636         * modules/unigbrk/u8-grapheme-prev-tests: New file.
637         * lib/unigbrk.in.h: Add prototype for new function.
638         * lib/unigbrk/u8-grapheme-prev.c: New file.
639         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
640
641         New module 'u16-grapheme-prev'.
642         * modules/unigbrk/u16-grapheme-prev: New file.
643         * modules/unigbrk/u16-grapheme-prev-tests: New file.
644         * lib/unigbrk.in.h: Add prototype for new function.
645         * lib/unigbrk/u16-grapheme-prev.c: New file.
646         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
647
648         New module 'u32-grapheme-prev'.
649         * modules/unigbrk/u32-grapheme-prev: New file.
650         * modules/unigbrk/u32-grapheme-prev-tests: New file.
651         * lib/unigbrk.in.h: Add prototype for new function.
652         * lib/unigbrk/u32-grapheme-prev.c: New file.
653         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
654
655         New module 'u8-grapheme-breaks'.
656         * modules/unigbrk/u8-grapheme-breaks: New file.
657         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
658         * lib/unigbrk.in.h: Add prototype for new function.
659         * lib/unigbrk/u8-grapheme-breaks.c: New file.
660         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
661
662         New module 'u16-grapheme-breaks'.
663         * modules/unigbrk/u16-grapheme-breaks: New file.
664         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
665         * lib/unigbrk.in.h: Add prototype for new function.
666         * lib/unigbrk/u16-grapheme-breaks.c: New file.
667         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
668
669         New module 'u32-grapheme-breaks'.
670         * modules/unigbrk/u32-grapheme-breaks: New file.
671         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
672         * lib/unigbrk.in.h: Add prototype for new function.
673         * lib/unigbrk/u32-grapheme-breaks.c: New file.
674         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
675
676         New module 'ulc-grapheme-breaks'.
677         * modules/unigbrk/ulc-grapheme-breaks: New file.
678         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
679         * m4/locale-ar.m4: New file.
680         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
681         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
682         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
683
684 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
685
686         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
687         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
688         modified how this file was generated before I initially submitted
689         the module, but failed to regenerate it.  This meant that several
690         of the level2 entries were wrong.
691         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
692         Remove the division-by-2 that is folded into the table now that
693         gbrkprop.h has been regenerated properly.  Now -1 entries are
694         handled correctly.
695
696         New module 'unigbrk/uc-gbrk-prop-tests'.
697         * modules/unigbrk/uc-gbrk-prop-tests: New file.
698         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
699         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
700         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
701
702 2011-01-01  Bruno Haible  <bruno@clisp.org>
703
704         Avoid use of hexadecimal escapes.
705         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
706         instead of hexadecimal escapes.
707
708 2011-01-01  Jim Meyering  <meyering@redhat.com>
709
710         maint: new rule to update copyright year ranges
711         * Makefile (update-copyright): New rule.
712
713         maint: indent with TABs in Makefile
714         * Makefile: Expand leading sequences of spaces to TABs
715
716         version-etc: update the copyright year it reports
717         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
718
719 2010-12-31  Bruno Haible  <bruno@clisp.org>
720
721         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
722         * lib/isfinite.c (zerof, zerod, zerol): New variables.
723         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
724         zero.
725
726 2010-12-31  Bruno Haible  <bruno@clisp.org>
727
728         pwrite: Work around HP-UX 11.11 bug.
729         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
730         works and set REPLACE_PWRITE if not.
731         * lib/pwrite.c (pwrite): Add an implementation that uses the system
732         function.
733         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
734
735 2010-12-31  Bruno Haible  <bruno@clisp.org>
736
737         pread: Work around HP-UX 11 bugs.
738         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
739         and set REPLACE_PREAD if not.
740         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
741
742 2010-12-31  Eric Blake  <eblake@redhat.com>
743
744         nl_langinfo: fix YESEXPR on Irix 6.5
745         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
746         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
747         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
748         it.
749
750 2010-12-31  Bruno Haible  <bruno@clisp.org>
751
752         iconv: Document HP-UX 11 bug.
753         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
754
755 2010-12-31  Bruno Haible  <bruno@clisp.org>
756
757         ldexpl: Fix link error on HP-UX 11.
758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
759         LDEXPL_LIBM, using $ISNANL_LIBM.
760
761 2010-12-31  Eric Blake  <eblake@redhat.com>
762
763         ftello: avoid compilation failure with SunStudio c89
764         * lib/ftello.c (ftello): Use lseek, not llseek.
765
766         tests: avoid failing coreutils tests on cygwin
767         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
768         (create_exe_shims_): Return 0 when skipping.
769
770 2010-12-31  Bruno Haible  <bruno@clisp.org>
771
772         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
773         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
774
775 2010-12-31  Bruno Haible  <bruno@clisp.org>
776
777         waitpid: Fix link error in C++ mode.
778         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
779
780 2010-12-31  Bruno Haible  <bruno@clisp.org>
781
782         isnan: Use GCC built-ins when possible.
783         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
784         __builtin_isnan.
785         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
786         (isnan): Define using GCC built-ins for GCC >= 4.0.
787
788 2010-12-31  Bruno Haible  <bruno@clisp.org>
789
790         isnand: Fix mistake.
791         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
792         __builtin_isnand.
793
794 2010-12-31  Bruno Haible  <bruno@clisp.org>
795
796         open: Avoid C++ error on HP-UX 11.
797         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
798
799 2010-12-31  Bruno Haible  <bruno@clisp.org>
800
801         time_r: Add missing declarations on HP-UX 11.
802         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
803         instead of HAVE_LOCALTIME_R.
804         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
805         HAVE_LOCALTIME_R always.
806         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
807         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
808         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
809         HAVE_LOCALTIME_R.
810         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
811         * doc/posix-functions/localtime_r.texi: Likewise.
812
813 2010-12-29  Eric Blake  <eblake@redhat.com>
814
815         mountlist: tweak previous commit
816         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
817         Reported by Paul Eggert.
818
819         mountlist: fix local drive detection on cygwin
820         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
821         that works for cygwin.
822
823 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
824
825         ftoastr, snprintf: ftoastr + snprintf module
826         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
827         since the snprintf module now should be good enough here.
828         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
829         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
830         and gl_MODULE_INDICATOR([snprintf]), but the former enables
831         GNULIB_SNPRINTF only for the test directory, and the latter
832         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
833         seems to suffice by itself.
834
835 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
836
837         alloca: one step towards thread-safety
838         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
839         need for a static variable.  All callers changed.  This does not
840         make the alloca replacement thread-safe, but it's one step.
841
842         tests: minor indenting change
843         * tests/init.sh: Sync from coreutils housekeeping patch
844         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
845         to keep lines within 80 columns.
846
847 2010-12-28  Jim Meyering  <meyering@redhat.com>
848
849         regex: don't infloop on persistent failing calloc
850         * lib/regexec.c (build_trtable): Return failure indication upon
851         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
852         In glibc, this was fixed for version 2.13:
853         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
854
855 2010-12-28  Bruno Haible  <bruno@clisp.org>
856             Paul Eggert <eggert@cs.ucla.edu>
857
858         linkat: Make implementation robust against system behaviour variations.
859         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
860         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
861         way, and to -2 if it needs a generic runtime test.
862         * lib/linkat.c (solaris_optimized_link_immediate,
863         solaris_optimized_link_follow): New functions.
864         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
865         (check_same_link): Use it.
866
867 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
868
869         New module 'unigbrk/base'.
870         * modules/unigbrk/base: New file.
871         * lib/unigbrk.in.h: New file.
872
873         New module 'unigbrk/uc-gbrk-prop'.
874         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
875         * modules/unigbrk/uc-gbrk-prop: New file.
876         * lib/unigbrk/gbrkprop.h: New file.
877         * lib/unigbrk/uc-gbrk-prop.c: New file.
878
879         New module 'unigbrk/uc-is-grapheme-break'.
880         * modules/unigbrk/uc-is-grapheme-break: New file.
881         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
882         * lib/unigbrk/uc-is-grapheme-break.c: New file.
883         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
884         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
885         * tests/unigbrk/GraphemeBreakTest.txt: New file.
886
887         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
888
889 2010-12-27  Bruno Haible  <bruno@clisp.org>
890
891         linkat test: Avoid failure on Solaris 11 2010-11.
892         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
893
894 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
895
896         utimens: work around glibc rounding bug on more platforms
897         * lib/utimens.c (fdutimens): Work around rounding bug even if
898         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
899         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
900
901 2010-12-27  Bruno Haible  <bruno@clisp.org>
902
903         select tests: Improve comments.
904         * tests/test-select.c (do_select): Add comments.
905
906 2010-12-27  Bruno Haible  <bruno@clisp.org>
907
908         select tests: Safer way of handling timeout.
909         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
910         at every invocation.
911
912 2010-12-27  Bruno Haible  <bruno@clisp.org>
913
914         select tests: Use 'bool' where appropriate.
915         * tests/test-select.c (connect_to_socket): Change argument type to
916         'bool'.
917
918 2010-12-27  Bruno Haible  <bruno@clisp.org>
919
920         select tests: Use existing modules.
921         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
922         (configure.ac): Don't test for unistd.h.
923         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
924         declared in <unistd.h>.
925
926 2010-12-27  Bruno Haible  <bruno@clisp.org>
927
928         mbrtowc: Work around a Solaris 7 bug.
929         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
930         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
931         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
932         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
933         MBRTOWC_NULL_ARG1_BUG.
934         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
935         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
936         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
937         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
938
939 2010-12-27  Jim Meyering  <meyering@redhat.com>
940
941         read-file.c: tweak syntax
942         * lib/read-file.c (fread_file): Remove space after "*" in function
943         definitions.
944
945 2010-12-27  Bruno Haible  <bruno@clisp.org>
946
947         times test: Avoid gcc warnings on OSF/1.
948         * tests/test-times.c (main): Cast printf arguments from clock_t to
949         'long int'.
950
951 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
952
953         utimens: work around glibc rounding bug on older Linux kernels
954         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
955         on Linux with a glibc whose utimes might not work, then work
956         around a longstanding glibc bug involving rounding rather than
957         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
959
960 2010-12-26  Bruno Haible  <bruno@clisp.org>
961
962         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
963         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
964         _GL_CXXALIAS_SYS.
965         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
966
967 2010-12-26  Bruno Haible  <bruno@clisp.org>
968
969         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
970         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
971         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
972         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
973         looking for the declaration.
974         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
975         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
976         problem.
977         * doc/posix-functions/inet_pton.texi: Likewise.
978
979 2010-12-26  Bruno Haible  <bruno@clisp.org>
980
981         arpa_inet: Use the common idioms with C++ support.
982         * lib/arpa_inet.in.h: Include c++defs.h.
983         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
984         support.
985         * modules/arpa_inet (Depends-on): Add c++defs.
986         (Makefile.am): Substitute the contents of c++defs.h.
987         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
988         * modules/arpa_inet-c++-tests: New file.
989         * tests/test-arpa_inet-c++.cc: New file.
990
991 2010-12-25  Bruno Haible  <bruno@clisp.org>
992
993         Fix more C++ link errors on Solaris 8.
994         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
995         $(LIB_EACCESS).
996         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
997         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
998         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
999         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1000         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1001
1002 2010-12-25  Bruno Haible  <bruno@clisp.org>
1003
1004         printf-posix: Fix link error when a non-GCC compiler is used.
1005         * lib/stdio.in.h (printf): When not using GCC, override printf
1006         correctly.
1007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1008
1009 2010-12-25  Bruno Haible  <bruno@clisp.org>
1010
1011         strerror_r-posix: Update doc.
1012         * doc/posix-functions/strerror_r.texi: Update doc about the return
1013         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1014
1015 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         utimens: simplify the logic of the previous change
1018         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1019         This should not affect whether the test succeeds or fails.
1020
1021         utimens: configure better on hosts with NFS clock skew
1022         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1023         uses the clock of the local host.  It might use the clock of the
1024         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1025         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1026
1027 2010-12-25  Bruno Haible  <bruno@clisp.org>
1028
1029         ptsname test: Avoid failure on Solaris.
1030         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1031         open a pseudo-terminal; don't use BSD-style ptys.
1032         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1033
1034 2010-12-25  Bruno Haible  <bruno@clisp.org>
1035
1036         ptsname: Avoid ERANGE failure on some systems.
1037         * lib/ptsname.c (buffer): Increase size.
1038
1039 2010-12-25  Bruno Haible  <bruno@clisp.org>
1040
1041         rename, renameat: Avoid test failures at NFS mounted locations.
1042         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1043         so that subsequent mkdir calls succeed.
1044
1045 2010-12-25  Bruno Haible  <bruno@clisp.org>
1046
1047         iswblank: Fix C++ link error on Solaris 8.
1048         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1049         _GL_FUNCDECL_SYS.
1050
1051 2010-12-25  Bruno Haible  <bruno@clisp.org>
1052
1053         unistd: Fix C++ link error on Solaris 8.
1054         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1055
1056 2010-12-25  Bruno Haible  <bruno@clisp.org>
1057
1058         readlink doc: Mention an old glibc bug.
1059         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1060
1061 2010-12-25  Bruno Haible  <bruno@clisp.org>
1062
1063         fcntl-h: Fix for use of C++ on glibc systems.
1064         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1065         also on glibc systems in C++ mode.
1066         Reported by Gary V. Vaughan <gary@gnu.org>.
1067
1068 2010-12-25  Bruno Haible  <bruno@clisp.org>
1069
1070         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1071         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1072
1073 2010-12-25  Bruno Haible  <bruno@clisp.org>
1074
1075         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1076         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1077         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1078         test whether truncl works according to ISO C 99 with IEC 60559.
1079         * m4/truncl-ieee.m4: New file.
1080         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1081         m4/signbit.m4.
1082         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1083
1084 2010-12-25  Bruno Haible  <bruno@clisp.org>
1085
1086         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1087         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1088         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1089         test whether ceill works according to ISO C 99 with IEC 60559.
1090         * m4/ceill-ieee.m4: New file.
1091         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1092         m4/signbit.m4.
1093         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1094
1095 2010-12-25  Bruno Haible  <bruno@clisp.org>
1096
1097         Ensure all prerequisites of <wchar.h> are included.
1098         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1099         before <wchar.h>.
1100         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1101         gl_MBRLEN_NUL_RETVAL): Likewise.
1102         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1103         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1104         AC_FUNC_MBRTOWC): Likewise.
1105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1106         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1107         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1108         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1109         Likewise.
1110         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1111         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1112         (gl_WCHAR_H): Improve comments.
1113         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1114
1115 2010-12-25  Bruno Haible  <bruno@clisp.org>
1116
1117         strtok_r: Fix C syntax error in autoconf macro.
1118         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1119         characters in test program.
1120
1121 2010-12-24  Bruno Haible  <bruno@clisp.org>
1122
1123         ceil, trunc, round: Fix gcc warnings.
1124         * lib/ceil.c (MIN): Undefine before redefining.
1125         * lib/trunc.c (MIN): Likewise.
1126         * lib/round.c (MIN): Likewise.
1127         Include <math.h> first.
1128
1129 2010-12-24  Bruno Haible  <bruno@clisp.org>
1130
1131         select tests: Avoid failures on OSF/1 5.1.
1132         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1133         failure of closing the last socket; it may fail with ECONNRESET.
1134
1135 2010-12-24  Eric Blake  <eblake@redhat.com>
1136
1137         stdint: avoid HP-UX 10.20 preprocessor bug
1138         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1139         than #if.
1140         * tests/test-floor2.c (main): Likewise.
1141         Reported by Peter O'Gorman.
1142
1143         pipe: make obsoletion transition easier
1144         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1145         * modules/pipe (Files): Include revived file.
1146         (Include): Drop reference, to mirror getdate's behavior.
1147
1148 2010-12-24  Bruno Haible  <bruno@clisp.org>
1149
1150         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1151         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1152         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1154
1155 2010-12-24  Bruno Haible  <bruno@clisp.org>
1156
1157         gethostname: Ensure declaration on NonStop Kernel.
1158         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1160
1161 2010-12-24  Bruno Haible  <bruno@clisp.org>
1162
1163         sys_select: Ensure all necessary types on NonStop Kernel.
1164         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1165         include <sys/time.h>.
1166         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1167         NonStop Kernel.
1168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1169
1170 2010-12-24  Bruno Haible  <bruno@clisp.org>
1171
1172         sys_select: Remove unneeded include.
1173         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1174         have <sys/select.h>.
1175
1176 2010-12-24  Bruno Haible  <bruno@clisp.org>
1177
1178         gethostname: Provide a fallback for HOST_NAME_MAX.
1179         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1180         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1181         instead.
1182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1183
1184 2010-12-24  Bruno Haible  <bruno@clisp.org>
1185
1186         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1187         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1188         (SA_RESTART): Likewise.
1189         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1190
1191 2010-12-24  Bruno Haible  <bruno@clisp.org>
1192
1193         signal: Define NSIG.
1194         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1195         * tests/test-signal.c (nsig): New variable.
1196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1197
1198 2010-12-24  Bruno Haible  <bruno@clisp.org>
1199
1200         rename, renameat: Avoid test failures on OSF/1 5.1.
1201         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1202         alternative error codes.
1203         * tests/test-renameat.c (main): Likewise.
1204
1205 2010-12-24  Bruno Haible  <bruno@clisp.org>
1206
1207         *printf: Detect large precisions bug on Solaris 10/SPARC.
1208         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1209         by Paul Eggert.
1210         * tests/test-snprintf-posix.h (test_function): Add this test code here
1211         too.
1212         * tests/test-sprintf-posix.h (test_function): Likewise.
1213         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1214         * tests/test-vasprintf-posix.c (test_function): Likewise.
1215         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1216         around by gnulib.
1217         * doc/posix-functions/printf.texi: Likewise.
1218         * doc/posix-functions/snprintf.texi: Likewise.
1219         * doc/posix-functions/sprintf.texi: Likewise.
1220         * doc/posix-functions/vfprintf.texi: Likewise.
1221         * doc/posix-functions/vprintf.texi: Likewise.
1222         * doc/posix-functions/vsnprintf.texi: Likewise.
1223         * doc/posix-functions/vsprintf.texi: Likewise.
1224         * doc/posix-functions/dprintf.texi: Undo last commit.
1225         * doc/posix-functions/vdprintf.texi: Likewise.
1226
1227 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1228
1229         tests: port test-fdutimensat.c to Solaris 8
1230         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1231         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1232         On Solaris 8, it fails with errno == ENOSYS, because there is no
1233         futimens (so it can't use the fd), and there is no lutimens (so it
1234         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1235
1236         vsnprintf: make more consistent with snprintf; doc fixes
1237
1238         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1239         the byte count return problem was promoted from the snprintf-posix
1240         to the snprintf module.
1241         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1242         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1243         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1244         * tests/test-snprintf.c (main): Check the byte count returned.
1245         * tests/test-vsnprintf.c (main): Likewise.
1246
1247 2010-12-23  Eric Blake  <eblake@redhat.com>
1248
1249         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1250         * modules/sigpipe (License): Relax license.
1251
1252 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1253
1254         doc: document Solaris printf bug with large float precisions
1255         * doc/posix-functions/dprintf.texi (dprintf):
1256         * doc/posix-functions/fprintf.texi (fprintf):
1257         * doc/posix-functions/printf.texi (printf):
1258         * doc/posix-functions/snprintf.texi (snprintf):
1259         * doc/posix-functions/sprintf.texi (sprintf):
1260         * doc/posix-functions/vdprintf.texi (vdprintf):
1261         * doc/posix-functions/vfprintf.texi (vfprintf):
1262         * doc/posix-functions/vprintf.texi (vprintf):
1263         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1264         * doc/posix-functions/vsprintf.texi (vsprintf):
1265         Mention that these functions mishandle large floating point
1266         precisions on Solaris 10.  The same bug is also present in Solaris
1267         8, and I assume earlier.  This causes "cd gnulib-tests; make
1268         check" to fail on Solaris 8 (and I assume, later) when building
1269         the latest coreutils, in test-vasprintf-posix's call to
1270         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1271         the wide flavors (e.g., wprintf) so this patch just updates the
1272         documentation for the narrow ones.
1273
1274         test-posixtm.c: add two tests
1275         * tests/test-posixtm.c: Add two tests, to highlight the
1276         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1277         around this bug; this is merely to document it.
1278
1279 2010-12-22  Bruno Haible  <bruno@clisp.org>
1280
1281         getlogin_r: Work around portability problem on OSF/1.
1282         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1283         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1284         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1285         test for a truncated result.
1286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1287         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1288         * modules/getlogin_r (Depends-on): Add memchr.
1289         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1290
1291 2010-12-22  Bruno Haible  <bruno@clisp.org>
1292
1293         ptsname: Avoid test failure on OSF/1 5.1.
1294         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1295         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1296         (same_slave): New function.
1297         (main): Use it to compare ptsname's result with the expected file name.
1298
1299 2010-12-22  Bruno Haible  <bruno@clisp.org>
1300
1301         Port extended stdio modules to HP NonStop Kernel.
1302         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1303         macros.
1304         * lib/fbufmode.c: Update comments.
1305         * lib/fflush.c: Likewise.
1306         * lib/fpurge.c: Likewise.
1307         * lib/freadable.c: Likewise.
1308         * lib/freadahead.c: Likewise.
1309         * lib/freading.c: Likewise.
1310         * lib/freadptr.c: Likewise.
1311         * lib/freadseek.c: Likewise.
1312         * lib/fseeko.c: Likewise.
1313         * lib/fseterr.c: Likewise.
1314         * lib/fwritable.c: Likewise.
1315         * lib/fwriting.c: Likewise.
1316         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1317
1318 2010-12-22  Bruno Haible  <bruno@clisp.org>
1319
1320         ttyname_r: Work around bug on OSF/1 5.1.
1321         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1322         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1323         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1324         present.
1325         * lib/ttyname_r.c (ttyname_r): Update comments.
1326
1327 2010-12-22  Bruno Haible  <bruno@clisp.org>
1328
1329         round: Implement result sign according to IEEE 754.
1330         * lib/round.c (MIN, MINUS_ZERO): New macros.
1331         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1332         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1333         * tests/test-round-ieee.c (main): Likewise.
1334         * tests/test-roundl-ieee.c (main): Likewise.
1335
1336         trunc: Implement result sign according to IEEE 754.
1337         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1338         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1339         * tests/test-trunc2.c: Include minus-zero.h.
1340         (MINUS_ZERO): New macro.
1341         (trunc_reference): Keep in sync with lib/trunc.c.
1342         * tests/test-truncf2.c: Include minus-zero.h.
1343         (MINUS_ZERO): New macro.
1344         (truncf_reference): Keep in sync with lib/trunc.c.
1345         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1346         * tests/test-trunc-ieee.c (main): Likewise.
1347         * tests/test-truncl-ieee.c (main): Likewise.
1348
1349         ceil: Implement result sign according to IEEE 754.
1350         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1351         (FUNC): Return -0.0 for -1 < x < 0.
1352         * tests/test-ceil2.c: Include minus-zero.h.
1353         (MINUS_ZERO): New macro.
1354         (ceil_reference): Keep in sync with lib/ceil.c.
1355         * tests/test-ceilf2.c: Include minus-zero.h.
1356         (MINUS_ZERO): New macro.
1357         (ceilf_reference): Keep in sync with lib/ceil.c.
1358         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1359         * tests/test-ceil-ieee.c (main): Likewise.
1360         * tests/test-ceill-ieee.c (main): Likewise.
1361
1362         floor: Implement result sign according to IEEE 754.
1363         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1364         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1365         * tests/test-floorf2.c (floorf_reference): Likewise.
1366         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1367         * tests/test-floor-ieee.c (main): Likewise.
1368         * tests/test-floorl-ieee.c (main): Likewise.
1369
1370 2010-12-22  Bruno Haible  <bruno@clisp.org>
1371
1372         getaddrinfo: Update doc.
1373         * doc/posix-functions/gai_strerror.texi: Return type is also different
1374         on AIX and HP-UX.
1375
1376 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1377
1378         getaddrinfo, inet_ntop: Update doc for Solaris.
1379         * doc/posix-functions/gai_strerror.texi: Return type is also an
1380         issue on Solaris 9 and earlier.
1381         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1382         on Solaris 10 and earlier.
1383
1384 2010-12-21  Bruno Haible  <bruno@clisp.org>
1385
1386         New module 'roundl-ieee'.
1387         * modules/roundl-ieee: New file.
1388         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1389         test whether roundl works according to ISO C 99 with IEC 60559.
1390         * m4/roundl-ieee.m4: New file.
1391         * modules/roundl-ieee-tests: New file.
1392         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1393         * tests/test-roundl.c (main): Remove signbit tests.
1394         * modules/roundl-tests (Depends-on): Remove signbit.
1395         * doc/posix-functions/roundl.texi: Mention the new module.
1396
1397 2010-12-21  Bruno Haible  <bruno@clisp.org>
1398
1399         New module 'truncl-ieee'.
1400         * modules/truncl-ieee: New file.
1401         * modules/truncl-ieee-tests: New file.
1402         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1403         * tests/test-truncl.c (main): Remove signbit tests.
1404         * modules/truncl-tests (Depends-on): Remove signbit.
1405         * doc/posix-functions/truncl.texi: Mention the new module.
1406
1407 2010-12-21  Bruno Haible  <bruno@clisp.org>
1408
1409         New module 'ceill-ieee'.
1410         * modules/ceill-ieee: New file.
1411         * modules/ceill-ieee-tests: New file.
1412         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1413         * tests/test-ceill.c (main): Remove signbit tests.
1414         * modules/ceill-tests (Depends-on): Remove signbit.
1415         * doc/posix-functions/ceill.texi: Mention the new module.
1416
1417 2010-12-21  Bruno Haible  <bruno@clisp.org>
1418
1419         New module 'floorl-ieee'.
1420         * modules/floorl-ieee: New file.
1421         * modules/floorl-ieee-tests: New file.
1422         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1423         * tests/test-floorl.c (main): Remove signbit tests.
1424         * modules/floorl-tests (Depends-on): Remove signbit.
1425         * doc/posix-functions/floorl.texi: Mention the new module.
1426
1427 2010-12-21  Bruno Haible  <bruno@clisp.org>
1428
1429         New module 'round-ieee'.
1430         * modules/round-ieee: New file.
1431         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1432         whether round works according to ISO C 99 with IEC 60559.
1433         * m4/round-ieee.m4: New file.
1434         * modules/round-ieee-tests: New file.
1435         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1436         * tests/test-round1.c (main): Remove signbit tests.
1437         * modules/round-tests (Depends-on): Remove 'signbit'.
1438         * doc/posix-functions/round.texi: Mention the new module.
1439
1440 2010-12-21  Bruno Haible  <bruno@clisp.org>
1441
1442         New module 'trunc-ieee'.
1443         * modules/trunc-ieee: New file.
1444         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1445         whether trunc works according to ISO C 99 with IEC 60559.
1446         * m4/trunc-ieee.m4: New file.
1447         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1449         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1450         * modules/trunc-ieee-tests: New file.
1451         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1452         * tests/test-trunc1.c (main): Remove signbit tests.
1453         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1454         * doc/posix-functions/trunc.texi: Mention the new module.
1455
1456 2010-12-21  Bruno Haible  <bruno@clisp.org>
1457
1458         New module 'ceil-ieee'.
1459         * modules/ceil-ieee: New file.
1460         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1461         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1462         ISO C 99 with IEC 60559.
1463         * m4/ceil-ieee.m4: New file.
1464         * modules/ceil (Files): Add lib/ceil.c.
1465         (Depends-on): Add 'float'.
1466         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1467         * lib/math.in.h (ceil): New declaration.
1468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
1469         REPLACE_CEIL.
1470         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
1471         * modules/ceil-ieee-tests: New file.
1472         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
1473         * tests/test-math-c++.cc: Check the signature of 'ceil'.
1474         * doc/posix-functions/ceil.texi: Mention the new module.
1475
1476 2010-12-21  Bruno Haible  <bruno@clisp.org>
1477
1478         New module 'floor-ieee'.
1479         * modules/floor-ieee: New file.
1480         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
1481         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
1482         ISO C 99 with IEC 60559.
1483         * m4/floor-ieee.m4: New file.
1484         * modules/floor (Files): Add lib/floor.c.
1485         (Depends-on): Add 'float'.
1486         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1487         * lib/math.in.h (floor): New declaration.
1488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
1489         REPLACE_FLOOR.
1490         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
1491         * modules/floor-ieee-tests: New file.
1492         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
1493         * tests/test-math-c++.cc: Check the signature of 'floor'.
1494         * doc/posix-functions/floor.texi: Mention the new module.
1495
1496 2010-12-21  Bruno Haible  <bruno@clisp.org>
1497
1498         New module 'roundf-ieee'.
1499         * modules/roundf-ieee: New file.
1500         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
1501         test whether roundf works according to ISO C 99 with IEC 60559.
1502         * m4/roundf-ieee.m4: New file.
1503         * modules/roundf-ieee-tests: New file.
1504         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
1505         * tests/test-roundf1.c (main): Remove signbit tests.
1506         * modules/roundf-tests (Depends-on): Remove 'signbit'.
1507         * doc/posix-functions/roundf.texi: Mention the new module.
1508
1509 2010-12-21  Bruno Haible  <bruno@clisp.org>
1510
1511         New module 'truncf-ieee'.
1512         * modules/truncf-ieee: New file.
1513         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
1514         test whether truncf works according to ISO C 99 with IEC 60559.
1515         * m4/truncf-ieee.m4: New file.
1516         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
1517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
1518         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
1519         * modules/truncf-ieee-tests: New file.
1520         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
1521         * tests/test-truncf1.c (main): Remove signbit tests.
1522         * modules/truncf-tests (Depends-on): Remove 'signbit'.
1523         * doc/posix-functions/truncf.texi: Mention the new module.
1524
1525 2010-12-21  Bruno Haible  <bruno@clisp.org>
1526
1527         New module 'ceilf-ieee'.
1528         * modules/ceilf-ieee: New file.
1529         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
1530         test whether ceilf works according to ISO C 99 with IEC 60559.
1531         * m4/ceilf-ieee.m4: New file.
1532         * modules/ceilf-ieee-tests: New file.
1533         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
1534         * tests/test-ceilf1.c (main): Remove signbit tests.
1535         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
1536         * doc/posix-functions/ceilf.texi: Mention the new module.
1537
1538 2010-12-21  Bruno Haible  <bruno@clisp.org>
1539
1540         New module 'floorf-ieee'.
1541         * modules/floorf-ieee: New file.
1542         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
1543         test whether floorf works according to ISO C 99 with IEC 60559.
1544         * m4/floorf-ieee.m4: New file.
1545         * modules/floorf-ieee-tests: New file.
1546         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
1547         * tests/test-floorf1.c (main): Remove signbit tests.
1548         * modules/floorf-tests (Depends-on): Remove 'signbit'.
1549         * doc/posix-functions/floorf.texi: Mention the new module.
1550
1551 2010-12-21  Bruno Haible  <bruno@clisp.org>
1552
1553         Support for minus zero in autoconf macros.
1554         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
1555         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
1556         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
1557         * tests/minus-zero.h: Update comments.
1558
1559 2010-12-21  Bruno Haible  <bruno@clisp.org>
1560
1561         Tests for module 'ceil'.
1562         * modules/ceil-tests: New file.
1563         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
1564         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
1565
1566 2010-12-21  Bruno Haible  <bruno@clisp.org>
1567
1568         Tests for module 'floor'.
1569         * modules/floor-tests: New file.
1570         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
1571         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
1572
1573 2010-12-21  Bruno Haible  <bruno@clisp.org>
1574
1575         math: Fix indentation.
1576         * lib/math.in.h (floorf): Fix indentation.
1577
1578 2010-12-21  Bruno Haible  <bruno@clisp.org>
1579
1580         Fix cross-compilation guesses on Solaris.
1581         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
1582         not match "solaris2.10".
1583         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1584         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
1585         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
1586
1587 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1588
1589         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
1590         This fixes a problem observed with the latest coreutils snapshot
1591         that caused a test to fail on Solaris 8.  src/csplit.c's call
1592         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
1593         earlier, instead of returning the number of bytes that would have
1594         been generated; this causes csplit to incorrectly report memory
1595         exhaustion.
1596         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
1597         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
1598         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
1599         comments to match.
1600         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
1601         Fix typo in matching older versions of Solaris: "solaris2.10"
1602         is matched by the shell pattern "solaris2.[0-9]*".  This matters
1603         only for guessing while cross-compiling.
1604         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
1605
1606 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1607
1608         ftoastr: fix comment again
1609         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
1611         Also, simplify example a bit by using flags = 0.
1612
1613 2010-12-20  Bruno Haible  <bruno@clisp.org>
1614
1615         round*, trunc*: Update documentation regarding glibc.
1616         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
1617         * doc/posix-functions/round.texi: Likewise.
1618         * doc/posix-functions/roundl.texi: Likewise.
1619         * doc/posix-functions/truncf.texi: Likewise.
1620         * doc/posix-functions/trunc.texi: Likewise.
1621         * doc/posix-functions/truncl.texi: Likewise.
1622
1623 2010-12-20  Bruno Haible  <bruno@clisp.org>
1624
1625         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
1626         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
1627         * doc/posix-functions/round.texi: Likewise.
1628         * doc/posix-functions/roundl.texi: Likewise.
1629
1630 2010-12-20  Bruno Haible  <bruno@clisp.org>
1631
1632         ttyname_r: Add missing declaration on HP-UX 11.
1633         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
1634         HAVE_TTYNAME_R.
1635         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
1636         declared. Set HAVE_TTYNAME_R always.
1637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1638         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
1639         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
1640         HAVE_TTYNAME_R.
1641         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
1642
1643 2010-12-20  Bruno Haible  <bruno@clisp.org>
1644
1645         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
1646         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
1647         * doc/posix-functions/getlogin_r.texi: Likewise.
1648         * tests/test-getlogin.c: Include <errno.h>.
1649         (main): Avoid test failure on HP-UX 11.11.
1650         * tests/test-getlogin_r.c (main): Likewise.
1651
1652 2010-12-20  Bruno Haible  <bruno@clisp.org>
1653
1654         getlogin_r: Add missing declaration on HP-UX 11.
1655         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
1656         declared also when it exists as a function.
1657         * doc/posix-functions/getlogin_r.texi: Document this workaround.
1658
1659 2010-12-20  Bruno Haible  <bruno@clisp.org>
1660
1661         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
1662         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
1663         through wcrtomb.
1664
1665 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1666
1667         ftoastr: fix comment
1668         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1669         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
1670
1671 2010-12-19  Bruno Haible  <bruno@clisp.org>
1672
1673         isnan: Ensure it is a macro.
1674         * lib/math.in.h (isnan): Define as a macro if not already a macro.
1675         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
1676         Solaris.
1677
1678 2010-12-19  Bruno Haible  <bruno@clisp.org>
1679
1680         ldexpl test: Fix link error on OSF/1 5.1.
1681         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
1682
1683 2010-12-19  Bruno Haible  <bruno@clisp.org>
1684
1685         wctype: Make it work in C++ mode on OSF/1 5.1.
1686         * lib/wctype.in.h (iswblank): Declare but not define here.
1687         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
1688         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
1689         * modules/wctype (Files): Add lib/iswblank.c.
1690
1691 2010-12-19  Bruno Haible  <bruno@clisp.org>
1692
1693         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
1694         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
1695         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
1696
1697 2010-12-19  Bruno Haible  <bruno@clisp.org>
1698
1699         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
1700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
1701         _POSIX_PII_SOCKET.
1702         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
1703         * doc/posix-functions/recvfrom.texi: Likewise.
1704         * doc/posix-functions/send.texi: Likewise.
1705         * doc/posix-functions/sendto.texi: Likewise.
1706
1707 2010-12-19  Bruno Haible  <bruno@clisp.org>
1708
1709         tcgetsid: Add missing declaration on OSF/1 5.1.
1710         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
1711         HAVE_TCGETSID.
1712         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
1713         Don't set HAVE_TCGETSID.
1714         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
1715         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
1716         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
1717         HAVE_TCGETSID.
1718         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
1719
1720 2010-12-19  Bruno Haible  <bruno@clisp.org>
1721
1722         stdio: Fix problem with popen() declaration on OSF/1 5.1.
1723         * lib/stdio.in.h: During the include_next statement, let recursive
1724         includes of this file include only the system header file.
1725
1726 2010-12-19  Bruno Haible  <bruno@clisp.org>
1727
1728         iconv_open: Fix regression from 2010-12-04.
1729         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
1730         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
1731
1732 2010-12-19  Bruno Haible  <bruno@clisp.org>
1733
1734         stdbool test: Avoid a gcc warning.
1735         * tests/test-stdbool.c (main): Fail if e1 is false.
1736         Reported by Jim Meyering.
1737
1738 2010-12-19  Jim Meyering  <meyering@redhat.com>
1739
1740         setenv: restore to working order
1741         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
1742         mistakenly removed.
1743         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
1744         HAVE_SETENV.
1745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
1746         HAVE_SETENV.
1747
1748 2010-12-19  Bruno Haible  <bruno@clisp.org>
1749
1750         Document some different function declarations on OSF/1 5.1.
1751         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
1752         * doc/posix-functions/inet_ntop.texi: Likewise.
1753         * doc/posix-functions/gethostname.texi: Likewise.
1754         * lib/unistd.in.h (gethostname): Update comment.
1755
1756 2010-12-19  Bruno Haible  <bruno@clisp.org>
1757
1758         doc: Mention vasprintf-posix module.
1759         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
1760         the 'vasprintf-posix' module.
1761         * doc/glibc-functions/vasprintf.texi: Likewise.
1762
1763 2010-12-19  Bruno Haible  <bruno@clisp.org>
1764
1765         unsetenv: Add missing declaration on OSF/1 5.1.
1766         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
1767         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
1768         Don't set HAVE_UNSETENV. In the test program, set _BSD.
1769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
1770         not HAVE_UNSETENV.
1771         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
1772         HAVE_UNSETENV.
1773         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
1774
1775 2010-12-19  Bruno Haible  <bruno@clisp.org>
1776
1777         setenv: Add missing declaration on OSF/1 5.1.
1778         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
1779         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
1780         declared. Don't set HAVE_SETENV.
1781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
1782         not HAVE_SETENV.
1783         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
1784         HAVE_SETENV.
1785         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
1786
1787 2010-12-19  Bruno Haible  <bruno@clisp.org>
1788
1789         nl_langinfo tests: Avoid gcc warning.
1790         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
1791
1792 2010-12-19  Bruno Haible  <bruno@clisp.org>
1793
1794         mknod: Avoid error in C++ mode on OSF/1 with GCC.
1795         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
1796         _GL_CXXALIAS_SYS.
1797
1798 2010-12-19  Bruno Haible  <bruno@clisp.org>
1799
1800         stdbool: Relax test.
1801         * tests/test-stdbool.c (e): Don't require that casts from a variable's
1802         address to 'bool' work in static initializer, for compilers other than
1803         GCC.
1804
1805 2010-12-19  Bruno Haible  <bruno@clisp.org>
1806
1807         ftello: Add missing declaration on OSF/1 5.1.
1808         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
1809         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
1810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
1811         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
1812         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
1813
1814 2010-12-19  Bruno Haible  <bruno@clisp.org>
1815
1816         fseeko: Add missing declaration on OSF/1 5.1.
1817         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
1818         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
1819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
1820         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
1821         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
1822
1823 2010-12-19  Bruno Haible  <bruno@clisp.org>
1824
1825         fchdir: Add missing declaration on OSF/1 5.1.
1826         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
1827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
1828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
1829         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
1830         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
1831
1832 2010-12-19  Bruno Haible  <bruno@clisp.org>
1833
1834         relocatable-prog-wrapper: Separate from relocatable-prog.
1835         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
1836         uninstall-relocwrapper rule here.
1837         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
1838         Reported by Ian Beckwith <ianb@erislabs.net>.
1839
1840 2010-12-19  Bruno Haible  <bruno@clisp.org>
1841
1842         unistr/u8-mbsnlen: Add missing dependency.
1843         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
1844         Reported by Ian Beckwith <ianb@erislabs.net>.
1845
1846 2010-12-19  Bruno Haible  <bruno@clisp.org>
1847
1848         iconv: Make it possible again to use this module without 'iconv-h'.
1849         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
1850         if it is not defined.
1851         Reported by Ian Beckwith <ianb@erislabs.net>.
1852
1853 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         acl: port to Solaris 8 when copying from tmpfs to ufs
1856         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
1857         error number.  Problem observed on Solaris 8 with latest
1858         coreutils, with "mv A B", where A is on a tmpfs file system and B
1859         is on a ufs file system.  This caused coreutils' mv/part-symlink
1860         test to fail.
1861
1862         tests: set fail=0 at start
1863         * tests/init.sh (setup_): Move fail=0 initialization here ...
1864         (mktempd_): ... from here, so that tests can rely on fail being
1865         set to 0 initially.  This fixes a problem in coreutils; see:
1866         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
1867
1868 2010-12-18  Bruno Haible  <bruno@clisp.org>
1869
1870         memmem-simple: Stylistic changes.
1871         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
1872         Fix preprocessor directive indentation.
1873
1874 2010-12-15  Pádraig Brady <P@draigBrady.com>
1875
1876         memmem, memmem-simple: reorganize and expand empty needle check
1877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
1878         functional checks to memmem-simple so that one has a fully functional
1879         memmem by using just this module.
1880         Restrict the performance only check to the memmem module.
1881         Also expand the empty needle check to ensure the correct
1882         pointer is returned, not just a non NULL pointer.
1883         * doc/glibc-functions/memmem.texi: Rearrange the portability
1884         documentation to correlate with the rearranged checks.
1885         Clarify exactly how the memmem and memmem-simple modules
1886         relate to each other.
1887
1888 2010-12-15  Pádraig Brady <P@draigBrady.com>
1889             Bruno Haible  <bruno@clisp.org>
1890
1891         Improve cross-compilation guesses for uClibc.
1892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
1893         that uClibc does not have the glibc bug.
1894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1895         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
1896
1897 2010-12-14  Eric Blake  <eblake@redhat.com>
1898
1899         configmake: provide fallbacks for oldest supported autotools
1900         * m4/configmake.m4: New file.
1901         * modules/configmake (Files): Ship it.
1902         (configure.ac): Use it to guarantee fallbacks.
1903
1904 2010-12-13  Pádraig Brady <P@draigBrady.com>
1905
1906         read-file: Improve handling of large files
1907         * lib/read-file.c (fread_file): Minimize realloc()s
1908         for regular files, and better manage sizes around SIZE_MAX.
1909
1910 2010-12-13  Eric Blake  <eblake@redhat.com>
1911
1912         cloexec, fcntl: relax license
1913         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
1914         consent from all contributors.
1915         * modules/fcntl (License): Likewise.
1916
1917 2010-12-10  Bruno Haible  <bruno@clisp.org>
1918
1919         Tests for module 'pipe-posix'.
1920         * modules/pipe-posix-tests: New file.
1921         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
1922
1923 2010-12-10  Bruno Haible  <bruno@clisp.org>
1924
1925         pipe-posix: Make it work in C++ mode.
1926         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
1927         (pipe): Use common idiom, not a macro definition.
1928         * lib/pipe.c: New file.
1929         * m4/pipe.m4: New file.
1930         * modules/pipe-posix (Description): Enhance.
1931         (Files): Add lib/pipe.c, m4/pipe.m4.
1932         (configure.ac): Invoke gl_FUNC_PIPE.
1933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
1934         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
1935         * tests/test-unistd-c++.cc: Check the signature of pipe.
1936
1937 2010-12-10  Bruno Haible  <bruno@clisp.org>
1938
1939         Rename module 'pipe' to 'spawn-pipe'.
1940         * modules/spawn-pipe: New file, renamed from modules/pipe.
1941         (Files, configure.ac, Makefile.am): Update.
1942         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
1943         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
1944         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
1945         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
1946         "spawn-pipe.h" instead of "pipe.h".
1947         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
1948         to gl_SPAWN_PIPE.
1949         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
1950         (Files, Makefile.am): Update.
1951         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
1952         Update.
1953         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
1954         Include "spawn-pipe.h" instead of "pipe.h".
1955         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
1956         * lib/javacomp.c: Likewise.
1957         * lib/javaversion.c: Likewise.
1958         * lib/pipe-filter-gi.c: Likewise.
1959         * lib/pipe-filter-ii.c: Likewise.
1960         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
1961         * modules/javacomp (Depends-on): Likewise.
1962         * modules/javaversion (Depends-on): Likewise.
1963         * modules/pipe-filter-gi (Depends-on): Likewise.
1964         * modules/pipe-filter-ii (Depends-on): Likewise.
1965         * MODULES.html.sh (Executing programs): Update.
1966         * NEWS: Mention the change.
1967
1968 2010-12-10  Eric Blake  <eblake@redhat.com>
1969
1970         pipe-posix: new module
1971         * modules/pipe-posix: New file.
1972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
1973         (gl_UNISTD_H): Check for declaration.
1974         * modules/unistd (Makefile.am): Substitute it.
1975         * lib/unistd.in.h (pipe): Provide it for mingw.
1976         * doc/posix-functions/pipe.texi (pipe): Update documentation.
1977         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
1978
1979 2010-12-07  Bruno Haible  <bruno@clisp.org>
1980
1981         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
1982         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
1983         u8_strcmp_gnu.
1984         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
1985
1986 2010-12-06  Bruno Haible  <bruno@clisp.org>
1987
1988         Update internal documentation.
1989         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
1990
1991 2010-12-04  Bruno Haible  <bruno@clisp.org>
1992
1993         Put more information about failed tests into the test return codes.
1994         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
1995         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
1996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2000         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2001         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2002         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2005         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2006         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2007         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2008         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2009         returns a bit mask.
2010         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2011         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2012         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2013         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2014         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2015         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2018         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2019         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2020         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2021         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2022         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2024         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2025         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2026         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2027         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2029         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2031         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2033         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2034         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2035         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2036         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2037         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2038         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2039         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2040         gl_PRINTF_PRECISION): Likewise.
2041         * m4/regex.m4 (gl_REGEX): Likewise.
2042         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2045         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2049         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2050         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2051         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2052         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2053         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2054         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2055         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2056         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2057         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2058         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2059         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2061         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2062         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2063         enumerated value.
2064         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2065
2066 2010-12-04  Bruno Haible  <bruno@clisp.org>
2067
2068         Update for Solaris 11 2010-11.
2069         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2070         Express, released in November 2010.
2071
2072 2010-12-04  Bruno Haible  <bruno@clisp.org>
2073
2074         nproc: Relax license.
2075         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2076         and Paul Eggert.
2077         Requested by Ludovic Courtès <ludo@gnu.org>.
2078
2079 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         utimecmp: fine-grained src to nearby coarse-grained dest
2082
2083         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2084         and the source is on a file system with higher-resolution time
2085         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2086         not work, and the time stamps are close together, the algorithm to
2087         determine the exact resolution from the read-back mtime was buggy:
2088         it had a "!=" where it should have had an "==".  This bug has been
2089         in the code ever since it was introduced to gnulib.
2090         Problem reported by Dan Jacobson in
2091         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2092
2093 2010-11-30  Bruno Haible  <bruno@clisp.org>
2094
2095         strerror_r-posix: Fix autoconf test.
2096         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2097
2098 2010-11-28  Bruno Haible  <bruno@clisp.org>
2099             Paul Eggert  <eggert@cs.ucla.edu>
2100
2101         Tests for module 'getdomainname'.
2102         * modules/getdomainname-tests: New file.
2103         * tests/test-getdomainname.c: New file, based on
2104         tests/test-gethostname.c.
2105
2106 2010-11-28  Bruno Haible  <bruno@clisp.org>
2107             Paul Eggert  <eggert@cs.ucla.edu>
2108
2109         getdomainname: Use the system function when possible.
2110         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2111         (getdomainname): Replace if needed. Provide the declaration if it is
2112         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2113         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2114         (getdomainname): When the system has getdomainname, call the system
2115         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2116         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2117         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2118         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2119         the function if its second argument is of type 'int' or if it is found
2120         in libnsl.
2121         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2122         <sys/systeminfo.h> and sysinfo().
2123         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2125         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2126         HAVE_GETDOMAINNAME.
2127         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2128         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2129         * doc/glibc-functions/getdomainname.texi: Document the problems with
2130         the getdomainname declaration.
2131
2132 2010-11-28  Bruno Haible  <bruno@clisp.org>
2133
2134         sys_socket: Ensure ss_family field on AIX.
2135         * lib/sys_socket.in.h (ss_family): New macro definition.
2136         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2137         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2138         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2139         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2140         * modules/sys_socket (Makefile.am): Substitute
2141         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2142         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2143
2144 2010-11-27  Bruno Haible  <bruno@clisp.org>
2145
2146         readline: Improve configure output.
2147         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2148         "checking for readline..." result understandable.
2149
2150 2010-11-27  Bruno Haible  <bruno@clisp.org>
2151
2152         *printf-posix: Detect a bug on Solaris 10/x86.
2153         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2154         for floating-point output.
2155         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2156         directive.
2157         * tests/test-snprintf-posix.h (test_function): Likewise.
2158         * tests/test-sprintf-posix.h (test_function): Likewise.
2159         * tests/test-vasprintf-posix.c (test_function): Likewise.
2160         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2161         * doc/posix-functions/printf.texi: Likewise.
2162         * doc/posix-functions/snprintf.texi: Likewise.
2163         * doc/posix-functions/sprintf.texi: Likewise.
2164         * doc/posix-functions/vfprintf.texi: Likewise.
2165         * doc/posix-functions/vprintf.texi: Likewise.
2166         * doc/posix-functions/vsnprintf.texi: Likewise.
2167         * doc/posix-functions/vsprintf.texi: Likewise.
2168         * doc/glibc-functions/obstack_printf.texi: Likewise.
2169         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2170
2171 2010-11-27  Bruno Haible  <bruno@clisp.org>
2172
2173         Fix link error when module libunistring-optional is in use.
2174         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2175         * modules/striconveha-tests (Makefile.am): Likewise.
2176
2177 2010-11-27  Bruno Haible  <bruno@clisp.org>
2178
2179         regex: Mention link dependencies.
2180         * modules/regex (Link): New section.
2181         * modules/rpmatch (Link): Likewise.
2182         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2183
2184 2010-11-27  Bruno Haible  <bruno@clisp.org>
2185
2186         ftoastr: Fix compilation error on Solaris.
2187         * lib/ftoastr.c: Include <config.h>.
2188
2189 2010-11-27  Bruno Haible  <bruno@clisp.org>
2190
2191         getloadavg: Update documentation.
2192         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2193
2194 2010-11-27  Bruno Haible  <bruno@clisp.org>
2195
2196         sys_socket: Fix test whether the functions are declared.
2197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2198         not <sys/select.h>.
2199
2200 2010-11-27  Bruno Haible  <bruno@clisp.org>
2201
2202         getpass: Make sure to get system declaration on some platforms.
2203         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2204         gl_USE_SYSTEM_EXTENSIONS.
2205         * modules/getpass (Depends-on): Add extensions.
2206
2207 2010-11-26  Bruno Haible  <bruno@clisp.org>
2208
2209         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2210         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2211         'iconv' module is present.
2212         (ICONV_CONST): New macro.
2213         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2214         ICONV_CONST.
2215         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2216         set ICONV_CONST.
2217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2218         here.
2219         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2220         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2221         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2222         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2223         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2224         present.
2225
2226 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2227
2228         ftoastr: comment fix
2229         * lib/ftoastr.c: "little" -> "little or no" in comment
2230
2231 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2232
2233         stdint: port to GCC 4.3 + OSX + Octave
2234         On this platform, stdint.h is buggy and defines int64_t to long
2235         long int.  The replacement defined it to long int, causing
2236         problems with C++ style name mangling.  Instead, trust the system
2237         definition if INT64_MAX is defined, and likewise for the unsigned
2238         variant.   Problem reported by Jarno Rajahalme in
2239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2240         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2241         and don't mess with int64_t and INT64_MAX in this case.
2242         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2243
2244 2010-11-24  Bruno Haible  <bruno@clisp.org>
2245
2246         doc: Corrections regarding MacOS X 10.4 and 10.5.
2247         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2248         MacOS X.
2249         Reported by Simon Josefsson.
2250
2251 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2252
2253         Uninstall ".bin" files installed by relocwrapper.
2254         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2255         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2256         unless it is already there.
2257
2258 2010-11-21  Bruno Haible  <bruno@clisp.org>
2259
2260         Update for NetBSD 5.0.
2261         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2262         NetBSD; the test fails on NetBSD 5.0.
2263         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2264         about NetBSD.
2265
2266 2010-11-21  Bruno Haible  <bruno@clisp.org>
2267
2268         Update for HP-UX 11.23 and HP-UX 11.31.
2269         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2270         HP-UX.
2271
2272 2010-11-21  Bruno Haible  <bruno@clisp.org>
2273
2274         Update for MacOS X 10.5.
2275         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2276         MacOS X; the test fails on MacOS X 10.5.8.
2277         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2278         about MacOS X.
2279
2280 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2281
2282         bootstrap: add bootstrap_sync option.
2283         See discussion at
2284         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2286         * build-aux/bootstrap: Accept --bootstrap-sync to update
2287         bootstrap if it is not identical to the local gnulib's
2288         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2289         enable this by default.  Accept --no-bootstrap-sync to disable
2290         it.
2291
2292 2010-11-20  Bruno Haible  <bruno@clisp.org>
2293
2294         Ensure that <features.h> is included before __GLIBC__ is tested.
2295         * lib/printf-parse.h: Include <features.h>.
2296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2297         Reported by Mike Frysinger <vapier@gentoo.org>.
2298
2299         Ensure that <features.h> is included before __GLIBC__ is tested.
2300         * lib/wchar.in.h: Include <features.h>.
2301         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2302         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2303         Reported by Mike Frysinger <vapier@gentoo.org>.
2304
2305         Ensure that <features.h> is included before __GLIBC__ is tested.
2306         * lib/arpa_inet.in.h: Include <features.h>.
2307         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2308         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2309         Reported by Mike Frysinger <vapier@gentoo.org>.
2310
2311         Ensure that <features.h> is included before __GLIBC__ is tested.
2312         * build-aux/link-warning.h: Include <features.h>.
2313         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2314         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2315         Reported by Mike Frysinger <vapier@gentoo.org>.
2316
2317         Ensure that <features.h> is included before __GLIBC__ is tested.
2318         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2319         Reported by Mike Frysinger <vapier@gentoo.org>.
2320
2321 2010-11-20  Bruno Haible  <bruno@clisp.org>
2322
2323         memmem: Fix autoconf test.
2324         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2325
2326 2010-11-20  Bruno Haible  <bruno@clisp.org>
2327
2328         Port to uClibc.
2329         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2330         * lib/fcntl.in.h: Likewise.
2331         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2332         * lib/mbrtowc.c (mbrtowc): Likewise.
2333         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2334         * lib/strerror_r.c: Likewise.
2335         * lib/unistr/u8-strnlen.c: Likewise.
2336         * lib/vasnprintf.c (decimal_point_char): Likewise.
2337         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2338         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2340         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2341         * tests/test-sigaction.c (handler, main): Likewise.
2342         * lib/freading.h: Treat uClibc like a non-glibc platform.
2343         * lib/freading.c: Likewise.
2344         * lib/gettext.h: Likewise.
2345         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2346         Likewise.
2347         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2348         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2349         * lib/propername.c (proper_name_utf8): Likewise.
2350         * lib/spawn.in.h: Likewise.
2351         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2352         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2353         mem_cd_iconveh_internal): Likewise.
2354         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2355         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2356         strstr, strcasestr): Likewise.
2357         * lib/unicodeio.c (unicode_to_mb): Likewise.
2358         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2359         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2360         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2361         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2362         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2363         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2364         * lib/unistr/u8-stpncpy.c: Likewise.
2365         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2366         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2368         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2369         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2370         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2374         Likewise.
2375         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2376         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2379         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2381         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2382         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2383         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2384         * tests/test-striconveha.c (main): Likewise.
2385         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2386         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2387         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2388         * doc/posix-functions/getline.texi: Likewise.
2389         Reported by Mike Frysinger <vapier@gentoo.org>.
2390
2391 2010-11-20  Bruno Haible  <bruno@clisp.org>
2392
2393         nproc: Fix condition.
2394         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2395         HAVE_PTHREAD_AFFINITY_NP.
2396
2397 2010-11-20  Bruno Haible  <bruno@clisp.org>
2398
2399         Fix a comment.
2400         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2401
2402 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         ftoastr: don't assume snprintf
2405         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2406         Implement a subset of snprintf here, by using sprintf safely.
2407         * modules/ftoastr (Depends-on): Remove snprintf.
2408
2409 2010-11-19  Jim Meyering  <meyering@redhat.com>
2410
2411         test-rename.h: fix compilation failure
2412         * tests/test-rename.h (test_rename): Add omitted "}".
2413
2414 2010-11-17  Jim Meyering  <meyering@redhat.com>
2415
2416         maint.mk: add a URL discussing the no-@acronym policy
2417         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2418
2419 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2420
2421         ftoastr: depend on snprintf, improve comments
2422         * lib/ftoastr.c: Also mention Loitsch's draft.
2423         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2424         needed in the current implementation, but it might simplify
2425         speeding up the code later.
2426         * modules/ftoastr: Depend on snprintf; this improves portability.
2427         Suggested by Bruno Haible in the same email.
2428
2429         ftoastr: port to hosts lacking strtof and strtold
2430         Problem reported by Bruno Haible in
2431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2432         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2433         environment and strtold (and presumably strtof) are not available.
2434         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2435         (configure.ac): Require gl_C99_STRTOLD.
2436
2437 2010-11-18  Bruno Haible  <bruno@clisp.org>
2438
2439         c-strtold: Avoid link error on AIX 7.
2440         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2441         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2442         (gl_C_STRTOLD): Test whether strtold_l exists.
2443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2444
2445 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2446
2447         intprops: new macro INT_BITS_STRLEN_BOUND
2448         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2449         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2450         not exposed.  Also, it uses a slightly tighter bound than before;
2451         though this makes no practical difference, we might as well be as
2452         tight as we easily can.
2453
2454         ftoastr: new module, for lossless conversion of floats to short strings
2455         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2456         * modules/ftoastr: New files.
2457
2458 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2459
2460         bootstrap: port to Solaris sed
2461         * build-aux/bootstrap (get_version): Port to Solaris sed.
2462         See Ralf Wildenhues's note in
2463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2464
2465 2010-11-14  Jim Meyering  <meyering@redhat.com>
2466
2467         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
2468         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
2469         and move definition closer to sole use.
2470
2471 2010-11-13  Jim Meyering  <meyering@redhat.com>
2472
2473         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
2474         Now we require at least autoconf-2.59, which means the work-around
2475         is no longer needed.
2476         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
2477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2478         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2479         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2480         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2481
2482 2010-11-13  Bruno Haible  <bruno@clisp.org>
2483
2484         rename, renameat: Avoid test failures at NFS mounted locations.
2485         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
2486         functions.
2487         (test_rename): Use assert_nonexistent.
2488         * tests/test-rename.c: Include <dirent.h>.
2489         * tests/test-renameat.c: Likewise.
2490         Reported by Gary V. Vaughan <gary@gnu.org>.
2491
2492         rename, renameat: Document Linux bug with NFS
2493         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
2494         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
2495         * doc/posix-functions/renameat.texi: Likewise.
2496         Suggested by Eric Blake.
2497
2498 2010-11-13  Bruno Haible  <bruno@clisp.org>
2499
2500         rename test: Add comments.
2501         * tests/test-rename.h (test_rename): Add structure and comments.
2502
2503 2010-11-13  Eric Blake  <eblake@redhat.com>
2504
2505         maintainer-makefile: cover a few more files
2506         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
2507         scripts generated within C files, for libvirt.
2508
2509 2010-11-13  Bruno Haible  <bruno@clisp.org>
2510
2511         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
2512         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
2513         character, return the number of bytes that belong together, not always
2514         1.
2515         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2516         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2517         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2518         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
2519         number of bytes of an invalid character.
2520         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
2521         (main): Invoke it.
2522         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
2523         results.
2524         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
2525         malformed byte sequences.
2526         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
2527         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
2528         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
2529         Reported by Ben Pfaff and Paolo Bonzini.
2530
2531 2010-11-13  Bruno Haible  <bruno@clisp.org>
2532
2533         openat: Work around glibc bug with fchownat() and empty file names.
2534         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
2535         (gl_FUNC_FCHOWNAT): Invoke it.
2536         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
2537         * doc/posix-functions/fchownat.texi: Document the glibc bug.
2538         Reported by Gary V. Vaughan <gary@gnu.org>.
2539
2540 2010-11-13  Bruno Haible  <bruno@clisp.org>
2541
2542         openat: Ensure autoconf macro ordering.
2543         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
2544         gl_USE_SYSTEM_EXTENSIONS.
2545         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
2546
2547 2010-11-13  Bruno Haible  <bruno@clisp.org>
2548
2549         Update comments.
2550         * lib/unistr/u8-check.c: Update file name in comments.
2551         * lib/unistr/u8-mblen.c: Likewise.
2552         * lib/unistr/u8-prev.c: Likewise.
2553         * lib/unistr/u8-strmblen.c: Likewise.
2554         * lib/unistr/u8-strmbtouc.c: Likewise.
2555
2556 2010-11-13  Jim Meyering  <meyering@redhat.com>
2557
2558         tests: avoid test failure on Solaris 10 due to lack of PATH export
2559         * tests/test-update-copyright.sh: Don't forget to export PATH.
2560
2561         init.sh: ensure that IFS is defined, just in case...
2562         * tests/init.sh (setup_): Ensure that IFS is defined,
2563         so that saving and restoring it works as expected.  This
2564         appears to be useful at least for an old version of dash
2565         from a long time ago (RH 6).  See here for details:
2566         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
2567
2568         maint.mk: tighten "test a == b" check
2569         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
2570         test to files that contain something like #!/bin/sh.
2571         Without this, coreutils would get two false positives in
2572         the comments of C source files.
2573
2574 2010-11-12  Eric Blake  <eblake@redhat.com>
2575
2576         bootstrap: fix typo in previous attempt
2577         * build-aux/bootstrap (buildreq): Correct the grouping.
2578         Reported by Paul Eggert.
2579
2580         maintainer-makefile: prohibit test x == x
2581         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
2582         Based on a report by Matthias Bolte.
2583
2584         bootstrap: allow FreeBSD gzip
2585         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
2586         which has no '.' and goes to stderr.
2587         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
2588         Reported by Matthias Bolte.
2589
2590         maintainer-makefile: check for i18n setup
2591         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
2592         will likely work.
2593
2594 2010-11-12  Bruno Haible  <bruno@clisp.org>
2595
2596         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
2597         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
2598         * lib/nanosleep.c (nanosleep): Likewise.
2599
2600 2010-11-11  Bruno Haible  <bruno@clisp.org>
2601
2602         fcntl-h: Fix for use of C++ on glibc systems.
2603         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2604         also on glibc systems in C++ mode.
2605         Reported by Gary V. Vaughan <gary@gnu.org>.
2606
2607 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2608
2609         mknod: avoid false failure with dash
2610         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
2611
2612 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2613
2614         unlink: Fix "is it should" typo in diagnostic.
2615         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
2616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
2617
2618 2010-11-11  Bruno Haible  <bruno@clisp.org>
2619
2620         Tests for module 'strerror_r-posix'.
2621         * modules/strerror_r-posix-tests: New file.
2622         * tests/test-strerror_r.c: New file.
2623         * tests/test-string-c++.cc: Check the signature of strerror_r.
2624
2625         New module 'strerror_r-posix'.
2626         * lib/string.in.h (strerror_r): New declaration.
2627         * lib/strerror_r.c: New file.
2628         * m4/strerror_r.m4: New file.
2629         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
2630         of strerror_r.
2631         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
2632         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2633         * modules/strerror_r-posix: New file.
2634         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
2635         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2636         * doc/posix-functions/strerror_r.texi: Mention the new module and the
2637         portability problems.
2638
2639 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
2640
2641         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
2642         line is also considered for output. Quoted function name in shell
2643         command, so temporary files for functions like MyClass::operator()
2644         are removed correctly without errors.
2645
2646 2010-11-09  Bruno Haible  <bruno@clisp.org>
2647
2648         * doc/posix-functions/strerror.texi: List more failing platforms.
2649
2650         * doc/posix-functions/strerror.texi: Add a comment.
2651
2652 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         fdopendir: fix bug on MacOS X when low on file descriptors
2655
2656         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
2657         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
2658         All callers changed.
2659         (fdopendir): Invoke save_cwd at the top level, not after using
2660         multiple dup() calls to use up file descriptors.  Then retry
2661         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
2662         less than the maximum number of open file descriptors, because
2663         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
2664         on Mac OS X 10.6.4 for tar 1.24
2665         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
2666         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
2667         and for tar 1.25
2668         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
2669
2670 2010-11-07  Bruno Haible  <bruno@clisp.org>
2671
2672         vasnprintf: Support I flag on glibc systems.
2673         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
2674         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
2675         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
2676         snprintf function.
2677         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
2678         glibc systems.
2679         * tests/test-vasnprintf-posix3.c: New file.
2680         * modules/vasnprintf-posix-tests (Files): Add it.
2681         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
2682
2683 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2684
2685         [html] Fix copy/paste bug: Use unique name for compiler warnings.
2686         * MODULES.html.sh: For compiler warnings, use name
2687         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
2688
2689 2010-11-05  Eric Blake  <eblake@redhat.com>
2690
2691         ceil, floor: avoid spurious failure with icc
2692         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
2693         [denormals-as-zero] when optimizing without -mieee-fp option.
2694         * tests/test-floorf2.c (floorf_reference): Likewise.
2695         * tests/test-ceilf1.c (dummy): New function.
2696         (main): Use it to outsmart icc's optimization.
2697         * tests/test-floorf1.c (dummy, main): Likewise.
2698
2699         tests: require working signbit
2700         * modules/ceilf-tests (Depends-on): Add signbit.
2701         * modules/ceill-tests (Depends-on): Likewise.
2702         * modules/floorf-tests (Depends-on): Likewise.
2703         * modules/floorl-tests (Depends-on): Likewise.
2704         * modules/round-tests (Depends-on): Likewise.
2705         * modules/roundf-tests (Depends-on): Likewise.
2706         * modules/roundl-tests (Depends-on): Likewise.
2707         * modules/trunc-tests (Depends-on): Likewise.
2708         * modules/truncf-tests (Depends-on): Likewise.
2709         * modules/truncl-tests (Depends-on): Likewise.
2710
2711         strtod: work around icc bug
2712         * lib/strtod.c (minus_zero): Define to working value.
2713         (strtod): Use it to avoid icc bug.
2714
2715         copysign: enhance tests
2716         * modules/copysign-tests (Files): Add minus-zero.h.
2717         * tests/test-copysign.c (main): Also test zeros.
2718
2719 2010-11-04  Eric Blake  <eblake@redhat.com>
2720
2721         ceil, floor, round, trunc: enhance tests of -0
2722         * tests/test-ceilf1.c (main): Ensure correct sign of result.
2723         * tests/test-ceill.c (main): Likewise.
2724         * tests/test-floorf1.c (main): Likewise.
2725         * tests/test-floorl.c (main): Likewise.
2726         * tests/test-round1.c (main): Likewise.
2727         * tests/test-roundf1.c (main): Likewise.
2728         * tests/test-roundl.c (main): Likewise.
2729         * tests/test-trunc1.c (main): Likewise.
2730         * tests/test-truncf1.c (main): Likewise.
2731         * tests/test-truncl.c (main): Likewise.
2732
2733 2010-11-04  Eric Blake  <eblake@redhat.com>
2734
2735         frexp, tests: work around ICC bug with -zero
2736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
2737         works with more compilers.
2738         * tests/minus-zero.h: New file.
2739         * modules/ceilf-tests (Files): Include it.
2740         * modules/ceill-tests (Files): Likewise.
2741         * modules/floorf-tests (Files): Likewise.
2742         * modules/floorl-tests (Files): Likewise.
2743         * modules/frexp-nolibm-tests (Files): Likewise.
2744         * modules/frexp-tests (Files): Likewise.
2745         * modules/frexpl-nolibm-tests (Files): Likewise.
2746         * modules/frexpl-tests (Files): Likewise.
2747         * modules/isnan-tests (Files): Likewise.
2748         * modules/isnand-nolibm-tests (Files): Likewise.
2749         * modules/isnand-tests (Files): Likewise.
2750         * modules/isnanf-nolibm-tests (Files): Likewise.
2751         * modules/isnanf-tests (Files): Likewise.
2752         * modules/isnanl-nolibm-tests (Files): Likewise.
2753         * modules/isnanl-tests (Files): Likewise.
2754         * modules/round-tests (Files): Likewise.
2755         * modules/roundf-tests (Files): Likewise.
2756         * modules/roundl-tests (Files): Likewise.
2757         * modules/ldexpl-tests (Files): Likewise.
2758         * modules/signbit-tests (Files): Likewise.
2759         * modules/snprintf-posix-tests (Files): Likewise.
2760         * modules/sprintf-posix-tests (Files): Likewise.
2761         * modules/strtod-tests (Files): Likewise.
2762         * modules/trunc-tests (Files): Likewise.
2763         * modules/truncf-tests (Files): Likewise.
2764         * modules/truncl-tests (Files): Likewise.
2765         * modules/vsnprintf-posix-tests (Files): Likewise.
2766         * modules/vsprintf-posix-tests (Files): Likewise.
2767         * modules/vasnprintf-posix-tests (Files): Likewise.
2768         * modules/vasprintf-posix-tests (Files): Likewise.
2769         * tests/test-ceilf1.c (main): Use it.
2770         * tests/test-ceill.c (main): Likewise.
2771         * tests/test-floorf1.c (main): Likewise.
2772         * tests/test-floorl.c (main): Likewise.
2773         * tests/test-frexp.c (main): Likewise.
2774         * tests/test-frexpl.c (main): Likewise.
2775         * tests/test-isnan.c (main): Likewise.
2776         * tests/test-isnand.h (main): Likewise.
2777         * tests/test-isnanf.h (main): Likewise.
2778         * tests/test-isnanl.h (main): Likewise.
2779         * tests/test-ldexpl.c (main): Likewise.
2780         * tests/test-round.c (main): Likewise.
2781         * tests/test-roundf.c (main): Likewise.
2782         * tests/test-roundl.c (main): Likewise.
2783         * tests/test-signbit.c (test_signbitf, test_signbitd)
2784         (test_signbitl): Likewise.
2785         * tests/test-snprintf-posix.h (test_function): Likewise.
2786         * tests/test-sprintf-posix.h (test_function): Likewise.
2787         * tests/test-strtod.c (main): Likewise.
2788         * tests/test-trunc1.c (main): Likewise.
2789         * tests/test-truncf1.c (main): Likewise.
2790         * tests/test-truncl.c (main): Likewise.
2791
2792         isnanl: work around icc bug
2793         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
2794
2795 2010-11-03  Eric Blake  <eblake@redhat.com>
2796
2797         tests: fix compiler warnings
2798         * tests/test-getopt.h (test_getopt): Fix condition.
2799         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2800         * tests/test-pipe2.c (main): Likewise.
2801         * tests/test-quotearg-simple.c (main): Avoid icc warning.
2802
2803         utimens: fix broken m4 test
2804         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
2805
2806 2010-10-28  Bruno Haible  <bruno@clisp.org>
2807
2808         posix_spawn*, getdtablesize: Relax license.
2809         * modules/posix_spawn (License): Change to LGPLv2+.
2810         * modules/posix_spawnp (License): Likewise.
2811         * modules/posix_spawn-internal (License): Likewise.
2812         * modules/posix_spawnattr_init (License): Likewise.
2813         * modules/posix_spawnattr_getflags (License): Likewise.
2814         * modules/posix_spawnattr_setflags (License): Likewise.
2815         * modules/posix_spawnattr_getpgroup (License): Likewise.
2816         * modules/posix_spawnattr_setpgroup (License): Likewise.
2817         * modules/posix_spawnattr_getschedparam (License): Likewise.
2818         * modules/posix_spawnattr_setschedparam (License): Likewise.
2819         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
2820         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
2821         * modules/posix_spawnattr_getsigdefault (License): Likewise.
2822         * modules/posix_spawnattr_setsigdefault (License): Likewise.
2823         * modules/posix_spawnattr_getsigmask (License): Likewise.
2824         * modules/posix_spawnattr_setsigmask (License): Likewise.
2825         * modules/posix_spawnattr_destroy (License): Likewise.
2826         * modules/posix_spawn_file_actions_init (License): Likewise.
2827         * modules/posix_spawn_file_actions_addclose (License): Likewise.
2828         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
2829         * modules/posix_spawn_file_actions_addopen (License): Likewise.
2830         * modules/posix_spawn_file_actions_destroy (License): Likewise.
2831         * modules/getdtablesize (License): Likewise.
2832         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
2833
2834 2010-10-26  Bruno Haible  <bruno@clisp.org>
2835
2836         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
2837         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
2838         Cygwin and mingw.
2839         Suggested by Eric Blake.
2840
2841 2010-10-26  Bruno Haible  <bruno@clisp.org>
2842
2843         stdio: Work around compilation error due to renameat() on Solaris 10.
2844         * lib/stdio.in.h: Include <unistd.h> on Solaris.
2845         * lib/renameat.c: Don't include <unistd.h> here.
2846         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
2847         Reported by Paul Eggert and Eric Blake.
2848
2849 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         renameat: port to Solaris 10, which declares renameat in unistd.h
2852
2853         * lib/renameat.c: Include unistd.h before stdio.h, because
2854         Solaris 10 declares renameat in unistd.h.  Problem encountered
2855         when building GNU tar 1.24 on Solaris 10.
2856
2857 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2858
2859         fdopendir: fix C89 compilation
2860         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
2861         compilers.
2862
2863 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         inttostr: simplify by removing unnecessary redundancy
2866         * lib/anytostr.c: Don't include verify.h.
2867         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
2868         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
2869         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
2870         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
2871         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
2872         Likewise.
2873         * modules/inttostr (Depends-on): Remove 'verify'.
2874
2875 2010-10-23  Bruno Haible  <bruno@clisp.org>
2876
2877         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
2878         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
2879         Reported by Eric Blake.
2880
2881 2010-10-23  Bruno Haible  <bruno@clisp.org>
2882
2883         Tests: Fix LOCALE_JA on MirBSD 10.
2884         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
2885         to an UTF-8 locale.
2886         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
2887         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2888         Reported by Eric Blake.
2889
2890 2010-10-21  Bruno Haible  <bruno@clisp.org>
2891
2892         nl_langinfo test: Avoid test failure on NetBSD 5.
2893         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
2894         Reported by Eric Blake.
2895
2896 2010-10-21  Eric Blake  <eblake@redhat.com>
2897
2898         c-stack: work around libsigsegv 2.8 bug
2899         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
2900         overflow on at least PowerPC64.
2901
2902 2010-10-17  Bruno Haible  <bruno@clisp.org>
2903
2904         userspec: Drop redundant file.
2905         * modules/userspec (Files): Remove lib/inttostr.h.
2906
2907 2010-10-17  Bruno Haible  <bruno@clisp.org>
2908
2909         nl_langinfo tests: Silence some warnings.
2910         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
2911         Reported by Jim Meyering.
2912
2913 2010-10-17  Bruno Haible  <bruno@clisp.org>
2914
2915         Make use of GCC's attribute __alloc_size__.
2916         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
2917         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
2918         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
2919         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
2920         __alloc_size__.
2921         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2922         Suggested by Jim Meyering.
2923
2924 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
2925
2926         bootstrap: anchor .gitignore entries.
2927         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
2928         with...
2929         (insert_vc_ignore): ... this new function, which prepends `/' to
2930         all .gitignore entries before passing them to
2931         insert_sorted_if_absent.
2932
2933 2010-10-16  Bruno Haible  <bruno@clisp.org>
2934
2935         nextafter: Fix configure check.
2936         * modules/nextafter (configure.ac): Correct expected prototype.
2937
2938 2010-10-16  Bruno Haible  <bruno@clisp.org>
2939
2940         termios: Update documentation.
2941         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
2942
2943 2010-10-16  Bruno Haible  <bruno@clisp.org>
2944
2945         tests: Make them compile with TinyCC.
2946         * tests/test-strstr.c (main): Remove parentheses around array
2947         initializer.
2948
2949 2010-10-15  Eric Blake  <eblake@redhat.com>
2950
2951         ignore-value: make header idempotent
2952         * lib/ignore-value.h: Add double-inclusion guards.
2953         Reported by Stefan Berger.
2954
2955 2010-10-15  Jim Meyering  <meyering@redhat.com>
2956
2957         GNUmakefile: handle "stable" target, not "major"
2958         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
2959         lists in maint.mk and announce-gen.  Without this, "make stable"
2960         would fail to ensure that $(VERSION) is up to date.
2961
2962 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
2963
2964         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
2965         & co.
2966
2967 2010-10-14  Bruno Haible  <bruno@clisp.org>
2968
2969         vasnprintf: Don't set errno to 0.
2970         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
2971         block that sets it to 0.
2972         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2973
2974 2010-10-14  Bruno Haible  <bruno@clisp.org>
2975
2976         socketlib: Fix.
2977         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
2978         gl_PREREQ_SYS_H_WINSOCK2.
2979         Reported by Ian Beckwith <ianb@erislabs.net>.
2980
2981 2010-10-13  Jim Meyering  <meyering@redhat.com>
2982
2983         test-select-stdin.c: avoid warn_unused_result warnings
2984         * tests/test-select-stdin.c: Include "macros.h".
2985         ASSERT that read and fflush succeed.
2986
2987 2010-10-13  Jim Meyering  <meyering@redhat.com>
2988
2989         git-version-gen: do require git-VC'd files in cwd
2990         * build-aux/git-version-gen: Reject a git version string
2991         if there are no commits associated with the current directory.
2992         This avoids an unlikely false-positive (unrelated dir whose parent
2993         repository also contains a tag matching v*), as pointed out
2994         by Giuseppe Scrivano in
2995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
2996
2997 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2998
2999         argv-iter: omit nonconforming declaration
3000         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3001         enum arg_iter_err declaration, which doesn't conform to C99.
3002         Solaris 10 cc warns about this.
3003
3004 2010-10-13  Eric Blake  <eblake@redhat.com>
3005
3006         termios: fix compilation on mingw
3007         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3008         (gl_TERMIOS_H): Adjust it on mingw.
3009         * modules/termios (Makefile.am): Substitute new key.
3010         * lib/termios.in.h (includes): Make include_next conditional.
3011         * doc/posix-headers/termios.texi (termios.h): Update
3012         documentation.
3013         Reported by Daniel P. Berrange.
3014
3015 2010-10-13  Jim Meyering  <meyering@redhat.com>
3016
3017         git-version-gen: don't require that .git/ be in the current dir
3018         * build-aux/git-version-gen: Adjust this script so that it works
3019         when run from any working directory beneath the top-level .git/-
3020         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3022
3023         test-select: avoid warn_unused_result warnings
3024         * tests/test-select.c: Include "macros.h".
3025         ASSERT that each call to read, write, and pipe succeeds.
3026         While not technically required, also check each "close".
3027         * modules/select-tests (Files): Add tests/macros.h.
3028
3029         test-symlinkat: remove declaration of unused local
3030         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3031
3032         test-inttostr: avoid shadowing warnings
3033         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3034         and use malloc rather than the stack for the same reason as
3035         mentioned in the comment justifying the other allocation.
3036
3037 2010-10-11  Bruno Haible  <bruno@clisp.org>
3038
3039         stdlib: Allow multiple gnulib generated replacements to coexist.
3040         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3041         Reported by Sam Steingold <sds@gnu.org>.
3042
3043 2010-10-11  Jim Meyering  <meyering@redhat.com>
3044
3045         fix a documentation typo
3046         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3047
3048 2010-10-11  Eric Blake  <eblake@redhat.com>
3049
3050         futimens: work around Solaris 11 bug
3051         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3052         * tests/test-futimens.h (test_futimens): Enhance, rather than
3053         weaken test.
3054         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3055
3056 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         Indentation.
3059         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3060         higher-level operators more to the left.
3061
3062 2010-10-11  Jim Meyering  <meyering@redhat.com>
3063
3064         test-futimens: avoid unwarranted test failure on Solaris 5.11
3065         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3066         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3067         because it tries to dereference the NULL name argument.
3068
3069 2010-10-11  Bruno Haible  <bruno@clisp.org>
3070
3071         Indentation.
3072         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3073         indentation.
3074
3075 2010-10-11  Jim Meyering  <meyering@redhat.com>
3076
3077         spawn.in.h: make indentation consistent with parentheses
3078         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3079         Make indentation consistent with parentheses.
3080
3081 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3082
3083         Fix mismatched parens in previous commit
3084         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3085         parens.
3086
3087 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3090
3091         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3092         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3093         * lib/malloca.c: Include "verify.h".
3094         (verify1): Remove, replacing with a verify call.
3095         * lib/relocwrapper.c (verify1): Likewise.
3096         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3097         Likewise.
3098         * modules/malloca (Depends-on): Add 'verify'.
3099         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3100         * modules/vasnprintf (Depends-on): Add 'verify'.
3101         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3102         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3103         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3104         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3105         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3106         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3107         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3108
3109         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3110
3111         Formerly the style was sometimes 2*X - 1, because the C standard
3112         was wrongly thought to disallow ?: in integral constant expressions.
3113         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3114         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3115         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3116         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3117         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3118         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3119         verify that time_t cannot be floating.
3120
3121 2010-10-08  Eric Blake  <eblake@redhat.com>
3122
3123         time: enforce recent POSIX ruling that time_t is integral
3124         * lib/time.in.h (__time_t_must_be_integral): Detect any
3125         problematic systems, allowing the rest of gnulib to assume POSIX.
3126
3127 2010-10-08  Jim Meyering  <meyering@redhat.com>
3128
3129         fdopendir: fix a bug on systems lacking openat and /proc support
3130         OpenBSD 4.7 is one such system.  The most noticeable effect was
3131         failure of any application making nontrivial use of fts: rm, du,
3132         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3133           ./rm: traversal failed: `a': Bad file descriptor
3134         Debugging that, you see that even though FD 6 was closed just
3135         prior to the opendir call in fd_clone_opendir, its resulting
3136         dir->dd_fd was 8, rather than the expected value of 6:
3137
3138         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3139         93                close (fd);
3140         (gdb) n
3141         94                dir = fd_clone_opendir (dupfd);
3142         (gdb) n
3143         95                saved_errno = errno;
3144         (gdb) p dir->dd_fd
3145         $11 = 8
3146
3147         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3148         The problem is that on OpenBSD, fd_clone_opendir has to resort
3149         to using the old-style save/restore CWD mechanism, due to its
3150         lack of openat/proc support, and *that* would steal the FD (6)
3151         that opendir was supposed to use.
3152
3153         The fix is to squirrel away the desired FD so that save_cwd uses a
3154         different one, and then free the dest FD right before calling opendir.
3155         That guarantees opendir will use the required file descriptor.
3156
3157         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3158
3159 2010-10-08  Bruno Haible  <bruno@clisp.org>
3160
3161         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3162         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3163
3164 2010-10-08  Bruno Haible  <bruno@clisp.org>
3165
3166         nanosleep: Make replacement POSIX compliant.
3167         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3168         is out of range.
3169         Reported by Jim Meyering.
3170
3171 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         bootstrap: add hook for altering gnulib.mk, for Bison
3174         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3175         the Bison bootstrapping process can rewrite file names and variables
3176         in this file before later parts of 'bootstrap' use the file.
3177         Bison wants to include lib/gnulib.mk from the top-level makefile,
3178         so it needs the file names in this file to be relative to the top
3179         level, not relative to lib; plus it needs variable names to be
3180         rewritten.
3181         (slurp): Use the new function.
3182
3183         bootstrap: reformat for readability
3184         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3185
3186 2010-10-08  Eric Blake  <eblake@redhat.com>
3187
3188         docs: update cygwin progress
3189         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3190         1.7.7.
3191         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3192         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3193         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3194         * doc/posix-functions/carg.texi (carg): Likewise.
3195         * doc/posix-functions/cargf.texi (cargf): Likewise.
3196         * doc/posix-functions/casin.texi (casin): Likewise.
3197         * doc/posix-functions/casinf.texi (casinf): Likewise.
3198         * doc/posix-functions/casinh.texi (casinh): Likewise.
3199         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3200         * doc/posix-functions/catan.texi (catan): Likewise.
3201         * doc/posix-functions/catanf.texi (catanf): Likewise.
3202         * doc/posix-functions/catanh.texi (catanh): Likewise.
3203         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3204         * doc/posix-functions/ccos.texi (ccos): Likewise.
3205         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3206         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3207         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3208         * doc/posix-functions/cexp.texi (cexp): Likewise.
3209         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3210         * doc/posix-functions/cimag.texi (cimag): Likewise.
3211         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3212         * doc/posix-functions/clog.texi (clog): Likewise.
3213         * doc/posix-functions/clogf.texi (clogf): Likewise.
3214         * doc/posix-functions/conj.texi (conj): Likewise.
3215         * doc/posix-functions/conjf.texi (conjf): Likewise.
3216         * doc/posix-functions/cpow.texi (cpow): Likewise.
3217         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3218         * doc/posix-functions/cproj.texi (cproj): Likewise.
3219         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3220         * doc/posix-functions/creal.texi (creal): Likewise.
3221         * doc/posix-functions/crealf.texi (crealf): Likewise.
3222         * doc/posix-functions/csin.texi (csin): Likewise.
3223         * doc/posix-functions/csinf.texi (csinf): Likewise.
3224         * doc/posix-functions/csinh.texi (csinh): Likewise.
3225         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3226         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3227         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3228         * doc/posix-functions/ctan.texi (ctan): Likewise.
3229         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3230         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3231         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3232         * doc/posix-headers/complex.texi (complex.h): Likewise.
3233
3234 2010-10-07  Jim Meyering  <meyering@redhat.com>
3235
3236         parse-datetime: avoid compilation failure on OpenBSD 4.7
3237         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3238         This works around a compilation failure on OpenBSD 4.7:
3239         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3240
3241 2010-10-07  Eric Blake  <eblake@redhat.com>
3242
3243         docs: update cygwin progress
3244         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3245         1.7.6.
3246         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3247         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3248         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3249         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3250         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3251         Likewise.
3252         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3253         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3254         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3255         Likewise.
3256         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3257         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3258         Likewise.
3259         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3260         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3261         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3262         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3263         Likewise.
3264         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3265         Likewise.
3266         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3267
3268         docs: update parse-datetime history
3269         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3270         documentation of this function's history and alternatives.
3271
3272         cygwin: use more robust version check
3273         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3274         exclude an eventual cygwin 1.9.1.
3275         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3277         (gl_FUNC_STRCASESTR): Likewise.
3278         Reported by Bruno Haible.
3279
3280 2010-10-06  Bruno Haible  <bruno@clisp.org>
3281
3282         string, sys_select: Avoid #including large headers unless necessary.
3283         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3284         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3285         OSF/1, BeOS, Haiku.
3286         Reported by Jim Meyering.
3287
3288 2010-10-05  Eric Blake  <eblake@redhat.com>
3289
3290         memmem, strstr, strcasestr: fix bug with long periodic needle
3291         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3292         periodic needle having false positive.
3293         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3294         and cygwin 1.7.7.
3295         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3297         (gl_FUNC_STRCASESTR): Likewise.
3298         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3299         * tests/test-memmem.c (main): Expose the bug.
3300         * tests/test-strcasestr.c (main): Likewise.
3301         * tests/test-strstr.c (main): Likewise.
3302         * tests/test-c-strcasestr.c (main): Likewise.
3303         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3304         * doc/posix-functions/strstr.texi (strstr): Likewise.
3305         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3306         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3307
3308 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3309
3310         parse-datetime: do some more renaming
3311         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3312         parse_datetime, not get_date.  Mention the renaming.
3313         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3314         in comments.
3315         * m4/bison.m4: Likewise.
3316
3317 2010-10-05  Eric Blake  <eblake@redhat.com>
3318
3319         parse-datetime: better name than get_date
3320         * NEWS: Reword the deprecation notice.
3321         * modules/get_date: Rename to modules/parse-datetime.
3322         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3323         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3324         * lib/get_date.y: Rename to lib/parse-datetime.y.
3325         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3326         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3327         * doc/getdate.texi: Provide fallback wrapper.
3328         * lib/getdate.h: Move guts, and wrap...
3329         * lib/parse-datetime.h: ...new file.
3330         * lib/parse-datetime.y (get_date): Rename...
3331         (parse_datetime): ...to this.
3332         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3333         (gl_PARSE_DATETIME): ...to this.
3334         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3335         documentation.
3336         * modules/getdate (Files): Provide fallback docs and header.
3337         (Notice, Depends-on): Update references.
3338         * tests/test-parse-datetime.c: Likewise.
3339         * DEPENDENCIES: Likewise.
3340         * MODULES.html.sh (Date and time <time.h>): Likewise.
3341         * doc/parse-datetime.texi (Date input formats)
3342         (Authors of parse_datetime): Likewise.
3343         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3344         (Include): Likewise.
3345         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3346         * gnulib-tool: Likewise.
3347         * m4/bison.m4 (gl_BISON): Likewise.
3348         Suggested by Bruno Haible.
3349
3350 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3351
3352         more ports to Solaris tr, which needs [] around ranges
3353         * gnulib-tool: Solaris tr needs [] around ranges.
3354         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3355         * tests/test-pipe-filter-gi1.c (main): Likewise.
3356         * tests/test-pipe-filter-ii1.c (main): Likewise.
3357
3358 2010-10-05  Eric Blake  <eblake@redhat.com>
3359
3360         bootstrap: fix Solaris regression
3361         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3362         around ranges.
3363         Reported by Pádraig Brady.
3364
3365         bootstrap: work with pkg-config
3366         * build-aux/bootstrap (check_versions): Also transliterate - in
3367         prerequisite name.
3368         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3369         prerequisites that were already found, to avoid confusion.
3370         Reported by Justin Clift.
3371
3372         faccessat: remove unused wrappers
3373         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3374         presence of these wrappers dragged in -lgen on Solaris.
3375         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3376
3377 2010-10-05  Jim Meyering  <meyering@redhat.com>
3378
3379         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3380         * Makefile (sc_pragma_columns): New syntax-check rule.
3381
3382 2010-10-04  Bruno Haible  <bruno@clisp.org>
3383
3384         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3385         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3386         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3387         Reported by Bruce Korb and Eric Blake.
3388
3389 2010-10-04  Bruno Haible  <bruno@clisp.org>
3390
3391         threadlib: Make option --with-libpth-prefix work.
3392         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3393         use $LIBPTH, not just -lpth.
3394
3395 2010-10-04  Bruno Haible  <bruno@clisp.org>
3396
3397         Avoid line length limitation from HP NonStop system header files.
3398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3399         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3400         * lib/ctype.in.h: Likewise.
3401         * lib/dirent.in.h: Likewise.
3402         * lib/errno.in.h: Likewise.
3403         * lib/fcntl.in.h: Likewise.
3404         * lib/float.in.h: Likewise.
3405         * lib/getopt.in.h: Likewise.
3406         * lib/iconv.in.h: Likewise.
3407         * lib/inttypes.in.h: Likewise.
3408         * lib/langinfo.in.h: Likewise.
3409         * lib/locale.in.h: Likewise.
3410         * lib/math.in.h: Likewise.
3411         * lib/netdb.in.h: Likewise.
3412         * lib/netinet_in.in.h: Likewise.
3413         * lib/poll.in.h: Likewise.
3414         * lib/pthread.in.h: Likewise.
3415         * lib/pty.in.h: Likewise.
3416         * lib/sched.in.h: Likewise.
3417         * lib/se-selinux.in.h: Likewise.
3418         * lib/search.in.h: Likewise.
3419         * lib/signal.in.h: Likewise.
3420         * lib/spawn.in.h: Likewise.
3421         * lib/stdarg.in.h: Likewise.
3422         * lib/stddef.in.h: Likewise.
3423         * lib/stdint.in.h: Likewise.
3424         * lib/stdio.in.h: Likewise.
3425         * lib/stdlib.in.h: Likewise.
3426         * lib/string.in.h: Likewise.
3427         * lib/strings.in.h: Likewise.
3428         * lib/sys_file.in.h: Likewise.
3429         * lib/sys_ioctl.in.h: Likewise.
3430         * lib/sys_select.in.h: Likewise.
3431         * lib/sys_socket.in.h: Likewise.
3432         * lib/sys_stat.in.h: Likewise.
3433         * lib/sys_time.in.h: Likewise.
3434         * lib/sys_times.in.h: Likewise.
3435         * lib/sys_utsname.in.h: Likewise.
3436         * lib/sys_wait.in.h: Likewise.
3437         * lib/sysexits.in.h: Likewise.
3438         * lib/termios.in.h: Likewise.
3439         * lib/time.in.h: Likewise.
3440         * lib/unistd.in.h: Likewise.
3441         * lib/wchar.in.h: Likewise.
3442         * lib/wctype.in.h: Likewise.
3443         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3444         * modules/ctype (Makefile.am): Likewise.
3445         * modules/dirent (Makefile.am): Likewise.
3446         * modules/errno (Makefile.am): Likewise.
3447         * modules/fcntl-h (Makefile.am): Likewise.
3448         * modules/float (Makefile.am): Likewise.
3449         * modules/getopt-posix (Makefile.am): Likewise.
3450         * modules/iconv-h (Makefile.am): Likewise.
3451         * modules/inttypes (Makefile.am): Likewise.
3452         * modules/langinfo (Makefile.am): Likewise.
3453         * modules/locale (Makefile.am): Likewise.
3454         * modules/math (Makefile.am): Likewise.
3455         * modules/netdb (Makefile.am): Likewise.
3456         * modules/netinet_in (Makefile.am): Likewise.
3457         * modules/poll-h (Makefile.am): Likewise.
3458         * modules/pthread (Makefile.am): Likewise.
3459         * modules/pty (Makefile.am): Likewise.
3460         * modules/sched (Makefile.am): Likewise.
3461         * modules/search (Makefile.am): Likewise.
3462         * modules/selinux-h (Makefile.am): Likewise.
3463         * modules/signal (Makefile.am): Likewise.
3464         * modules/spawn (Makefile.am): Likewise.
3465         * modules/stdarg (Makefile.am): Likewise.
3466         * modules/stddef (Makefile.am): Likewise.
3467         * modules/stdint (Makefile.am): Likewise.
3468         * modules/stdio (Makefile.am): Likewise.
3469         * modules/stdlib (Makefile.am): Likewise.
3470         * modules/string (Makefile.am): Likewise.
3471         * modules/strings (Makefile.am): Likewise.
3472         * modules/sys_file (Makefile.am): Likewise.
3473         * modules/sys_ioctl (Makefile.am): Likewise.
3474         * modules/sys_select (Makefile.am): Likewise.
3475         * modules/sys_socket (Makefile.am): Likewise.
3476         * modules/sys_stat (Makefile.am): Likewise.
3477         * modules/sys_time (Makefile.am): Likewise.
3478         * modules/sys_times (Makefile.am): Likewise.
3479         * modules/sys_utsname (Makefile.am): Likewise.
3480         * modules/sys_wait (Makefile.am): Likewise.
3481         * modules/sysexits (Makefile.am): Likewise.
3482         * modules/termios (Makefile.am): Likewise.
3483         * modules/time (Makefile.am): Likewise.
3484         * modules/unistd (Makefile.am): Likewise.
3485         * modules/wchar (Makefile.am): Likewise.
3486         * modules/wctype (Makefile.am): Likewise.
3487
3488 2010-10-04  Bruno Haible  <bruno@clisp.org>
3489
3490         read-file tests: Avoid a test failure on NonStop Kernel.
3491         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
3492         a regular file.
3493         Reported by Joachim Schmitz <schmitz@hp.com>.
3494
3495 2010-10-03  Bruno Haible  <bruno@clisp.org>
3496
3497         gnulib-tool: Fixes for --create-testdir with --libtool.
3498         * gnulib-tool (func_get_automake_snippet): Don't augment
3499         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
3500         an executable.
3501         (func_create_testdir): Handle module 'alloca' like func_import.
3502         Reported by Bruce Korb <bruce.korb@gmail.com>.
3503
3504 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3505
3506         Avoid some lines longer than 80 characters.
3507         * lib/stdint.in.h: Break long comment lines.
3508         * lib/math.in.h: Likewise.
3509         (_GL_NUM_UINT_WORDS): New macro, for readability.
3510         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
3511         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
3512         * lib/stdlib.in.h: Likewise.
3513         * lib/spawn.in.h: Likewise.
3514         * lib/sys_socket.in.h: Update an URL.
3515         * lib/sys_stat.in.h: Break long line.
3516
3517 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
3518
3519         Improve pmccabe2html.
3520         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
3521         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
3522         when the sources change. Remove the line in the HTML about "Used
3523         ranges" (which implied that there might be other unused ranges),
3524         rename "Resume" to "Summary" (easier to understand for more users).
3525         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
3526         styles, and some unnecessary blank lines.
3527
3528 2010-10-03  Bruno Haible  <bruno@clisp.org>
3529             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3530
3531         acl: Add support for ACLs on NonStop Kernel.
3532         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
3533         Check whether the function aclsort() exists.
3534         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
3535         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
3536         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3537         (acl_nontrivial [HAVE_ACLSORT]: New function.
3538         (file_has_acl): Implement for NonStop Kernel.
3539         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3540         (qset_acl): Implement for NonStop Kernel.
3541         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
3542         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3543         (main): Implement for NonStop Kernel.
3544         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
3545         Kernel. Handle this flavor.
3546         * tests/test-set-mode-acl.sh: Likewise.
3547         * tests/test-copy-acl.sh: Likewise.
3548         * tests/test-copy-file.sh: Likewise.
3549
3550 2010-10-03  Bruno Haible  <bruno@clisp.org>
3551
3552         Info about ACLs on NonStop Kernel.
3553         * doc/acl-resources.txt: Add info about NonStop Kernel.
3554         References by Joachim Schmitz <schmitz@hp.com>.
3555
3556 2010-10-02  Bruno Haible  <bruno@clisp.org>
3557
3558         Define missing EDQUOT on NonStop Kernel.
3559         * lib/errno.in.h (EDQUOT): Assign a value if missing.
3560         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
3561         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
3562         missing.
3563         * doc/posix-headers/errno.texi: Mention the NSK bug.
3564         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
3565         Reported by Joachim Schmitz <schmitz@hp.com>.
3566
3567 2010-10-02  Bruno Haible  <bruno@clisp.org>
3568
3569         Update doc for POSIX:2008.
3570         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
3571         Update URL of POSIX specification.
3572
3573 2010-10-02  Bruno Haible  <bruno@clisp.org>
3574
3575         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
3576         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
3577         from gnulib, not from Automake.
3578
3579 2010-10-02  Bruno Haible  <bruno@clisp.org>
3580
3581         New module 'system-posix'.
3582         * modules/system-posix: New file.
3583         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
3584         module is present.
3585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3586         GNULIB_SYSTEM_POSIX.
3587         * modules/stdlib (Depends-on): Remove sys_wait.
3588         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
3589         * doc/posix-functions/system.texi: Mention the new module.
3590         * doc/posix-headers/stdlib.texi: Likewise.
3591         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
3592         define test_sys_wait_macros to a no-op.
3593         Reported by Sam Steingold <sds@gnu.org>.
3594
3595 2010-09-30  Bruno Haible  <bruno@clisp.org>
3596
3597         More renaming from 'getdate' to 'get_date'.
3598         * doc/get_date.texi: Renamed from doc/getdate.texi.
3599         * modules/get_date (Files): Update.
3600         * MODULES.html.sh (Date and time <time.h>): Update.
3601         * DEPENDENCIES: Update.
3602         * gnulib-tool: Update comment.
3603         * m4/bison.m4 (gl_BISON): Likewise.
3604         * m4/get_date.m4 (gl_GET_DATE): Likewise.
3605
3606 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
3607
3608         bootstrap: support ACLOCAL_FLAGS during aclocal
3609         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
3610         can add additional -I dir for third-party .m4 files.
3611
3612 2010-09-30  Eric Blake  <eblake@redhat.com>
3613
3614         bootstrap: use glibtoolize on MacOS
3615         * build-aux/bootstrap (check_versions): Convert libtool into
3616         libtoolize.
3617         (tool search): Move libtool check earlier, and look for
3618         glibtoolize for MacOS.
3619         (gnulib_tool_options): Auto-add --libtool when appropriate.
3620         Reported by Justin Clift.
3621
3622         poll: fix typo that broke test on MacOS
3623         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
3624         Reported by Justin Clift.
3625
3626         getdate: rename to get_date
3627         Note: getdate.h is not renamed, to minimize client impact.
3628         * modules/getdate: Mark obsolete.  Move old contents...
3629         * modules/get_date: ...to new module name.
3630         * modules/getdate-tests: Move...
3631         * modules/get_date-tests: ...here.
3632         * m4/getdate.m4: Move...
3633         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
3634         * lib/getdate.y: Move...
3635         * lib/get_date.y: ...here.
3636         * tests/test-getdate.c: Move...
3637         * tests/test-get_date.c: ...here.
3638         * doc/posix-functions/getdate.texi (getdate): Update name.
3639         * NEWS: Mention the change.
3640
3641 2010-09-29  Bruno Haible  <bruno@clisp.org>
3642
3643         Separate the module 'waitpid' from the module 'sys_wait'.
3644         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
3645         present.
3646         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
3647         gl_MODULE_INDICATOR_FOR_TESTS.
3648         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
3649         * modules/sys_wait (Depends-on): Remove waitpid.
3650         (Makefile.am): Substitute GNULIB_WAITPID.
3651         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
3652         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
3653         signature only if the 'waitpid' module is present.
3654         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
3655         * NEWS: Mention the change.
3656         * modules/grantpt (Depends-on): Add waitpid.
3657         * modules/wait-process (Depends-on): Likewise.
3658
3659 2010-09-29  Bruno Haible  <bruno@clisp.org>
3660
3661         More tests for module 'sys_wait'.
3662         * modules/sys_wait-c++-tests: New file.
3663         * tests/test-sys_wait-c++.cc: New file.
3664         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
3665         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3666
3667 2010-09-29  Bruno Haible  <bruno@clisp.org>
3668
3669         New module 'waitpid'.
3670         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
3671         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
3672         Don't include <process.h>.
3673         (waitpid): Declare only, using modern idiom.
3674         * m4/waitpid.m4: New file.
3675         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
3676         * modules/waitpid: New file.
3677         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
3678         (Makefile.am): Update.
3679         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3680
3681 2010-09-28  Bruno Haible  <bruno@clisp.org>
3682
3683         poll: Assume ANSI C.
3684         * lib/poll.c (poll): Use an ANSI C declaration.
3685
3686 2010-09-28  Bruno Haible  <bruno@clisp.org>
3687
3688         poll-h: Create poll.h on all platforms.
3689         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
3690         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
3691         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
3692         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
3693         (gl_REPLACE_POLL_H): Don't set POLL_H.
3694         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
3695         * modules/poll-h (Depends-on): Add include_next.
3696         (Makefile.am): Create poll.h unconditionally. Substitute also
3697         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
3698
3699 2010-09-28  Bruno Haible  <bruno@clisp.org>
3700
3701         Tests for module 'poll-h'.
3702         * modules/poll-h-c++-tests: New file.
3703         * tests/test-poll-h-c++.cc: New file.
3704
3705         Tests for module 'poll-h'.
3706         * modules/poll-h-tests: New file.
3707         * tests/test-poll-h.c: New file.
3708
3709 2010-09-28  Bruno Haible  <bruno@clisp.org>
3710
3711         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
3712         * modules/poll-h (Depends-on): Add 'extensions'.
3713
3714 2010-09-28  Bruno Haible  <bruno@clisp.org>
3715
3716         New module 'poll-h'.
3717         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
3718         (poll): Use modern idiom.
3719         * modules/poll-h: New file.
3720         * modules/poll (Files): Remove lib/poll.in.h.
3721         (Depends-on): Add poll-h.
3722         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
3723         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
3724         * m4/poll_h.m4: New file.
3725         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
3726         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
3727         and invoke gl_REPLACE_POLL_H.
3728         * lib/poll.c: Use common idiom.
3729         * tests/test-poll.c: Likewise.
3730         * doc/posix-headers/poll.texi: Mention the poll-h module.
3731         Suggested by Eric Blake.
3732
3733 2010-09-26  Bruno Haible  <bruno@clisp.org>
3734
3735         sys_wait: Implement WSTOPSIG.
3736         * lib/sys_wait.in.h (WSTOPSIG): New macro.
3737         Reported by Simon Josefsson.
3738
3739 2010-09-26  Simon Josefsson  <simon@josefsson.org>
3740
3741         stdlib, sys_wait: Avoid compilation error on mingw.
3742         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
3743
3744 2010-09-26  Bruno Haible  <bruno@clisp.org>
3745
3746         stdlib tests: Avoid code duplication.
3747         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
3748         * modules/sys_wait-tests (Files): Likewise.
3749         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
3750         * tests/test-stdlib.c: Include test-sys_wait.h.
3751         (main): Invoke test_sys_wait_macros.
3752         * tests/test-sys_wait.c: Include test-sys_wait.h.
3753         (main): Invoke test_sys_wait_macros.
3754
3755 2010-09-25  Simon Josefsson  <simon@josefsson.org>
3756
3757         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
3758         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
3759         sure Windows sockets are working before calling getaddrinfo.
3760         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
3761         * doc/gnulib.texi (Windows sockets): Fix typo.
3762
3763 2010-09-25  Bruno Haible  <bruno@clisp.org>
3764
3765         Tests for module 'regex-quote'.
3766         * modules/regex-quote-tests: New file.
3767         * tests/test-regex-quote.c: New file.
3768
3769         New module 'regex-quote'.
3770         * lib/regex-quote.h: New file.
3771         * lib/regex-quote.c: New file.
3772         * modules/regex-quote: New file.
3773         Suggested by Reuben Thomas <rrt@sc3d.org>.
3774
3775 2010-09-24  Bruno Haible  <bruno@clisp.org>
3776
3777         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
3778         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
3779
3780 2010-09-23  Bruno Haible  <bruno@clisp.org>
3781
3782         setenv: Relax license.
3783         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
3784         Blake.
3785         Requested by Eric Blake.
3786
3787 2010-09-22  Bruno Haible  <bruno@clisp.org>
3788
3789         termios: Relax license.
3790         * modules/termios (License): Change to LGPLv2+.
3791         Requested by Eric Blake.
3792
3793 2010-09-22  Bruno Haible  <bruno@clisp.org>
3794
3795         threadlib: Allow the package to change the default to 'no'.
3796         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
3797         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
3798         Reported by Paul Eggert.
3799
3800 2010-09-22  Pádraig Brady  <P@draigbrady.com>
3801             Bruno Haible  <bruno@clisp.org>
3802
3803         Fix endless loop in mbmemcasecoll.
3804         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
3805         byte.
3806         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
3807
3808 2010-09-22  Bruno Haible  <bruno@clisp.org>
3809
3810         Tests for module 'memcoll'.
3811         * modules/memcoll-tests: New file.
3812         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
3813
3814         memcoll, xmemcoll: Clarify size vs. length.
3815         * modules/memcoll.c (memcoll0): Clarify specification.
3816         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
3817         passed to collate_error.
3818
3819 2010-09-22  Bruno Haible  <bruno@clisp.org>
3820
3821         Tests for module 'memcasecmp'.
3822         * modules/memcasecmp-tests: New file.
3823         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
3824
3825 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3826
3827         * lib/pthread.in.h: Add split double-inclusion guard, and include
3828         system <pthread.h> if there is one.  Use @@-style as in other
3829         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
3830         pthread.h doesn't.
3831         (pthread_mutexattr_destroy, pthread_mutexattr_init):
3832         (pthread_mutexattr_settype, pthread_mutex_trylock):
3833         New static inline functions, if there's no system <pthread.h>.
3834         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
3835         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
3836         Approximate with mutexes if the system lacks spinlocks, as in
3837         MacOS.
3838         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
3839         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
3840         @@-style.  Check for spinlocks separately.
3841         (gl_PTHREAD_DEFAULTS): New macro.
3842         * modules/pthread: Redo to use a more typical style for in.h files.
3843
3844 2010-09-21  Eric Blake  <eblake@redhat.com>
3845
3846         net_if: enhance tests
3847         * tests/test-net_if.c (main): Move signature checks earlier.
3848         Print failures to stderr.
3849         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
3850         Document the bug that we do not yet fix.
3851
3852 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3853
3854         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
3855         about gnulib, not GSS.
3856
3857 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3858
3859         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
3860         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
3861         for Emacs.
3862         * build-aux/pmccabe2html: Make Makefile.am example code more
3863         cut-and-paste friendly.
3864
3865 2010-09-21  Simon Josefsson  <simon@josefsson.org>
3866
3867         * tests/test-net_if.c: New file.
3868         * modules/net_if-tests: New file.
3869
3870 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3871
3872         pthread: add pthread_spin_destroy
3873         * lib/pthread.in.h (pthread_spin_destroy): New function.
3874
3875 2010-09-19  Bruno Haible  <bruno@clisp.org>
3876
3877         gnulib-tool: Fix --help output.
3878         * gnulib-tool (func_usage): Fix help message.
3879         Reported by Reuben Thomas <rrt@sc3d.org>.
3880
3881 2010-09-18  Jim Meyering  <meyering@redhat.com>
3882
3883         maint.mk: avoid unexpanded \n in two diagnostics
3884         * top/maint.mk (sc_prohibit_always_true_header_tests):
3885         Don't use a literal \n in a halt=... assignment.  It would not be
3886         expanded, and the two \n bytes would appear in the diagnostic output
3887         rather than the desired newline.  Use halt=$$(printf ... instead.
3888         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3889
3890 2010-09-18  Bruno Haible  <bruno@clisp.org>
3891
3892         netinet_in: Doc tweak.
3893         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
3894         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3895
3896 2010-09-18  Jim Meyering  <meyering@redhat.com>
3897
3898         init.sh: correct an outdated comment
3899         * tests/init.sh (create_exe_shims_):  s/function/alias/
3900
3901         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
3902         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
3903         a file named "*.exe" is removed between the glob expansion and the
3904         processing of that oddly named file.
3905
3906 2010-09-17  Eric Blake  <eblake@redhat.com>
3907
3908         mirbsd: add some more support
3909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
3910         in BSD family.
3911         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
3912         devices as OpenBSD.
3913         * m4/host-os.m4 (mirbsd): Add MirBSD.
3914
3915         tests: fix unportable assumption on sys/wait.h
3916         * tests/test-sys_wait.c (main): Relax test.
3917         * tests/test-stdlib.c (main): Likewise.
3918
3919         init.sh: accomodate directory with no .exes
3920         * tests/init.sh: Accomodate directory containing only scripts.
3921
3922         tests: avoid compiler warning
3923         * tests/test-stdlib.c (main): Use the variable.
3924
3925         fdutimens, fdutimensat: update signature, again
3926         * lib/utimens.h (gl_futimens): Delete, and move signature...
3927         (fdutimens): ...here.
3928         (fdutimensat): Rearrange signature.
3929         (lutimensat): Rename variable for clarity.
3930         * lib/fdutimensat.c (fdutimensat): Update signature.
3931         * lib/utimens.c (fdutimens): Likewise.
3932         (gl_futimens): Delete.
3933         (utimens, lutimens): Update callers.
3934         * lib/futimens.c (futimens): Likewise.
3935         * tests/test-fdutimensat.c: Likewise.
3936         * tests/test-utimens.c: Likewise.
3937         * tests/test-futimens.h: Update comment.
3938         * NEWS: Mention this.
3939         Suggested by Paul Eggert.
3940
3941 2010-09-17  Bruno Haible  <bruno@clisp.org>
3942
3943         Take over the maintenance of some older macros from Autoconf.
3944         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
3945         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
3946         GNU Autoconf.
3947         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
3948         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
3949
3950 2010-09-17  Eric Blake  <eblake@redhat.com>
3951
3952         fdutimensat: drop atflag validation
3953         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
3954         with valid fd, to close a race scenario where futimens is
3955         unsupported and FILE was replaced by a symlink.
3956         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
3957         accordingly.
3958         Suggested by Paul Eggert.
3959
3960 2010-09-16  Bruno Haible  <bruno@clisp.org>
3961
3962         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
3963         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
3964
3965 2010-09-16  Bruno Haible  <bruno@clisp.org>
3966
3967         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
3968         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
3969         login_tty exists.
3970         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3971
3972 2010-09-16  Bruno Haible  <bruno@clisp.org>
3973
3974         login_tty: Make the replacement code work on BSD systems.
3975         * lib/login_tty.c: Include <sys/ioctl.h>.
3976         (login_tty): Use ioctl TIOCSCTTY when available.
3977         * modules/login_tty (Depends-on): Add sys_ioctl.
3978         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3979
3980 2010-09-16  Bruno Haible  <bruno@clisp.org>
3981
3982         login_tty: Stricter unit test.
3983         * modules/login_tty-tests (Depends-on): Add tcgetsid.
3984         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
3985         and tcgetsid() after login_tty.
3986         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3987
3988 2010-09-16  Bruno Haible  <bruno@clisp.org>
3989
3990         New module 'tcgetsid'.
3991         * lib/tcgetsid.c: New file.
3992         * m4/tcgetsid.m4: New file.
3993         * modules/tcgetsid: New file.
3994         * modules/termios (Depends-on): Add c++defs, warn-on-use.
3995         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
3996         GNULIB_TCGETSID, HAVE_TCGETSID.
3997         * lib/termios.in.h: Include <sys/types.h>.
3998         (tcgetsid): New declaration.
3999         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4000         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4001         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4002         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4003
4004 2010-09-16  Bruno Haible  <bruno@clisp.org>
4005
4006         Tests for module 'termios'.
4007         * modules/termios-c++-tests: New file.
4008         * modules/termios-tests: New file.
4009         * tests/test-termios-c++.cc: New file.
4010         * tests/test-termios.c: New file.
4011
4012         New module 'termios'.
4013         * modules/termios: New file.
4014         * lib/termios.in.h: New file.
4015         * m4/termios_h.m4: New file.
4016         * doc/posix-headers/termios.texi: Mention the new module.
4017
4018 2010-09-16  Eric Blake  <eblake@redhat.com>
4019
4020         fdutimensat: add an atflag parameter
4021         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4022         * lib/utimens.h (fdutimensat): Update prototype.
4023         * tests/test-fdutimensat.c: Adjust test to match.
4024         * NEWS: Document the change.
4025         Suggested by Paul Eggert.
4026
4027 2010-09-16  Bruno Haible  <bruno@clisp.org>
4028
4029         Fix typos in comments.
4030         * lib/striconveh.h: Fix typo in comment.
4031         * lib/login_tty.c (login_tty): Likewise.
4032
4033 2010-09-15  Bruno Haible  <bruno@clisp.org>
4034
4035         stdlib: clarify MirBSD WEXITSTATUS bug
4036         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4037         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4038
4039 2010-09-15  Eric Blake  <eblake@redhat.com>
4040
4041         stdlib: work around MirBSD WEXITSTATUS bug
4042         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4043         * modules/stdlib (Depends-on): Add sys_wait.
4044         * tests/test-sys_wait.c (main): Enhance test.
4045         * tests/test-stdlib.c (main): Likewise.
4046         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4047
4048         docs: mention MacOS issue with WEXITSTATUS(constant)
4049         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4050         issue.
4051         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4052
4053         strnlen: add tests
4054         * modules/strnlen-tests: New file.
4055         * tests/test-strnlen.c: Likewise.
4056
4057 2010-09-14  Bruno Haible  <bruno@clisp.org>
4058
4059         unistr/base: Avoid link errors when module 'libunistring' is also used.
4060         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4061         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4062         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4063         Declare also when HAVE_LIBUNISTRING is set.
4064         Reported by Pádraig Brady <P@draigbrady.com>.
4065
4066 2010-09-14  Eric Blake  <eblake@redhat.com>
4067
4068         test-rawmemchr: make more robust
4069         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4070         (Depends-on, configure.ac): Add needed prerequisites to use it.
4071         * modules/memchr-tests (Files, Depends-on, configure.ac):
4072         Likewise, to avoid implicit reliance on memchr module prereqs.
4073         * tests/test-memchr.c (main): Ensure proper masking.
4074         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4075         reads.
4076
4077         memchr: detect glibc Alpha bug
4078         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4079         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4080         Alpha.
4081         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4082         * tests/test-memchr.c (main): Enhance test.
4083         Reported by Nelson H. F. Beebe.
4084
4085 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4086
4087         fts, getcwd, glob: audit for dirfd returning -1
4088         * lib/fts.c (opendir): Remove #define; no longer used.
4089         (opendirat): New arg PDIR_FD.  All callers changed.
4090         (fts_build, _opendir2): Use new opendirat to avoid the need for
4091         dirfd, or for checking whether dirfd returns a negative value.
4092         Don't use opendir; always use openat followed by fdopendir.
4093         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4094         it.
4095         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4096         returns -1 here.
4097         * modules/fts (Depends-on): Remove dirfd.
4098         * modules/getcwd (Depends-on): Likewise.
4099
4100 2010-09-13  Eric Blake  <eblake@redhat.com>
4101
4102         float: fix broken MirBSD header
4103         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4104         * doc/posix-headers/float.texi (float.h): Document it.
4105
4106 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4107
4108         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4109         * lib/fts.c (opendirat): New arg extra_flags.
4110         (__opendir2): Use it to avoid following symlinks when opening
4111         a directory, if symlinks are not supposed to be followed.  See
4112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4113
4114         fdopendir: preserve argument fd before returning
4115         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4116         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4117         (fdopendir): Use them, arranging for FD to be open to the same
4118         directory that it was when it started.  (It might be temporarily
4119         closed while fdopendir is running, so this not thread- or
4120         signal-safe.)  Be careful to do the right thing even when file
4121         descriptors are scarce and dup fails with errno == EMFILE.  See
4122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4123
4124 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4125
4126         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4127         * NEWS: Document change.
4128         * m4/regex.m4: Disable test for regoff_t size.
4129
4130 2010-09-13  Jim Meyering  <meyering@redhat.com>
4131
4132         fts: don't operate on an invalid file descriptor after failed dup
4133         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4134         negative file descriptor.
4135
4136 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4137
4138         savedir: add streamsavedir, deprecate fdsavedir
4139         * NEWS: Mention deprecation of fdsavedir.
4140         * lib/savedir.c (streamsavedir): New extern function, whose name
4141         ends in "savedir" to be consistent with the others.  This differs
4142         from savedirstream in that it doesn't close its argument.  The
4143         next version of GNU tar will use this instead of fdsavedir, to
4144         avoid some race conditions and conserve file descriptors.
4145         (savedirstream): Reimplement as a wrapper around streamsavedir.
4146         (fdsavedir): Add a comment deprecating this function.  As far as
4147         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4148         * lib/savedir.h (streamsavedir): New decl.
4149         (fdsavedir): Add a comment deprecating this.
4150
4151 2010-09-10  Bruno Haible  <bruno@clisp.org>
4152
4153         langinfo: Fix last commit.
4154         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4155         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4157
4158 2010-09-10  Bruno Haible  <bruno@clisp.org>
4159
4160         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4161         * lib/progreloc.c (O_EXEC): Define fallback.
4162
4163 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4164
4165         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4166         * NEWS: Document recent changes to fcntl-h.
4167         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4168         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4169         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4170         Similarly for O_SEARCH; this last was already true, but not documented.
4171         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4172         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4173         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4174         Likewise.
4175         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4176         is zero, not whether it is defined.
4177         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4178         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4179         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4180
4181 2010-09-10  Bruno Haible  <bruno@clisp.org>
4182
4183         langinfo, nl_langinfo: Fix for IRIX 5.3.
4184         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4185         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4186         HAVE_LANGINFO_YESEXPR.
4187         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4188         HAVE_LANGINFO_YESEXPR.
4189         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4190         HAVE_LANGINFO_T_FMT_AMPM is 0.
4191         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4192         HAVE_LANGINFO_YESEXPR is 0.
4193         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4194         NOEXPR.
4195         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4196         * doc/posix-functions/nl_langinfo.texi: Likewise.
4197         Reported by Eric Blake.
4198
4199 2010-09-10  Bruno Haible  <bruno@clisp.org>
4200
4201         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4202         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4203         on FreeBSD 8.0 and OpenBSD 4.6.
4204         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4205         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4206         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4207         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4208         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4209         ac_includes_default.
4210         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4211
4212 2010-09-09  Eric Blake  <eblake@redhat.com>
4213
4214         strsignal: work around NetBSD bug
4215         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4216         * lib/string.in.h (includes): Likewise.
4217         * doc/posix-functions/strsignal.texi (strsignal): Document the
4218         bug.
4219         Reported by Nelson H. F. Beebe.
4220
4221         gnulib-tool: work with NetBSD /bin/sh
4222         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4223         (func_get_description, func_get_comment, func_get_status)
4224         (func_get_notice, func_get_applicability, func_get_filelist)
4225         (func_get_dependencies, func_get_autoconf_early_snippet)
4226         (func_get_autoconf_snippet, func_get_automake_snippet)
4227         (func_get_include_directive, func_get_link_directive)
4228         (func_get_license, func_get_maintainer, func_import): Avoid
4229         shell syntax errors from parsing syntax extensions.
4230
4231 2010-09-09  Bruno Haible  <bruno@clisp.org>
4232
4233         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4234         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4235         a reliable way to determine whether the 'alias' command works.
4236
4237 2010-09-08  Jim Meyering  <meyering@redhat.com>
4238
4239         init.sh: penalize a set-x-impaired shell; don't disqualify it
4240         * tests/init.sh: Too many shells corrupt application stderr when
4241         you set -x, so we can't afford to disqualify them, since at least
4242         on Irix-6.5, that would disqualify all bourne shells.
4243         Instead, use a two-pass approach.
4244         On the first pass, try to find a shell that meets the stricter
4245         condition that set -x does not corrupt stderr.
4246         If no shell meets the stricter condition, retest each candidate
4247         shell, but without that extra condition.  Finally, when
4248         VERBOSE=yes is requested and set -x might cause trouble, simply
4249         issue a warning and refrain from enabling debug output.
4250
4251 2010-09-08  Eric Blake  <eblake@redhat.com>
4252
4253         unsetenv: fix OpenBSD bug
4254         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4255         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4256         documentation.
4257         Reported by Jim Meyering.
4258
4259         strtod: work around IRIX 6.5 bug
4260         * lib/strtod.c (strtod): Reparse number on shorter string if
4261         exponent parse was invalid.
4262         * tests/test-strtod.c (main): Add check for "0x1p 2".
4263         Reported by Tom G. Christensen.
4264
4265         getopt: optimize previous patch
4266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4267         empty variable.  Speed up awk script.
4268         Reported by Paolo Bonzini.
4269
4270 2010-09-08  Jim Meyering  <meyering@redhat.com>
4271
4272         test.sh: disqualify shells for which set -x corrupts stderr
4273         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4274         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4275         appear in stderr output.  For example, this command:
4276             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4277         prints "P=1" on those two systems:
4278
4279 2010-09-08  Bruno Haible  <bruno@clisp.org>
4280
4281         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4282         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4283         commands, because some shells ignore redirections when there is an
4284         error in the command lookup.
4285         Reported by Eric Blake.
4286
4287 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4288
4289         * lib/regex.h: Fix a mention of `regex_compile' (should be
4290         `re_compile_pattern').
4291         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4292         (re_set_registers): Correct name of parameter in comment.
4293
4294         * doc/regex.texi: Add documentation for missing syntax flags.
4295         Remove commented-out documentation of defunct syntax option
4296         RE_NO_EMPTY_ALTS.
4297         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4298         Add documentation of re_set_registers.
4299         Document trick to re-use a pattern buffer by setting fastmap manually.
4300         Update documentation of struct re_pattern_buffer per public members.
4301         Uncomment documentation of equivalence class operators and
4302         collating symbol operators, since they are now implemented,
4303         Explain leftmost-longest matching in relation to alternatives.
4304         Tidy documentation of substring matching.
4305         Remove POSIX documentation, which is done better in
4306         glibc, and refer the reader there. Keep BSD API documentation, as
4307         that is not readily available elsewhere.
4308
4309 2010-09-07  Eric Blake  <eblake@redhat.com>
4310
4311         getopt: handle POSIXLY_CORRECT set but not exported
4312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4313         export state of POSIXLY_CORRECT, due to bash set -o posix.
4314         Reported by Dustin J. Mitchell.
4315
4316 2010-09-05  Bruno Haible  <bruno@clisp.org>
4317
4318         gnulib-tool: Highlight the changed options.
4319         * gnulib-tool (func_usage): Display the --import, --add-import,
4320         --remove-import explanations in bold font.
4321
4322 2010-09-06  Karl Berry  <karl@gnu.org>
4323
4324         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4325
4326 2010-09-05  Bruno Haible  <bruno@clisp.org>
4327
4328         uniwidth/width: Update comment.
4329         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4330         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4331
4332 2010-09-05  Bruno Haible  <bruno@clisp.org>
4333
4334         isinf, isnan: Relax license.
4335         * modules/isinf (License): Change from GPL to LGPL, with consent from
4336         Ben Pfaff.
4337         * modules/isnan (License): Likewise.
4338         Requested by Ludovic Courtès.
4339
4340 2010-09-04  Bruno Haible  <bruno@clisp.org>
4341
4342         gnulib-tool: Help migration from --import to --add-import or --update.
4343         * gnulib-tool: Emit a verbose error message when --import is used
4344         without any module name.
4345
4346 2010-09-04  Bruno Haible  <bruno@clisp.org>
4347
4348         Update doc about gnulib-tool.
4349         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4350         'gnulib-tool --update' in more detail.
4351         Reported by Eric Blake.
4352
4353 2010-09-04  Bruno Haible  <bruno@clisp.org>
4354
4355         gnulib-tool: Change --import. New options --add/remove-import.
4356         * gnulib-tool: New options --add-import, --remove-import.
4357         (func_usage): Document them.
4358         (have_associative): Define always.
4359         (func_import): In import mode, don't merge the specified settings with
4360         the cached settings. Implement remove-import mode.
4361         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4362         Explain when to use them versus --import.
4363         (Simple update): Use --add-import instead of --import.
4364         * NEWS: Mention the change.
4365
4366 2010-09-04  Bruno Haible  <bruno@clisp.org>
4367
4368         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4369         separate gnulib.mk.
4370
4371 2010-09-04  Bruno Haible  <bruno@clisp.org>
4372
4373         gnulib-tool: Don't talk about CVS any more.
4374         * gnulib-tool (func_usage, func_import): Write "version control"
4375         instead of CVS.
4376
4377 2010-09-04  Jim Meyering  <meyering@redhat.com>
4378
4379         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4380         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4381         false positives (whose names may be ill-chosen) when searching
4382         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4383         would cause a false-positive.
4384
4385         avoid coreutils "make distcheck" failure
4386         Coreutils tests with an absolute build directory name that contains
4387         a space.  Not quoting this directory name caused a failure.
4388         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4389         * tests/test-vc-list-files-cvs.sh: Likewise.
4390
4391 2010-09-04  Bruno Haible  <bruno@clisp.org>
4392
4393         gnulib-tool: Avoid error when run in a package without Makefile.am.
4394         * gnulib-tool: When collecting the m4dirs in a package that does not
4395         have a Makefile.am, eliminate those directories that contain no
4396         gnulib-cache.m4. Fix expression that counts these directories.
4397
4398 2010-09-04  Bruno Haible  <bruno@clisp.org>
4399
4400         update-copyright test: Improve output when perl is missing or too old.
4401         * tests/test-update-copyright.sh: Move test of Perl version down after
4402         the test whether Perl exists. Provide an explanation relating Perl's
4403         error message to Automake's SKIP: message.
4404
4405 2010-09-04  Bruno Haible  <bruno@clisp.org>
4406
4407         Don't augment PATH in TESTS_ENVIRONMENT.
4408         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4409         set abs_aux_dir instead of augmenting PATH.
4410         * modules/vc-list-files-tests (Makefile.am): Likewise.
4411         * tests/test-update-copyright.sh: Augment PATH here.
4412         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4413         path_prepend_.
4414         * tests/test-vc-list-files-git.sh: Likewise.
4415
4416 2010-09-04  Jim Meyering  <meyering@redhat.com>
4417
4418         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4419         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4420
4421 2010-09-04  Bruno Haible  <bruno@clisp.org>
4422
4423         strdup: Fix compilation error in C++ mode.
4424         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4425         the macro.
4426
4427 2010-09-04  Bruno Haible  <bruno@clisp.org>
4428
4429         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4430         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4431         macro into a function.
4432         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4433
4434 2010-09-04  Bruno Haible  <bruno@clisp.org>
4435
4436         Set PATH_SEPARATOR the same way autoconf does.
4437         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4438         the value of PATH_SEPARATOR the same way autoconf-generated configure
4439         scripts do.
4440         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4441         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4442
4443 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4444
4445         Set PATH_SEPARATOR the same way autoconf does.
4446         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4447         the same way autoconf-generated configure scripts do.
4448         * posix-modules: Likewise.
4449
4450 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4451
4452         hash: fix safe_hasher const typo
4453         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4454         const; otherwise, there is a type error later.
4455
4456 2010-09-02  Jim Meyering  <meyering@redhat.com>
4457
4458         test-update-copyright.sh: require perl 5.8.0
4459         * tests/test-update-copyright.sh: Require 5.8.0,
4460         which Tom G. Christensen has confirmed is adequate,
4461         while 5.6.1 is not.
4462
4463 2010-09-02  Eric Blake  <eblake@redhat.com>
4464
4465         tests: init.sh improvements for re-exec'ing with zsh
4466         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
4467         -vx through shell re-exec.
4468         Reported by Tom G. Christensen.
4469
4470         wctype: fix typo in previous commit
4471         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
4472         Reported by Ludovic Courtès.
4473
4474 2010-09-02  Jim Meyering  <meyering@redhat.com>
4475
4476         test-update-copyright.sh: skip test if Perl is too old
4477         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
4478         Reported by Tom G. Christensen.
4479
4480 2010-09-02  Bruno Haible  <bruno@clisp.org>
4481
4482         wctype: Avoid compilation error on IRIX 6.5.30.
4483         * lib/wctype.in.h (iswblank): Declare with a replacement if
4484         REPLACE_ISWBLANK is set.
4485         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
4486         declared. Set REPLACE_ISWBLANK.
4487         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
4488         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
4489         * doc/posix-headers/wctype.texi: Likewise.
4490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4491
4492 2010-09-01  Bruno Haible  <bruno@clisp.org>
4493
4494         New module 'socketlib'.
4495         * modules/socketlib: New file.
4496         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
4497         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
4498         * modules/sockets (Depends-on): Add socketlib.
4499         Suggested by Sam Steingold <sds@gnu.org>.
4500
4501 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4502
4503         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
4504
4505         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
4506         when one needs search access to a directory but not read access.
4507         On systems where it is available, it works in some cases where
4508         O_RDONLY does not, namely on directories that are searchable but
4509         not readable, and which need only to be searchable.  If O_SEARCH
4510         is not available, fall back to the traditional method of using
4511         O_RDONLY.
4512
4513         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
4514         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
4515         when opening a directory that needs only to be searchable.
4516         * lib/chdir-safer.c (chdir_no_follow): Likewise.
4517         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
4518         * lib/openat-proc.c (openat_proc_name): Likewise.
4519         * lib/openat.c (openat_needs_fchdir): Likewise.
4520         * lib/save-cwd.c (save_cwd): Likewise.
4521         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
4522
4523 2010-08-28  Bruno Haible  <bruno@clisp.org>
4524
4525         New module 'host-cpu-c-abi'.
4526         * modules/host-cpu-c-abi: New file.
4527         * m4/host-cpu-c-abi.m4: New file, based on part of
4528         clisp/src/m4/general.m4.
4529         Requested by Sam Steingold <sds@gnu.org>.
4530
4531 2010-08-31  Eric Blake  <eblake@redhat.com>
4532         and Jim Meyering  <meyering@redhat.com>
4533
4534         hash: factor, and guard against misbehaving hasher function
4535         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
4536         of table->hasher's return value.  Also protect against a hash value
4537         so large that adding it to table->bucket results in a NULL pointer.
4538         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
4539         Use it in place of open-coded check-and-abort.
4540
4541 2010-08-30  Bruno Haible  <bruno@clisp.org>
4542
4543         hash: silence spurious clang warning
4544         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
4545         Reported by Eric Blake.
4546
4547 2010-08-30  Eric Blake  <eblake@redhat.com>
4548
4549         strstr, memmem, strcasestr: avoid leaked shell message
4550         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
4551         FreeBSD.
4552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4554
4555         tests: silence clang warning
4556         * tests/test-malloca.c (do_allocation): Avoid dead store.
4557
4558 2010-08-29  Bruno Haible  <bruno@clisp.org>
4559
4560         gettext: Fix recent mistake.
4561         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
4562
4563 2010-08-29  Bruno Haible  <bruno@clisp.org>
4564
4565         selinux-h: Offer a --without-selinux option.
4566         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
4567         --without-selinux was specified, skip all tests and define
4568         HAVE_SELINUX_SELINUX_H to 0.
4569         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
4570         set LIB_SELINUX to empty.
4571         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
4572         gl_LIBSELINUX. If --without-selinux was specified, replace
4573         selinux/context.h.
4574         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
4575
4576 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4577             Bruno Haible  <bruno@clisp.org>
4578
4579         Make the module 'realloc-gnu' work again on AIX and OSF/1.
4580         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
4581         of HAVE_REALLOC.
4582         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
4583         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
4584         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
4585         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4586
4587 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4588             Bruno Haible  <bruno@clisp.org>
4589
4590         Make the module 'calloc-gnu' work again on AIX and OSF/1.
4591         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
4592         HAVE_CALLOC.
4593         * lib/xmalloc.c: Update accordingly.
4594         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
4595         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
4596         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
4597
4598 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4599             Bruno Haible  <bruno@clisp.org>
4600
4601         Make the module 'malloc-gnu' work again on AIX and OSF/1.
4602         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
4603         HAVE_MALLOC.
4604         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
4605         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
4606         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4607
4608 2010-08-29  Bruno Haible  <bruno@clisp.org>
4609
4610         Update modules list.
4611         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4612         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
4613         (String handling <string.h>): Add astrxfrm.
4614         (File system functions): Add readlinkat.
4615
4616 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4617
4618         Tests for module 'realloc-gnu'.
4619         * modules/realloc-gnu-tests: New file.
4620         * tests/test-realloc-gnu.c: New file.
4621
4622         Tests for module 'calloc-gnu'.
4623         * modules/calloc-gnu-tests: New file.
4624         * tests/test-calloc-gnu.c: New file.
4625
4626         Tests for module 'malloc-gnu'.
4627         * modules/malloc-gnu-tests: New file.
4628         * tests/test-malloc-gnu.c: New file.
4629
4630 2010-08-28  Bruno Haible  <bruno@clisp.org>
4631
4632         Rename module 'realloc' -> 'realloc-gnu'.
4633         * modules/realloc-gnu: New file, copied from modules/realloc.
4634         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
4635         obsolete.
4636         * modules/mgetgroups (Depends-on): Update.
4637         * doc/posix-functions/realloc.texi: Update.
4638         * NEWS: Mention the change.
4639
4640         Rename module 'calloc' -> 'calloc-gnu'.
4641         * modules/calloc-gnu: New file, copied from modules/calloc.
4642         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
4643         obsolete.
4644         * doc/posix-functions/calloc.texi: Update.
4645         * NEWS: Mention the change.
4646
4647         Rename module 'malloc' -> 'malloc-gnu'.
4648         * modules/malloc-gnu: New file, copied from modules/malloc.
4649         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
4650         obsolete.
4651         * modules/argp (Depends-on): Update.
4652         * modules/regex (Depends-on): Update.
4653         * doc/posix-functions/malloc.texi: Update.
4654         * NEWS: Mention the change.
4655
4656 2010-08-28  Eric Blake  <eblake@redhat.com>
4657
4658         pread, pwrite: add missing dependency
4659         * modules/pread (Depends-on): Add extensions.
4660         * modules/pwrite (Depends-on): Likewise.
4661
4662 2010-08-28  Bruno Haible  <bruno@clisp.org>
4663
4664         unistr/u*-strchr: Fix tests dependencies.
4665         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
4666         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
4667         Reported by Ian Beckwith <ianb@erislabs.net>.
4668
4669 2010-08-28  Bruno Haible  <bruno@clisp.org>
4670
4671         read-file: Don't occupy too much unused memory.
4672         * lib/read-file.c (fread_file): Shrink the buffer at the end.
4673
4674 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
4675             Eric Blake  <eblake@redhat.com>
4676             Bruno Haible  <bruno@clisp.org>
4677
4678         read-file: Avoid memory reallocations with regular files.
4679         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
4680         (fread_file): With regular files, use the remaining length as the
4681         initial buffer size.  Check against overflow.
4682         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
4683         sys_stat.
4684
4685 2010-08-28  Bruno Haible  <bruno@clisp.org>
4686
4687         ftello: Relax license.
4688         * modules/ftello (License): Relax to LGPLv2+.
4689         Reported by Eric Blake.
4690
4691 2010-08-28  Bruno Haible  <bruno@clisp.org>
4692
4693         Avoid relocwrapper link errors due to gnulib replacement functions.
4694         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
4695         function.
4696         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4697
4698 2010-08-28  Bruno Haible  <bruno@clisp.org>
4699
4700         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
4701         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
4702         defined.
4703         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
4704         Suggested by Eric Blake.
4705
4706 2010-08-28  Bruno Haible  <bruno@clisp.org>
4707
4708         sys_socket, netdb: Ensure socklen_t gets defined.
4709         * modules/sys_socket (Depends-on): Add socklen.
4710         * modules/netdb (Depends-on): Likewise.
4711         * modules/getaddrinfo (Depends-on): Remove socklen.
4712         * modules/getsockopt (Depends-on): Likewise.
4713         * modules/setsockopt (Depends-on): Likewise.
4714         * tests/test-sys_socket.c: Check that socklen_t is defined.
4715         * tests/test-netdb.c: Likewise.
4716         * m4/socklen.m4: Update comments.
4717         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4718
4719 2010-08-27  Eric Blake  <eblake@redhat.com>
4720
4721         login_tty: add missing dependency
4722         * modules/login_tty (Depends-on): Add pty.
4723
4724 2010-08-26  Eric Blake  <eblake@redhat.com>
4725
4726         lib-symbol-versions: fix m4 quoting
4727         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
4728         format for AC_LINK_IFELSE.
4729
4730         glob: fix compile test
4731         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
4732
4733         btowc: fix missing file
4734         * modules/btowc (Files): Also ship locale-fr.m4.
4735
4736         lseek: fix link test
4737         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
4738         AC_LINK_IFELSE.
4739
4740         include_next: silence autoconf 2.68 warning
4741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
4742         AC_COMPILE_IFELSE as special.
4743         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
4744         autoconf < 2.68.
4745
4746         acl: fix compilation test
4747         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
4748         AC_COMPILE_IFELSE.
4749
4750 2010-08-26  Bruno Haible  <bruno@clisp.org>
4751
4752         Modernize AC_TRY_RUN invocations.
4753         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
4754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4755         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
4756         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
4757         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4758         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4759         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4760         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4761         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4762         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4764         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4765         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4766         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4768         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4769         gl_MBRLEN_NUL_RETVAL): Likewise.
4770         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4771         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
4772         Likewise.
4773         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4774         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4775         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4776         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4777         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4778         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4779         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
4780         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4781         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
4782         Likewise.
4783         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
4784         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4786         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4787         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4788         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4790         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
4791         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4793
4794 2010-08-26  Bruno Haible  <bruno@clisp.org>
4795
4796         Modernize AC_TRY_LINK invocations.
4797         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
4798         AC_TRY_LINK.
4799         * m4/argp.m4 (gl_ARGP): Likewise.
4800         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4801         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4802         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4803         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4804         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4805         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
4806         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4807         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4808         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4809         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4810         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4811         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
4812         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
4813         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4814         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
4815         * m4/hostent.m4 (gl_HOSTENT): Likewise.
4816         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4817         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
4818         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
4819         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
4820         Likewise.
4821         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
4822         Likewise.
4823         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
4824         Likewise.
4825         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
4826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
4827         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
4828         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4829         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4830         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4831         * m4/servent.m4 (gl_SERVENT): Likewise.
4832         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4833         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4834         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4835         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4836         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4837         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4838         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4840         * modules/tsearch-tests (configure.ac): Likewise.
4841
4842 2010-08-26  Bruno Haible  <bruno@clisp.org>
4843
4844         Modernize AC_TRY_COMPILE invocations.
4845         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
4846         AC_TRY_COMPILE.
4847         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
4848         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
4849         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4850         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4851         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4852         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4853         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4854         * m4/lock.m4 (gl_LOCK): Likewise.
4855         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4856         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4857         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
4858         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4859         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4860         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
4861         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
4863         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4864         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4865         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4866         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4867         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
4868         extraneous semicolon.
4869
4870 2010-08-26  Jim Meyering  <meyering@redhat.com>
4871
4872         stat-time: relax license LGPL
4873         * modules/stat-time (License): Change from GPL to LGPL,
4874         with consent from all contributors, for use in libguile.
4875         Requested by Ludovic Courtès.
4876
4877 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
4878
4879         poll: return immediately on POLLHUP.
4880         * lib/poll.c (poll): Always set timeout before wait_timeout is
4881         computed.
4882
4883 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4884
4885         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
4886         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
4887         rmdir ("dir/.//"), unlinkat.
4888
4889 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         stdbool: avoid spurious failure with modern xlc
4892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4893
4894 2010-08-24  Bruno Haible  <bruno@clisp.org>
4895
4896         getloadavg: simplify code
4897         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
4898         gl_have_func. Update comments.
4899
4900 2010-08-24  Eric Blake  <eblake@redhat.com>
4901
4902         getloadavg: don't define SVR4 on cygwin
4903         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
4904         only define SVR4 when -lkvm is required.
4905         Reported by Yaakov Selkowitz.
4906
4907 2010-08-24  Bruno Haible  <bruno@clisp.org>
4908
4909         priv-set: fix comment
4910         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
4911
4912 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         priv-set: fix comments
4915         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
4916         to match code, as suggested by David Bartley in:
4917         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
4918
4919 2010-08-23  Eric Blake  <eblake@redhat.com>
4920
4921         stdbool: avoid rejecting clang
4922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4923         * tests/test-stdbool.c: Enable more tests if using the system
4924         <stdbool.h> instead of the gnulib replacement.
4925         (main): Move xlc bug test to a runtime test for all compilers.
4926         Reported by Anders Kaseorg.
4927
4928         argz: fix shell quoting issue
4929         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
4930         Reported by Charles Wilson.
4931
4932 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
4933             Erik Faye-Lund <kusmabite@gmail.com>
4934
4935         poll, select: handle ERROR_BROKEN_PIPE.
4936         * lib/poll.c (win32_compute_revents): Return POLLHUP when
4937         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4938         * lib/select.c (win32_compute_revents): Do not mark a pipe
4939         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4940
4941 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
4942
4943         fts: allow compilation with C++
4944         * lib/fts_.h: Specify extern "C" linkage with C++.
4945
4946 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4947
4948         Fix gnulib-tool sed script de-commentation for AIX sed.
4949         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
4950         sed.
4951
4952 2010-08-17  Eric Blake  <eblake@redhat.com>
4953
4954         test-stddef: test for (some) offsetof bugs
4955         * tests/test-stddef.c: Enhance test to ensure correct type of
4956         offsetof.
4957         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
4958         that we are not fixing at this time.
4959
4960 2010-08-15  Bruno Haible  <bruno@clisp.org>
4961
4962         stpncpy: Allow stpncpy to be defined as a macro.
4963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
4964         if it's already correctly declared.
4965         * lib/string.in.h (stpncpy): Undefine before redefining.
4966         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
4967
4968 2010-08-14  Bruno Haible  <bruno@clisp.org>
4969
4970         Rename module 'memxfrm' to 'amemxfrm'.
4971         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
4972         (amemxfrm): Renamed from memxfrm.
4973         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
4974         (amemxfrm): Renamed from memxfrm.
4975         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
4976         * NEWS: Mention the change.
4977         * MODULES.html.sh (String handling <string.h>): Update.
4978         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
4979         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
4980         * lib/unicase/u16-casexfrm.c: Likewise.
4981         * lib/unicase/u32-casexfrm.c: Likewise.
4982         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
4983         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
4984         * lib/uninorm/u16-normxfrm.c: Likewise.
4985         * lib/uninorm/u32-normxfrm.c: Likewise.
4986         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
4987         memxfrm.
4988         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
4989         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
4990         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
4991         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
4992         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
4993         Suggested by Paul Eggert.
4994
4995 2010-08-14  Bruno Haible  <bruno@clisp.org>
4996
4997         Tests for module 'astrxfrm'.
4998         * modules/astrxfrm-tests: New file.
4999         * tests/test-astrxfrm.c: New file.
5000
5001         New module 'astrxfrm'.
5002         * lib/astrxfrm.h: New file.
5003         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5004         * modules/astrxfrm: New file.
5005
5006 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5007
5008         regex: Tweak doc.
5009         * doc/regex.texi (Overview): Don't mention regex.c.
5010         (GNU Regular Expression Compiling): Likewise.
5011         (Match-end-of-line Operator): Mention 'not_eol'.
5012
5013 2010-08-14  Brian Gough  <bjg@gnu.org>
5014             Bruno Haible  <bruno@clisp.org>
5015
5016         git-merge-changelog: add doc relating to use with bzr and hg.
5017         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5018
5019 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5020
5021         pthread: fix pthread.h creation for srcdir != builddir
5022         * modules/pthread (Makefile.am): Fix the rule to work also in a
5023         non-srcdir build.
5024
5025 2010-08-13  Karl Berry  <karl@gnu.org>
5026
5027         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5028         * doc/posix-*/*: force line break before @url of POSIX
5029         specifications.
5030         Suggested by Werner Lemberg.
5031
5032 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5033
5034         strtod: fix const diagnostic
5035         * lib/strtod.c (strtod): Don't assign const char * to char *,
5036         as this elicits a warning from GCC when warnings are enabled.
5037
5038 2010-08-10  Pádraig Brady <P@draigbrady.com>
5039         and Eric Blake  <eblake@redhat.com>
5040
5041         copy-acl: ignore ENOTSUP on HP-UX
5042         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5043         so that it is available for HP-UX.
5044         * lib/copy-acl.c (qcopy_acl): Use it.
5045         Reported by Patrick M. Callahan.
5046
5047 2010-08-10  Eric Blake  <eblake@redhat.com>
5048
5049         open, chown: relax license
5050         * modules/open (License): Change to LGPLv2+, with consent by all
5051         authors, for use in augeas.
5052         * modules/chown (License): Likewise.
5053         * modules/lchown (Likewise): Likewise.
5054         Requested by Adam Stokes.
5055
5056 2010-08-09  Karl Berry  <karl@gnu.org>
5057
5058         * build-aux/ar-lib: new file, import from Automake.
5059         * config/srclist.txt: autocheck for updates.
5060
5061 2010-08-09  Eric Blake  <eblake@redhat.com>
5062
5063         readlinkat: adjust client modules
5064         * modules/areadlinkat (Depends-on): Use readlinkat, not
5065         symlinkat.
5066         * modules/areadlinkat-with-size (Depends-on): Likewise.
5067
5068         mknod: be more vocal about danger of running tests as root
5069         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5070         root, since that is just asking for problems.
5071         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5072
5073         readlinkat: split into its own module
5074         * modules/symlinkat: Split readlinkat...
5075         * modules/readlinkat: ...into separate module.
5076         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5077         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5078         * lib/symlinkat.c (readlinkat): Move...
5079         * lib/readlinkat.c: ...into new file.
5080         * modules/symlinkat-tests: Split readlinkat test...
5081         * modules/readlinkat-tests: ...into separate module.
5082         * tests/test-symlinkat.c: Split...
5083         * tests/test-readlinkat.c: ...into new file.
5084         * NEWS: Document the split.
5085         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5086         * lib/unistd.in.h (readlinkat): Likewise.
5087         Suggested by Bruno Haible.
5088
5089 2010-08-08  Bruno Haible  <bruno@clisp.org>
5090
5091         memxfrm: Speed up.
5092         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5093         that usually only one call to strxfrm is necessary for each string
5094         part.
5095         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5096
5097 2010-08-07  Karl Berry  <karl@gnu.org>
5098
5099         * doc/posix-headers/limits.texi,
5100         * doc/posix-functions/malloc.texi,
5101         * doc/posix-functions/strsignal.texi: missing @item.
5102         * doc/ld-version-script.texi: spurious leading i.
5103         * doc/regex.texi (Interval Operators): no commas inside @var.
5104
5105 2010-08-01  Bruno Haible  <bruno@clisp.org>
5106
5107         Integrate the regex documentation.
5108         * doc/gnulib.texi: Define 'cn' index.
5109         (Regular expressions): New a chapter that includes regex.texi and
5110         regexprops-generic.texi.
5111         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5112         syntax.
5113
5114         Whitespace cleanup.
5115         * doc/regex.texi: Remove trailing spaces.
5116
5117         Add regex documentation.
5118         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5119         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5120         Written by Kathy A. Hargreaves and Karl Berry.
5121
5122 2010-08-01  Bruno Haible  <bruno@clisp.org>
5123
5124         link: Update documentation.
5125         * doc/posix-functions/link.texi: Update regarding Solaris.
5126
5127 2010-07-31  Bruno Haible  <bruno@clisp.org>
5128
5129         Update modules list.
5130         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5131         (String handling <string.h>): Add memcmp2, memxfrm.
5132         (Container data structures): Add xlist, xsublist, xoset.
5133         (Core language properties): Add alignof, unused-parameter.
5134         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5135         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5136         (Unibyte characters <ctype.h>): New section.
5137         (String handling <string.h>): New section.
5138         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5139         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5140         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5141         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5142         tan, tanh, tanl, y0, y1, yn.
5143         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5144         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5145         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5146         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5147         unlockpt, vdprintf, vdprintf-posix.
5148         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5149         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5150         xconcat-filename.
5151         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5152         getdtablesize, pipe2, pipe2-safer.
5153         (Security): New section.
5154         (Networking functions): Add accept4.
5155         (Signal handling): Add sigpipe.
5156         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5157         mbmemcasecoll.
5158         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5159         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5160         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5161         pipe-filter-ii.
5162         (Misc): Add argp-version-etc, login_tty, parse-duration.
5163
5164 2010-07-31  Bruno Haible  <bruno@clisp.org>
5165
5166         Improve doc in MODULES.html.
5167         * modules/linkat (Description): Add the word "function".
5168         * modules/mkfifo (Description): Likewise.
5169         * modules/mknod (Description): Likewise.
5170         * modules/remove (Description): Likewise.
5171         * modules/renameat (Description): Likewise.
5172         * modules/stat (Description): Likewise.
5173         * modules/symlink (Description): Likewise.
5174         * modules/unlink (Description): Likewise.
5175
5176 2010-07-31  Bruno Haible  <bruno@clisp.org>
5177
5178         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5179         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5180         option --enable/disable-c++ instead of --enable/disable-cxx.
5181         * NEWS: Mention the change.
5182
5183 2010-07-31  Bruno Haible  <bruno@clisp.org>
5184
5185         readlink, areadlink: Relax test a bit.
5186         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5187         alternative to ENOTDIR.
5188         * tests/test-areadlink.h (test_areadlink): Likewise.
5189         Reported by Rainer Tammer.
5190
5191 2010-07-31  Bruno Haible  <bruno@clisp.org>
5192
5193         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5194         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5195         character, perform the search using U_STRCHR.
5196         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5197         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5198         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5199         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5200         Suggested by Paolo Bonzini.
5201
5202 2010-07-31  Bruno Haible  <bruno@clisp.org>
5203
5204         unistr/u*-strstr: Fix dependencies.
5205         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5206         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5207         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5208
5209 2010-07-31  Bruno Haible  <bruno@clisp.org>
5210
5211         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5212         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5213         the beginning of the loop.
5214         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5215         cases in 'switch' statement.
5216
5217         unistr/u8-strchr: Fix several bugs.
5218         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5219         the string. When not found, return NULL, not a pointer near the end.
5220
5221         More tests for unistr/u8-strchr.
5222         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5223         that the function does not read past the first occurrence of the byte
5224         being searched.
5225         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5226         * tests/unistr/test-u16-strchr.c (main): New function.
5227         * tests/unistr/test-u32-strchr.c (main): New function.
5228
5229 2010-07-31  Bruno Haible  <bruno@clisp.org>
5230
5231         posix-modules: Ignore backup files of documentation files.
5232         * posix-modules: grep only through files named *.texi.
5233
5234 2010-07-31  Bruno Haible  <bruno@clisp.org>
5235
5236         symlinkat: Fix documentation.
5237         * doc/posix-functions/readlinkat.texi: Fix module name.
5238
5239 2010-07-31  Bruno Haible  <bruno@clisp.org>
5240
5241         fchownat: Replace also when chown has the trailing slash bug.
5242         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5243         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5244         introduced on 2010-04-10.
5245         Reported by Rainer Tammer.
5246
5247 2010-07-31  Bruno Haible  <bruno@clisp.org>
5248
5249         linkat: Work around AIX 7.1 bug.
5250         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5251         whether linkat handles trailing slash correctly. If not, replace linkat
5252         and define LINKAT_TRAILING_SLASH_BUG.
5253         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5254         check whether (fd1,file1) points to a directory if file1 or file2 ends
5255         in a slash. Code taken from lib/link.c.
5256         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5257         Reported by Rainer Tammer.
5258
5259 2010-07-31  Bruno Haible  <bruno@clisp.org>
5260
5261         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5262         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5263         This disables an xlc optimization that was causing wrong test results.
5264         Reported by Rainer Tammer.
5265
5266 2010-07-31  Bruno Haible  <bruno@clisp.org>
5267
5268         iconv: Work around AIX 6.1..7.1 bug.
5269         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5270         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5271         cross-compiling, guess no on all versions of AIX.
5272         Reported by Rainer Tammer.
5273
5274 2010-07-31  Bruno Haible  <bruno@clisp.org>
5275
5276         readlink: Relax test a bit.
5277         * tests/test-readlink.h (test_readlink): Allow different errno value
5278         when readlink is called with a file name that ends in / and refers to
5279         a file.
5280         Suggested by Eric Blake.
5281         Reported by Rainer Tammer.
5282
5283 2010-07-31  Bruno Haible  <bruno@clisp.org>
5284
5285         copysign: Does not require -lm on glibc systems.
5286         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5287         gl_COMMON_DOUBLE_MATHFUNC.
5288         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5289
5290 2010-07-31  Bruno Haible  <bruno@clisp.org>
5291
5292         duplocale: Work around AIX 7.1 bug.
5293         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5294         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5295         * lib/duplocale.c (rpl_duplocale): Update comment.
5296         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5297         Reported by Rainer Tammer.
5298
5299 2010-07-30  Bruno Haible  <bruno@clisp.org>
5300
5301         dirfd: Avoid link error on AIX 7.1.
5302         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5303         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5304         exist, set REPLACE_DIRFD.
5305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5306         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5307         * doc/posix-functions/dirfd.texi: Update.
5308         Reported by Rainer Tammer.
5309
5310 2010-07-30  Eric Blake  <eblake@redhat.com>
5311
5312         strtod: next round of AIX fixes
5313         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5314         exponent.
5315         * tests/test-strtod.c (main): Enhance tests.
5316         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5317         Reported by Rainer Tammer.
5318
5319         futimens: fix configure check
5320         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5321         Reported by Bruno Haible.
5322
5323 2010-07-30  Bruno Haible  <bruno@clisp.org>
5324
5325         getline: Update regarding AIX.
5326         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5327         Reported by Rainer Tammer.
5328
5329 2010-07-30  Bruno Haible  <bruno@clisp.org>
5330
5331         wcwidth: Drop replacement on AIX 7.
5332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5333         AIX 7.
5334         Reported by Rainer Tammer.
5335
5336 2010-07-30  Bruno Haible  <bruno@clisp.org>
5337
5338         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5340         a 'char *'.
5341         Reported by Rainer Tammer.
5342
5343 2010-07-30  Bruno Haible  <bruno@clisp.org>
5344
5345         unlink: Update regarding AIX.
5346         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5347         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5348         Reported by Rainer Tammer.
5349
5350 2010-07-30  Bruno Haible  <bruno@clisp.org>
5351
5352         symlink: Update regarding AIX.
5353         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5354         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5355         Reported by Rainer Tammer.
5356
5357 2010-07-30  Bruno Haible  <bruno@clisp.org>
5358
5359         strndup: Update regarding AIX.
5360         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5361         AIX 7.
5362         Reported by Rainer Tammer.
5363
5364 2010-07-30  Bruno Haible  <bruno@clisp.org>
5365
5366         stat: Update regarding AIX.
5367         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5368         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5369         Reported by Rainer Tammer.
5370
5371 2010-07-30  Bruno Haible  <bruno@clisp.org>
5372
5373         truncl: Fix autoconf test.
5374         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5375         whether truncl works.
5376         Reported by Rainer Tammer.
5377
5378 2010-07-30  Bruno Haible  <bruno@clisp.org>
5379
5380         round: Update regarding AIX.
5381         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5382         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5383         Reported by Rainer Tammer.
5384
5385 2010-07-30  Bruno Haible  <bruno@clisp.org>
5386
5387         rename: Update regarding AIX.
5388         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5389         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5390         Reported by Rainer Tammer.
5391
5392 2010-07-30  Bruno Haible  <bruno@clisp.org>
5393
5394         printf.m4: Update regarding AIX.
5395         * m4/printf.m4: Update comments regarding AIX.
5396         Reported by Rainer Tammer.
5397
5398 2010-07-30  Bruno Haible  <bruno@clisp.org>
5399
5400         iconv: Update regarding AIX.
5401         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5402         AIX 7.
5403         Reported by Rainer Tammer.
5404
5405 2010-07-30  Bruno Haible  <bruno@clisp.org>
5406
5407         getopt: Update regarding AIX.
5408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5409         no on AIX.
5410         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5411         Reported by Rainer Tammer.
5412
5413 2010-07-30  Bruno Haible  <bruno@clisp.org>
5414
5415         ldexpl; Update regarding AIX.
5416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5417         on AIX 7.
5418         Reported by Rainer Tammer.
5419
5420 2010-07-30  Bruno Haible  <bruno@clisp.org>
5421
5422         frexpl: Update regarding AIX.
5423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5424         on AIX 7.
5425         Reported by Rainer Tammer.
5426
5427 2010-07-30  Bruno Haible  <bruno@clisp.org>
5428
5429         open, fopen: Update regarding AIX.
5430         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5431         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5432         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5433         * doc/posix-functions/fopen.texi: Likewise.
5434         Reported by Rainer Tammer.
5435
5436 2010-07-30  Bruno Haible  <bruno@clisp.org>
5437
5438         chown: Update doc regarding AIX.
5439         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5440         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5441         Reported by Rainer Tammer.
5442
5443 2010-07-30  Eric Blake  <eblake@redhat.com>
5444
5445         strtod: fix bug in replacement function on AIX
5446         * lib/strtod.c (strtod): Special case broken "0x" parse in
5447         underlying strtod.
5448         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5449         * doc/posix-functions/strtod.texi (strtod): Likewise.
5450         Reported by Rainer Tammer.
5451
5452 2010-07-30  Bruno Haible  <bruno@clisp.org>
5453
5454         mbrlen: Fix cross-compilation guess for AIX.
5455         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5456         guess. Leftover from 2008-12-22.
5457
5458 2010-07-30  Bruno Haible  <bruno@clisp.org>
5459
5460         mbrtowc: Fix cross-compilation guess for AIX.
5461         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5462         guess. Leftover from 2008-12-21.
5463
5464 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5465
5466         init.sh: work around trap limitation of some shells
5467         * tests/init.sh (setup_): Move exit trap outside of shell function.
5468
5469 2010-07-29  Eric Blake  <eblake@redhat.com>
5470
5471         strtod: aid debugging
5472         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
5473         understanding why strtod is rejected.
5474
5475 2010-07-28  Bruno Haible  <bruno@clisp.org>
5476
5477         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
5478         * lib/unistr/u8-chr.c: Include <string.h>.
5479         * tests/unistr/test-u8-chr.c: Likewise.
5480         * tests/unistr/test-u16-chr.c: Likewise.
5481         * tests/unistr/test-u32-chr.c: Likewise.
5482         * tests/unistr/test-u8-strchr.c: Likewise.
5483         * tests/unistr/test-u16-strchr.c: Likewise.
5484         * tests/unistr/test-u32-strchr.c: Likewise.
5485         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
5486         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
5487         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
5488         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
5489
5490 2010-07-28  Bruno Haible  <bruno@clisp.org>
5491
5492         Use spaces for indentation, not tabs.
5493         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5494
5495 2010-07-27  Bruno Haible  <bruno@clisp.org>
5496
5497         mbspcasecmp: Fix function specification.
5498         * lib/string.in.h (mbspcasecmp): Fix specification comment.
5499         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
5500         Reported by Eric Blake <eblake@redhat.com>.
5501
5502 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
5503
5504         timespec: use cast and not conditional, as truncation isn't possible
5505         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
5506         instead of a conditional.  Comment about the situation in more detail.
5507         This undoes most of the 2009-10-29 patch.
5508
5509 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
5510
5511         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
5512         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
5513         * lib/unistr/u8-strchr.c: Likewise.
5514         * modules/unistr/u8-chr: Depend on memchr.
5515
5516         unistr/u*-strchr: add tests
5517         * modules/unistr/u8-strchr-tests: New file.
5518         * modules/unistr/u16-strchr-tests: New file.
5519         * modules/unistr/u32-strchr-tests: New file.
5520         * tests/unistr/test-strchr.h: New file.
5521         * tests/unistr/test-u8-strchr.c: New file.
5522         * tests/unistr/test-u16-strchr.c: New file.
5523         * tests/unistr/test-u32-strchr.c: New file.
5524
5525         unistr/u*-chr: test multibyte sequences more
5526         * tests/unistr/test-chr.h: Do complete testing of the characters in the
5527         test vector.
5528         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
5529         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
5530         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
5531
5532         unistr/u*-chr: test multibyte sequences
5533         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
5534
5535         unistr/u*-chr: prepare for multibyte tests
5536         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
5537         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
5538         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
5539         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
5540         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
5541         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
5542
5543 2010-07-18  Bruno Haible  <bruno@clisp.org>
5544
5545         unistr/u8-strchr: Optimize non-ASCII argument case.
5546         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5547         because the first byte often matches anyway.
5548         Reported by Pádraig Brady <P@draigbrady.com>.
5549
5550 2010-07-15  Karl Berry  <karl@gnu.org>
5551
5552         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
5553
5554 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
5555
5556         getcwd: on Solaris, work better if ancestors are inaccessible
5557         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
5558         buffer and size, try again with a large buffer.  This works better
5559         on Solaris, since its getcwd succeeds even if the path to the root
5560         is inaccessible, and this is helpful in common cases such as .zfs
5561         hidden directories.  Problem reported by J Chapman Flack in
5562         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
5563         Use system getcwd if it's declared, not merely if it's partly
5564         working; use the partly-working test only to avoid needless effort
5565         if the system getcwd fails.
5566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
5567         comment that was already obsolete and is now even more obsolete.
5568         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
5569         now might call strdup.
5570
5571 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
5572
5573         pthread: Add enough so that coreutils/src/sort.c compiles.
5574         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
5575         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
5576         gnulib. Include <sched.h> and <time.h>, as per POSIX.
5577         Include <sys/types.h>, in case it defines pthread_t.
5578         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
5579         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
5580         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
5581         (pthread_rwlockattr_t, pthread_spinlock_t):
5582         New typedefs, if HAVE_PTHREAD_T is not defined.
5583         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
5584         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
5585         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
5586         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
5587         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
5588         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
5589         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
5590         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
5591         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
5592         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
5593         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
5594         New macros.
5595         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
5596         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
5597         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
5598         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
5599         (pthread_spin_unlock): New dummy functions.
5600         (pthread_create): Return EAGAIN; don't set errno.
5601         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
5602         require AC_C_INLINE.
5603         * modules/pthread (Depends-on): Add sched, time.
5604         (pthread.h): Use AM_V_GEN.
5605
5606 2010-07-13  Bruno Haible  <bruno@clisp.org>
5607
5608         striconveh: Don't malloc memory if the result buffer is sufficient.
5609         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
5610         buffer if its size is sufficient.
5611         Reported by Ludovic Courtès <ludo@gnu.org>.
5612
5613 2010-07-13  Bruno Haible  <bruno@clisp.org>
5614
5615         strtod: Add safety check.
5616         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
5617
5618 2010-07-12  Bruno Haible  <bruno@clisp.org>
5619
5620         Unify tests that set gl_cv_func_ldexpl_no_libm.
5621         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
5622         gl_FUNC_LDEXPL.
5623         (gl_FUNC_LDEXPL): Invoke it.
5624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5625
5626 2010-07-12  Bruno Haible  <bruno@clisp.org>
5627
5628         Unify tests that set gl_cv_func_ldexp_no_libm.
5629         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
5630         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
5631         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
5632         (configure.ac): Simply invoke gl_FUNC_LDEXP.
5633         * modules/strtod (Files): Add m4/ldexp.m4.
5634
5635 2010-07-12  Bruno Haible  <bruno@clisp.org>
5636
5637         Unify tests that set gl_cv_func_frexpl_no_libm.
5638         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
5639         gl_FUNC_FREXPL_NO_LIBM.
5640         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
5641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5642
5643 2010-07-12  Bruno Haible  <bruno@clisp.org>
5644
5645         Unify tests that set gl_cv_func_frexp_no_libm.
5646         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
5647         gl_FUNC_FREXP_NO_LIBM.
5648         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
5649         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5650
5651 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5652
5653         memcoll: clarify sizes versus lengths, document better, and tweak perf
5654         * lib/memcoll.c (strcoll_loop, memcoll0):
5655         Improve quality of descriptive comments.  Name variables
5656         consistently as to whether they are lengths (which do not include
5657         terminating null) versus sizes (which do).
5658         * lib/xmemcoll.c (xmemcoll0): Likewise.
5659         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
5660         returned when s1size == 0; this is easier to compile and saves
5661         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
5662
5663 2010-07-12  Bruno Haible  <bruno@clisp.org>
5664
5665         Tests for module '_Exit'.
5666         * modules/_Exit-tests: New file.
5667         * tests/test-_Exit.sh: New file.
5668         * tests/test-_Exit.c: New file.
5669
5670         New module '_Exit'.
5671         * lib/stdlib.in.h (__attribute__): New macro.
5672         (_Exit): New declaration.
5673         * lib/_Exit.c: New file.
5674         * m4/_Exit.m4: New file.
5675         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
5676         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
5677         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
5678         * modules/_Exit: New file.
5679         * tests/test-stdlib-c++.cc (_Exit): Check signature.
5680         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
5681
5682 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5683
5684         strtod: make it more-accurate typically, and don't require libm
5685         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
5686         Include limits.h.  Don't include string.h.
5687         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
5688         (locale_isspace): New function, so that no casts are needed to
5689         check whether *s is a space.
5690         (ldexp): Provide an unused dummy if not available.
5691         (scale_radix_exp, parse_number, underlying_strtod): New functions.
5692         (strtod): Use them.  This implementation prefers to use the
5693         underlying strtod if available, falling back on our own code
5694         only to fix known bugs.  This is more likely to produce an
5695         accurate result.  Also, it avoids the use of libm functions.
5696         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
5697         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
5698         was absent, but it caused a test failure with coreutils.
5699         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
5700         with libm.
5701         * modules/strtod (Makefile.am, Link): libm is no longer needed.
5702         * modules/strtod-tests (Makefile.am): Likewise.
5703
5704 2010-07-11  Pádraig Brady  <P@draigBrady.com>
5705             Bruno Haible  <bruno@clisp.org>
5706
5707         unistr/u8-strchr: Optimize ASCII argument case.
5708         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
5709
5710 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5711
5712         (x)memcoll: minor tweaks
5713         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
5714         is after the type that it qualifies.
5715         (memcoll0): Likewise.
5716         * lib/memcoll.h (memcoll0): Likewise.
5717         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
5718         * lib/xmemcoll.h (xmemcoll0): Likewise.
5719         * lib/memcoll.c (memcoll0): Correct the comment.  This function
5720         differs from memcoll in that the NUL byte is part of the argument.
5721         Omit the abort-checks, as performance is a real issue here.  Plus,
5722         the checks were wrong anyway (an off-by-one error).  Omit local
5723         variable 'diff', as it's a bit clearer that way.
5724         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
5725         no longer needed.
5726
5727 2010-07-08  Chen Guo <chenguo4@yahoo.com>
5728
5729         (x)memcoll: speedup when input is known to be NUL delimited
5730         * lib/memcoll.c: Include stdlib.
5731         (memcoll0) New function.
5732         (strcoll_loop) New function, refactored for use in both memcoll
5733         and memcoll0.
5734         * lib/memcoll.h: Add prototype for memcoll0.
5735         * lib/xmemcoll.c: (xmemcoll0) New function.
5736         (collate_error) New function, refactored for use in both xmemcoll
5737         and xmemcoll0.
5738         * lib/xmemcoll.h: Add prototype for xmemcoll0.
5739         * m4/memcoll.m4: add inline invocation.
5740
5741 2010-07-06  Pádraig Brady  <P@draigBrady.com>
5742
5743         * build-aux/bootstrap: Remove any local translations
5744         from the translation project synchronization directory,
5745         so that local only translations are not distributed.
5746
5747 2010-07-04  Bruno Haible  <bruno@clisp.org>
5748
5749         fsusage: Clarify which code applies to which platforms.
5750         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
5751         platform.
5752         * lib/fsusage.c (get_fs_usage): Likewise.
5753
5754 2010-07-04  Bruno Haible  <bruno@clisp.org>
5755
5756         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
5757         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
5758         Reported by Martin Lambers <marlam@marlam.de>.
5759
5760 2010-07-04  Jim Meyering  <meyering@redhat.com>
5761
5762         hash: once again explicitly disallow insertion of NULL
5763         * lib/hash.c (hash_insert0): Reinstate just-removed test:
5764         inserting a NULL pointer cannot work with these functions.
5765         Add a comment with details.
5766         This reverts part of the 2010-07-01 commit, 5bef1a35
5767         "hash: extend module to deal with non-pointer keys".
5768
5769 2010-07-01  Bruno Haible  <bruno@clisp.org>
5770
5771         stdbool: Update doc.
5772         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
5773         Info from Christian Weisgerber <naddy@mips.inka.de>.
5774
5775 2010-07-01  Jim Meyering  <meyering@redhat.com>
5776
5777         hash: extend module to deal with non-pointer keys
5778         * lib/hash.c (hash_insert0): New interface, much like hash_insert
5779         but that allows insertion of non-pointer entries.
5780         Do not disallow an ENTRY value of NULL.
5781         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
5782         * lib/hash.h (hash_insert0): Declare.
5783
5784 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5785
5786         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
5787         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
5788         not present (i.e. with autoconf 2.59 and when using gettextize, not
5789         gnulib), require AC_GNU_SOURCE instead.
5790
5791 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
5792
5793         idpriv-drop: Fix tests.
5794         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
5795         not to the test-idpriv-droptemp program.
5796
5797 2010-06-29  Bruno Haible  <bruno@clisp.org>
5798
5799         string: Fix syntax error with g++ 2.96.
5800         * lib/string.in.h (__pure__): Remove definition.
5801         (_GL_ATTRIBUTE_PURE): New macro.
5802         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
5803         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
5804         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5805
5806 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
5807
5808         unitypes: Fix bug introduced on 2010-05-18.
5809         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
5810
5811 2010-06-22  Eric Blake  <eblake@redhat.com>
5812
5813         memmem: slight optimization
5814         * lib/str-two-way.h (critical_factorization): Update comments.
5815         Reduce work during factorization phase.
5816         Reported by Carlos Bueno <carlos@bueno.org>.
5817
5818 2010-06-21  Bruno Haible  <bruno@clisp.org>
5819
5820         Fix HAVE_CALLOC_POSIX misnomer.
5821         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
5822         !HAVE_CALLOC_POSIX.
5823         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
5824         HAVE_CALLOC_POSIX.
5825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
5826         instead of HAVE_CALLOC_POSIX.
5827         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
5828         HAVE_CALLOC_POSIX.
5829
5830         Use modern idiom for calloc() replacement.
5831         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
5832         AC_FUNC_CALLOC.
5833         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
5834         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
5835         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5836         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
5837         (gl_REPLACE_CALLOC): New macro.
5838
5839 2010-06-21  Bruno Haible  <bruno@clisp.org>
5840
5841         Fix HAVE_REALLOC_POSIX misnomer.
5842         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
5843         !HAVE_REALLOC_POSIX.
5844         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
5845         HAVE_REALLOC_POSIX.
5846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
5847         instead of HAVE_REALLOC_POSIX.
5848         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
5849         HAVE_REALLOC_POSIX.
5850
5851         Use modern idiom for realloc() replacement.
5852         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
5853         AC_FUNC_REALLOC.
5854         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
5855         Autoconf's AC_FUNC_REALLOC.
5856         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5857         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
5858         (gl_REPLACE_REALLOC): New macro.
5859         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5860
5861 2010-06-21  Bruno Haible  <bruno@clisp.org>
5862
5863         Fix HAVE_MALLOC_POSIX misnomer.
5864         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
5865         !HAVE_MALLOC_POSIX.
5866         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
5867         HAVE_MALLOC_POSIX.
5868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
5869         instead of HAVE_MALLOC_POSIX.
5870         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
5871         HAVE_MALLOC_POSIX.
5872
5873         Use modern idiom for malloc() replacement.
5874         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
5875         AC_FUNC_MALLOC.
5876         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
5877         Autoconf's AC_FUNC_MALLOC.
5878         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5879         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
5880         (gl_REPLACE_MALLOC): New macro.
5881         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5882
5883 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
5884
5885         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
5886         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
5887         This macro takes 3 arguments, not 4.
5888
5889 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
5890
5891         ipv6: fix detection under mingw
5892         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
5893         in6_addr.
5894
5895 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
5896
5897         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
5898         that strtod() works when cross-compiling to a glibc version known
5899         to work.
5900
5901 2010-06-15  Bruno Haible  <bruno@clisp.org>
5902
5903         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
5904
5905 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
5906
5907         select: Correct timeout.
5908         * lib/select.c (rpl_select): Compute wait_timeout correctly.
5909
5910 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5911
5912         git-version-gen: init shell var to avoid env var influence
5913         * build-aux/git-version-gen (v): Init shell var to empty.
5914
5915 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5916
5917         priv-set: Don't assume that priv.h exists merely because getppriv does.
5918         See Jan Andersen's bug report about AIX 5L in
5919         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
5920         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
5921         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
5922         * lib/priv-set.h: Likewise.
5923         * tests/test-priv-set.c: Likewise.
5924
5925 2010-06-13  Bruno Haible  <bruno@clisp.org>
5926
5927         relocatable: Make it easier to test whether to install wrappers.
5928         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
5929         RELOCATABLE_VIA_WRAPPER.
5930
5931 2010-06-13  Bruno Haible  <bruno@clisp.org>
5932
5933         gnulib-tool: Display specified modules and dependencies differently.
5934         * gnulib-tool (func_show_module_list): New function.
5935         (func_import, func_create_testdir): Invoke it.
5936         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5937
5938 2010-06-13  Bruno Haible  <bruno@clisp.org>
5939
5940         gnulib-tool: Align code of func_import and func_create_testdir.
5941         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
5942         specified_modules.
5943
5944 2010-06-12  Jim Meyering  <meyering@redhat.com>
5945
5946         test-inttostr: avoid spurious failure on Solaris 9
5947         * tests/test-inttostr.c (main): Skip the test when snprintf fails
5948         to accept "%ju".  Reported by Bruno Haible.
5949
5950 2010-06-11  Jim Meyering  <meyering@redhat.com>
5951
5952         test-sys_socket: mark variables as used more readably
5953         * tests/test-sys_socket.c (main): Mark otherwise unused variables
5954         as "used" explicitly via (void) statement casts.  This is more
5955         readable than using them in an artificial return expression.
5956         Suggestion from Bruno Haible.
5957
5958 2010-06-11  Bruno Haible  <bruno@clisp.org>
5959
5960         Avoid some more warnings from "gcc -Wwrite-strings".
5961         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
5962         to 'const char *'.
5963         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
5964         * tests/test-c-strcasestr.c (main): Likewise.
5965         * tests/test-mbscasestr1.c (main): Likewise.
5966         * tests/test-mbscasestr2.c (main): Likewise.
5967         * tests/test-memmem.c (main): Likewise.
5968         * tests/test-strstr.c (main): Likewise.
5969         * tests/test-strcasestr.c (main): Likewise.
5970
5971 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5972
5973         init.sh: change framework_failure_ to fail with status 99, not 1
5974         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
5975         automake's parallel-tests rule that this is an unexpected failure,
5976         even if the test is listed in XFAIL_TESTS.
5977
5978 2010-06-11  Jim Meyering  <meyering@redhat.com>
5979
5980         test-inttostr: avoid warnings about 4-6KB literal strings
5981         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
5982         Include "macros.h", for its definition of ASSERT.
5983         (CK): s/assert/ASSERT/
5984         * modules/inttostr-tests (Files): Add macros.h.
5985
5986         init.sh: don't use $ME_ or skip_ before they are defined
5987         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
5988         their first uses.  Also hoist their companions: warn_, fail_,
5989         framework_failure_, $stderr_fileno.  Prompted by a patch from
5990         Stefano Lattarini.
5991
5992         test-sys_socket: avoid set-but-not-used warnings from gcc
5993         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
5994         avoid warning about set-but-not-used variables.
5995
5996         test-xvasprintf: avoid 'const' discard warnings
5997         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
5998         "const" when assigning from literal strings.
5999         (test_xasprintf): Add "void" in function argument list to placate
6000         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6001
6002         tests: avoid compilation warnings in argmatch and exclude tests...
6003         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6004         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6005         Since it always exits, declare with the "noreturn" attribute.
6006         * tests/test-argmatch.c: Likewise.
6007
6008         tests: avoid 'const' discard warnings in mbsstr tests
6009         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6010         * tests/test-mbsstr2.c (main): Likewise.
6011
6012         test-verify: avoid warning from gcc's -Wmissing-declarations
6013         * tests/test-verify.c (function): Declare to be static.
6014
6015         test-inttostr.c: include <string.h> for use of strcmp
6016         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6017
6018         test-linkat: avoid failed assertion on "other" architectures
6019         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6020         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6021         sparc: https://bugs.launchpad.net/bugs/591968
6022
6023 2010-06-11  Jim Meyering  <meyering@redhat.com>
6024
6025         printf.m4: avoid autoconf's "Expanded Before Required" warning
6026         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6027         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6028         autoconf warning.
6029
6030 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6031
6032         Replacement header templates are now named with ".in", not "_".
6033         * doc/gnulib-intro.texi: Correct.
6034
6035 2010-06-10  Jim Meyering  <meyering@redhat.com>
6036
6037         inttostr-tests: depend on snprintf, not snprintf-posix
6038         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6039         snprintf-posix, to avoid this aclocal failure:
6040           missing file gnulib-tests/vasnprintf.c
6041           configure.ac:45: error: expected source file, required through \
6042           AC_LIBSOURCES, not found
6043
6044 2010-06-10  Jim Meyering  <meyering@redhat.com>
6045
6046         inttostr: add a new function, inttostr, and tests
6047         The namesake function was not available.  The existence of the
6048         template file, inttostr.c makes its addition nontrivial.
6049         * lib/anytostr.c: Rename from inttostr.c.
6050         (anytostr): Rename from inttostr.
6051         * lib/inttostr.c: New file.
6052         * modules/inttostr (Files): Add anytostr.c.
6053         (Makefile.am): Set lib_SOURCES instead of ...
6054         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6055         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6056         * lib/offtostr.c: Likewise.
6057         * lib/uinttostr.c: Likewise.
6058         * lib/umaxtostr.c: Likewise.
6059         * modules/inttostr-tests: New file.
6060         * tests/test-inttostr.c: New file.  Test these functions.
6061
6062 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6063             Bruno Haible  <bruno@clisp.org>
6064
6065         Add "Extending Gnulib" chapter to manual.
6066         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6067         chapter.
6068         (Extending Gnulib): New chapter.
6069         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6070         chapter.
6071
6072 2010-06-09  Bruno Haible  <bruno@clisp.org>
6073
6074         Avoid relocwrapper link errors due to gnulib replacement functions.
6075         * lib/areadlink.c: Use the system's malloc, realloc functions.
6076         (areadlink): Set errno to ENOMEM explicitly.
6077         * modules/areadlink (Depends-on): Remove malloc-posix.
6078         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6079
6080 2010-06-09  Bruno Haible  <bruno@clisp.org>
6081
6082         Avoid relocwrapper link errors due to gnulib replacement functions.
6083         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6084         * lib/malloca.c: Likewise.
6085         * lib/relocatable.c: Likewise.
6086         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6087         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6088         * lib/setenv.c: Use the system's malloc, realloc functions.
6089         * lib/strerror.c: Use the system's sprintf function.
6090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6091
6092 2010-06-04  Bruno Haible  <bruno@clisp.org>
6093
6094         Prefer documented low-level autoconf macro names.
6095         * m4/lib-link.m4: Use m4_translit instead of translit.
6096         * m4/environ.m4: Likewise.
6097         * m4/mathfunc.m4: Likewise.
6098         * m4/onceonly.m4: Likewise.
6099         * m4/stdint.m4: Likewise.
6100         Suggested by Eric Blake.
6101
6102 2010-06-04  Martin Lambers  <marlam@marlam.de>
6103             Bruno Haible  <bruno@clisp.org>
6104
6105         havelib: Allow library names with '+' characters.
6106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6107         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6108
6109 2010-06-09  Bruno Haible  <bruno@clisp.org>
6110
6111         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6112         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6113         realloc failed.
6114
6115 2010-06-08  Peter Simons  <simons@cryp.to>
6116
6117         maint.mk: make the news-check rule more configurable
6118         * top/maint.mk (news-check-lines-spec) New variable.
6119         (news-check): Use "sed -n 1,10p" in place of "head".
6120
6121 2010-06-07  Jim Meyering  <meyering@redhat.com>
6122
6123         do-release-commit-and-tag: fix typo in --help
6124         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6125
6126         regex: avoid new dead-code warning with gcc-4.6.0
6127         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6128         if-block containing a while-loop.  It's been unused for at least
6129         5 years.
6130
6131 2010-06-05  Bruno Haible  <bruno@clisp.org>
6132
6133         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6134         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6135
6136 2010-06-04  Bruno Haible  <bruno@clisp.org>
6137
6138         Update to GNU gettext 0.18.1.
6139         * modules/gettext (configure.ac): Require gettext infrastructure from
6140         version 0.18.1.
6141
6142 2010-06-03  Bruno Haible  <bruno@clisp.org>
6143
6144         Don't use AC_LIBOBJ with file names in subdirectories.
6145         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6146         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6147         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6148         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6149         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6150         gl_LIBUNISTRING_LIBSOURCE.
6151         (Makefile.am): Augment lib_SOURCES here, conditionally.
6152         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6153
6154 2010-06-03  Bruno Haible  <bruno@clisp.org>
6155
6156         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6157         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6158         expansion does not end with a newline.
6159         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6160         unnecessary newline.
6161
6162 2010-06-03  Bruno Haible  <bruno@clisp.org>
6163
6164         Reduce dependencies.
6165         * tests/test-quotearg.h: New file, extracted from
6166         tests/test-quotearg.c.
6167         * tests/test-quotearg-simple.c: New file, extracted from
6168         tests/test-quotearg.c.
6169         * tests/test-quotearg.c: Don't include <ctype.h>.
6170         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6171         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6172         use_quote_double_quotes, use_quotearg_colon): Moved to
6173         tests/test-quotearg.h.
6174         (results_g, flag_results, custom_quotes, custom_results): Moved
6175         to tests/test-quotearg-simple.c.
6176         (main): Moved the part that does not depend on gettext to
6177         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6178         performed.
6179         * modules/quotearg-simple: New file.
6180         * modules/quotearg-simple-tests: New file.
6181         * modules/quotearg (Depends-on): Add quotearg-simple.
6182         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6183         (Files): Add tests/test-quotearg.h.
6184         Reported by Paolo Bonzini.
6185
6186 2010-06-03  Bruno Haible  <bruno@clisp.org>
6187
6188         Reduce dependencies.
6189         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6190
6191 2010-06-03  Bruno Haible  <bruno@clisp.org>
6192
6193         time: Undefine more broken macros.
6194         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6195         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6196         Reported by Eric Blake.
6197
6198 2010-06-03  Bruno Haible  <bruno@clisp.org>
6199
6200         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6201         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6202         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6203         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6204         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6205         Reported by Ludovic Courtès <ludo@gnu.org>.
6206
6207 2010-06-02  Eric Blake  <eblake@redhat.com>
6208
6209         time: work with mingw + pthreads-win32 library
6210         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6211         if timespec is defined only in pthread.h.
6212         * modules/time (Makefile.am): Substitute it.
6213         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6214         <pthread.h>, when needed.
6215         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6216         from the library.
6217
6218 2010-05-31  Bruno Haible  <bruno@clisp.org>
6219
6220         Avoid expanding two macros in the wrong order.
6221         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6222         gl_LIBUNISTRING if it is defined.
6223         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6224         autoconf >= 2.64.
6225         Reported by Ludovic Courtès <ludo@gnu.org>.
6226
6227 2010-05-27  Jim Meyering  <meyering@redhat.com>
6228
6229         maint.mk: also prohibit "#undef" of always-defined symbols
6230         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6231         Allow more than one space before the symbol name.
6232         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6233         the regexp uses alternation.
6234
6235 2010-05-26  Eric Blake  <eblake@redhat.com>
6236
6237         maint.mk: avoid echo -e
6238         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6239         Convert all uses of echo -* to printf.
6240         Reported by Matthias Bolte.
6241
6242 2010-05-25  Bruno Haible  <bruno@clisp.org>
6243
6244         Update to GNU gettext 0.18, part 2.
6245         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6246         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6247
6248 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6249
6250         Add missing include in test-pwrite.c.
6251         * tests/test-pwrite.c: Include string.h, for strcmp.
6252
6253 2010-05-24  Bruno Haible  <bruno@clisp.org>
6254
6255         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6256
6257 2010-05-24  Bruno Haible  <bruno@clisp.org>
6258
6259         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6260         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6261         iconveh_error argument.
6262         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6263         U_STRCONV_TO_LOCALE.
6264         * lib/unistr/u16-strcoll.c: Likewise.
6265         * lib/unistr/u32-strcoll.c: Likewise.
6266         * modules/unistr/u8-strcoll (Depends-on): Add
6267         uniconv/u8-strconv-to-enc, localcharset. Remove
6268         uniconv/u8-strconv-to-locale.
6269         (configure.ac): Bump version number.
6270         * modules/unistr/u16-strcoll (Depends-on): Add
6271         uniconv/u16-strconv-to-enc, localcharset. Remove
6272         uniconv/u16-strconv-to-locale.
6273         (configure.ac): Bump version number.
6274         * modules/unistr/u32-strcoll (Depends-on): Add
6275         uniconv/u32-strconv-to-enc, localcharset. Remove
6276         uniconv/u32-strconv-to-locale.
6277         (configure.ac): Bump version number.
6278
6279 2010-05-24  Bruno Haible  <bruno@clisp.org>
6280
6281         Avoid a test failure on NetBSD 5.0.
6282         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6283         an iconv() bug.
6284
6285 2010-05-24  Bruno Haible  <bruno@clisp.org>
6286
6287         Adjust #include directive style.
6288         * modules/regex (Includes): Recommend to write <regex.h>.
6289
6290 2010-05-24  Bruno Haible  <bruno@clisp.org>
6291
6292         regex: Don't require alloca.
6293         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6294         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6295         only inside if (0).
6296
6297 2010-05-23  Jim Meyering  <meyering@redhat.com>
6298
6299         test-renameat.c: include <sys/stat.h>
6300         * tests/test-renameat.c: Include <sys/stat.h>; required for
6301         definition of S_IS* macros.
6302
6303 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6304
6305         Update maintainer documentation for 'relocatable-prog' module.
6306         * doc/relocatable-maint.texi: Update.
6307         Comments by Bruno Haible.
6308
6309 2010-05-23  Bruno Haible  <bruno@clisp.org>
6310
6311         git-merge-changelog: Enable --split-merged-entry by default.
6312         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6313         (usage): Don't mention this option any more.
6314         Reported by Ralf Wildenhues.
6315
6316 2010-05-23  Jim Meyering  <meyering@redhat.com>
6317
6318         test-pwrite: do not leave behind a test file named "out"
6319         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6320         The trivial-looking use of init.sh is really necessary.
6321         It ensures that the temporary file, "out", is created in
6322         a temporary directory, and removed upon termination.
6323         * tests/test-pwrite.sh: Re-add file.
6324         * modules/pwrite-tests: Reference it.
6325
6326 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6327
6328         Fix output redirection buglet in init.sh.
6329         * tests/init.sh: Fix redirection of stderr.
6330
6331 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6332
6333         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6334
6335 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6336
6337         * modules/valgrind-tests: New file.
6338         * m4/valgrind-tests.m4: New file.
6339         * doc/valgrind-tests.texi: New file.
6340         * doc/gnulib.texi (Running self-tests under valgrind): New
6341         section.
6342
6343 2010-05-19  Bruno Haible  <bruno@clisp.org>
6344
6345         Clean up dead code in recent commit.
6346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6347         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6348         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6349         Suggested by Paolo Bonzini.
6350
6351 2010-05-19  Bruno Haible  <bruno@clisp.org>
6352
6353         Avoid valgrind error reports from libunistring.
6354         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6355         * modules/libunistring (Files): Add it.
6356         * modules/libunistring-optional (Files): Likewise.
6357
6358 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6359             Bruno Haible  <bruno@clisp.org>
6360
6361         New module 'libunistring-optional'.
6362         * modules/libunistring-optional: New file.
6363         * m4/libunistring-base.m4: New file.
6364         * m4/libunistring-optional.m4: New file.
6365         * lib/unicase.in.h: Renamed from lib/unicase.h.
6366         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6367         * lib/unictype.in.h: Renamed from lib/unictype.h.
6368         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6369         * lib/uniname.in.h: Renamed from lib/uniname.h.
6370         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6371         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6372         * lib/unistr.in.h: Renamed from lib/unistr.h.
6373         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6374         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6375         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6376         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6377         gl_LIBUNISTRING. If the library was found, determine the installed
6378         version and set LIBUNISTRING_VERSION.
6379         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6380         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6381         handle a configuration option --with-included-libunistring.
6382         * modules/libunistring (Files): Add m4/absolute-header.m4.
6383         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6384         Add m4/libunistring-base.m4.
6385         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6386         (Makefile.am): Build unicase.h from unicase.in.h.
6387         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6388         Add m4/libunistring-base.m4.
6389         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6390         (Makefile.am): Build uniconv.h from uniconv.in.h.
6391         * modules/unictype/base (Files): Use unictype.in.h instead of
6392         unictype.h. Add m4/libunistring-base.m4.
6393         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6394         (Makefile.am): Build unictype.h from unictype.in.h.
6395         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6396         Add m4/libunistring-base.m4.
6397         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6398         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6399         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6400         Add m4/libunistring-base.m4.
6401         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6402         (Makefile.am): Build uniname.h from uniname.in.h.
6403         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6404         Add m4/libunistring-base.m4.
6405         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6406         (Makefile.am): Build uninorm.h from uninorm.in.h.
6407         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6408         unistdio.h. Add m4/libunistring-base.m4.
6409         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6410         (Makefile.am): Build unistdio.h from unistdio.in.h.
6411         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6412         Add m4/libunistring-base.m4.
6413         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6414         (Makefile.am): Build unistr.h from unistr.in.h.
6415         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6416         Add m4/libunistring-base.m4.
6417         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6418         (Makefile.am): Build unitypes.h from unitypes.in.h.
6419         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6420         Add m4/libunistring-base.m4.
6421         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6422         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6423         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6424         uniwidth.h. Add m4/libunistring-base.m4.
6425         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6426         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6427         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6428         instead of augmenting lib_SOURCES.
6429         * modules/unicase/empty-suffix-context: Likewise.
6430         * modules/unicase/locale-language: Likewise.
6431         * modules/unicase/tolower: Likewise.
6432         * modules/unicase/totitle: Likewise.
6433         * modules/unicase/toupper: Likewise.
6434         * modules/unicase/u8-casecmp: Likewise.
6435         * modules/unicase/u8-casecoll: Likewise.
6436         * modules/unicase/u8-casefold: Likewise.
6437         * modules/unicase/u8-casexfrm: Likewise.
6438         * modules/unicase/u8-ct-casefold: Likewise.
6439         * modules/unicase/u8-ct-tolower: Likewise.
6440         * modules/unicase/u8-ct-totitle: Likewise.
6441         * modules/unicase/u8-ct-toupper: Likewise.
6442         * modules/unicase/u8-is-cased: Likewise.
6443         * modules/unicase/u8-is-casefolded: Likewise.
6444         * modules/unicase/u8-is-lowercase: Likewise.
6445         * modules/unicase/u8-is-titlecase: Likewise.
6446         * modules/unicase/u8-is-uppercase: Likewise.
6447         * modules/unicase/u8-prefix-context: Likewise.
6448         * modules/unicase/u8-suffix-context: Likewise.
6449         * modules/unicase/u8-tolower: Likewise.
6450         * modules/unicase/u8-totitle: Likewise.
6451         * modules/unicase/u8-toupper: Likewise.
6452         * modules/unicase/u16-casecmp: Likewise.
6453         * modules/unicase/u16-casecoll: Likewise.
6454         * modules/unicase/u16-casefold: Likewise.
6455         * modules/unicase/u16-casexfrm: Likewise.
6456         * modules/unicase/u16-ct-casefold: Likewise.
6457         * modules/unicase/u16-ct-tolower: Likewise.
6458         * modules/unicase/u16-ct-totitle: Likewise.
6459         * modules/unicase/u16-ct-toupper: Likewise.
6460         * modules/unicase/u16-is-cased: Likewise.
6461         * modules/unicase/u16-is-casefolded: Likewise.
6462         * modules/unicase/u16-is-lowercase: Likewise.
6463         * modules/unicase/u16-is-titlecase: Likewise.
6464         * modules/unicase/u16-is-uppercase: Likewise.
6465         * modules/unicase/u16-prefix-context: Likewise.
6466         * modules/unicase/u16-suffix-context: Likewise.
6467         * modules/unicase/u16-tolower: Likewise.
6468         * modules/unicase/u16-totitle: Likewise.
6469         * modules/unicase/u16-toupper: Likewise.
6470         * modules/unicase/u32-casecmp: Likewise.
6471         * modules/unicase/u32-casecoll: Likewise.
6472         * modules/unicase/u32-casefold: Likewise.
6473         * modules/unicase/u32-casexfrm: Likewise.
6474         * modules/unicase/u32-ct-casefold: Likewise.
6475         * modules/unicase/u32-ct-tolower: Likewise.
6476         * modules/unicase/u32-ct-totitle: Likewise.
6477         * modules/unicase/u32-ct-toupper: Likewise.
6478         * modules/unicase/u32-is-cased: Likewise.
6479         * modules/unicase/u32-is-casefolded: Likewise.
6480         * modules/unicase/u32-is-lowercase: Likewise.
6481         * modules/unicase/u32-is-titlecase: Likewise.
6482         * modules/unicase/u32-is-uppercase: Likewise.
6483         * modules/unicase/u32-prefix-context: Likewise.
6484         * modules/unicase/u32-suffix-context: Likewise.
6485         * modules/unicase/u32-tolower: Likewise.
6486         * modules/unicase/u32-totitle: Likewise.
6487         * modules/unicase/u32-toupper: Likewise.
6488         * modules/unicase/ulc-casecmp: Likewise.
6489         * modules/unicase/ulc-casecoll: Likewise.
6490         * modules/unicase/ulc-casexfrm: Likewise.
6491         * modules/uniconv/u8-conv-from-enc: Likewise.
6492         * modules/uniconv/u8-conv-to-enc: Likewise.
6493         * modules/uniconv/u8-strconv-from-enc: Likewise.
6494         * modules/uniconv/u8-strconv-from-locale: Likewise.
6495         * modules/uniconv/u8-strconv-to-enc: Likewise.
6496         * modules/uniconv/u8-strconv-to-locale: Likewise.
6497         * modules/uniconv/u16-conv-from-enc: Likewise.
6498         * modules/uniconv/u16-conv-to-enc: Likewise.
6499         * modules/uniconv/u16-strconv-from-enc: Likewise.
6500         * modules/uniconv/u16-strconv-from-locale: Likewise.
6501         * modules/uniconv/u16-strconv-to-enc: Likewise.
6502         * modules/uniconv/u16-strconv-to-locale: Likewise.
6503         * modules/uniconv/u32-conv-from-enc: Likewise.
6504         * modules/uniconv/u32-conv-to-enc: Likewise.
6505         * modules/uniconv/u32-strconv-from-enc: Likewise.
6506         * modules/uniconv/u32-strconv-from-locale: Likewise.
6507         * modules/uniconv/u32-strconv-to-enc: Likewise.
6508         * modules/uniconv/u32-strconv-to-locale: Likewise.
6509         * modules/unictype/bidicategory-byname: Likewise.
6510         * modules/unictype/bidicategory-name: Likewise.
6511         * modules/unictype/bidicategory-of: Likewise.
6512         * modules/unictype/bidicategory-test: Likewise.
6513         * modules/unictype/block-list: Likewise.
6514         * modules/unictype/block-test: Likewise.
6515         * modules/unictype/category-C: Likewise.
6516         * modules/unictype/category-Cc: Likewise.
6517         * modules/unictype/category-Cf: Likewise.
6518         * modules/unictype/category-Cn: Likewise.
6519         * modules/unictype/category-Co: Likewise.
6520         * modules/unictype/category-Cs: Likewise.
6521         * modules/unictype/category-L: Likewise.
6522         * modules/unictype/category-Ll: Likewise.
6523         * modules/unictype/category-Lm: Likewise.
6524         * modules/unictype/category-Lo: Likewise.
6525         * modules/unictype/category-Lt: Likewise.
6526         * modules/unictype/category-Lu: Likewise.
6527         * modules/unictype/category-M: Likewise.
6528         * modules/unictype/category-Mc: Likewise.
6529         * modules/unictype/category-Me: Likewise.
6530         * modules/unictype/category-Mn: Likewise.
6531         * modules/unictype/category-N: Likewise.
6532         * modules/unictype/category-Nd: Likewise.
6533         * modules/unictype/category-Nl: Likewise.
6534         * modules/unictype/category-No: Likewise.
6535         * modules/unictype/category-P: Likewise.
6536         * modules/unictype/category-Pc: Likewise.
6537         * modules/unictype/category-Pd: Likewise.
6538         * modules/unictype/category-Pe: Likewise.
6539         * modules/unictype/category-Pf: Likewise.
6540         * modules/unictype/category-Pi: Likewise.
6541         * modules/unictype/category-Po: Likewise.
6542         * modules/unictype/category-Ps: Likewise.
6543         * modules/unictype/category-S: Likewise.
6544         * modules/unictype/category-Sc: Likewise.
6545         * modules/unictype/category-Sk: Likewise.
6546         * modules/unictype/category-Sm: Likewise.
6547         * modules/unictype/category-So: Likewise.
6548         * modules/unictype/category-Z: Likewise.
6549         * modules/unictype/category-Zl: Likewise.
6550         * modules/unictype/category-Zp: Likewise.
6551         * modules/unictype/category-Zs: Likewise.
6552         * modules/unictype/category-and: Likewise.
6553         * modules/unictype/category-and-not: Likewise.
6554         * modules/unictype/category-byname: Likewise.
6555         * modules/unictype/category-name: Likewise.
6556         * modules/unictype/category-none: Likewise.
6557         * modules/unictype/category-of: Likewise.
6558         * modules/unictype/category-or: Likewise.
6559         * modules/unictype/category-test: Likewise.
6560         * modules/unictype/combining-class: Likewise.
6561         * modules/unictype/ctype-alnum: Likewise.
6562         * modules/unictype/ctype-alpha: Likewise.
6563         * modules/unictype/ctype-blank: Likewise.
6564         * modules/unictype/ctype-cntrl: Likewise.
6565         * modules/unictype/ctype-digit: Likewise.
6566         * modules/unictype/ctype-graph: Likewise.
6567         * modules/unictype/ctype-lower: Likewise.
6568         * modules/unictype/ctype-print: Likewise.
6569         * modules/unictype/ctype-punct: Likewise.
6570         * modules/unictype/ctype-space: Likewise.
6571         * modules/unictype/ctype-upper: Likewise.
6572         * modules/unictype/ctype-xdigit: Likewise.
6573         * modules/unictype/decimal-digit: Likewise.
6574         * modules/unictype/digit: Likewise.
6575         * modules/unictype/mirror: Likewise.
6576         * modules/unictype/numeric: Likewise.
6577         * modules/unictype/property-alphabetic: Likewise.
6578         * modules/unictype/property-ascii-hex-digit: Likewise.
6579         * modules/unictype/property-bidi-arabic-digit: Likewise.
6580         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
6581         * modules/unictype/property-bidi-block-separator: Likewise.
6582         * modules/unictype/property-bidi-boundary-neutral: Likewise.
6583         * modules/unictype/property-bidi-common-separator: Likewise.
6584         * modules/unictype/property-bidi-control: Likewise.
6585         * modules/unictype/property-bidi-embedding-or-override: Likewise.
6586         * modules/unictype/property-bidi-eur-num-separator: Likewise.
6587         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
6588         * modules/unictype/property-bidi-european-digit: Likewise.
6589         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
6590         * modules/unictype/property-bidi-left-to-right: Likewise.
6591         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
6592         * modules/unictype/property-bidi-other-neutral: Likewise.
6593         * modules/unictype/property-bidi-pdf: Likewise.
6594         * modules/unictype/property-bidi-segment-separator: Likewise.
6595         * modules/unictype/property-bidi-whitespace: Likewise.
6596         * modules/unictype/property-byname: Likewise.
6597         * modules/unictype/property-combining: Likewise.
6598         * modules/unictype/property-composite: Likewise.
6599         * modules/unictype/property-currency-symbol: Likewise.
6600         * modules/unictype/property-dash: Likewise.
6601         * modules/unictype/property-decimal-digit: Likewise.
6602         * modules/unictype/property-default-ignorable-code-point: Likewise.
6603         * modules/unictype/property-deprecated: Likewise.
6604         * modules/unictype/property-diacritic: Likewise.
6605         * modules/unictype/property-extender: Likewise.
6606         * modules/unictype/property-format-control: Likewise.
6607         * modules/unictype/property-grapheme-base: Likewise.
6608         * modules/unictype/property-grapheme-extend: Likewise.
6609         * modules/unictype/property-grapheme-link: Likewise.
6610         * modules/unictype/property-hex-digit: Likewise.
6611         * modules/unictype/property-hyphen: Likewise.
6612         * modules/unictype/property-id-continue: Likewise.
6613         * modules/unictype/property-id-start: Likewise.
6614         * modules/unictype/property-ideographic: Likewise.
6615         * modules/unictype/property-ids-binary-operator: Likewise.
6616         * modules/unictype/property-ids-trinary-operator: Likewise.
6617         * modules/unictype/property-ignorable-control: Likewise.
6618         * modules/unictype/property-iso-control: Likewise.
6619         * modules/unictype/property-join-control: Likewise.
6620         * modules/unictype/property-left-of-pair: Likewise.
6621         * modules/unictype/property-line-separator: Likewise.
6622         * modules/unictype/property-logical-order-exception: Likewise.
6623         * modules/unictype/property-lowercase: Likewise.
6624         * modules/unictype/property-math: Likewise.
6625         * modules/unictype/property-non-break: Likewise.
6626         * modules/unictype/property-not-a-character: Likewise.
6627         * modules/unictype/property-numeric: Likewise.
6628         * modules/unictype/property-other-alphabetic: Likewise.
6629         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
6630         * modules/unictype/property-other-grapheme-extend: Likewise.
6631         * modules/unictype/property-other-id-continue: Likewise.
6632         * modules/unictype/property-other-id-start: Likewise.
6633         * modules/unictype/property-other-lowercase: Likewise.
6634         * modules/unictype/property-other-math: Likewise.
6635         * modules/unictype/property-other-uppercase: Likewise.
6636         * modules/unictype/property-paired-punctuation: Likewise.
6637         * modules/unictype/property-paragraph-separator: Likewise.
6638         * modules/unictype/property-pattern-syntax: Likewise.
6639         * modules/unictype/property-pattern-white-space: Likewise.
6640         * modules/unictype/property-private-use: Likewise.
6641         * modules/unictype/property-punctuation: Likewise.
6642         * modules/unictype/property-quotation-mark: Likewise.
6643         * modules/unictype/property-radical: Likewise.
6644         * modules/unictype/property-sentence-terminal: Likewise.
6645         * modules/unictype/property-soft-dotted: Likewise.
6646         * modules/unictype/property-space: Likewise.
6647         * modules/unictype/property-terminal-punctuation: Likewise.
6648         * modules/unictype/property-test: Likewise.
6649         * modules/unictype/property-titlecase: Likewise.
6650         * modules/unictype/property-unassigned-code-value: Likewise.
6651         * modules/unictype/property-unified-ideograph: Likewise.
6652         * modules/unictype/property-uppercase: Likewise.
6653         * modules/unictype/property-variation-selector: Likewise.
6654         * modules/unictype/property-white-space: Likewise.
6655         * modules/unictype/property-xid-continue: Likewise.
6656         * modules/unictype/property-xid-start: Likewise.
6657         * modules/unictype/property-zero-width: Likewise.
6658         * modules/unictype/scripts: Likewise.
6659         * modules/unictype/syntax-c-ident: Likewise.
6660         * modules/unictype/syntax-c-whitespace: Likewise.
6661         * modules/unictype/syntax-java-ident: Likewise.
6662         * modules/unictype/syntax-java-whitespace: Likewise.
6663         * modules/unilbrk/u8-possible-linebreaks: Likewise.
6664         * modules/unilbrk/u8-width-linebreaks: Likewise.
6665         * modules/unilbrk/u16-possible-linebreaks: Likewise.
6666         * modules/unilbrk/u16-width-linebreaks: Likewise.
6667         * modules/unilbrk/u32-possible-linebreaks: Likewise.
6668         * modules/unilbrk/u32-width-linebreaks: Likewise.
6669         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
6670         * modules/unilbrk/ulc-width-linebreaks: Likewise.
6671         * modules/uniname/uniname: Likewise.
6672         * modules/uninorm/canonical-decomposition: Likewise.
6673         * modules/uninorm/composition: Likewise.
6674         * modules/uninorm/decomposing-form: Likewise.
6675         * modules/uninorm/decomposition: Likewise.
6676         * modules/uninorm/filter: Likewise.
6677         * modules/uninorm/nfc: Likewise.
6678         * modules/uninorm/nfd: Likewise.
6679         * modules/uninorm/nfkc: Likewise.
6680         * modules/uninorm/nfkd: Likewise.
6681         * modules/uninorm/u8-normalize: Likewise.
6682         * modules/uninorm/u8-normcmp: Likewise.
6683         * modules/uninorm/u8-normcoll: Likewise.
6684         * modules/uninorm/u8-normxfrm: Likewise.
6685         * modules/uninorm/u16-normalize: Likewise.
6686         * modules/uninorm/u16-normcmp: Likewise.
6687         * modules/uninorm/u16-normcoll: Likewise.
6688         * modules/uninorm/u16-normxfrm: Likewise.
6689         * modules/uninorm/u32-normalize: Likewise.
6690         * modules/uninorm/u32-normcmp: Likewise.
6691         * modules/uninorm/u32-normcoll: Likewise.
6692         * modules/uninorm/u32-normxfrm: Likewise.
6693         * modules/unistdio/u8-asnprintf: Likewise.
6694         * modules/unistdio/u8-asprintf: Likewise.
6695         * modules/unistdio/u8-snprintf: Likewise.
6696         * modules/unistdio/u8-sprintf: Likewise.
6697         * modules/unistdio/u8-u8-asnprintf: Likewise.
6698         * modules/unistdio/u8-u8-asprintf: Likewise.
6699         * modules/unistdio/u8-u8-snprintf: Likewise.
6700         * modules/unistdio/u8-u8-sprintf: Likewise.
6701         * modules/unistdio/u8-u8-vasnprintf: Likewise.
6702         * modules/unistdio/u8-u8-vasprintf: Likewise.
6703         * modules/unistdio/u8-u8-vsnprintf: Likewise.
6704         * modules/unistdio/u8-u8-vsprintf: Likewise.
6705         * modules/unistdio/u8-vasnprintf: Likewise.
6706         * modules/unistdio/u8-vasprintf: Likewise.
6707         * modules/unistdio/u8-vsnprintf: Likewise.
6708         * modules/unistdio/u8-vsprintf: Likewise.
6709         * modules/unistdio/u16-asnprintf: Likewise.
6710         * modules/unistdio/u16-asprintf: Likewise.
6711         * modules/unistdio/u16-snprintf: Likewise.
6712         * modules/unistdio/u16-sprintf: Likewise.
6713         * modules/unistdio/u16-u16-asnprintf: Likewise.
6714         * modules/unistdio/u16-u16-asprintf: Likewise.
6715         * modules/unistdio/u16-u16-snprintf: Likewise.
6716         * modules/unistdio/u16-u16-sprintf: Likewise.
6717         * modules/unistdio/u16-u16-vasnprintf: Likewise.
6718         * modules/unistdio/u16-u16-vasprintf: Likewise.
6719         * modules/unistdio/u16-u16-vsnprintf: Likewise.
6720         * modules/unistdio/u16-u16-vsprintf: Likewise.
6721         * modules/unistdio/u16-vasnprintf: Likewise.
6722         * modules/unistdio/u16-vasprintf: Likewise.
6723         * modules/unistdio/u16-vsnprintf: Likewise.
6724         * modules/unistdio/u16-vsprintf: Likewise.
6725         * modules/unistdio/u32-asnprintf: Likewise.
6726         * modules/unistdio/u32-asprintf: Likewise.
6727         * modules/unistdio/u32-snprintf: Likewise.
6728         * modules/unistdio/u32-sprintf: Likewise.
6729         * modules/unistdio/u32-u32-asnprintf: Likewise.
6730         * modules/unistdio/u32-u32-asprintf: Likewise.
6731         * modules/unistdio/u32-u32-snprintf: Likewise.
6732         * modules/unistdio/u32-u32-sprintf: Likewise.
6733         * modules/unistdio/u32-u32-vasnprintf: Likewise.
6734         * modules/unistdio/u32-u32-vasprintf: Likewise.
6735         * modules/unistdio/u32-u32-vsnprintf: Likewise.
6736         * modules/unistdio/u32-u32-vsprintf: Likewise.
6737         * modules/unistdio/u32-vasnprintf: Likewise.
6738         * modules/unistdio/u32-vasprintf: Likewise.
6739         * modules/unistdio/u32-vsnprintf: Likewise.
6740         * modules/unistdio/u32-vsprintf: Likewise.
6741         * modules/unistdio/ulc-asnprintf: Likewise.
6742         * modules/unistdio/ulc-asprintf: Likewise.
6743         * modules/unistdio/ulc-fprintf: Likewise.
6744         * modules/unistdio/ulc-snprintf: Likewise.
6745         * modules/unistdio/ulc-sprintf: Likewise.
6746         * modules/unistdio/ulc-vasnprintf: Likewise.
6747         * modules/unistdio/ulc-vasprintf: Likewise.
6748         * modules/unistdio/ulc-vfprintf: Likewise.
6749         * modules/unistdio/ulc-vsnprintf: Likewise.
6750         * modules/unistdio/ulc-vsprintf: Likewise.
6751         * modules/unistr/u8-check: Likewise.
6752         * modules/unistr/u8-chr: Likewise.
6753         * modules/unistr/u8-cmp: Likewise.
6754         * modules/unistr/u8-cmp2: Likewise.
6755         * modules/unistr/u8-cpy: Likewise.
6756         * modules/unistr/u8-cpy-alloc: Likewise.
6757         * modules/unistr/u8-endswith: Likewise.
6758         * modules/unistr/u8-mblen: Likewise.
6759         * modules/unistr/u8-mbsnlen: Likewise.
6760         * modules/unistr/u8-mbtouc: Likewise.
6761         * modules/unistr/u8-mbtouc-unsafe: Likewise.
6762         * modules/unistr/u8-mbtoucr: Likewise.
6763         * modules/unistr/u8-move: Likewise.
6764         * modules/unistr/u8-next: Likewise.
6765         * modules/unistr/u8-prev: Likewise.
6766         * modules/unistr/u8-set: Likewise.
6767         * modules/unistr/u8-startswith: Likewise.
6768         * modules/unistr/u8-stpcpy: Likewise.
6769         * modules/unistr/u8-stpncpy: Likewise.
6770         * modules/unistr/u8-strcat: Likewise.
6771         * modules/unistr/u8-strchr: Likewise.
6772         * modules/unistr/u8-strcmp: Likewise.
6773         * modules/unistr/u8-strcoll: Likewise.
6774         * modules/unistr/u8-strcpy: Likewise.
6775         * modules/unistr/u8-strcspn: Likewise.
6776         * modules/unistr/u8-strdup: Likewise.
6777         * modules/unistr/u8-strlen: Likewise.
6778         * modules/unistr/u8-strmblen: Likewise.
6779         * modules/unistr/u8-strmbtouc: Likewise.
6780         * modules/unistr/u8-strncat: Likewise.
6781         * modules/unistr/u8-strncmp: Likewise.
6782         * modules/unistr/u8-strncpy: Likewise.
6783         * modules/unistr/u8-strnlen: Likewise.
6784         * modules/unistr/u8-strpbrk: Likewise.
6785         * modules/unistr/u8-strrchr: Likewise.
6786         * modules/unistr/u8-strspn: Likewise.
6787         * modules/unistr/u8-strstr: Likewise.
6788         * modules/unistr/u8-strtok: Likewise.
6789         * modules/unistr/u8-to-u16: Likewise.
6790         * modules/unistr/u8-to-u32: Likewise.
6791         * modules/unistr/u8-uctomb: Likewise.
6792         * modules/unistr/u16-check: Likewise.
6793         * modules/unistr/u16-chr: Likewise.
6794         * modules/unistr/u16-cmp: Likewise.
6795         * modules/unistr/u16-cmp2: Likewise.
6796         * modules/unistr/u16-cpy: Likewise.
6797         * modules/unistr/u16-cpy-alloc: Likewise.
6798         * modules/unistr/u16-endswith: Likewise.
6799         * modules/unistr/u16-mblen: Likewise.
6800         * modules/unistr/u16-mbsnlen: Likewise.
6801         * modules/unistr/u16-mbtouc: Likewise.
6802         * modules/unistr/u16-mbtouc-unsafe: Likewise.
6803         * modules/unistr/u16-mbtoucr: Likewise.
6804         * modules/unistr/u16-move: Likewise.
6805         * modules/unistr/u16-next: Likewise.
6806         * modules/unistr/u16-prev: Likewise.
6807         * modules/unistr/u16-set: Likewise.
6808         * modules/unistr/u16-startswith: Likewise.
6809         * modules/unistr/u16-stpcpy: Likewise.
6810         * modules/unistr/u16-stpncpy: Likewise.
6811         * modules/unistr/u16-strcat: Likewise.
6812         * modules/unistr/u16-strchr: Likewise.
6813         * modules/unistr/u16-strcmp: Likewise.
6814         * modules/unistr/u16-strcoll: Likewise.
6815         * modules/unistr/u16-strcpy: Likewise.
6816         * modules/unistr/u16-strcspn: Likewise.
6817         * modules/unistr/u16-strdup: Likewise.
6818         * modules/unistr/u16-strlen: Likewise.
6819         * modules/unistr/u16-strmblen: Likewise.
6820         * modules/unistr/u16-strmbtouc: Likewise.
6821         * modules/unistr/u16-strncat: Likewise.
6822         * modules/unistr/u16-strncmp: Likewise.
6823         * modules/unistr/u16-strncpy: Likewise.
6824         * modules/unistr/u16-strnlen: Likewise.
6825         * modules/unistr/u16-strpbrk: Likewise.
6826         * modules/unistr/u16-strrchr: Likewise.
6827         * modules/unistr/u16-strspn: Likewise.
6828         * modules/unistr/u16-strstr: Likewise.
6829         * modules/unistr/u16-strtok: Likewise.
6830         * modules/unistr/u16-to-u32: Likewise.
6831         * modules/unistr/u16-to-u8: Likewise.
6832         * modules/unistr/u16-uctomb: Likewise.
6833         * modules/unistr/u32-check: Likewise.
6834         * modules/unistr/u32-chr: Likewise.
6835         * modules/unistr/u32-cmp: Likewise.
6836         * modules/unistr/u32-cmp2: Likewise.
6837         * modules/unistr/u32-cpy: Likewise.
6838         * modules/unistr/u32-cpy-alloc: Likewise.
6839         * modules/unistr/u32-endswith: Likewise.
6840         * modules/unistr/u32-mblen: Likewise.
6841         * modules/unistr/u32-mbsnlen: Likewise.
6842         * modules/unistr/u32-mbtouc: Likewise.
6843         * modules/unistr/u32-mbtouc-unsafe: Likewise.
6844         * modules/unistr/u32-mbtoucr: Likewise.
6845         * modules/unistr/u32-move: Likewise.
6846         * modules/unistr/u32-next: Likewise.
6847         * modules/unistr/u32-prev: Likewise.
6848         * modules/unistr/u32-set: Likewise.
6849         * modules/unistr/u32-startswith: Likewise.
6850         * modules/unistr/u32-stpcpy: Likewise.
6851         * modules/unistr/u32-stpncpy: Likewise.
6852         * modules/unistr/u32-strcat: Likewise.
6853         * modules/unistr/u32-strchr: Likewise.
6854         * modules/unistr/u32-strcmp: Likewise.
6855         * modules/unistr/u32-strcoll: Likewise.
6856         * modules/unistr/u32-strcpy: Likewise.
6857         * modules/unistr/u32-strcspn: Likewise.
6858         * modules/unistr/u32-strdup: Likewise.
6859         * modules/unistr/u32-strlen: Likewise.
6860         * modules/unistr/u32-strmblen: Likewise.
6861         * modules/unistr/u32-strmbtouc: Likewise.
6862         * modules/unistr/u32-strncat: Likewise.
6863         * modules/unistr/u32-strncmp: Likewise.
6864         * modules/unistr/u32-strncpy: Likewise.
6865         * modules/unistr/u32-strnlen: Likewise.
6866         * modules/unistr/u32-strpbrk: Likewise.
6867         * modules/unistr/u32-strrchr: Likewise.
6868         * modules/unistr/u32-strspn: Likewise.
6869         * modules/unistr/u32-strstr: Likewise.
6870         * modules/unistr/u32-strtok: Likewise.
6871         * modules/unistr/u32-to-u16: Likewise.
6872         * modules/unistr/u32-to-u8: Likewise.
6873         * modules/unistr/u32-uctomb: Likewise.
6874         * modules/uniwbrk/u8-wordbreaks: Likewise.
6875         * modules/uniwbrk/u16-wordbreaks: Likewise.
6876         * modules/uniwbrk/u32-wordbreaks: Likewise.
6877         * modules/uniwbrk/ulc-wordbreaks: Likewise.
6878         * modules/uniwbrk/wordbreak-property: Likewise.
6879         * modules/uniwidth/u8-strwidth: Likewise.
6880         * modules/uniwidth/u8-width: Likewise.
6881         * modules/uniwidth/u16-strwidth: Likewise.
6882         * modules/uniwidth/u16-width: Likewise.
6883         * modules/uniwidth/u32-strwidth: Likewise.
6884         * modules/uniwidth/u32-width: Likewise.
6885         * modules/uniwidth/width: Likewise.
6886         * modules/unicase/cased-tests (Makefile.am): Link all test programs
6887         with $(LIBUNISTRING).
6888         * modules/unicase/ignorable-tests: Likewise.
6889         * modules/unicase/locale-language-tests: Likewise.
6890         * modules/unicase/tolower-tests: Likewise.
6891         * modules/unicase/totitle-tests: Likewise.
6892         * modules/unicase/toupper-tests: Likewise.
6893         * modules/unicase/u8-casecmp-tests: Likewise.
6894         * modules/unicase/u8-casecoll-tests: Likewise.
6895         * modules/unicase/u8-casefold-tests: Likewise.
6896         * modules/unicase/u8-is-cased-tests: Likewise.
6897         * modules/unicase/u8-is-casefolded-tests: Likewise.
6898         * modules/unicase/u8-is-lowercase-tests: Likewise.
6899         * modules/unicase/u8-is-titlecase-tests: Likewise.
6900         * modules/unicase/u8-is-uppercase-tests: Likewise.
6901         * modules/unicase/u8-tolower-tests: Likewise.
6902         * modules/unicase/u8-totitle-tests: Likewise.
6903         * modules/unicase/u8-toupper-tests: Likewise.
6904         * modules/unicase/u16-casecmp-tests: Likewise.
6905         * modules/unicase/u16-casecoll-tests: Likewise.
6906         * modules/unicase/u16-casefold-tests: Likewise.
6907         * modules/unicase/u16-is-cased-tests: Likewise.
6908         * modules/unicase/u16-is-casefolded-tests: Likewise.
6909         * modules/unicase/u16-is-lowercase-tests: Likewise.
6910         * modules/unicase/u16-is-titlecase-tests: Likewise.
6911         * modules/unicase/u16-is-uppercase-tests: Likewise.
6912         * modules/unicase/u16-tolower-tests: Likewise.
6913         * modules/unicase/u16-totitle-tests: Likewise.
6914         * modules/unicase/u16-toupper-tests: Likewise.
6915         * modules/unicase/u32-casecmp-tests: Likewise.
6916         * modules/unicase/u32-casecoll-tests: Likewise.
6917         * modules/unicase/u32-casefold-tests: Likewise.
6918         * modules/unicase/u32-is-cased-tests: Likewise.
6919         * modules/unicase/u32-is-casefolded-tests: Likewise.
6920         * modules/unicase/u32-is-lowercase-tests: Likewise.
6921         * modules/unicase/u32-is-titlecase-tests: Likewise.
6922         * modules/unicase/u32-is-uppercase-tests: Likewise.
6923         * modules/unicase/u32-tolower-tests: Likewise.
6924         * modules/unicase/u32-totitle-tests: Likewise.
6925         * modules/unicase/u32-toupper-tests: Likewise.
6926         * modules/unicase/ulc-casecmp-tests: Likewise.
6927         * modules/unicase/ulc-casecoll-tests: Likewise.
6928         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
6929         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
6930         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
6931         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
6932         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
6933         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
6934         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
6935         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
6936         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
6937         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
6938         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
6939         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
6940         * modules/unictype/bidicategory-byname-tests: Likewise.
6941         * modules/unictype/bidicategory-name-tests: Likewise.
6942         * modules/unictype/bidicategory-of-tests: Likewise.
6943         * modules/unictype/bidicategory-test-tests: Likewise.
6944         * modules/unictype/block-list-tests: Likewise.
6945         * modules/unictype/block-of-tests: Likewise.
6946         * modules/unictype/block-test-tests: Likewise.
6947         * modules/unictype/category-C-tests: Likewise.
6948         * modules/unictype/category-Cc-tests: Likewise.
6949         * modules/unictype/category-Cf-tests: Likewise.
6950         * modules/unictype/category-Cn-tests: Likewise.
6951         * modules/unictype/category-Co-tests: Likewise.
6952         * modules/unictype/category-Cs-tests: Likewise.
6953         * modules/unictype/category-L-tests: Likewise.
6954         * modules/unictype/category-Ll-tests: Likewise.
6955         * modules/unictype/category-Lm-tests: Likewise.
6956         * modules/unictype/category-Lo-tests: Likewise.
6957         * modules/unictype/category-Lt-tests: Likewise.
6958         * modules/unictype/category-Lu-tests: Likewise.
6959         * modules/unictype/category-M-tests: Likewise.
6960         * modules/unictype/category-Mc-tests: Likewise.
6961         * modules/unictype/category-Me-tests: Likewise.
6962         * modules/unictype/category-Mn-tests: Likewise.
6963         * modules/unictype/category-N-tests: Likewise.
6964         * modules/unictype/category-Nd-tests: Likewise.
6965         * modules/unictype/category-Nl-tests: Likewise.
6966         * modules/unictype/category-No-tests: Likewise.
6967         * modules/unictype/category-P-tests: Likewise.
6968         * modules/unictype/category-Pc-tests: Likewise.
6969         * modules/unictype/category-Pd-tests: Likewise.
6970         * modules/unictype/category-Pe-tests: Likewise.
6971         * modules/unictype/category-Pf-tests: Likewise.
6972         * modules/unictype/category-Pi-tests: Likewise.
6973         * modules/unictype/category-Po-tests: Likewise.
6974         * modules/unictype/category-Ps-tests: Likewise.
6975         * modules/unictype/category-S-tests: Likewise.
6976         * modules/unictype/category-Sc-tests: Likewise.
6977         * modules/unictype/category-Sk-tests: Likewise.
6978         * modules/unictype/category-Sm-tests: Likewise.
6979         * modules/unictype/category-So-tests: Likewise.
6980         * modules/unictype/category-Z-tests: Likewise.
6981         * modules/unictype/category-Zl-tests: Likewise.
6982         * modules/unictype/category-Zp-tests: Likewise.
6983         * modules/unictype/category-Zs-tests: Likewise.
6984         * modules/unictype/category-and-not-tests: Likewise.
6985         * modules/unictype/category-and-tests: Likewise.
6986         * modules/unictype/category-byname-tests: Likewise.
6987         * modules/unictype/category-name-tests: Likewise.
6988         * modules/unictype/category-none-tests: Likewise.
6989         * modules/unictype/category-of-tests: Likewise.
6990         * modules/unictype/category-or-tests: Likewise.
6991         * modules/unictype/category-test-withtable-tests: Likewise.
6992         * modules/unictype/combining-class-tests: Likewise.
6993         * modules/unictype/ctype-alnum-tests: Likewise.
6994         * modules/unictype/ctype-alpha-tests: Likewise.
6995         * modules/unictype/ctype-blank-tests: Likewise.
6996         * modules/unictype/ctype-cntrl-tests: Likewise.
6997         * modules/unictype/ctype-digit-tests: Likewise.
6998         * modules/unictype/ctype-graph-tests: Likewise.
6999         * modules/unictype/ctype-lower-tests: Likewise.
7000         * modules/unictype/ctype-print-tests: Likewise.
7001         * modules/unictype/ctype-punct-tests: Likewise.
7002         * modules/unictype/ctype-space-tests: Likewise.
7003         * modules/unictype/ctype-upper-tests: Likewise.
7004         * modules/unictype/ctype-xdigit-tests: Likewise.
7005         * modules/unictype/decimal-digit-tests: Likewise.
7006         * modules/unictype/digit-tests: Likewise.
7007         * modules/unictype/mirror-tests: Likewise.
7008         * modules/unictype/numeric-tests: Likewise.
7009         * modules/unictype/property-alphabetic-tests: Likewise.
7010         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7011         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7012         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7013         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7014         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7015         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7016         * modules/unictype/property-bidi-control-tests: Likewise.
7017         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7018         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7019         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7020         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7021         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7022         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7023         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7024         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7025         * modules/unictype/property-bidi-pdf-tests: Likewise.
7026         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7027         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7028         * modules/unictype/property-byname-tests: Likewise.
7029         * modules/unictype/property-combining-tests: Likewise.
7030         * modules/unictype/property-composite-tests: Likewise.
7031         * modules/unictype/property-currency-symbol-tests: Likewise.
7032         * modules/unictype/property-dash-tests: Likewise.
7033         * modules/unictype/property-decimal-digit-tests: Likewise.
7034         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7035         * modules/unictype/property-deprecated-tests: Likewise.
7036         * modules/unictype/property-diacritic-tests: Likewise.
7037         * modules/unictype/property-extender-tests: Likewise.
7038         * modules/unictype/property-format-control-tests: Likewise.
7039         * modules/unictype/property-grapheme-base-tests: Likewise.
7040         * modules/unictype/property-grapheme-extend-tests: Likewise.
7041         * modules/unictype/property-grapheme-link-tests: Likewise.
7042         * modules/unictype/property-hex-digit-tests: Likewise.
7043         * modules/unictype/property-hyphen-tests: Likewise.
7044         * modules/unictype/property-id-continue-tests: Likewise.
7045         * modules/unictype/property-id-start-tests: Likewise.
7046         * modules/unictype/property-ideographic-tests: Likewise.
7047         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7048         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7049         * modules/unictype/property-ignorable-control-tests: Likewise.
7050         * modules/unictype/property-iso-control-tests: Likewise.
7051         * modules/unictype/property-join-control-tests: Likewise.
7052         * modules/unictype/property-left-of-pair-tests: Likewise.
7053         * modules/unictype/property-line-separator-tests: Likewise.
7054         * modules/unictype/property-logical-order-exception-tests: Likewise.
7055         * modules/unictype/property-lowercase-tests: Likewise.
7056         * modules/unictype/property-math-tests: Likewise.
7057         * modules/unictype/property-non-break-tests: Likewise.
7058         * modules/unictype/property-not-a-character-tests: Likewise.
7059         * modules/unictype/property-numeric-tests: Likewise.
7060         * modules/unictype/property-other-alphabetic-tests: Likewise.
7061         * modules/unictype/property-other-default-ignorable-code-point-tests:
7062         Likewise.
7063         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7064         * modules/unictype/property-other-id-continue-tests: Likewise.
7065         * modules/unictype/property-other-id-start-tests: Likewise.
7066         * modules/unictype/property-other-lowercase-tests: Likewise.
7067         * modules/unictype/property-other-math-tests: Likewise.
7068         * modules/unictype/property-other-uppercase-tests: Likewise.
7069         * modules/unictype/property-paired-punctuation-tests: Likewise.
7070         * modules/unictype/property-paragraph-separator-tests: Likewise.
7071         * modules/unictype/property-pattern-syntax-tests: Likewise.
7072         * modules/unictype/property-pattern-white-space-tests: Likewise.
7073         * modules/unictype/property-private-use-tests: Likewise.
7074         * modules/unictype/property-punctuation-tests: Likewise.
7075         * modules/unictype/property-quotation-mark-tests: Likewise.
7076         * modules/unictype/property-radical-tests: Likewise.
7077         * modules/unictype/property-sentence-terminal-tests: Likewise.
7078         * modules/unictype/property-soft-dotted-tests: Likewise.
7079         * modules/unictype/property-space-tests: Likewise.
7080         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7081         * modules/unictype/property-test-tests: Likewise.
7082         * modules/unictype/property-titlecase-tests: Likewise.
7083         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7084         * modules/unictype/property-unified-ideograph-tests: Likewise.
7085         * modules/unictype/property-uppercase-tests: Likewise.
7086         * modules/unictype/property-variation-selector-tests: Likewise.
7087         * modules/unictype/property-white-space-tests: Likewise.
7088         * modules/unictype/property-xid-continue-tests: Likewise.
7089         * modules/unictype/property-xid-start-tests: Likewise.
7090         * modules/unictype/property-zero-width-tests: Likewise.
7091         * modules/unictype/scripts-tests: Likewise.
7092         * modules/unictype/syntax-c-ident-tests: Likewise.
7093         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7094         * modules/unictype/syntax-java-ident-tests: Likewise.
7095         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7096         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7097         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7098         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7099         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7100         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7101         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7102         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7103         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7104         * modules/uniname/uniname-tests: Likewise.
7105         * modules/uninorm/canonical-decomposition-tests: Likewise.
7106         * modules/uninorm/compat-decomposition-tests: Likewise.
7107         * modules/uninorm/composition-tests: Likewise.
7108         * modules/uninorm/decomposing-form-tests: Likewise.
7109         * modules/uninorm/decomposition-tests: Likewise.
7110         * modules/uninorm/filter-tests: Likewise.
7111         * modules/uninorm/nfc-tests: Likewise.
7112         * modules/uninorm/nfd-tests: Likewise.
7113         * modules/uninorm/nfkc-tests: Likewise.
7114         * modules/uninorm/nfkd-tests: Likewise.
7115         * modules/uninorm/u8-normcmp-tests: Likewise.
7116         * modules/uninorm/u8-normcoll-tests: Likewise.
7117         * modules/uninorm/u16-normcmp-tests: Likewise.
7118         * modules/uninorm/u16-normcoll-tests: Likewise.
7119         * modules/uninorm/u32-normcmp-tests: Likewise.
7120         * modules/uninorm/u32-normcoll-tests: Likewise.
7121         * modules/unistdio/u8-asnprintf-tests: Likewise.
7122         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7123         * modules/unistdio/u8-vasprintf-tests: Likewise.
7124         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7125         * modules/unistdio/u8-vsprintf-tests: Likewise.
7126         * modules/unistdio/u16-asnprintf-tests: Likewise.
7127         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7128         * modules/unistdio/u16-vasprintf-tests: Likewise.
7129         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7130         * modules/unistdio/u16-vsprintf-tests: Likewise.
7131         * modules/unistdio/u32-asnprintf-tests: Likewise.
7132         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7133         * modules/unistdio/u32-vasprintf-tests: Likewise.
7134         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7135         * modules/unistdio/u32-vsprintf-tests: Likewise.
7136         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7137         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7138         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7139         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7140         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7141         * modules/unistr/u8-check-tests: Likewise.
7142         * modules/unistr/u8-chr-tests: Likewise.
7143         * modules/unistr/u8-cmp-tests: Likewise.
7144         * modules/unistr/u8-cmp2-tests: Likewise.
7145         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7146         * modules/unistr/u8-cpy-tests: Likewise.
7147         * modules/unistr/u8-mblen-tests: Likewise.
7148         * modules/unistr/u8-mbsnlen-tests: Likewise.
7149         * modules/unistr/u8-mbtouc-tests: Likewise.
7150         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7151         * modules/unistr/u8-mbtoucr-tests: Likewise.
7152         * modules/unistr/u8-move-tests: Likewise.
7153         * modules/unistr/u8-next-tests: Likewise.
7154         * modules/unistr/u8-prev-tests: Likewise.
7155         * modules/unistr/u8-set-tests: Likewise.
7156         * modules/unistr/u8-stpcpy-tests: Likewise.
7157         * modules/unistr/u8-stpncpy-tests: Likewise.
7158         * modules/unistr/u8-strcat-tests: Likewise.
7159         * modules/unistr/u8-strcmp-tests: Likewise.
7160         * modules/unistr/u8-strcoll-tests: Likewise.
7161         * modules/unistr/u8-strcpy-tests: Likewise.
7162         * modules/unistr/u8-strdup-tests: Likewise.
7163         * modules/unistr/u8-strlen-tests: Likewise.
7164         * modules/unistr/u8-strmblen-tests: Likewise.
7165         * modules/unistr/u8-strmbtouc-tests: Likewise.
7166         * modules/unistr/u8-strncat-tests: Likewise.
7167         * modules/unistr/u8-strncmp-tests: Likewise.
7168         * modules/unistr/u8-strncpy-tests: Likewise.
7169         * modules/unistr/u8-strnlen-tests: Likewise.
7170         * modules/unistr/u8-to-u16-tests: Likewise.
7171         * modules/unistr/u8-to-u32-tests: Likewise.
7172         * modules/unistr/u8-uctomb-tests: Likewise.
7173         * modules/unistr/u16-check-tests: Likewise.
7174         * modules/unistr/u16-chr-tests: Likewise.
7175         * modules/unistr/u16-cmp-tests: Likewise.
7176         * modules/unistr/u16-cmp2-tests: Likewise.
7177         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7178         * modules/unistr/u16-cpy-tests: Likewise.
7179         * modules/unistr/u16-mblen-tests: Likewise.
7180         * modules/unistr/u16-mbsnlen-tests: Likewise.
7181         * modules/unistr/u16-mbtouc-tests: Likewise.
7182         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7183         * modules/unistr/u16-mbtoucr-tests: Likewise.
7184         * modules/unistr/u16-move-tests: Likewise.
7185         * modules/unistr/u16-next-tests: Likewise.
7186         * modules/unistr/u16-prev-tests: Likewise.
7187         * modules/unistr/u16-set-tests: Likewise.
7188         * modules/unistr/u16-stpcpy-tests: Likewise.
7189         * modules/unistr/u16-stpncpy-tests: Likewise.
7190         * modules/unistr/u16-strcat-tests: Likewise.
7191         * modules/unistr/u16-strcmp-tests: Likewise.
7192         * modules/unistr/u16-strcoll-tests: Likewise.
7193         * modules/unistr/u16-strcpy-tests: Likewise.
7194         * modules/unistr/u16-strdup-tests: Likewise.
7195         * modules/unistr/u16-strlen-tests: Likewise.
7196         * modules/unistr/u16-strmblen-tests: Likewise.
7197         * modules/unistr/u16-strmbtouc-tests: Likewise.
7198         * modules/unistr/u16-strncat-tests: Likewise.
7199         * modules/unistr/u16-strncmp-tests: Likewise.
7200         * modules/unistr/u16-strncpy-tests: Likewise.
7201         * modules/unistr/u16-strnlen-tests: Likewise.
7202         * modules/unistr/u16-to-u32-tests: Likewise.
7203         * modules/unistr/u16-to-u8-tests: Likewise.
7204         * modules/unistr/u16-uctomb-tests: Likewise.
7205         * modules/unistr/u32-check-tests: Likewise.
7206         * modules/unistr/u32-chr-tests: Likewise.
7207         * modules/unistr/u32-cmp-tests: Likewise.
7208         * modules/unistr/u32-cmp2-tests: Likewise.
7209         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7210         * modules/unistr/u32-cpy-tests: Likewise.
7211         * modules/unistr/u32-mblen-tests: Likewise.
7212         * modules/unistr/u32-mbsnlen-tests: Likewise.
7213         * modules/unistr/u32-mbtouc-tests: Likewise.
7214         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7215         * modules/unistr/u32-mbtoucr-tests: Likewise.
7216         * modules/unistr/u32-move-tests: Likewise.
7217         * modules/unistr/u32-next-tests: Likewise.
7218         * modules/unistr/u32-prev-tests: Likewise.
7219         * modules/unistr/u32-set-tests: Likewise.
7220         * modules/unistr/u32-stpcpy-tests: Likewise.
7221         * modules/unistr/u32-stpncpy-tests: Likewise.
7222         * modules/unistr/u32-strcat-tests: Likewise.
7223         * modules/unistr/u32-strcmp-tests: Likewise.
7224         * modules/unistr/u32-strcoll-tests: Likewise.
7225         * modules/unistr/u32-strcpy-tests: Likewise.
7226         * modules/unistr/u32-strdup-tests: Likewise.
7227         * modules/unistr/u32-strlen-tests: Likewise.
7228         * modules/unistr/u32-strmblen-tests: Likewise.
7229         * modules/unistr/u32-strmbtouc-tests: Likewise.
7230         * modules/unistr/u32-strncat-tests: Likewise.
7231         * modules/unistr/u32-strncmp-tests: Likewise.
7232         * modules/unistr/u32-strncpy-tests: Likewise.
7233         * modules/unistr/u32-strnlen-tests: Likewise.
7234         * modules/unistr/u32-to-u16-tests: Likewise.
7235         * modules/unistr/u32-to-u8-tests: Likewise.
7236         * modules/unistr/u32-uctomb-tests: Likewise.
7237         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7238         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7239         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7240         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7241         * modules/uniwidth/u8-strwidth-tests: Likewise.
7242         * modules/uniwidth/u8-width-tests: Likewise.
7243         * modules/uniwidth/u16-strwidth-tests: Likewise.
7244         * modules/uniwidth/u16-width-tests: Likewise.
7245         * modules/uniwidth/u32-strwidth-tests: Likewise.
7246         * modules/uniwidth/u32-width-tests: Likewise.
7247         * modules/uniwidth/width-tests: Likewise.
7248
7249 2010-05-18  Richard Jones  <rjones@redhat.com>
7250
7251         doc: users.txt: list hivex
7252         * users.txt: Add hivex.
7253
7254 2010-05-18  Richard Jones  <rjones@redhat.com>
7255
7256         doc: users.txt: list febootstrap
7257         * users.txt: Add febootstrap.
7258
7259 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7260
7261         bootstrap: fix an error when gnulib is not used as a git submodule
7262         * build-aux/bootstrap (gnulib_path): If its length is zero then
7263         assign "gnulib" to it.
7264         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7265
7266 2010-05-16  Bruno Haible  <bruno@clisp.org>
7267
7268         Avoid autoconf warnings about AM_ICONV.
7269         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7270         2.64.
7271
7272 2010-05-16  Bruno Haible  <bruno@clisp.org>
7273
7274         absolute-header: Make the macro usable in more situations.
7275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7276         from gl_ABSOLUTE_HEADER.
7277         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7278
7279 2010-05-16  James Youngman  <jay@gnu.org>
7280
7281         doc: update users.txt
7282         * users.txt: Add CSSC.
7283
7284 2010-05-16  Jim Meyering  <meyering@redhat.com>
7285
7286         init.sh: fix an error in the previous change; add more comments
7287         * tests/init.sh: Compare exit code in loop against 9, not 2.
7288         Patch by Bruno Haible.
7289         Make the two tests more similar by adding an empty "then" clause.
7290         Add comments.
7291
7292         init.sh: avoid unnecessary shell re-exec
7293         * tests/init.sh: Improve the re-exec-required check to first test the
7294         current shell.  If it passes the test, do not search for a shell that
7295         does pass, and do not re-exec.  This test is particularly contorted to
7296         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7297         of $(...) evokes a syntax error and causes immediate shell exit with
7298         status 2.  Bruno Haible reported that the re-exec made it impossible
7299         to single-step through any init.sh-using script.
7300
7301 2010-05-16  Bruno Haible  <bruno@clisp.org>
7302
7303         Fix collision between gnulib's and libintl's printf replacements.
7304         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7305         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7306         (printf): When using GNU C, map the __printf__ function to rpl_printf
7307         via __asm__. When not using GNU C, define rpl_printf instead of
7308         __printf__.
7309         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7310         commit.
7311         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7312         commit.
7313         * m4/asm-underscore.m4: New file.
7314         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7315         * modules/stdio (Files): Add m4/asm-underscore.m4.
7316         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7317         Reported by Ben Pfaff.
7318
7319 2010-05-16  Bruno Haible  <bruno@clisp.org>
7320
7321         verify: Avoid skipping the test on openSUSE 11.0.
7322         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7323
7324 2010-05-13  Bruno Haible  <bruno@clisp.org>
7325
7326         Avoid useless warnings from G++.
7327         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7328         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7329         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7330
7331 2010-05-11  Jim Meyering  <meyering@redhat.com>
7332
7333         maint.mk: tweak preceding change
7334         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7335         regexps tighter by anchoring at EOL, and make the new group "shy"
7336         for slightly decreased overhead.
7337
7338 2010-05-11  Eric Blake  <eblake@redhat.com>
7339
7340         maint.mk: gnulib doesn't guarantee NSIG
7341         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7342
7343 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7344
7345         test-pwrite.c: Remove unused variable declaration.
7346         * tests/test-pwrite.c (main): Remove read_buf declaration.
7347
7348         Remove useless test-pwrite.sh file.
7349         * tests/test-pwrite.sh: Delete file.
7350         * modules/pwrite-tests: Remove references.
7351         Reported by Bruno Haible.
7352
7353 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7354
7355         init.sh: fix a typo
7356         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7357
7358 2010-05-10  Jim Meyering  <meyering@redhat.com>
7359
7360         maint.mk: avoid using a temporary file in the always-defined-macros check
7361         * top/maint.mk (.re-defmac): Remove rule.
7362         (gl_trap_): Remove definition.
7363         (sc_prohibit_always-defined_macros): Rewrite not to create and
7364         depend on a temporary file.  Instead, depend on GNU grep's ability
7365         to read a list of regular expressions from stdin when given "-f -".
7366
7367 2010-05-09  Bruno Haible  <bruno@clisp.org>
7368
7369         Update to GNU gettext 0.18, part 1.
7370         * m4/gettext.m4: Update to GNU gettext 0.18.
7371         * m4/intl.m4: Likewise.
7372         * m4/po.m4: Likewise.
7373         * modules/gettext (Files): Add m4/fcntl-o.m4.
7374         (configure.ac): Require gettext infrastructure from version 0.18.
7375
7376 2010-05-09  Jim Meyering  <meyering@redhat.com>
7377
7378         init.sh: enable MALLOC_PERTURB_
7379         * tests/init.sh: Enable glibc's malloc-perturbing option.
7380
7381         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7382         With my recent change in init.sh from the two-line form:
7383             -#   : ${srcdir=.}
7384             -#   . "$srcdir/init.sh"; path_prepend_ .
7385             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7386         I noticed that using the one-line form would cause this test
7387         to fail with a false-positive, or to stop working altogether,
7388         depending on whether help-version changed or all the tests did.
7389         * top/maint.mk (_hv_regex): Remove this definition.
7390         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7391         (_hv_regex_strong): Use a stronger regex to check for conformance.
7392         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7393         Give a separate diagnostic for lack of conforming use.
7394
7395         maint.mk: prohibit definition of symbols defined by gnulib
7396         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7397         definition of symbols defined by gnulib.
7398
7399 2010-05-09  Bruno Haible  <bruno@clisp.org>
7400
7401         acl: Avoid test failure on Cygwin-hosted mingw.
7402         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7403
7404 2010-05-09  Bruno Haible  <bruno@clisp.org>
7405
7406         error: Use system's fcntl function.
7407         * lib/error.c (fcntl): Undefine.
7408
7409 2010-05-09  Jim Meyering  <meyering@redhat.com>
7410
7411         verify: adjust formatting to be more consistent
7412         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7413         argument-list '('s, and after one comma.
7414
7415 2010-05-09  Bruno Haible  <bruno@clisp.org>
7416
7417         error: More reliable output on mingw.
7418         * lib/error.c: Include <windows.h>.
7419         (is_open): New function.
7420         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7421         defined.
7422
7423 2010-05-09  Bruno Haible  <bruno@clisp.org>
7424
7425         vasnprintf: Fix syntax errors in libintl build on mingw.
7426         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7427         pad_ourselves and prec_ourselves after use.
7428
7429 2010-05-08  Bruno Haible  <bruno@clisp.org>
7430
7431         * lib/config.charset: Update comments for Cygwin 1.7.
7432         * lib/localcharset.c: Likewise.
7433
7434 2010-05-07  Jim Meyering  <meyering@redhat.com>
7435
7436         init.sh: improve comments
7437         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7438         . "${srcdir=.}/init.sh"; path_prepend_ .
7439         Add a note about path_prepend_ and the alternative of using
7440         TESTS_ENVIRONMENT.
7441
7442 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7443
7444         exclude: Unescape hashed patterns in wildcard mode.
7445         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7446         to the hash list.
7447         * tests/test-exclude8.sh: New test case.
7448         * modules/exclude-tests: Add new test.
7449
7450 2010-05-05  Eric Blake  <eblake@redhat.com>
7451
7452         verify: automate tests
7453         * modules/verify-tests: New module.
7454         * tests/test-verify.sh: New file.
7455         * tests/test-verify.c: Guard each negative test with a unique id.
7456         Also avoid warning about unused left hand of comma expressions.
7457
7458 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7459
7460         Further improvements to verify.h, suggested by Eric Blake.
7461         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7462         the GL_* versions, to avoid collision with OpenGL.
7463         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7464         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
7465         than testing merely whether it's defined.
7466
7467         Modify verify.h to pacify gcc -Wredundant_decls.
7468         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
7469         These use the prefix "GL_" since they're likely to be useful elsewhere.
7470         We may need to break them out into a different .h file.
7471         (__COUNTER__): Define to 0 if the compiler doesn't support it.
7472         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
7473         of verify_function__.
7474
7475 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7476
7477         Tests for module pwrite.
7478         * modules/pwrite-tests: New file.
7479         * tests/test-pwrite.sh: New file.
7480         * tests/test-pwrite.c: New file.
7481
7482         New module pwrite.
7483         * lib/unistd.in.h (pwrite): New declaration.
7484         * lib/pwrite.c: New file, from glibc with modifications.
7485         * m4/pwrite.m4: New file.
7486         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
7487         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
7488         REPLACE_PWRITE.
7489         * modules/pwrite: New file.
7490         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
7491         REPLACE_PWRITE.
7492         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
7493         * doc/posix-functions/pwrite.texi: Mention the new module.
7494
7495 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
7496
7497         pread: Update documentation.
7498         * doc/posix-functions/pread.texi: Mention the 'pread' module.
7499
7500 2010-05-04  Eric Blake  <eblake@redhat.com>
7501
7502         docs: update cygwin progress
7503         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
7504         this bug.
7505         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
7506         Added in cygwin 1.7.2.
7507         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
7508         Likewise.
7509         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
7510         Likewise.
7511         * doc/glibc-functions/dup3.texi (dup3): Likewise.
7512         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7513         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7514         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
7515         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
7516         Mention nproc module.
7517         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
7518         bug in cygwin 1.7.5 addition.
7519         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
7520         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
7521         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
7522         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
7523         1.7.5.
7524         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
7525         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
7526         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
7527         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
7528         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
7529         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
7530         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
7531         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
7532         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
7533         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
7534         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
7535         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
7536         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
7537         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
7538         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
7539         Likewise.
7540         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
7541         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
7542         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
7543         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
7544         Likewise.
7545         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
7546         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
7547         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
7548         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
7549         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
7550         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
7551         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
7552         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
7553         Likewise.
7554         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
7555         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
7556         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
7557         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
7558         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
7559         Likewise.
7560         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
7561         Likewise.
7562         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
7563         Likewise.
7564         * doc/glibc-functions/xdrrec_endofrecord.texi
7565         (xdrrec_endofrecord): Likewise.
7566         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
7567         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
7568         Likewise.
7569         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
7570         Likewise.
7571
7572 2010-05-04  Jim Meyering  <meyering@redhat.com>
7573
7574         gendocs.sh: make its "-s FILE" option more useful
7575         * build-aux/gendocs.sh: When honoring the -s FILE option, update
7576         $PACKAGE to reflect the probably-different basename of "FILE".
7577
7578 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
7579
7580         bootstrap: don't ignore download_po_files failure
7581         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
7582         failure.
7583
7584 2010-05-03  Jim Meyering  <meyering@redhat.com>
7585
7586         maint.mk: allow to pass options to gendocs.sh
7587         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
7588         (gendocs_options_): New overridable variable.
7589
7590         gnu-web-doc-update: don't ignore configure or build failure
7591         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
7592
7593         announce-gen: backslash-escape '@'s in --help output
7594         * build-aux/announce-gen: Fix syntax errors.
7595
7596         maint.mk, announce-gen: allow project-specific announcement mail headers
7597         * top/maint.mk (translation_project_): Define default.
7598         (announcement_Cc_, announcement_mail_headers_): Likewise.
7599         (announcement): Invoke announce-gen with new --mail-headers option.
7600         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
7601
7602         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
7603         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
7604         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
7605         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
7606         line in the "err2" output file when running "make check" in verbose
7607         mode (i.e., with set -x enabled).
7608
7609 2010-05-03  Bruno Haible  <bruno@clisp.org>
7610
7611         wctob: Fix for weird platforms.
7612         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
7613         argument value.
7614
7615 2010-05-03  Jim Meyering  <meyering@redhat.com>
7616
7617         maint.mk: prohibit unwarranted use of <strings.h>
7618         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
7619         strings.h in a file that does not also use strcasecmp, strncasecmp,
7620         ffs or ffsll.
7621
7622         maint.mk: remove obsolete comments
7623         * top/maint.mk: Remove stale, commented-out rules.
7624
7625 2010-05-02  Bruno Haible  <bruno@clisp.org>
7626
7627         wcwidth: Declare also when it's aliased.
7628         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
7629         macro.
7630
7631 2010-05-02  Bruno Haible  <bruno@clisp.org>
7632
7633         Fix regression from 2010-04-25.
7634         * gnulib-tool (func_modules_transitive_closure): Check the status of
7635         all modules, not only of the tests that are of the form foo-tests where
7636         foo is a module.
7637
7638 2010-05-02  Bruno Haible  <bruno@clisp.org>
7639
7640         wctob: Work around nasty Cygwin 1.7.2 bug.
7641         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
7642         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
7643
7644 2010-05-01  Bruno Haible  <bruno@clisp.org>
7645
7646         fpurge: Sharper test.
7647         * tests/test-fpurge.c (main): Add one more ftell check.
7648         * modules/fpurge-tests (Depends-on): Add ftell.
7649         Suggested by Eric Blake.
7650
7651 2010-05-01  Bruno Haible  <bruno@clisp.org>
7652
7653         ftello: Another test.
7654         * tests/test-ftello3.c: New file.
7655         * modules/ftello-tests (Files): Add it.
7656         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7657         MOSTLYCLEANFILES.
7658
7659         ftell: Another test.
7660         * tests/test-ftell3.c: New file.
7661         * modules/ftell-tests (Files): Add it.
7662         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7663         MOSTLYCLEANFILES.
7664
7665 2010-05-01  Bruno Haible  <bruno@clisp.org>
7666
7667         ftell, ftello: Work around Solaris bug.
7668         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
7669         * lib/ftello.c: Include stdio-impl.h.
7670         (ftello): On Solaris, when _IOWRT is set, compute the result without
7671         looking at _IOREAD.
7672         * modules/ftello (Files): Add lib/stdio-impl.h.
7673         * doc/posix-functions/ftell.texi: Mention Solaris bug.
7674         * doc/posix-functions/ftello.texi: Likewise.
7675         Reported by Eric Blake.
7676
7677 2010-05-01  Bruno Haible  <bruno@clisp.org>
7678
7679         freading: Adapt to special meaning of _IOREAD flag on Solaris.
7680         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
7681         the _IOWRT flag is also set.
7682
7683 2010-05-01  Bruno Haible  <bruno@clisp.org>
7684
7685         Fix doc about a HP-UX stdio bug.
7686         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
7687         * doc/posix-functions/ftello.texi: Likewise.
7688
7689 2010-05-01  Bruno Haible  <bruno@clisp.org>
7690
7691         lseek test: Fix failure on Solaris.
7692         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
7693         output.
7694
7695 2010-04-30  Jim Meyering  <meyering@redhat.com>
7696
7697         bootstrap: don't ignore failure to generate po*/Makevars
7698         * build-aux/bootstrap (with_gettext): Don't ignore failure
7699         to create po/Makevars or runtime-po/Makevars.
7700
7701 2010-04-29  Eric Blake  <eblake@redhat.com>
7702
7703         headers: relax license to LGPLv2+
7704         * modules/fcntl-h (License): Relax license.
7705         * modules/getopt-posix (License): Likewise.
7706         * modules/locale (License): Likewise.
7707         * modules/math (License): Likewise.
7708         * modules/pty (License): Likewise.
7709         * modules/sched (License): Likewise.
7710         * modules/search (License): Likewise.
7711         * modules/spawn (License): Likewise.
7712         * modules/stdarg (License): Likewise.
7713         * modules/sysexits (License): Likewise.
7714
7715 2010-04-29  Jim Meyering  <meyering@redhat.com>
7716
7717         inttypes: relax license to LGPLv2+
7718         * modules/inttypes (License): Relax license.
7719
7720 2010-04-29  Simon Josefsson  <simon@josefsson.org>
7721
7722         * top/maint.mk (indent): Run twice to produce idempotent results.
7723
7724 2010-04-28  Bruno Haible  <bruno@clisp.org>
7725
7726         getdate: Generate getdate.c in the source directory.
7727         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
7728         MOSTLYCLEANFILES.
7729         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
7730
7731 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
7732
7733         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
7734         is not declared as a const *; avoid warnings in that case.
7735
7736 2010-04-28  Eric Blake  <eblake@redhat.com>
7737
7738         canonicalize-lgpl: avoid compiler warning
7739         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
7740         declaration' / 'extraneous semicolon' warning with some compilers.
7741         Reported by Andreas Gruenbacher.
7742
7743 2010-04-28  Jim Meyering  <meyering@redhat.com>
7744
7745         init.sh: ensure a more reliable exit status when exiting via trap
7746         * tests/init.sh (setup_): Don't rely on $? in signal handler.
7747         Inspired by patches from Dmitry V. Levin.
7748         Also trap on signal 3 (SIGQUIT).
7749
7750 2010-04-27  Bruno Haible  <bruno@clisp.org>
7751
7752         Update doc about utimes().
7753         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
7754         'utimens' module.
7755         Reported by Andreas Gruenbacher <agruen@suse.de>.
7756
7757 2010-04-27  Eric Blake  <eblake@redhat.com>
7758
7759         full-read, full-write: relax license
7760         * modules/full-read (License): Drop to LGPLv2+.
7761         * modules/full-write (License): Likewise.
7762         * modules/safe-read (License): Likewise.
7763         * modules/safe-write (License): Likewise.
7764
7765         pthread: mention library for linking
7766         * modules/pthread (Link): Mention $(LIB_PTHREAD).
7767
7768 2010-04-27  Jim Meyering  <meyering@redhat.com>
7769
7770         maint.mk: fix a bug introduced in last change
7771         * top/maint.mk (gl_assured_headers_): Now that all names are on
7772         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
7773         is not anchored to end of word, it should be adequate.
7774
7775         maint.mk: avoid side-effect in latest syntax-check
7776         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
7777         to run commands via $(shell...), and hence to incur cost only when
7778         the new rule is actually run.
7779
7780         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
7781         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
7782         and use that to create a regexp used to detect all #if HAVE_..._H uses.
7783         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
7784         (gl_assured_headers_, az_, AZ_): Define.
7785         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
7786
7787 2010-04-26  Jim Meyering  <jim@meyering.net>
7788             Bruno Haible  <bruno@clisp.org>
7789
7790         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
7791         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
7792         Prompted by an exchange with Gilles Espinasse.
7793
7794 2010-04-26  Jim Meyering  <meyering@redhat.com>
7795
7796         git-version-gen: aesthetic tweak
7797         * build-aux/git-version-gen: Use "$nl" rather than a literal,
7798         so that the command remains on a single line.
7799
7800 2010-04-26  Eric Blake  <eblake@redhat.com>
7801
7802         git-version-gen: allow use on EBCDIC hosts
7803         * build-aux/git-version-gen (dirty): Use literal rather than tying
7804         ourselves to ascii.
7805         Reported by Steve Goetze.
7806
7807 2010-04-25  Bruno Haible  <bruno@clisp.org>
7808
7809         netdb: Add support for GNULIB_POSIXCHECK.
7810         * lib/netdb.in.h: Include warn-on-use.h.
7811         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
7812         functions are used when GNULIB_POSIXCHECK is defined and the
7813         getaddrinfo module is not in use.
7814         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
7815         freeaddrinfo, gai_strerror, getnameinfo are declared.
7816         * modules/netdb (Depends-on): Add warn-on-use.
7817         (Makefile.am): Include warn-on-use.h in netdb.h.
7818
7819 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
7820
7821         build: avoid "make check" failure without .git/ directory
7822         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
7823         there is no .git/ directory.
7824
7825 2010-04-25  Bruno Haible  <bruno@clisp.org>
7826
7827         ptsname: Fix misuse of ttyname_r.
7828         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
7829         of errno.
7830
7831 2010-04-25  Bruno Haible  <bruno@clisp.org>
7832
7833         ttyname_r: Make it work on Solaris 10.
7834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
7835         if the system function has the POSIX declaration. Test whether the
7836         function fails if the buffer is less than 128 bytes large.
7837         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
7838         system's ttyname_r function. Provide a reasonably large buffer.
7839         * modules/ttyname_r (Depends-on): Add extensions.
7840         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
7841
7842 2010-04-25  Bruno Haible  <bruno@clisp.org>
7843
7844         Use the 'extensions' module for some more functions on Solaris.
7845         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
7846         module.
7847         * doc/posix-functions/ctime_r.texi: Likewise.
7848         * doc/posix-functions/getgrgid_r.texi: Likewise.
7849         * doc/posix-functions/getgrnam_r.texi: Likewise.
7850         * doc/posix-functions/getpwnam_r.texi: Likewise.
7851         * doc/posix-functions/getpwuid_r.texi: Likewise.
7852         * doc/posix-functions/readdir_r.texi: Likewise.
7853         * doc/posix-functions/sigwait.texi: Likewise.
7854         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
7855         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
7856
7857 2010-04-25  Bruno Haible  <bruno@clisp.org>
7858
7859         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
7860         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
7861         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
7862         * lib/ttyname_r.c: Include <limits.h>.
7863         (ttyname_r): Define using the system's ttyname_r function, if it exists
7864         and not on Solaris.
7865         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
7866         set.
7867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
7868         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
7869         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
7870         Reported by Simon Josefsson.
7871
7872 2010-04-25  Bruno Haible  <bruno@clisp.org>
7873
7874         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
7875         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
7876         * doc/posix-functions/ctime_r.texi: Likewise.
7877         * doc/posix-functions/getgrgid_r.texi: Likewise.
7878         * doc/posix-functions/getgrnam_r.texi: Likewise.
7879         * doc/posix-functions/getlogin_r.texi: Likewise.
7880         * doc/posix-functions/getpwnam_r.texi: Likewise.
7881         * doc/posix-functions/getpwuid_r.texi: Likewise.
7882         * doc/posix-functions/readdir_r.texi: Likewise.
7883         * doc/posix-functions/sigwait.texi: Likewise.
7884         * doc/posix-functions/ttyname_r.texi: Likewise.
7885         Reported by Simon Josefsson.
7886
7887 2010-04-25  Bruno Haible  <bruno@clisp.org>
7888
7889         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
7890         * gnulib-tool (func_usage): Document that --with-*-tests options apply
7891         also to --create-testdir.
7892         (func_acceptable): Don't consider the status of *-tests modules here.
7893         (func_modules_transitive_closure): Consider it here, before including a
7894         test module.
7895         (func_import, func_create_testdir): Set inc_all_direct_tests,
7896         inc_all_indirect_tests.
7897         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
7898         --create-testdir and --create-megatestdir.
7899
7900 2010-04-25  Bruno Haible  <bruno@clisp.org>
7901
7902         gnulib-tool: Add --without-*-tests options.
7903         * gnulib-tool (func_usage): Document the --without-*-tests options.
7904         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
7905         excl_unportable_tests): New variables.
7906         Fail if they are specified with --import or --update.
7907         (func_acceptable): Respect the excl_*_tests variables.
7908         (func_import): Set the excl_*_tests variables to empty.
7909
7910 2010-04-25  Simon Josefsson  <simon@josefsson.org>
7911             Bruno Haible  <bruno@clisp.org>
7912
7913         Work around a MacOS X 10.4 bug with openpty.
7914         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
7915         * tests/test-openpty.c (main): Close the master side explicitly.
7916
7917 2010-04-25  Bruno Haible  <bruno@clisp.org>
7918
7919         strnlen: Fix a C++ test error on MacOS X and Solaris.
7920         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
7921         the function is not declared.
7922         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
7923         Simon Josefsson.
7924
7925 2010-04-24  Bruno Haible  <bruno@clisp.org>
7926
7927         Avoid a gcc warning.
7928         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
7929         of correct type for %08lx directive.
7930         Reported by Eric Blake.
7931
7932 2010-04-24  Bruno Haible  <bruno@clisp.org>
7933
7934         vasnprintf: Correct errno value in case of out-of-memory.
7935         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
7936         or sprintf. Use the errno value from SNPRINTF or sprintf.
7937         Reported by Ian Beckwith <ianb@erislabs.net>.
7938
7939 2010-04-24  Bruno Haible  <bruno@clisp.org>
7940
7941         ansi-c++-opt: Find correct compiler when cross-compiling.
7942         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
7943         AC_CHECK_PROGS.
7944         Reported by Simon Josefsson.
7945
7946 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
7947
7948         vc-list-files: Add support for subversion
7949         * build-aux/vc-list-files: Use "svn list" to generate the list of
7950         files controlled by subversion.
7951
7952 2010-04-23  Jim Meyering  <meyering@redhat.com>
7953
7954         vc-list-files tests: convert to use init.sh
7955         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
7956         path_prepend_.
7957         Use Exit, not exit.
7958         Use skip_ rather than open coding it.
7959         Remove trap set-up and compare definitions.
7960         * tests/test-vc-list-files-git.sh: Likewise.
7961         * modules/vc-list-files-tests (Files): Add tests/init.sh.
7962
7963 2010-04-22  Simon Josefsson  <simon@josefsson.org>
7964
7965         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
7966         backup files.
7967
7968 2010-04-21  Simon Josefsson  <simon@josefsson.org>
7969
7970         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
7971
7972 2010-04-20  Eric Blake  <eblake@redhat.com>
7973
7974         tests: be robust to ignored SIGPIPE
7975         * tests/test-select-in.sh: Consume all output.
7976         * tests/test-lseek.sh: Check correct exit status, while avoiding
7977         EPIPE.
7978
7979 2010-04-20  Simon Josefsson  <simon@josefsson.org>
7980             Bruno Haible  <bruno@clisp.org>
7981
7982         visibility: Don't use -fvisibility if it leads to a warning.
7983         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
7984         yes, don't pretend that visibility works if it leads to a warning.
7985         Reported by Mike Gran <spk121@yahoo.com>.
7986
7987 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
7988
7989         * build-aux/bootstrap: Use "git -h" for testing for supported options
7990         instead of "git --help".  The short-form option only shows a summary,
7991         and doesn't layout the full man page.  Grep for the full option name
7992         in the summary, too.
7993
7994 2010-04-19  Bruno Haible  <bruno@clisp.org>
7995
7996         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
7997         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
7998         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
7999         mention of RELOCATABLE_STRIP.
8000         Reported by Sylvain Beucler <beuc@beuc.net>.
8001
8002 2010-04-19  Bruno Haible  <bruno@clisp.org>
8003
8004         * lib/diffseq.h: Fix typo in comment.
8005         Reported by Eric Blake.
8006
8007 2010-04-19  Bruno Haible  <bruno@clisp.org>
8008
8009         ioctl: Move autoconf macro to a .m4 file.
8010         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8011         * modules/ioctl (Files): Add it.
8012         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8013         Reported by Ian Beckwith <ianb@erislabs.net>.
8014
8015 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8016             Bruno Haible  <bruno@clisp.org>
8017
8018         diffseq: Accommodate use-case with abstract arrays.
8019         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8020         is not defined.
8021         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8022         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8023
8024 2010-04-18  Bruno Haible  <bruno@clisp.org>
8025
8026         * doc/posix-headers/stdbool.texi: More precise wording.
8027
8028 2010-04-17  Jim Meyering  <meyering@redhat.com>
8029
8030         maint.mk: use gnu-style indentation in an embedded perl script
8031         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8032         Rename variable: s/two/last_two_bytes/
8033
8034 2010-04-16  Eric Blake  <eblake@redhat.com>
8035
8036         test-stdbool: skip test that fails with Solaris CC
8037         * tests/test-stdbool.c (f): Skip test that causes compilation
8038         error under buggy C++ compiler.
8039         * lib/stdbool.in.h: Document the limitation.
8040         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8041
8042         setenv: allow compilation with C++
8043         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8044         register keyword.
8045
8046         stdint: allow test to pass with C++
8047         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8048
8049         getopt: allow compilation with C++
8050         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8051         struct.
8052         * lib/getopt.c (_getopt_internal_r): Use correct type.
8053         Reported by Dagobert Michelson, via Joel E. Denny.
8054
8055 2010-04-16  Bruno Haible  <bruno@clisp.org>
8056
8057         Override netdb.h always.
8058         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8059         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8060         Reported by Ludovic Courtès <ludo@gnu.org>.
8061
8062 2010-04-15  Bruno Haible  <bruno@clisp.org>
8063
8064         openpty: Fix mistake from 2010-03-21.
8065         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8066         Reported by Simon Josefsson.
8067
8068 2010-04-15  Eric Blake  <eblake@redhat.com>
8069
8070         test-forkpty: fix expected signature
8071         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8072         Reported by Simon Josefsson.
8073
8074 2010-04-15  Jim Meyering  <meyering@redhat.com>
8075
8076         maint.mk: texinfo_suffix_re_: correct the default regexp
8077         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8078
8079         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8080         make it configurable via texinfo_suffix_re_.
8081
8082 2010-04-14  Eric Blake  <eblake@redhat.com>
8083
8084         strtok_r: relax license to LGPLv2+
8085         * modules/strtok_r (License): Relax license.
8086         Reported by Matthias Bolte.
8087
8088 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8089
8090         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8091         version 1.4.4 by default instead of requiring the libgcrypt
8092         version used during build.  This makes it possible to use the
8093         application with older but still binary compatible libgcrypt
8094         versions.
8095
8096 2010-04-13  Eric Blake  <eblake@redhat.com>
8097
8098         getopt-gnu: match recent glibc fixes and posix ruling
8099         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8100         '+' handling, when requesting extensions.
8101         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8102         'W;' handling.
8103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8104         * doc/posix-functions/getopt.texi (getopt): Document this.
8105         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8106         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8107         Likewise.
8108
8109         getopt: merge bug fixes from glibc
8110         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8111         diagnostics.  Honor '+:' correctly.  Reject ';'.
8112
8113         getopt-posix: detect MacOS bug
8114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8115         optind when missing a required argument.
8116         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8117         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8118         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8119         Likewise.
8120
8121         getopt-posix: avoid spurious failure on Solaris
8122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8123         an indicator that setting optind=1 is sufficient for reset.
8124
8125         getopt-posix: avoid spurious failure on FreeBSD
8126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8127         in POSIX mode, since the m4 test uses it.
8128
8129         gnulib-tool: silence warning on BSD sh
8130         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8131
8132 2010-04-13  Jim Meyering  <meyering@redhat.com>
8133
8134         doc: users.txt: GNU patch now uses gnulib
8135         * users.txt: Add patch.
8136
8137 2010-04-12  Jim Meyering  <meyering@redhat.com>
8138
8139         maint.mk: generate more concise timing data for syntax-check rules
8140         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8141         " done" from each line that reports a syntax-check test duration.
8142
8143 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8144
8145         git-version-gen: use "git update-index..." rather than "git status"
8146         * build-aux/git-version-gen: Use git update-index --refresh, not
8147         "git status".  With some versions of git, "git status" would fail
8148         to update the index and result in an unwarranted "-dirty" suffix.
8149
8150 2010-04-11  Jim Meyering  <meyering@redhat.com>
8151
8152         openat: correct formatting (no semantic change)
8153         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8154         Suggested by Bruno Haible.
8155
8156 2010-04-11  Bruno Haible  <bruno@clisp.org>
8157
8158         Stricter declaration checking in testdirs.
8159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8160         If for_tests is true, augment AM_CPPFLAGS to define
8161         GNULIB_STRICT_CHECKING.
8162         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8163         GNULIB_STRICT_CHECKING is defined, verify that the function is
8164         declared.
8165
8166 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8167             Bruno Haible  <bruno@clisp.org>
8168
8169         libunistring: Improve configure output.
8170         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8171         Don't say "consider installing GNU libunistring" when checking again
8172         with libiconv.
8173
8174 2010-04-11  Bruno Haible  <bruno@clisp.org>
8175
8176         libunistring: Correct value of $LTLIBUNISTRING.
8177         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8178         correct the value of $LTLIBUNISTRING.
8179
8180 2010-04-11  Bruno Haible  <bruno@clisp.org>
8181
8182         havelib: Add static libraries to LIBS in the right order.
8183         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8184         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8185
8186 2010-04-11  Bruno Haible  <bruno@clisp.org>
8187
8188         libunistring: Detect libunistring also when it depends on libiconv.
8189         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8190         the second AC_LIB_HAVE_LINKFLAGS invocation.
8191
8192 2010-04-11  James Youngman  <jay@gnu.org>
8193
8194         close-stream: declare local scalars to be "const"
8195         * lib/close-stream.c (close_stream): Make boolean variables const
8196         to document the fact that we set but do not change them.
8197
8198 2010-04-11  Bruno Haible  <bruno@clisp.org>
8199
8200         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8201
8202 2010-04-11  Jim Meyering  <meyering@redhat.com>
8203
8204         maint.mk: don't include dist-check.mk
8205         * top/maint.mk: Remove bogus include directive.
8206
8207         maint.mk: improve empty-line-at-EOF check
8208         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8209         solution, rather than tail+Perl-based one.  The latter would read
8210         a few kilobytes from the end of each file, and did not handle empty
8211         files properly.
8212
8213         maint.mk: print the elapsed time for each syntax-check rule
8214         * top/maint.mk (sc_m_rules_): Save start time in a file.
8215         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8216         (local-check): Interpose the .z rules
8217
8218 2010-04-11  Jim Meyering  <meyering@redhat.com>
8219
8220         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8221         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8222         empty file with one that ends in an empty line.
8223
8224 2010-04-10  Bruno Haible  <bruno@clisp.org>
8225
8226         mkdir: Make it work on mingw64.
8227         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8228         * lib/mkdir.c: Update comment.
8229         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8230
8231 2010-04-10  Bruno Haible  <bruno@clisp.org>
8232
8233         Don't override improved macro from newer autoconf.
8234         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8235         autoconf >= 2.62.
8236         Reported by Joel E. Denny <jdenny@clemson.edu>.
8237
8238 2010-04-10  Jim Meyering  <meyering@redhat.com>
8239
8240         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8241         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8242
8243         maint.mk: correct a diagnostic
8244         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8245         in diagnostic; now use $prohibit.
8246
8247 2010-04-10  Bruno Haible  <address@hidden>
8248
8249         fchownat: Fix a C++ test error on Solaris 8.
8250         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8251         the function does not exist.
8252
8253 2010-04-10  Bruno Haible  <bruno@clisp.org>
8254
8255         vasnprintf: Add more tests.
8256         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8257         (test_function): Test converting an invalid wide string.
8258
8259         vasnprintf: Correct handling of unconvertible wide string arguments.
8260         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8261         VASNPRINTF.
8262         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8263         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8264         smaller than the expected maximum need for the directive. Set errno to
8265         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8266         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8268         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8269         * modules/vasnprintf (Files): Add m4/printf.m4.
8270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8271
8272 2010-04-10  Bruno Haible  <bruno@clisp.org>
8273
8274         vasnprintf: Fix crash in %ls directive.
8275         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8276         string is passed as argument to %ls, with no precision and no width.
8277         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8278
8279 2010-04-10  Bruno Haible  <bruno@clisp.org>
8280
8281         vasnprintf: Fix multiple test failures on mingw.
8282         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8283         _snprintf, or snwprintf, not _snwprintf.
8284
8285 2010-04-10  Bruno Haible  <bruno@clisp.org>
8286
8287         write: Fix a C++ test error on mingw.
8288         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8289
8290 2010-04-10  Bruno Haible  <bruno@clisp.org>
8291
8292         vasnprintf test: Reduce code duplication.
8293         * tests/test-vasnprintf.c (test_function): New function, extracted from
8294         test_vasnprintf.
8295         (test_vasnprintf, test_asnprintf): Invoke it.
8296
8297 2010-04-10  Bruno Haible  <bruno@clisp.org>
8298
8299         strnlen: Fix warning in C++ mode on MacOS X.
8300         * lib/string.in.h (strnlen): Use the modern idiom.
8301         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8302         defining strnlen as a macro already in <config.h>.
8303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8304         REPLACE_STRNLEN.
8305         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8306         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8307
8308 2010-04-08  James Youngman  <jay@gnu.org>
8309
8310         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8311         the example.
8312
8313 2010-04-09  Jim Meyering  <meyering@redhat.com>
8314
8315         maint.mk: print better diagnostic when there is no $(_hv_file)
8316         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8317         announce that when $(_hv_file) (aka help-version) does not exist.
8318
8319         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8320         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8321         not try to interpret its random input bytes.  Jarno Rajahalme reported
8322         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8323         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8324         (mktempd_): Likewise, just in case.
8325
8326         ftruncate: add two years to projected module removal date: 2012
8327         * m4/ftruncate.m4: Adjust comments.
8328
8329         ftruncate: mark module as obsolete; even MinGW provides it, now
8330         * modules/ftruncate (Status): Obsolete.
8331         (Notice): Say that.
8332         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8333         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8334
8335 2010-04-08  Bruno Haible  <bruno@clisp.org>
8336
8337         Fix side effects from tests-related modules.
8338         * modules/dprintf-posix (Comment): New section.
8339         * modules/fprintf-posix (Comment): Likewise.
8340         * modules/obstack-printf-posix (Comment): Likewise.
8341         * modules/printf-posix (Comment): Likewise.
8342         * modules/snprintf-posix (Comment): Likewise.
8343         * modules/sprintf-posix (Comment): Likewise.
8344         * modules/vasnprintf-posix (Comment): Likewise.
8345         * modules/vasprintf-posix (Comment): Likewise.
8346         * modules/vdprintf-posix (Comment): Likewise.
8347         * modules/vfprintf-posix (Comment): Likewise.
8348         * modules/vprintf-posix (Comment): Likewise.
8349         * modules/vsnprintf-posix (Comment): Likewise.
8350         * modules/vsprintf-posix (Comment): Likewise.
8351         * modules/xprintf-posix (Comment): Likewise.
8352         * modules/xvasprintf-posix (Comment): Likewise.
8353         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8354         * modules/floorf-tests (Depends-on): Likewise.
8355         * modules/round-tests (Depends-on): Likewise.
8356         * modules/roundf-tests (Depends-on): Likewise.
8357         * modules/trunc-tests (Depends-on): Likewise.
8358         * modules/truncf-tests (Depends-on): Likewise.
8359         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8360         'fprintf-posix' module is not present.
8361         * tests/test-floorf2.c (check): Likewise.
8362         * tests/test-trunc2.c (check): Likewise.
8363         * tests/test-truncf2.c (check): Likewise.
8364         * tests/test-round2.c (equal): Likewise.
8365         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8366
8367 2010-04-07  Karl Berry  <karl@gnu.org>
8368
8369         * config/srclist.txt,
8370         * config/srclistvars.sh,
8371         * config/srclist-update: doc fixes.
8372
8373 2010-04-07  Jim Meyering  <meyering@redhat.com>
8374
8375         maint.mk: add a PATH crosschecking syntax-check rule
8376         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8377         Useful if you use a test like the one in help-version (coreutils,
8378         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8379         printed by prog --version.
8380
8381 2010-04-06  Bruno Haible  <bruno@clisp.org>
8382
8383         Fix link error on mingw.
8384         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8385         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8386
8387 2010-04-06  Bruno Haible  <bruno@clisp.org>
8388
8389         Assume rmdir exists.
8390         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8391
8392 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8393
8394         doc: update users.txt
8395         * users.txt: Add gcal.
8396
8397 2010-04-06  Jim Meyering  <meyering@redhat.com>
8398
8399         init.sh: simply unset TMPDIR rather than risking env -i
8400         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8401         although it probably works fine on all Unix-based systems, some
8402         systems (Cygwin?) cannot tolerate a totally cleared environment.
8403         Suggestion from Eric Blake.
8404
8405 2010-04-06  Jim Meyering  <meyering@redhat.com>
8406
8407         init.sh: portability fix: use env's POSIX-specified -i option not -u
8408         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8409         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8410
8411 2010-04-05  Bruno Haible  <bruno@clisp.org>
8412
8413         btowc: Work around Cygwin 1.7.2 bug.
8414         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8415         does not map NUL to 0.
8416         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8417
8418 2010-04-05  Bruno Haible  <bruno@clisp.org>
8419
8420         Make the multithread modules work on Cygwin 1.7.2.
8421         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8422         imported symbols can be declared weak, so that it returns "no" on
8423         Cygwin 1.7.2.
8424
8425 2010-04-05  Bruno Haible  <bruno@clisp.org>
8426
8427         Use the module 'strncat'.
8428         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8429
8430         Tests for module 'strncat'.
8431         * modules/strncat-tests: New file.
8432         * tests/test-strncat.c: New file.
8433
8434         New module 'strncat'.
8435         * lib/string.in.h (strncat): New declaration.
8436         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8437         * m4/strncat.m4: New file, based on m4/memchr.m4.
8438         * modules/strncat: New file.
8439         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8440         is declared.
8441         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8442         REPLACE_STRNCAT.
8443         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8444         REPLACE_STRNCAT.
8445         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8446         module.
8447         * tests/test-string-c++.cc: Check signature of strncat.
8448
8449 2010-04-05  Jim Meyering  <meyering@redhat.com>
8450
8451         xstrtoumax-tests: convert to use init.sh
8452         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8453         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8454         Use Exit, not exit.
8455         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8456
8457         xstrtoimax-tests: convert to use init.sh
8458         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8459         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8460         Use Exit, not exit.
8461         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8462
8463 2010-04-05  Bruno Haible  <bruno@clisp.org>
8464
8465         sys_socket: Avoid #define replacements in C++ mode.
8466         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
8467         warning to the function if possible, rather than #defining the symbol
8468         to a dysfunctional alias.
8469
8470 2010-04-05  Bruno Haible  <bruno@clisp.org>
8471
8472         fseeko: Fix C++ test error on mingw.
8473         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
8474         gl_FUNC_FSEEKO.
8475         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
8476         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
8477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
8478         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
8479
8480 2010-04-05  Bruno Haible  <bruno@clisp.org>
8481
8482         duplocale: Improve test output.
8483         * tests/test-duplocale.c (main): Print reason for skipped test.
8484
8485 2010-04-05  Bruno Haible  <bruno@clisp.org>
8486
8487         Assume rmdir exists.
8488         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
8489         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
8490
8491 2010-04-05  Bruno Haible  <bruno@clisp.org>
8492
8493         Fix link error on Solaris 8 with cc.
8494         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
8495
8496 2010-04-05  Bruno Haible  <bruno@clisp.org>
8497
8498         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8499         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
8500
8501 2010-04-05  Bruno Haible  <bruno@clisp.org>
8502
8503         vasprintf: Update documentation.
8504         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
8505
8506 2010-04-05  Bruno Haible  <bruno@clisp.org>
8507
8508         ptsname: Improve test.
8509         * tests/test-ptsname.c (main): Also try the various master names of BSD
8510         systems.
8511
8512 2010-04-05  Bruno Haible  <bruno@clisp.org>
8513
8514         memchr: Avoid a possible C++ test error.
8515         * lib/string.in.h (memchr): Provide declaration if function is missing.
8516         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
8517         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
8518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
8519         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
8520
8521 2010-04-05  Bruno Haible  <bruno@clisp.org>
8522
8523         strtok_r: Improve idiom.
8524         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
8525         AC_LIBOBJ is used.
8526
8527 2010-04-05  Bruno Haible  <bruno@clisp.org>
8528
8529         strdup: Improve idiom.
8530         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
8531         AC_LIBOBJ is used.
8532         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
8533         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8534         when AC_LIBOBJ is used.
8535
8536 2010-04-05  Bruno Haible  <bruno@clisp.org>
8537
8538         mbsinit, mbrtowc, wcrtomb: Improve idioms.
8539         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
8540         don't set REPLACE_MBSINIT to 1.
8541         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
8542         don't set REPLACE_MBRTOWC to 1.
8543         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
8544         exist, don't set REPLACE_MBSRTOWCS to 1.
8545         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
8546         exist, don't set REPLACE_MBSNRTOWCS to 1.
8547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
8548         don't set REPLACE_WCRTOMB to 1.
8549         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
8550         exist, don't set REPLACE_WCSRTOMBS to 1.
8551         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
8552         exist, don't set REPLACE_WCSNRTOMBS to 1.
8553
8554 2010-04-05  Bruno Haible  <bruno@clisp.org>
8555
8556         ldexpl: Improve idiom.
8557         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
8558         make sure to set HAVE_DECL_LDEXPL to 0.
8559
8560 2010-04-05  Jim Meyering  <meyering@redhat.com>
8561
8562         xstrtol-tests: convert to use init.sh
8563         * modules/xstrtol-tests (Files): Add tests/init.sh.
8564         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8565         Use Exit, not exit.
8566         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8567
8568         atexit-tests: convert to use init.sh
8569         * modules/atexit-tests (Files): Add tests/init.sh.
8570         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8571         Use Exit, not exit.
8572         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8573
8574         init.sh: fix typo
8575         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
8576
8577         init.sh: make it easier for a test script to write to the tty, ...
8578         when using automake's parallel-tests mode.
8579         * tests/init.sh (stderr_fileno_): Define overridable variable.
8580         (warn_): New function, to use it.
8581         (fail_, skip_, framework_failure_): Use warn_.
8582
8583 2010-04-04  Bruno Haible  <bruno@clisp.org>
8584
8585         btowc: Avoid warning.
8586         * lib/btowc.c: Include <stdlib.h>.
8587         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
8588
8589 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8590             Bruno Haible  <bruno@clisp.org>
8591
8592         wchar: Port to NetBSD 1.5.
8593         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
8594         * lib/wctype.in.h (WEOF): Likewise.
8595
8596 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8597             Bruno Haible  <bruno@clisp.org>
8598
8599         Port extended stdio to NetBSD 1.5.
8600         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
8601         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
8602         older.
8603
8604 2010-04-04  Bruno Haible  <bruno@clisp.org>
8605
8606         string: Remove unused substitution.
8607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8608         HAVE_DECL_STRERROR.
8609         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
8610
8611 2010-04-04  Bruno Haible  <bruno@clisp.org>
8612
8613         strtod: Avoid a possible C++ test error.
8614         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
8615         set REPLACE_STRTOD.
8616
8617 2010-04-04  Bruno Haible  <bruno@clisp.org>
8618
8619         strerror: Update documentation.
8620         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
8621
8622 2010-04-04  Bruno Haible  <bruno@clisp.org>
8623
8624         stdio: Fix some C++ test errors on Solaris 8 with GCC.
8625         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
8626         _GL_CXXALIAS_SYS_CAST.
8627
8628 2010-04-04  Bruno Haible  <bruno@clisp.org>
8629
8630         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8631         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
8632         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
8633         REPLACE_FREXPL to 1.
8634         * doc/posix-functions/frexpl.texi: Update documentation.
8635
8636 2010-04-04  Bruno Haible  <bruno@clisp.org>
8637
8638         math: Fix some C++ test errors on Solaris 8 and Cygwin.
8639         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
8640
8641 2010-04-04  Bruno Haible  <bruno@clisp.org>
8642
8643         Implement nanosleep for native Windows.
8644         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
8645
8646 2010-04-04  Bruno Haible  <bruno@clisp.org>
8647
8648         math: Fix some C++ test errors on Solaris 8.
8649         * lib/math.in.h (truncf, trunc): Use simpler idiom.
8650
8651 2010-04-04  Bruno Haible  <bruno@clisp.org>
8652
8653         math: Fix some C++ test errors on Cygwin.
8654         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
8655         truncl): Provide declaration if the system does not have it.
8656         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
8657         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
8658         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
8659         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
8660         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
8661         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
8662         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
8663         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
8664         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
8665         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
8666         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
8667         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
8668         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
8669         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
8670         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
8671         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
8672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
8673         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8674         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8675         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
8676         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8677         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8678
8679 2010-04-04  Bruno Haible  <bruno@clisp.org>
8680
8681         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
8682         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8683         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8684         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8685         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8686         * m4/isinf.m4 (gl_ISINF): Likewise.
8687         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8688
8689 2010-04-04  Bruno Haible  <bruno@clisp.org>
8690
8691         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
8692         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8693
8694 2010-04-04  Bruno Haible  <bruno@clisp.org>
8695
8696         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
8697         * modules/tmpfile (configure.ac): Update.
8698
8699         tmpfile: Fix C++ test error on mingw.
8700         * lib/stdio.in.h (tmpfile): New declaration.
8701         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
8702         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
8703         * modules/tmpfile (Depends-on): Add stdio.
8704         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
8705         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
8706         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
8707         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
8708         REPLACE_TMPFILE.
8709         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
8710
8711 2010-04-04  Bruno Haible  <bruno@clisp.org>
8712
8713         ioctl: Fix C++ test error on mingw.
8714         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
8715         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
8716         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
8717
8718 2010-04-03  Bruno Haible  <bruno@clisp.org>
8719
8720         wcwidth: Fix C++ test error on mingw.
8721         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
8722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
8723         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
8724
8725 2010-04-03  Bruno Haible  <bruno@clisp.org>
8726
8727         nanosleep: Fix C++ test error on mingw.
8728         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
8729         * lib/time.in.h (nanosleep): Use modern idiom.
8730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
8731         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
8732         REPLACE_NANOSLEEP to 1.
8733         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
8734         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
8735
8736 2010-04-03  Bruno Haible  <bruno@clisp.org>
8737
8738         strptime: Fix C++ test error on mingw.
8739         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
8740         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
8741         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
8742         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
8743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
8744         not REPLACE_STRPTIME.
8745         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
8746         REPLACE_STRPTIME.
8747
8748 2010-04-03  Bruno Haible  <bruno@clisp.org>
8749
8750         timegm: Fix C++ test error on mingw.
8751         * lib/time.in.h (timegm): Use modern idiom.
8752         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
8753         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
8754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
8755         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
8756
8757 2010-04-03  Bruno Haible  <bruno@clisp.org>
8758
8759         timegm: Assume declaration if function exists.
8760         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
8761         if it exists. Don't clobber ac_cv_func_timegm.
8762
8763 2010-04-03  Bruno Haible  <bruno@clisp.org>
8764
8765         time_r: Fix C++ test error on mingw.
8766         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
8767         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
8768         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
8769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
8770         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
8771
8772 2010-04-03  Bruno Haible  <bruno@clisp.org>
8773
8774         time_r: Minor updates.
8775         * modules/time_r (Description): Mention the provided functions.
8776         * lib/time_r.c: Don't include <string.h>.
8777         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
8778         * doc/posix-functions/localtime_r.texi: Likewise.
8779
8780 2010-04-03  Bruno Haible  <bruno@clisp.org>
8781
8782         time: Fix regression introduced on 2010-03-08.
8783         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
8784         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
8785
8786 2010-04-03  Jim Meyering  <meyering@redhat.com>
8787
8788         maint.mk: don't silently disable project-specific syntax-check rules
8789         * top/maint.mk (_prohibit_regexp): Define, to help people realize
8790         that they need to convert their project-specific syntax-check rules
8791         to use the new _sc_search_regexp.
8792
8793 2010-04-03  Bruno Haible  <bruno@clisp.org>
8794
8795         fchdir: Fix regression introduced on 2010-03-08.
8796         * lib/unistd.in.h (fchdir): Fix declaration.
8797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
8798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
8799         REPLACE_FCHDIR.
8800         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
8801         REPLACE_FCHDIR.
8802
8803 2010-04-03  Bruno Haible  <bruno@clisp.org>
8804
8805         getpagesize: Fix C++ test error on mingw.
8806         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
8807         system does not declare the function.
8808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
8809         declared.
8810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8811         HAVE_DECL_GETPAGESIZE.
8812         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
8813
8814 2010-04-03  Bruno Haible  <bruno@clisp.org>
8815
8816         stdio: Make C++ tests work on mingw.
8817         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
8818         does not declare the function.
8819
8820 2010-04-03  Bruno Haible  <bruno@clisp.org>
8821
8822         ftello: Fix C++ test error on mingw.
8823         * lib/stdio.in.h (ftello): Use modern idiom.
8824         * lib/ftello.c (ftello): Renamed from rpl_ftello.
8825         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
8826         is missing and that it needs to be replaced.
8827         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
8828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
8829         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
8830
8831 2010-04-03  Bruno Haible  <bruno@clisp.org>
8832
8833         fseeko: Fix C++ test error on mingw.
8834         * lib/stdio.in.h (fseeko): Use modern idiom.
8835         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
8836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
8837         is missing and that it needs to be replaced.
8838         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
8839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
8840         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
8841
8842 2010-04-03  Bruno Haible  <bruno@clisp.org>
8843
8844         mkstemp: Fix C++ test error on mingw.
8845         * lib/stdlib.in.h (mkstemp): Use modern idiom.
8846         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
8847         function is missing and that it needs to be replaced.
8848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
8849         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
8850
8851 2010-04-03  Bruno Haible  <bruno@clisp.org>
8852
8853         stpncpy: Fix C++ test error on mingw.
8854         * lib/string.in.h (stpncpy): Use modern idiom.
8855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
8856         function is missing and that it needs to be replaced.
8857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8858         REPLACE_STPNCPY.
8859         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
8860
8861 2010-04-03  Bruno Haible  <bruno@clisp.org>
8862
8863         sys_stat: Fix C++ test error on mingw.
8864         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
8865         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
8866
8867 2010-04-03  Bruno Haible  <bruno@clisp.org>
8868
8869         pty: Update doc.
8870         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
8871
8872 2010-04-03  Bruno Haible  <bruno@clisp.org>
8873
8874         unistd: Fix C++ test error on mingw.
8875         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
8876
8877 2010-04-03  Bruno Haible  <bruno@clisp.org>
8878
8879         Update doc regarding mingw.
8880         * doc/glibc-functions/openpty.texi: Update regarding mingw.
8881         * doc/glibc-functions/login_tty.texi: Likewise.
8882         * doc/glibc-functions/forkpty.texi: Likewise.
8883
8884 2010-04-03  Bruno Haible  <bruno@clisp.org>
8885
8886         stdlib: Avoid compilation failure of c-strtold on mingw.
8887         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
8888
8889 2010-04-03  Bruno Haible  <bruno@clisp.org>
8890
8891         locale: Make C++ tests work on Cygwin and mingw.
8892         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
8893         cannot provide the function.
8894         Reported by Simon Josefsson.
8895
8896 2010-04-03  Bruno Haible  <bruno@clisp.org>
8897
8898         localename: Port to MacOS X 10.6.
8899         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
8900         memory layout of the locales in MacOS X 10.6 as well.
8901         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8902
8903 2010-04-02  Bruno Haible  <bruno@clisp.org>
8904
8905         gnulib-tool: Ensure that long-running tests are executed last.
8906         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
8907         running tests after the one for the other tests.
8908
8909 2010-04-02  Bruno Haible  <bruno@clisp.org>
8910
8911         gnulib-tool: Ensure the tests in the main directory are executed first.
8912         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
8913         start with the current directory.
8914
8915 2010-04-02  Bruno Haible  <bruno@clisp.org>
8916
8917         Tests for module 'havelib', moved here from GNU gettext.
8918         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
8919         modifications.
8920         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
8921         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
8922         with modifications.
8923         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
8924         modifications.
8925         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
8926         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
8927         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
8928         with modifications.
8929         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
8930         with modifications.
8931         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
8932         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
8933         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
8934         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
8935         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
8936         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
8937         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
8938         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
8939         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
8940         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
8941         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
8942         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
8943         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
8944         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
8945         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
8946         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
8947         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
8948         with modifications.
8949         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
8950         with modifications.
8951         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
8952         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
8953         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
8954         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
8955         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
8956         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
8957         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
8958         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
8959         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
8960         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
8961         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
8962         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
8963         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
8964         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
8965         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
8966         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
8967         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
8968         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
8969         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
8970         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
8971         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
8972         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
8973         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
8974         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
8975         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
8976         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
8977         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
8978         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
8979         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
8980         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
8981         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
8982         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
8983         * tests/havelib/rpathx/rpathx.c: New file, from
8984         gettext/autoconf-lib-link.
8985         * tests/havelib/rpathx/Makefile.am: New file, from
8986         gettext/autoconf-lib-link.
8987         * tests/havelib/rpathx/configure.ac: New file, from
8988         gettext/autoconf-lib-link with modifications.
8989         * tests/havelib/rpathy/rpathy.c: New file, from
8990         gettext/autoconf-lib-link.
8991         * tests/havelib/rpathy/Makefile.am: New file, from
8992         gettext/autoconf-lib-link.
8993         * tests/havelib/rpathy/configure.ac: New file, from
8994         gettext/autoconf-lib-link with modifications.
8995         * tests/havelib/rpathz/rpathz.c: New file, from
8996         gettext/autoconf-lib-link.
8997         * tests/havelib/rpathz/Makefile.am: New file, from
8998         gettext/autoconf-lib-link.
8999         * tests/havelib/rpathz/configure.ac: New file, from
9000         gettext/autoconf-lib-link with modifications.
9001         * tests/havelib/rpathlx/usex.c: New file, from
9002         gettext/autoconf-lib-link.
9003         * tests/havelib/rpathlx/Makefile.am: New file, from
9004         gettext/autoconf-lib-link.
9005         * tests/havelib/rpathlx/configure.ac: New file, from
9006         gettext/autoconf-lib-link with modifications.
9007         * tests/havelib/rpathly/usey.c: New file, from
9008         gettext/autoconf-lib-link.
9009         * tests/havelib/rpathly/Makefile.am: New file, from
9010         gettext/autoconf-lib-link.
9011         * tests/havelib/rpathly/configure.ac: New file, from
9012         gettext/autoconf-lib-link with modifications.
9013         * tests/havelib/rpathlz/usez.c: New file, from
9014         gettext/autoconf-lib-link.
9015         * tests/havelib/rpathlz/Makefile.am: New file, from
9016         gettext/autoconf-lib-link.
9017         * tests/havelib/rpathlz/configure.ac: New file, from
9018         gettext/autoconf-lib-link with modifications.
9019         * tests/havelib/rpathlyx/usey.c: New file, from
9020         gettext/autoconf-lib-link.
9021         * tests/havelib/rpathlyx/Makefile.am: New file, from
9022         gettext/autoconf-lib-link.
9023         * tests/havelib/rpathlyx/configure.ac: New file, from
9024         gettext/autoconf-lib-link with modifications.
9025         * tests/havelib/rpathlzyx/usez.c: New file, from
9026         gettext/autoconf-lib-link.
9027         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9028         gettext/autoconf-lib-link.
9029         * tests/havelib/rpathlzyx/configure.ac: New file, from
9030         gettext/autoconf-lib-link with modifications.
9031         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9032         with modifications.
9033
9034 2010-04-02  Bruno Haible  <bruno@clisp.org>
9035
9036         gnulib-tool: Create distributed built sources also for the tests.
9037         * gnulib-tool (func_create_testdir): Also generate distributed built
9038         sources in the tests directory.
9039
9040 2010-04-02  Bruno Haible  <bruno@clisp.org>
9041
9042         gnulib-tool: Obey user's environment variables.
9043         * gnulib-tool (func_create_testdir): When creating built sources,
9044         respect the environment variables for autoconf, automake, etc. given by
9045         the user.
9046
9047 2010-04-02  Bruno Haible  <bruno@clisp.org>
9048
9049         gnulib-tool: Provide the value of --m4-base to modules.
9050         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9051         of gl_m4_base.
9052
9053 2010-04-02  Eric Blake  <eblake@redhat.com>
9054
9055         maint.mk: fix some fallout
9056         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9057         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9058
9059 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9060
9061         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9062         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9063         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9064         (sc_cast_of_x_alloc_return_value): Likewise.
9065         (sc_cast_of_alloca_return_value): Likewise.
9066         (sc_space_tab): Likewise.
9067         (sc_prohibit_atoi_atof): Likewise.
9068         (sc_prohibit_magic_number_exit): Likewise.
9069         (sc_error_exit_success): Likewise.
9070         (sc_file_system): Likewise.
9071         (sc_prohibit_have_config_h): Likewise.
9072         (sc_require_config_h): Likewise.
9073         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9074         (sc_obsolete_symbols): Likewise.
9075         (sc_changelog): Likewise.
9076         (sc_program_name): Likewise.
9077         (sc_the_the): Likewise.
9078         (sc_trailing_blank): Likewise.
9079         (sc_two_space_separator_in_usage): Likewise.
9080         (sc_useless_cpp_parens): Likewise.
9081         (sc_GPL_version): Likewise.
9082         (sc_GFDL_version): Likewise.
9083         (sc_texinfo_acronym): Likewise.
9084         (sc_prohibit_cvs_keyword): Likewise.
9085         (sc_prohibit_stat_st_blocks): Likewise.
9086         (sc_prohibit_S_IS_definition): Likewise.
9087         (sc_redundant_const): Likewise.
9088         (sc_makefile_TAB_only_indentation): Likewise.
9089         (sc_m4_quote_check): Likewise.
9090         (sc_makefile_path_separator_check): Likewise.
9091         (sc_copyright_check): Likewise.
9092         (sc_Wundef_boolean): Likewise.
9093         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9094
9095         maint.mk: match 0 or more whitespace-before-function-call '('
9096         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9097         that have zero or two-and-more spaces between the function name
9098         and the open parenthesis.
9099         (sc_error_message_warn_fatal): Likewise.
9100         (sc_error_message_uppercase): Likewise.
9101         (sc_error_message_period): Likewise.
9102
9103 2010-03-31  Eric Blake  <eblake@redhat.com>
9104
9105         maint.mk: check for [ as well as test
9106         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9107         Based on a libvirt report by Matthias Bolte.
9108
9109         gnumakefile: don't squelch _version output
9110         * top/GNUmakefile (_version): Create one-shot dependency rather
9111         than using $(shell) when version must be regenerated.
9112         (_autoreconf): Run verbosely, by default.
9113
9114         sys_time: avoid compiler warnings
9115         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9116         unconditional, fixing regression from 2010-03-29.
9117         Reported by Simon Josefsson.
9118
9119 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9120
9121         maint.mk: s/_header_without_use/_sc_header_without_use/
9122         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9123         (sc_prohibit_assert_without_use): Use the new name.
9124         (sc_prohibit_close_stream_without_use): Likewise.
9125         (sc_prohibit_getopt_without_use): Likewise.
9126         (sc_prohibit_quotearg_without_use): Likewise.
9127         (sc_prohibit_quote_without_use): Likewise.
9128         (sc_prohibit_long_options_without_use): Likewise.
9129         (sc_prohibit_inttostr_without_use): Likewise.
9130         (sc_prohibit_ignore_value_without_use): Likewise.
9131         (sc_prohibit_error_without_use): Likewise.
9132         (sc_prohibit_xalloc_without_use): Likewise.
9133         (sc_prohibit_hash_without_use): Likewise.
9134         (sc_prohibit_hash_pjw_without_use): Likewise.
9135         (sc_prohibit_safe_read_without_use): Likewise.
9136         (sc_prohibit_argmatch_without_use): Likewise.
9137         (sc_prohibit_canonicalize_without_use): Likewise.
9138         (sc_prohibit_root_dev_ino_without_use): Likewise.
9139         (sc_prohibit_openat_without_use): Likewise.
9140         (sc_prohibit_c_ctype_without_use): Likewise.
9141         (sc_prohibit_signal_without_use): Likewise.
9142         (sc_prohibit_intprops_without_use): Likewise.
9143
9144 2010-03-30  Eric Blake  <eblake@redhat.com>
9145
9146         maint: improve module indicators
9147         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9148         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9149         columns, and avoid extra macro expansion.
9150
9151         fdopendir: work around FreeBSD bug
9152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9154         * modules/dirent (Makefile.am): Substitute it.
9155         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9156         declaration.
9157         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9158         fix.
9159         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9160
9161 2010-03-29  Bruno Haible  <bruno@clisp.org>
9162
9163         Emit #pragma system_header after the inclusion guard, not before.
9164         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9165         guard that spans the entire file, not before. This enables an
9166         optimization in GCC's preprocessor.
9167         * lib/ctype.in.h: Likewise.
9168         * lib/dirent.in.h: Likewise.
9169         * lib/errno.in.h: Likewise.
9170         * lib/float.in.h: Likewise.
9171         * lib/getopt.in.h: Likewise.
9172         * lib/iconv.in.h: Likewise.
9173         * lib/langinfo.in.h: Likewise.
9174         * lib/locale.in.h: Likewise.
9175         * lib/math.in.h: Likewise.
9176         * lib/netdb.in.h: Likewise.
9177         * lib/netinet_in.in.h: Likewise.
9178         * lib/pty.in.h: Likewise.
9179         * lib/sched.in.h: Likewise.
9180         * lib/se-selinux.in.h: Likewise.
9181         * lib/search.in.h: Likewise.
9182         * lib/spawn.in.h: Likewise.
9183         * lib/stdarg.in.h: Likewise.
9184         * lib/stdint.in.h: Likewise.
9185         * lib/string.in.h: Likewise.
9186         * lib/strings.in.h: Likewise.
9187         * lib/sys_file.in.h: Likewise.
9188         * lib/sys_ioctl.in.h: Likewise.
9189         * lib/sys_time.in.h: Likewise.
9190         * lib/sys_times.in.h: Likewise.
9191         * lib/sys_utsname.in.h: Likewise.
9192         * lib/sys_wait.in.h: Likewise.
9193         * lib/sysexits.in.h: Likewise.
9194         * lib/wctype.in.h: Likewise.
9195
9196 2010-03-28  James Youngman  <jay@gnu.org>
9197
9198         save-cwd: don't leak a file descriptor when the caller execs.
9199         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9200         saved file descriptor.
9201         * modules/save-cwd (Depends-on): Depend on cloexec.
9202
9203 2010-03-29  Bruno Haible  <bruno@clisp.org>
9204
9205         Remove vestiges of fts-lgpl module.
9206         * lib/fts_.h: Assume GNULIB_FTS is 1.
9207         * lib/fts.c: Likewise.
9208         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9209
9210 2010-03-28  Bruno Haible  <bruno@clisp.org>
9211
9212         Fix definition of tests witness macro.
9213         * gnulib-tool (func_import): Fix definition of witness macro.
9214
9215 2010-03-28  Bruno Haible  <bruno@clisp.org>
9216
9217         Fix ioctl's protoype on glibc systems.
9218         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9219         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9220         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9221         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9222         signature. If not, arrange to replace the ioctl function.
9223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9224         REPLACE_IOCTL.
9225         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9226         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9227         Reported by Ludovic Courtès <ludo@gnu.org>.
9228
9229 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9230
9231         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9232         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9233         made it so grep -r --include=GLOB* ... did not work.
9234
9235 2010-03-26  Jim Meyering  <meyering@redhat.com>
9236             Eric Blake  <eblake@redhat.com>
9237
9238         maint.mk: prohibit use of test's -o and -a operators
9239         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9240
9241 2010-03-28  Bruno Haible  <bruno@clisp.org>
9242
9243         Remove unused GNULIB_XYZ macro definitions.
9244         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9245         invocation.
9246
9247 2010-03-28  Bruno Haible  <bruno@clisp.org>
9248
9249         Mark privileged tests modules.
9250         * modules/idpriv-drop-tests (Status): New section.
9251         * modules/idpriv-droptemp-tests (Status): New section.
9252
9253 2010-03-28  Bruno Haible  <bruno@clisp.org>
9254
9255         Split C++ tests into separate tests modules.
9256         * modules/dirent-c++-tests: New file, extracted from
9257         modules/dirent-tests.
9258         * modules/dirent-tests: Depend on it.
9259         * modules/fcntl-h-c++-tests: New file, extracted from
9260         modules/fcntl-h-tests.
9261         * modules/fcntl-h-tests: Depend on it.
9262         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9263         * modules/glob-tests: Depend on it.
9264         * modules/iconv-h-c++-tests: New file, extracted from
9265         modules/iconv-h-tests.
9266         * modules/iconv-h-tests: Depend on it.
9267         * modules/langinfo-c++-tests: New file, extracted from
9268         modules/langinfo-tests.
9269         * modules/langinfo-tests: Depend on it.
9270         * modules/locale-c++-tests: New file, extracted from
9271         modules/locale-tests.
9272         * modules/locale-tests: Depend on it.
9273         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9274         * modules/math-tests: Depend on it.
9275         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9276         * modules/pty-tests: Depend on it.
9277         * modules/search-c++-tests: New file, extracted from
9278         modules/search-tests.
9279         * modules/search-tests: Depend on it.
9280         * modules/signal-c++-tests: New file, extracted from
9281         modules/signal-tests.
9282         * modules/signal-tests: Depend on it.
9283         * modules/spawn-c++-tests: New file, extracted from
9284         modules/spawn-tests.
9285         * modules/spawn-tests: Depend on it.
9286         * modules/stdio-c++-tests: New file, extracted from
9287         modules/stdio-tests.
9288         * modules/stdio-tests: Depend on it.
9289         * modules/stdlib-c++-tests: New file, extracted from
9290         modules/stdlib-tests.
9291         * modules/stdlib-tests: Depend on it.
9292         * modules/string-c++-tests: New file, extracted from
9293         modules/string-tests.
9294         * modules/string-tests: Depend on it.
9295         * modules/sys_ioctl-c++-tests: New file, extracted from
9296         modules/sys_ioctl-tests.
9297         * modules/sys_ioctl-tests: Depend on it.
9298         * modules/sys_select-c++-tests: New file, extracted from
9299         modules/sys_select-tests.
9300         * modules/sys_select-tests: Depend on it.
9301         * modules/sys_socket-c++-tests: New file, extracted from
9302         modules/sys_socket-tests.
9303         * modules/sys_socket-tests: Depend on it.
9304         * modules/sys_stat-c++-tests: New file, extracted from
9305         modules/sys_stat-tests.
9306         * modules/sys_stat-tests: Depend on it.
9307         * modules/sys_time-c++-tests: New file, extracted from
9308         modules/sys_time-tests.
9309         * modules/sys_time-tests: Depend on it.
9310         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9311         * modules/time-tests: Depend on it.
9312         * modules/unistd-c++-tests: New file, extracted from
9313         modules/unistd-tests.
9314         * modules/unistd-tests: Depend on it.
9315         * modules/wchar-c++-tests: New file, extracted from
9316         modules/wchar-tests.
9317         * modules/wchar-tests: Depend on it.
9318         * modules/wctype-c++-tests: New file, extracted from
9319         modules/wctype-tests.
9320         * modules/wctype-tests: Depend on it.
9321         Reported by Simon Josefsson.
9322
9323 2010-03-28  Bruno Haible  <bruno@clisp.org>
9324
9325         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9326         * gnulib-tool (func_exists_module): New function, extracted from
9327         func_verify_module.
9328         (func_verify_module): Use it.
9329         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9330         'foo' only if 'foo' exists.
9331         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9332         module.
9333
9334 2010-03-28  Bruno Haible  <bruno@clisp.org>
9335
9336         gnulib-tool: Add support for special categories of tests.
9337         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9338         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9339         (func_usage): Document them.
9340         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9341         inc_unportable_tests, inc_all_tests): New variables.
9342         (func_acceptable): Consider these variables.
9343         (func_modules_transitive_closure): Make it work when the 'Status' field
9344         consists of multiple words.
9345         (func_import): Store and restore the values of inc_cxx_tests,
9346         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9347         inc_all_tests in gnulib-comp.m4.
9348         (func_create_testdir): Set inc_all_tests to true.
9349         * doc/gnulib.texi (Extra tests modules): New section.
9350         Suggested by Jim Meyering.
9351
9352 2010-03-28  Bruno Haible  <bruno@clisp.org>
9353
9354         ansi-c++-opt: Allow turning off the C++ build by default.
9355         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9356         gl_CXX_CHOICE_DEFAULT_NO is defined.
9357         Requested by Eric Blake.
9358
9359 2010-03-28  Bruno Haible  <bruno@clisp.org>
9360
9361         unistd: Avoid #define replacements in C++ mode.
9362         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9363         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9364         setsockopt, shutdown, select): In C++, attach a warning to the function
9365         if possible, rather than #defining the symbol to a dysfunctional alias.
9366         Reported by John W. Eaton <jwe@gnu.org>.
9367
9368 2010-03-28  Bruno Haible  <bruno@clisp.org>
9369
9370         Fix link errors on mingw.
9371         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9372         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9373         $(LIBSOCKET).
9374         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9375         $(LIBSOCKET).
9376
9377 2010-03-28  Bruno Haible  <bruno@clisp.org>
9378             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9379
9380         lib-ignore: Determine different options for different compilers.
9381         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9382         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9383         Add comments.
9384         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9385         * NEWS: Mention the change.
9386
9387 2010-03-27  Bruno Haible  <bruno@clisp.org>
9388
9389         Remove unused GNULIB_XYZ macro definitions.
9390         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9391         * modules/fseek (configure.ac): Likewise.
9392         * modules/ioctl (configure.ac): Likewise.
9393         * modules/open (configure.ac): Likewise.
9394         * modules/stdlib-safer (configure.ac): Likewise.
9395
9396 2010-03-27  Bruno Haible  <bruno@clisp.org>
9397
9398         Add a remark about certain modules.
9399         * modules/malloc (Comment): New section.
9400         * modules/realloc (Comment): Likewise.
9401         * modules/sigpipe (Comment): Likewise.
9402
9403 2010-03-27  Bruno Haible  <bruno@clisp.org>
9404
9405         Resolve conflict between the two kinds of module indicators.
9406         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9407         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9408         * modules/canonicalize (configure.ac): Invoke
9409         gl_MODULE_INDICATOR_FOR_TESTS.
9410         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9411         GNULIB_XYZ.
9412         * tests/test-dirent-c++.cc: Likewise.
9413         * tests/test-dirent-safer.c: Likewise.
9414         * tests/test-dup2.c: Likewise.
9415         * tests/test-fchdir.c: Likewise.
9416         * tests/test-fcntl-h-c++.cc: Likewise.
9417         * tests/test-getopt.c: Likewise.
9418         * tests/test-getopt.h: Likewise.
9419         * tests/test-langinfo-c++.cc: Likewise.
9420         * tests/test-locale-c++.cc: Likewise.
9421         * tests/test-math-c++.cc: Likewise.
9422         * tests/test-pty-c++.cc: Likewise.
9423         * tests/test-search-c++.cc: Likewise.
9424         * tests/test-signal-c++.cc: Likewise.
9425         * tests/test-spawn-c++.cc: Likewise.
9426         * tests/test-stdio-c++.cc: Likewise.
9427         * tests/test-stdlib-c++.cc: Likewise.
9428         * tests/test-string-c++.cc: Likewise.
9429         * tests/test-sys_ioctl-c++.cc: Likewise.
9430         * tests/test-sys_select-c++.cc: Likewise.
9431         * tests/test-sys_socket-c++.cc: Likewise.
9432         * tests/test-sys_stat-c++.cc: Likewise.
9433         * tests/test-sys_time-c++.cc: Likewise.
9434         * tests/test-time-c++.cc: Likewise.
9435         * tests/test-unistd-c++.cc: Likewise.
9436         * tests/test-wchar-c++.cc: Likewise.
9437         * tests/uninorm/test-u8-nfc.c: Likewise.
9438         * tests/uninorm/test-u8-nfd.c: Likewise.
9439         * tests/uninorm/test-u8-nfkc.c: Likewise.
9440         * tests/uninorm/test-u8-nfkd.c: Likewise.
9441         * tests/uninorm/test-u16-nfc.c: Likewise.
9442         * tests/uninorm/test-u16-nfd.c: Likewise.
9443         * tests/uninorm/test-u16-nfkc.c: Likewise.
9444         * tests/uninorm/test-u16-nfkd.c: Likewise.
9445         * tests/uninorm/test-u32-nfc.c: Likewise.
9446         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9447         * tests/uninorm/test-u32-nfd.c: Likewise.
9448         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9449         * tests/uninorm/test-u32-nfkc.c: Likewise.
9450         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9451         * tests/uninorm/test-u32-nfkd.c: Likewise.
9452         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9453         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9454
9455 2010-03-27  Bruno Haible  <bruno@clisp.org>
9456
9457         Distinguish two kinds of module indicators.
9458         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9459         gl_MODULE_INDICATOR.
9460         (gl_MODULE_INDICATOR): New macro.
9461         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9462         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9463         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9464         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9465         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9466         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9467         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9468         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9469         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9470         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9471         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9472         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9474         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9475         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9477         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9479         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9480         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9481         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9482         * modules/cloexec (configure.ac): Likewise.
9483         * modules/getopt-gnu (configure.ac): Likewise.
9484         * modules/uninorm/u8-normalize (configure.ac): Likewise.
9485         * modules/uninorm/u16-normalize (configure.ac): Likewise.
9486         * modules/uninorm/u32-normalize (configure.ac): Likewise.
9487         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
9488
9489 2010-03-27  Bruno Haible  <bruno@clisp.org>
9490
9491         New module description field 'Comment'.
9492         * gnulib-tool: New option --extract-comment.
9493         (func_usage): Document it.
9494         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
9495         (func_get_comment): New function.
9496         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
9497
9498 2010-03-27  Bruno Haible  <bruno@clisp.org>
9499
9500         Addendum to 2010-02-07 commit.
9501         * gnulib-tool (func_usage): Document --extract-applicability option.
9502
9503 2010-03-27  Bruno Haible  <bruno@clisp.org>
9504
9505         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
9506         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
9507         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
9508         rather than link errors.
9509
9510 2010-03-27  Bruno Haible  <bruno@clisp.org>
9511
9512         Avoid side effects from tests-related modules on the compilation of lib.
9513         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
9514         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
9515         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
9516         parameter. Emit into AM_CPPFLAGS a definition of the designated C
9517         macro.
9518         (func_import): Define a witness macro. Assign it a value that depends
9519         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
9520         tests-related modules.
9521         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
9522         Reported by Jim Meyering.
9523
9524 2010-03-27  Bruno Haible  <bruno@clisp.org>
9525
9526         Factorize common .m4 code.
9527         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
9528         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
9529         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
9530         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
9531         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9532         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
9533         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
9534         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9535         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9536         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9537         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
9538         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9539         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9540         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9541         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9542         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
9543         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9544         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9546         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
9547         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
9548         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9549         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9550         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9551         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9552         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9553         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
9554         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
9555         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
9556         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9557         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9558         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9559
9560 2010-03-27  Bruno Haible  <bruno@clisp.org>
9561
9562         Fix a compilation error on Cygwin with g++ >= 4.3.
9563         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
9564         if it is undefined or if we alias it to chmod.
9565         (lstat): Don't warn about the use of this function if it is undefined
9566         or if we alias it to stat.
9567         Reported by Simon Josefsson.
9568
9569 2010-03-27  Bruno Haible  <bruno@clisp.org>
9570
9571         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
9572         * modules/getlogin (configure.ac): Update.
9573
9574         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
9575         * modules/getlogin_r (configure.ac): Update.
9576
9577         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
9578         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
9579         * modules/inet_ntop (configure.ac): Update.
9580
9581         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
9582         * modules/inet_pton (configure.ac): Update.
9583
9584         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
9585         * modules/mbslen (configure.ac): Update.
9586
9587         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
9588         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
9589         * modules/forkpty (configure.ac): Update.
9590         * modules/openpty (configure.ac): Update.
9591
9592 2010-03-26  Simon Josefsson  <simon@josefsson.org>
9593
9594         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
9595         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
9596
9597 2010-03-25  Eric Blake  <eblake@redhat.com>
9598
9599         maint: use pragma consistently across replacement headers
9600         * lib/ctype.in.h (system_header): Hoist for consistent placement.
9601         * lib/dirent.in.h (system_header): Likewise.
9602         * lib/errno.in.h (system_header): Likewise.
9603         * lib/float.in.h (system_header): Likewise.
9604         * lib/getopt.in.h (system_header): Likewise.
9605         * lib/iconv.in.h (system_header): Likewise.
9606         * lib/inttypes.in.h (system_header): Likewise.
9607         * lib/langinfo.in.h (system_header): Likewise.
9608         * lib/locale.in.h (system_header): Likewise.
9609         * lib/math.in.h (system_header): Likewise.
9610         * lib/netdb.in.h (system_header): Likewise.
9611         * lib/netinet_in.in.h (system_header): Likewise.
9612         * lib/pty.in.h (system_header): Likewise.
9613         * lib/sched.in.h (system_header): Likewise.
9614         * lib/se-selinux.in.h (system_header): Likewise.
9615         * lib/search.in.h (system_header): Likewise.
9616         * lib/spawn.in.h (system_header): Likewise.
9617         * lib/stdarg.in.h (system_header): Likewise.
9618         * lib/stdint.in.h (system_header): Likewise.
9619         * lib/string.in.h (system_header): Likewise.
9620         * lib/strings.in.h (system_header): Likewise.
9621         * lib/sys_file.in.h (system_header): Likewise.
9622         * lib/sys_ioctl.in.h (system_header): Likewise.
9623         * lib/sys_socket.in.h (system_header): Likewise.
9624         * lib/sys_times.in.h (system_header): Likewise.
9625         * lib/sys_utsname.in.h (system_header): Likewise.
9626         * lib/sys_wait.in.h (system_header): Likewise.
9627         * lib/sysexits.in.h (system_header): Likewise.
9628         * lib/unistd.in.h (system_header): Likewise.
9629         * lib/wctype.in.h (system_header): Likewise.
9630
9631         arpa/inet: fix mingw compilation warning
9632         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
9633         Reported by Matthew Bolte.
9634
9635 2010-03-25  Bruno Haible  <bruno@clisp.org>
9636
9637         Avoid collision between gnulib wrapper and libintl wrapper.
9638         * lib/printf.c (printf): Don't define if a printf wrapper is already
9639         defined in intl/printf.c.
9640         Reported by Michel Boaventura <michel@michelboaventura.com>.
9641
9642 2010-03-25  Bruno Haible  <bruno@clisp.org>
9643
9644         Use ANSI C.
9645         * lib/readutmp.h (getutent): Provide ANSI C prototype.
9646
9647 2010-03-25  Bruno Haible  <bruno@clisp.org>
9648
9649         Minor formatting changes.
9650         * lib/acosl.c: Insert space before function argument list.
9651         * lib/argz.c: Likewise.
9652         * lib/asinl.c: Likewise.
9653         * lib/expl.c: Likewise.
9654         * lib/gen-uni-tables.c: Likewise.
9655         * lib/gettext.h: Likewise.
9656         * lib/glthread/lock.h: Likewise.
9657         * lib/tanl.c: Likewise.
9658         * lib/uniname/uniname.c: Likewise.
9659         * tests/test-idpriv-drop.c: Likewise.
9660         * tests/test-idpriv-droptemp.c: Likewise.
9661         * tests/test-lock.c: Likewise.
9662         * tests/test-tls.c: Likewise.
9663         * lib/argp-help.c: Insert space before function-like macro argument
9664         list.
9665         * lib/memcmp.c: Likewise.
9666         * tests/test-base64.c: Likewise.
9667         * lib/localename.c: Insert space before sizeof's argument list.
9668         * lib/safe-alloc.h: Likewise.
9669         * lib/file-set.h: Insert space before macro argument list.
9670         * tests/test-argp.c: Likewise.
9671         * lib/argp-namefrob.h: Insert space before function parameter list.
9672         * lib/getaddrinfo.c: Likewise.
9673         * lib/netdb.in.h: Likewise.
9674         * lib/parse-duration.h: Likewise.
9675         * lib/parse-duration.c: Likewise.
9676         * lib/poll.c: Likewise.
9677         * lib/select.c: Likewise.
9678         * lib/trim.h: Likewise.
9679         * tests/test-usleep.c: Likewise.
9680         * lib/ldexpl.c: Insert space before function parameter list and before
9681         function argument list.
9682         * lib/logl.c: Likewise.
9683         * lib/sqrtl.c: Likewise.
9684         * lib/trim.c: Likewise.
9685         * lib/cosl.c: Use GNU style indentation. Insert space before function
9686         argument list.
9687         * lib/sinl.c: Likewise.
9688         * lib/tsearch.c: Insert space after 'for'.
9689         Reported by Jim Meyering.
9690
9691 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
9692
9693         * maint.mk (sc_Wundef_boolean): Check for the presence of the
9694         config header before grepping, as it's not present before
9695         autoreconf/configure are run.  Reported by Simon Josefsson.
9696
9697 2010-03-23  Bruno Haible  <bruno@clisp.org>
9698
9699         pt_chown: Make it work with automake < 1.11.
9700         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
9701         Reported by Simon Josefsson.
9702
9703 2010-03-23  Bruno Haible  <bruno@clisp.org>
9704
9705         pt_chown: Don't depend on GPLed modules.
9706         * lib/pt_chown.c: Don't include idpriv.h.
9707         (main): Don't drop privileges.
9708         * modules/pt_chown (Depends-on): Remove idpriv-drop.
9709         Reported by Simon Josefsson.
9710
9711 2010-03-24  Simon Josefsson  <simon@josefsson.org>
9712
9713         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
9714         suggestions from karl@freefriends.org (Karl Berry).
9715
9716 2010-03-22  Eric Blake  <eblake@redhat.com>
9717
9718         gethostname: further tweaks
9719         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
9720         are overriding gethostname.
9721         Suggested by Bruno Haible.
9722
9723 2010-03-21  Bruno Haible  <bruno@clisp.org>
9724
9725         Fix comments.
9726         * lib/forkpty.c (rpl_forkpty): Fix comment.
9727         * lib/openpty.c (rpl_openpty): Likewise.
9728         Reported by Eric Blake.
9729
9730 2010-03-22  Eric Blake  <eblake@redhat.com>
9731
9732         gethostname: fix build on mingw
9733         * lib/unistd.in.h (includes): Work around fact that mingw
9734         <winsock2.h> re-includes <unistd.h>, by avoiding any
9735         redeclarations if we are being included by <winsock2.h>.
9736         Reported by Matthias Bolte.
9737
9738 2010-03-21  Bruno Haible  <bruno@clisp.org>
9739
9740         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9741         * lib/forkpty.c (forkpty): New replacement function, from glibc with
9742         modifications.
9743         * lib/pty.in.h (forkpty): Update declaration. Add comments.
9744         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
9745         provide the replacement.
9746         * modules/forkpty (Depends-on): Add openpty, login_tty.
9747         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
9748         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
9749         * doc/glibc-functions/forkpty.texi: More supported platforms.
9750         * config/srclist.txt: Add forkpty.c (commented).
9751
9752 2010-03-21  Bruno Haible  <bruno@clisp.org>
9753
9754         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
9755         (Makefile.am): Verify that PTY_LIB is defined.
9756
9757         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
9758
9759 2010-03-21  Bruno Haible  <bruno@clisp.org>
9760
9761         Tests for module 'login_tty'.
9762         * modules/login_tty-tests: New file.
9763         * tests/test-login_tty.c: New file.
9764
9765         New module 'login_tty'.
9766         * lib/login_tty.c: New file.
9767         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
9768         * modules/login_tty: New file.
9769         * doc/glibc-functions/login_tty.texi: Mention the new module.
9770
9771 2010-03-21  Bruno Haible  <bruno@clisp.org>
9772
9773         login_tty: Documentation.
9774         * doc/glibc-functions/login_tty.texi: New file.
9775         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
9776
9777 2010-03-21  Bruno Haible  <bruno@clisp.org>
9778
9779         pty: Consistent macro naming.
9780         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
9781         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
9782         * modules/pty (configure.ac): Update.
9783
9784 2010-03-21  Bruno Haible  <bruno@clisp.org>
9785
9786         Tests for openpty: Make stricter.
9787         * tests/test-openpty.c (main): Add test of canonical processing and
9788         erase.
9789         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
9790
9791         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9792         * lib/openpty.c (openpty): New replacement function.
9793         * lib/pty.in.h: Include <termios.h>.
9794         (openpty): Update declaration. Add comments.
9795         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
9796         is not declared, arrange to provide the replacement. Check for _getpty
9797         and posix_openpt.
9798         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
9799         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
9800         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
9801         * modules/pty-tests (test_pty_c___LDADD): New variable.
9802         * doc/glibc-functions/openpty.texi: More supported platforms.
9803
9804 2010-03-21  Bruno Haible  <bruno@clisp.org>
9805
9806         setenv: Tweaks.
9807         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
9808         the test program.
9809         * doc/posix-functions/setenv.texi: Update platforms list.
9810
9811 2010-03-21  Bruno Haible  <bruno@clisp.org>
9812
9813         New module 'unlockpt'.
9814         * lib/unlockpt.c: New file, from glibc with modifications.
9815         * m4/unlockpt.m4: New file.
9816         * modules/unlockpt: New file.
9817         * lib/stdlib.in.h (unlockpt): New declaration.
9818         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
9819         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
9820         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
9821         HAVE_UNLOCKPT.
9822         * doc/posix-functions/unlockpt.texi: Mention the new module.
9823         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
9824         * config/srclist.txt: Add unlockpt.c (commented).
9825
9826 2010-03-21  Jim Meyering  <meyering@redhat.com>
9827
9828         maint.mk: prohibit inclusion of "intprops.h" without use
9829         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
9830
9831 2010-03-21  Bruno Haible  <bruno@clisp.org>
9832
9833         New module 'grantpt'.
9834         * lib/grantpt.c: New file, from glibc with modifications.
9835         * m4/grantpt.m4: New file.
9836         * modules/grantpt: New file.
9837         * lib/stdlib.in.h (grantpt): New declaration.
9838         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
9839         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
9840         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
9841         HAVE_GRANTPT.
9842         * doc/posix-functions/grantpt.texi: Mention the new module.
9843         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
9844         * config/srclist.txt: Add grantpt.c (commented).
9845
9846 2010-03-21  Bruno Haible  <bruno@clisp.org>
9847
9848         New module 'pt_chown'.
9849         * lib/pt_chown.c: New file, from glibc with modifications.
9850         * lib/pty-private.h: New file, from glibc with modifications.
9851         * modules/pt_chown: New file.
9852         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
9853
9854 2010-03-21  Bruno Haible  <bruno@clisp.org>
9855
9856         Tests for module 'ptsname'.
9857         * modules/ptsname-tests: New file.
9858         * tests/test-ptsname.c: New file.
9859
9860         New module 'ptsname'.
9861         * lib/ptsname.c: New file, from glibc with modifications.
9862         * m4/ptsname.m4: New file.
9863         * modules/ptsname: New file.
9864         * lib/stdlib.in.h (ptsname): New declaration.
9865         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
9866         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
9867         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
9868         HAVE_PTSNAME.
9869         * doc/posix-functions/ptsname.texi: Mention the new module.
9870         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
9871         * config/srclist.txt: Add ptsname.c (commented).
9872
9873 2010-03-21  Bruno Haible  <bruno@clisp.org>
9874
9875         Tests for module 'ttyname_r'.
9876         * modules/ttyname_r-tests: New file.
9877         * tests/test-ttyname_r.c: New file.
9878
9879         New module 'ttyname_r'.
9880         * lib/ttyname_r.c: New file.
9881         * m4/ttyname_r.m4: New file.
9882         * modules/ttyname_r: New file.
9883         * lib/unistd.in.h (ttyname_r): New declaration.
9884         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
9885         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
9886         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
9887         HAVE_TTYNAME_R.
9888         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
9889         * doc/posix-functions/ttyname_r.texi: Mention the new module.
9890
9891 2010-03-20  Bruno Haible  <bruno@clisp.org>
9892
9893         signal: Undefine macro definitions in C++ mode.
9894         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
9895         sigfillset): Undefine macro definitions from the system header in C++
9896         mode.
9897         Reported by John W. Eaton <jwe@gnu.org>.
9898
9899 2010-03-20  Bruno Haible  <bruno@clisp.org>
9900
9901         Ensure no #include statements inside extern "C" { ... }.
9902         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
9903         contain #include statements.
9904         * lib/time.in.h: Likewise.
9905
9906 2010-03-20  Bruno Haible  <bruno@clisp.org>
9907
9908         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
9909         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
9910         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
9911         Reported by John W. Eaton <jwe@gnu.org>.
9912
9913 2010-03-20  Bruno Haible  <bruno@clisp.org>
9914
9915         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
9916         Reported by Jim Meyering.
9917
9918 2010-03-20  Bruno Haible  <bruno@clisp.org>
9919
9920         pipe: Set errno upon failure.
9921         * lib/pipe.h: Specify that when -1 is returned, errno is set.
9922         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
9923         errno value in error message.
9924
9925 2010-03-20  Bruno Haible  <bruno@clisp.org>
9926             Jim Meyering  <meyering@redhat.com>
9927
9928         lchown: Avoid "unused variable" warning.
9929         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
9930
9931 2010-03-20  Bruno Haible  <bruno@clisp.org>
9932
9933         Work around unlink() bug on MacOS X 10.5.6.
9934         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
9935         attempting to unlink a parent directory.
9936         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
9937         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
9938         activate for the replacement function.
9939         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
9940
9941 2010-03-20  Bruno Haible  <bruno@clisp.org>
9942
9943         Fix link errors on Solaris 8.
9944         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
9945         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
9946
9947 2010-03-19  Jim Meyering  <meyering@redhat.com>
9948
9949         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
9950         The _LIBC implementation of build_range_exp correctly honors the
9951         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
9952         However, the non-_LIBC implementation would ignore that syntax-bit
9953         flag and return REG_ERANGE unconditionally.
9954         This change makes it honor that flag.
9955         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
9956         Make two pointer parameters "const".
9957         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
9958         (parse_bracket_exp): Update caller.
9959
9960         regex.m4: correct the reversed range endpoint ([b-a]) test
9961         * m4/regex.m4: When requiring that [b-a] evoke failure,
9962         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
9963         test pass once again for x86-based systems.
9964
9965 2010-03-19  Bruno Haible  <bruno@clisp.org>
9966
9967         scandir: Fix link error on Solaris 8.
9968         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
9969         macros.
9970
9971 2010-03-19  Bruno Haible  <bruno@clisp.org>
9972
9973         getusershell: Fix documentation.
9974         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
9975         module.
9976         * doc/glibc-functions/setusershell.texi: Likewise.
9977
9978         getusershell: Provide declaration, missing on Solaris 9.
9979         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
9980         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
9981         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
9982         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
9983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9984         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
9985         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
9986         HAVE_GETUSERSHELL.
9987         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
9988
9989 2010-03-19  Bruno Haible  <bruno@clisp.org>
9990
9991         wctype: Provide iswblank function.
9992         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
9993         exists and is fine.
9994         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
9995         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
9996         * tests/test-wctype.c (main): Re-enable the iswblank tests.
9997         * doc/posix-functions/iswblank.texi: Update.
9998
9999 2010-03-19  Bruno Haible  <bruno@clisp.org>
10000
10001         Tests of module 'pty' in C++ mode.
10002         * modules/pty-tests: New file.
10003         * tests/test-pty-c++.cc: New file.
10004         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10005
10006 2010-03-19  Eric Blake  <eblake@redhat.com>
10007
10008         logb: fix documentation
10009         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10010         1.5 declaration bug.
10011
10012         forkpty, openpty: prefer glibc's const-safe prototype
10013         * lib/forkpty.c (rpl_forkpty): New file.
10014         * lib/openpty.c (rpl_openpty): Likewise.
10015         * modules/forkpty (Files): Distribute it.
10016         * modules/openpty (Files): Likewise.
10017         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10018         check...
10019         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10020         replacement for for non-const BSD signature.
10021         * modules/pty (Makefile.am): Substitute witnesses.
10022         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10023         * tests/test-forkpty.c: Update signature check.
10024         * tests/test-openpty.c: Likewise.
10025         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10026         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10027
10028         forkpty, openpty: split functions into new modules
10029         * modules/pty (Makefile.am): Substitute new witnesses.
10030         (Libraries): Move library detection...
10031         * modules/forkpty: ...into new module.
10032         * modules/openpty: Another new module.
10033         * modules/pty-tests: Rename and split...
10034         * modules/forkpty-tests: ...to this...
10035         * modules/openpty-tests: ...and this.
10036         * tests/test-pty.c: Rename and split...
10037         * tests/test-forkpty.c: ...to this...
10038         * tests/test-openpty.c: ...and this.
10039         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10040         (gl_PTY): Split library searching...
10041         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10042         (gl_FORKPTY, gl_OPENPTY): New macros.
10043         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10044         * NEWS: Mention the split.
10045         * MODULES.html.sh (Misc): Document the modules.
10046         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10047         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10048
10049         pty: improve replacement header
10050         * lib/pty.in.h: New file.
10051         * modules/pty (Files): Ship it.
10052         (Makefile.am): Always build replacement.
10053         * m4/pty.m4: Rename...
10054         * m4/pty_h.m4: ...to this.
10055         (gl_PTY): Modernize setting of witness macros; update check of
10056         forkpty to take proper advantage of cache.
10057         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10058
10059         getopt: avoid compiler warning
10060         * lib/getopt.c (attribute_hidden): Remove unused macro.
10061
10062 2010-03-18  Bruno Haible  <bruno@clisp.org>
10063
10064         Fix link errors on Solaris 8.
10065         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10066         * modules/search-tests (test_search_c___LDADD): Likewise.
10067         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10068         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10069         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10070         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10071         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10072         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10073         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10074
10075 2010-03-18  Bruno Haible  <bruno@clisp.org>
10076
10077         Fix bug introduced on 2010-03-14.
10078         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10079         (gl_SPAWN_H): Require it.
10080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10081         Reported by Simon Josefsson.
10082
10083 2010-03-18  Bruno Haible  <bruno@clisp.org>
10084
10085         Fix typo introduced on 2009-12-31.
10086         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10087         posix_spawn_file_actions_adddup2.
10088
10089 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10090         and Eric Blake  <eblake@redhat.com>
10091
10092         test-vc-list-files-git: make more robust
10093         * tests/test-vc-list-files-git.sh: Unset problematic environment
10094         variables.  Chain commands together.
10095
10096 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10097
10098         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10099         `AC_CHECK_DECL' invocation.
10100
10101 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10102
10103         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10104         appears before executable statements. Suggested by Petr Sumbera
10105         <Petr.Sumbera@Sun.COM>.
10106
10107 2010-03-14  Bruno Haible  <bruno@clisp.org>
10108
10109         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10110         portability problems. Instead use a simpler test.
10111         (main): Check that invalid arguments are rejected only on Linux.
10112
10113 2010-03-14  Bruno Haible  <bruno@clisp.org>
10114
10115         Fix bug introduced on 2009-12-31.
10116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10117         gl_PREREQ_SYS_H_WINSOCK2 always.
10118         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10119         SYS_SOCKET_H variable.
10120         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10121         Update comments.
10122         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10123         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10124         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10125         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10126         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10127
10128 2010-03-14  Bruno Haible  <bruno@clisp.org>
10129
10130         Fix values returned by sinl, cosl.
10131         * lib/trigl.h: Add specification comments.
10132         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10133         that combines the values from the precomputed table with the values of
10134         the Chebyshev polynomials.
10135
10136 2010-03-14  Bruno Haible  <bruno@clisp.org>
10137
10138         Fix compilation error when modules 'posix_spawn[p]' are not used.
10139         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10140         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10141
10142 2010-03-14  Bruno Haible  <bruno@clisp.org>
10143
10144         Fix compilation error on mingw when module 'time_r' is not used.
10145         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10146         is 1.
10147         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10148         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10149         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10150         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10151
10152 2010-03-14  Bruno Haible  <bruno@clisp.org>
10153
10154         Fix compilation error with Sun C.
10155         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10156         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10157         instead of GCC specific ULONG_LONG_MAX.
10158         * lib/xstrtoll.c: Likewise.
10159         * lib/xstrtoull.c: Likewise.
10160
10161 2010-03-13  Bruno Haible  <bruno@clisp.org>
10162
10163         Allow the user to disable C++ code and tests.
10164         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10165         (gl_PROG_ANSI_CXX): Require it.
10166
10167 2010-03-13  Bruno Haible  <bruno@clisp.org>
10168
10169         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10170         cases.
10171
10172 2010-03-13  Bruno Haible  <bruno@clisp.org>
10173
10174         Test that gnulib does not break the standard C++ headers.
10175         * tests/test-locale-c++2.cc: New file.
10176         * modules/locale-tests (Files): Add it.
10177         (Makefile.am): Compile it for test-locale-c++.
10178         * tests/test-math-c++2.cc: New file.
10179         * modules/math-tests (Files): Add it.
10180         (Makefile.am): Compile it for test-math-c++.
10181         * tests/test-signal-c++2.cc: New file.
10182         * modules/signal-tests (Files): Add it.
10183         (Makefile.am): Compile it for test-signal-c++.
10184         * tests/test-stdio-c++2.cc: New file.
10185         * modules/stdio-tests (Files): Add it.
10186         (Makefile.am): Compile it for test-stdio-c++.
10187         * tests/test-stdlib-c++2.cc: New file.
10188         * modules/stdlib-tests (Files): Add it.
10189         (Makefile.am): Compile it for test-stdlib-c++.
10190         * tests/test-string-c++2.cc: New file.
10191         * modules/string-tests (Files): Add it.
10192         (Makefile.am): Compile it for test-string-c++.
10193         * tests/test-time-c++2.cc: New file.
10194         * modules/time-tests (Files): Add it.
10195         (Makefile.am): Compile it for test-time-c++.
10196         Reported by John W. Eaton <jwe@gnu.org>.
10197
10198 2010-03-13  Bruno Haible  <bruno@clisp.org>
10199
10200         * gnulib-tool (func_usage): Clarify which options are available for
10201         --create-testdir and --create-megatestdir.
10202
10203 2010-03-13  Bruno Haible  <bruno@clisp.org>
10204
10205         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10206         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10207         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10208         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10209         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10210         when appropriate.
10211         Reported by Jim Meyering.
10212
10213 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10214
10215         * gnulib-tool (func_import): Explain origin of code.
10216
10217 2010-03-12  Bruno Haible  <bruno@clisp.org>
10218
10219         Fix problem with automake's definition of CXXLINK.
10220         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10221         Reported by Simon Josefsson and Ludovic Courtès.
10222
10223 2010-03-12  Bruno Haible  <bruno@clisp.org>
10224
10225         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10226         stable releases.
10227
10228 2010-03-11  Bruno Haible  <bruno@clisp.org>
10229
10230         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10231         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10232         whether the system provides one variant or multiple variants of the
10233         function.
10234         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10235         C++ compilers.
10236         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10237         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10238         Reported by Jim Meyering.
10239
10240 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10241
10242         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10243
10244 2010-03-08  Bruno Haible  <bruno@clisp.org>
10245
10246         gnulib-tool: Add support for --libtool in --create-testdir.
10247         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10248         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10249
10250 2010-03-08  Eric Blake  <eblake@redhat.com>
10251
10252         gnulib-tool.texi: mention possibility of git submodule
10253         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10254         submodules.
10255         * doc/.gitignore: Ignore another generated file.
10256
10257 2010-03-08  Karl Berry  <karl@gnu.org>
10258
10259         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10260         of committing gnulib files while skipping others.
10261
10262 2010-03-07  Bruno Haible  <bruno@clisp.org>
10263
10264         Tests of module 'wctype' in C++ mode.
10265         * tests/test-wctype-c++.cc: New file.
10266         * modules/wctype-tests (Files): Add it and tests/signature.h.
10267         (Depends-on): Add ansi-c++-opt.
10268         (Makefile.am): Arrange to compile and run test-wctype-c++.
10269
10270         Tests of module 'wchar' in C++ mode.
10271         * tests/test-wchar-c++.cc: New file.
10272         * modules/wchar-tests (Files): Add it and tests/signature.h.
10273         (Depends-on): Add ansi-c++-opt.
10274         (Makefile.am): Arrange to compile and run test-wchar-c++.
10275         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10276         gl_MODULE_INDICATOR.
10277
10278         Tests of module 'unistd' in C++ mode.
10279         * tests/test-unistd-c++.cc: New file.
10280         * modules/unistd-tests (Files): Add it and tests/signature.h.
10281         (Depends-on): Add ansi-c++-opt.
10282         (Makefile.am): Arrange to compile and run test-unistd-c++.
10283         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10284         gl_MODULE_INDICATOR.
10285
10286         Tests of module 'time' in C++ mode.
10287         * tests/test-time-c++.cc: New file.
10288         * modules/time-tests (Files): Add it and tests/signature.h.
10289         (Depends-on): Add ansi-c++-opt.
10290         (Makefile.am): Arrange to compile and run test-time-c++.
10291         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10292
10293         Tests of module 'sys_time' in C++ mode.
10294         * tests/test-sys_time-c++.cc: New file.
10295         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10296         (Depends-on): Add ansi-c++-opt.
10297         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10298         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10299         gl_MODULE_INDICATOR.
10300
10301         Tests of module 'sys_stat' in C++ mode.
10302         * tests/test-sys_stat-c++.cc: New file.
10303         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10304         (Depends-on): Add ansi-c++-opt.
10305         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10306         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10307         gl_MODULE_INDICATOR.
10308
10309         Tests of module 'sys_socket' in C++ mode.
10310         * tests/test-sys_socket-c++.cc: New file.
10311         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10312         (Depends-on): Add ansi-c++-opt.
10313         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10315         gl_MODULE_INDICATOR.
10316
10317         Tests of module 'sys_select' in C++ mode.
10318         * tests/test-sys_select-c++.cc: New file.
10319         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10320         (Depends-on): Add ansi-c++-opt.
10321         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10322         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10323         gl_MODULE_INDICATOR.
10324
10325         Tests of module 'sys_ioctl' in C++ mode.
10326         * tests/test-sys_ioctl-c++.cc: New file.
10327         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10328         (Depends-on): Add ansi-c++-opt.
10329         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10331         gl_MODULE_INDICATOR.
10332
10333         Tests of module 'string' in C++ mode.
10334         * tests/test-string-c++.cc: New file.
10335         * modules/string-tests (Files): Add it and tests/signature.h.
10336         (Depends-on): Add ansi-c++-opt.
10337         (Makefile.am): Arrange to compile and run test-string-c++.
10338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10339         gl_MODULE_INDICATOR.
10340
10341         Tests of module 'stdlib' in C++ mode.
10342         * tests/test-stdlib-c++.cc: New file.
10343         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10344         (Depends-on): Add ansi-c++-opt.
10345         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10346         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10347         gl_MODULE_INDICATOR.
10348
10349         Tests of module 'stdio' in C++ mode.
10350         * tests/test-stdio-c++.cc: New file.
10351         * modules/stdio-tests (Files): Add it and tests/signature.h.
10352         (Depends-on): Add ansi-c++-opt.
10353         (Makefile.am): Arrange to compile and run test-stdio-c++.
10354         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10355         gl_MODULE_INDICATOR.
10356
10357         Tests of module 'spawn' in C++ mode.
10358         * tests/test-spawn-c++.cc: New file.
10359         * modules/spawn-tests (Files): Add it and tests/signature.h.
10360         (Depends-on): Add ansi-c++-opt.
10361         (Makefile.am): Arrange to compile and run test-spawn-c++.
10362         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10363         gl_MODULE_INDICATOR.
10364
10365         Tests of module 'signal' in C++ mode.
10366         * tests/test-signal-c++.cc: New file.
10367         * modules/signal-tests (Files): Add it and tests/signature.h.
10368         (Depends-on): Add ansi-c++-opt.
10369         (Makefile.am): Arrange to compile and run test-signal-c++.
10370         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10371         gl_MODULE_INDICATOR.
10372
10373         Tests of module 'search' in C++ mode.
10374         * tests/test-search-c++.cc: New file.
10375         * modules/search-tests (Files): Add it and tests/signature.h.
10376         (Depends-on): Add ansi-c++-opt.
10377         (Makefile.am): Arrange to compile and run test-search-c++.
10378         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10379         gl_MODULE_INDICATOR.
10380
10381         Tests of module 'math' in C++ mode.
10382         * tests/test-math-c++.cc: New file.
10383         * modules/math-tests (Files): Add it and tests/signature.h.
10384         (Depends-on): Add ansi-c++-opt.
10385         (Makefile.am): Arrange to compile and run test-math-c++.
10386         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10387
10388         Tests of module 'locale' in C++ mode.
10389         * tests/test-locale-c++.cc: New file.
10390         * modules/locale-tests (Files): Add it and tests/signature.h.
10391         (Depends-on): Add ansi-c++-opt.
10392         (Makefile.am): Arrange to compile and run test-locale-c++.
10393         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10394         gl_MODULE_INDICATOR.
10395
10396         Tests of module 'langinfo' in C++ mode.
10397         * tests/test-langinfo-c++.cc: New file.
10398         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10399         (Depends-on): Add ansi-c++-opt.
10400         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10401         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10402         gl_MODULE_INDICATOR.
10403
10404         Tests of module 'iconv-h' in C++ mode.
10405         * tests/test-iconv-h-c++.cc: New file.
10406         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10407         (Depends-on): Add ansi-c++-opt.
10408         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10409
10410         Tests of module 'glob' in C++ mode.
10411         * tests/test-glob-c++.cc: New file.
10412         * modules/glob-tests (Files): Add it.
10413         (Depends-on): Add ansi-c++-opt.
10414         (Makefile.am): Arrange to compile and run test-glob-c++.
10415
10416         Tests of module 'fcntl-h' in C++ mode.
10417         * tests/test-fcntl-h-c++.cc: New file.
10418         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10419         (Depends-on): Add ansi-c++-opt.
10420         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10421         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10422         gl_MODULE_INDICATOR.
10423
10424         Tests of module 'dirent' in C++ mode.
10425         * tests/test-dirent-c++.cc: New file.
10426         * modules/dirent-tests (Files): Add it and tests/signature.h.
10427         (Depends-on): Add ansi-c++-opt.
10428         (Makefile.am): Arrange to compile and run test-dirent-c++.
10429         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10430         gl_MODULE_INDICATOR.
10431
10432         New module 'ansi-c++-opt'.
10433         * modules/ansi-c++-opt: New file.
10434         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10435
10436         Document C++ namespace mode.
10437         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10438
10439         wctype: Avoid #define replacements in C++ mode.
10440         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10441         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10442         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10443         In C++, define a namespaced alias symbol.
10444         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10445         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10446         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10447         rule.
10448
10449         wchar: Avoid #define replacements in C++ mode.
10450         * lib/wchar.in.h: Include c++defs.h.
10451         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10452         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10453         symbol.
10454         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10455         * modules/wchar (Depends-on): Add c++defs.
10456         (Makefile.am): Update wchar.h rule.
10457
10458         unistd: Avoid #define replacements in C++ mode.
10459         * lib/unistd.in.h: Include c++defs.h.
10460         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10461         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10462         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10463         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10464         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
10465         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
10466         symbol.
10467         (environ): Update.
10468         * modules/unistd (Depends-on): Add c++defs.
10469         (Makefile.am): Update unistd.h rule.
10470
10471         time: Avoid #define replacements in C++ mode.
10472         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
10473         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
10474         define a namespaced alias symbol.
10475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
10476         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
10477         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
10478         * modules/time (Depends-on): Add c++defs, warn-on-use.
10479         (Makefile.am): Update time.h rule.
10480         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10481         * modules/nanosleep (configure.ac): Likewise.
10482         * modules/strptime (configure.ac): Likewise.
10483         * modules/timegm (configure.ac): Likewise.
10484
10485         sys_time: Avoid #define replacements in C++ mode.
10486         * lib/sys_time.in.h: Include c++defs.h.
10487         (gettimeofday): In C++, define a namespaced alias symbol.
10488         * modules/sys_time (Depends-on): Add c++defs.
10489         (Makefile.am): Update sys/time.h rule.
10490
10491         sys_stat: Avoid #define replacements in C++ mode.
10492         * lib/sys_stat.in.h: Include c++defs.h.
10493         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
10494         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
10495         namespaced alias symbol.
10496         In C++, define a namespaced alias symbol.
10497         * modules/sys_stat (Depends-on): Add c++defs.
10498         (Makefile.am): Update sys/stat.h rule.
10499
10500         sys_socket: Avoid #define replacements in C++ mode.
10501         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
10502         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
10503         definitions also when the system has a <sys/socket.h>.
10504         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10505         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
10506         In C++, define a namespaced alias symbol.
10507         * modules/sys_socket (Depends-on): Add c++defs.
10508         (Makefile.am): Update sys/socket.h rule.
10509
10510         sys_select: Avoid #define replacements in C++ mode.
10511         * lib/sys_select.in.h: Include c++defs.h. Enable the function
10512         definitions also when the system has a <sys/select.h>.
10513         (select): In C++, define a namespaced alias symbol.
10514         * modules/sys_select (Depends-on): Add c++defs.
10515         (Makefile.am): Update sys/select.h rule.
10516
10517         sys_ioctl: Avoid #define replacements in C++ mode.
10518         * lib/sys_ioctl.in.h: Include c++defs.h.
10519         (ioctl): In C++, define a namespaced alias symbol.
10520         * modules/sys_ioctl (Depends-on): Add c++defs.
10521         (Makefile.am): Update sys/ioctl.h rule.
10522
10523         string: Avoid #define replacements in C++ mode.
10524         * lib/string.in.h: Include c++defs.h.
10525         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
10526         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10527         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10528         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
10529         strsignal, strverscmp): In C++, define a namespaced alias symbol.
10530         * modules/string (Depends-on): Add c++defs.
10531         (Makefile.am): Update string.h rule.
10532
10533         stdlib: Avoid #define replacements in C++ mode.
10534         * lib/stdlib.in.h: Include c++defs.h.
10535         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
10536         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
10537         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
10538         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
10539         symbol.
10540         * modules/stdlib (Depends-on): Add c++defs.
10541         (Makefile.am): Update stdlib.h rule.
10542
10543         stdio: Avoid #define replacements in C++ mode.
10544         * lib/stdio.in.h: Include c++defs.h.
10545         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
10546         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
10547         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
10548         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
10549         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
10550         namespaced alias symbol.
10551         * modules/stdio (Depends-on): Add c++defs.
10552         (Makefile.am): Update stdio.h rule.
10553
10554         spawn: Avoid #define replacements in C++ mode.
10555         * lib/spawn.in.h: Include c++defs.h.
10556         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10557         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10558         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10559         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10560         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10561         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10562         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10563         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10564         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10565         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10566         In C++, define a namespaced alias symbol.
10567         * modules/spawn (Depends-on): Add c++defs.
10568         (Makefile.am): Update spawn.h rule.
10569
10570         signal: Avoid #define replacements in C++ mode.
10571         * lib/signal.in.h: Include c++defs.h.
10572         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10573         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
10574         namespaced alias symbol.
10575         * modules/signal (Depends-on): Add c++defs.
10576         (Makefile.am): Update signal.h rule.
10577
10578         search: Avoid #define replacements in C++ mode.
10579         * lib/search.in.h: Include c++defs.h.
10580         (_gl_search_compar_fn, _gl_search_action_fn): New types.
10581         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
10582         symbol.
10583         * modules/search (Depends-on): Add c++defs.
10584         (Makefile.am): Update search.h rule.
10585
10586         math: Avoid #define replacements in C++ mode.
10587         * lib/math.in.h: Include c++defs.h.
10588         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
10589         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
10590         trunc, truncl): In C++, define a namespaced alias symbol.
10591         * modules/math (Depends-on): Add c++defs.
10592         (Makefile.am): Update math.h rule.
10593
10594         locale: Avoid #define replacements in C++ mode.
10595         * lib/locale.in.h: Include c++defs.h.
10596         (duplocale): In C++, define a namespaced alias symbol.
10597         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
10598         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
10599         * modules/locale (Depends-on): Add c++defs.
10600         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
10601
10602         langinfo: Avoid #define replacements in C++ mode.
10603         * lib/langinfo.in.h: Include c++defs.h.
10604         (nl_langinfo): In C++, define a namespaced alias symbol.
10605         * modules/langinfo (Depends-on): Add c++defs.
10606         (Makefile.am): Update langinfo.h rule.
10607
10608         iconv-h: Avoid #define replacements in C++ mode.
10609         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
10610         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
10611         symbol.
10612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10613         whenever iconv is present.
10614         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
10615         (Makefile.am): Update iconv.h rule.
10616
10617         glob: Avoid #define replacements in C++ mode.
10618         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
10619         (_gl_glob_errfunc_fn): New type.
10620         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
10621         symbol.
10622         * modules/glob (Depends-on): Add c++defs, warn-on-use.
10623         (Makefile.am): Update glob.h rule.
10624
10625         fcntl-h: Avoid #define replacements in C++ mode.
10626         * lib/fcntl.in.h: Include c++defs.h.
10627         (fcntl, open, openat): In C++, define a namespaced alias symbol.
10628         * modules/fcntl-h (Depends-on): Add c++defs.
10629         (Makefile.am): Update fcntl.h rule.
10630
10631         dirent: Avoid #define replacements in C++ mode.
10632         * lib/dirent.in.h: Include c++defs.h.
10633         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
10634         namespaced alias symbol.
10635         (dirfd): Update declaration.
10636         * modules/dirent (Depends-on): Add c++defs.
10637         (Makefile.am): Update dirent.h rule.
10638
10639         ctype: Make it usable in C++ code.
10640         * lib/ctype.in.h: Include c++defs.h.
10641         (isblank): Declare as extern "C".
10642         * modules/ctype (Depends-on): Add c++defs.
10643         (Makefile.am): Update ctype.h rule.
10644
10645         New module 'c++defs'.
10646         * modules/c++defs: New file.
10647         * build-aux/c++defs.h: New file.
10648         Reported by John W. Eaton <jwe@gnu.org>.
10649
10650 2010-03-07  Bruno Haible  <bruno@clisp.org>
10651
10652         logb: Provide missing declaration for Cygwin.
10653         * lib/math.in.h (logb): New declaration.
10654         * m4/logb.m4: New file.
10655         * modules/logb (Files): Add m4/logb.m4.
10656         (Depends-on): Add math.
10657         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
10658         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
10659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
10660         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
10661         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
10662
10663 2010-03-07  Bruno Haible  <bruno@clisp.org>
10664
10665         Fix test-cond link error.
10666         * tests/test-cond.c: Include <stdio.h>.
10667
10668 2010-03-07  Bruno Haible  <bruno@clisp.org>
10669
10670         Fix test-dirent-safer link error.
10671         * modules/dirent-safer-tests (Makefile.am): Define
10672         test_dirent_safer_LDADD.
10673
10674 2010-03-07  Bruno Haible  <bruno@clisp.org>
10675
10676         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
10677         among default module list.
10678
10679 2010-03-07  Bruno Haible  <bruno@clisp.org>
10680
10681         Fix link error on platforms with GNU libiconv.
10682         * modules/unistr/u8-strcoll-tests (Makefile): Define
10683         test_u8_strcoll_LDADD.
10684         * modules/unistr/u16-strcoll-tests (Makefile): Define
10685         test_u16_strcoll_LDADD.
10686         * modules/unistr/u32-strcoll-tests (Makefile): Define
10687         test_u32_strcoll_LDADD.
10688
10689 2010-03-07  Bruno Haible  <bruno@clisp.org>
10690
10691         Use POSIX declarations for socket functions.
10692         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
10693         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
10694         rpl_sendto): Change declaration to match POSIX.
10695         * lib/connect.c (rpl_connect): Likewise.
10696         * lib/accept.c (rpl_accept): Likewise.
10697         * lib/bind.c (rpl_bind): Likewise.
10698         * lib/getpeername.c (rpl_getpeername): Likewise.
10699         * lib/getsockname.c (rpl_getsockname): Likewise.
10700         * lib/recv.c (rpl_recv): Likewise.
10701         * lib/send.c (rpl_send): Likewise.
10702         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10703         * lib/sendto.c (rpl_sendto): Likewise.
10704
10705 2010-03-06  Bruno Haible  <bruno@clisp.org>
10706
10707         Clarify access, euidaccess, faccessat.
10708         * doc/posix-functions/faccessat.texi: Mention security problem under
10709         "Other problems", not "Portability problems".
10710         * doc/posix-functions/access.texi: Likewise. Mention a related security
10711         problem.
10712         * doc/glibc-functions/euidaccess.texi: Mention security problems.
10713         * lib/euidaccess.c: Add comments about platforms.
10714         * lib/unistd.in.h (access, euidaccess): Add warnings.
10715
10716 2010-03-07  Bruno Haible  <bruno@clisp.org>
10717
10718         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
10719         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
10720         (POSIX_SPAWN_SETSCHEDULER): Likewise.
10721         (POSIX_SPAWN_USEVFORK): Define in a way that works when
10722         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10723         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
10724         declare when POSIX_SPAWN_SETSCHEDULER is zero.
10725         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
10726         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
10727         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
10728         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
10729         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
10730         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
10731         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
10732         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
10733         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
10734         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
10735         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
10736         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
10737         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
10738         Likewise.
10739         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
10740         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
10741         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
10742         Likewise.
10743         * tests/test-spawn.c (main): Make it work when
10744         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10745
10746 2010-03-07  Bruno Haible  <bruno@clisp.org>
10747
10748         Fix incorrect Makefile.am generation in German locale.
10749         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10750         Execute sed command with character range in C locale.
10751
10752 2010-03-06  Bruno Haible  <bruno@clisp.org>
10753
10754         Tests for module 'iconv-h'.
10755         * modules/iconv-h-tests: New file.
10756         * tests/test-iconv-h.c: New file.
10757
10758         New module 'iconv-h'.
10759         * modules/iconv-h: New file.
10760         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
10761         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
10762         (configure.ac): Remove gl_ICONV_H.
10763         (Makefile.am): Remove rule for iconv.h.
10764
10765 2010-03-06  Bruno Haible  <bruno@clisp.org>
10766
10767         More consistent naming of *.m4 files.
10768         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
10769         * modules/wctype (Files): Update.
10770
10771         More consistent naming of *.m4 files.
10772         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
10773         * modules/wchar (Files): Update.
10774
10775 2010-03-06  Jim Meyering  <meyering@redhat.com>
10776
10777         euidaccess: relax license to LGPLv2+
10778         * modules/euidaccess (License): Relax to LGPLv2+.
10779
10780 2010-03-06  Bruno Haible  <bruno@clisp.org>
10781
10782         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
10783         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
10784         (Makefile.am): Augment lib_SOURCES instead.
10785
10786 2010-03-04  Jim Meyering  <meyering@redhat.com>
10787
10788         utime: remove obsolete module
10789         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
10790         unnecessary for years, and has been marked as obsolete for 10 months.
10791         * modules/utime: Remove file.
10792         * lib/utime.c: Remove file.
10793         * m4/utime.m4: Remove file.
10794         * m4/utimes-null.m4: Remove file.
10795         * doc/posix-functions/utime.texi (utime): Remove reference to
10796         the module.  Move the sole "fixed by gnulib" item into the
10797         "problems not fixed by Gnulib" list.
10798         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
10799
10800 2010-03-05  Simon Josefsson  <simon@josefsson.org>
10801
10802         * modules/exit (License): Relax license to LGPLv2+.
10803         (Status): Mark as obsolete.
10804         * NEWS: Mention deprecated 'exit' module.
10805         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
10806         of now obsolete 'exit'.
10807
10808 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10809
10810         fts-lgpl: remove unused module
10811         * modules/fts-lgpl: Remove.
10812         * MODULES.html.sh (func_all_modules): Adjust.
10813         * check-module (find_included_lib_files): Adjust.
10814         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
10815
10816 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
10817
10818         copy-acl: enhance Solaris ACL error handling
10819         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
10820         * lib/set-mode-acl.c (qset_acl): Likewise.
10821
10822 2010-03-02  Bruno Haible  <bruno@clisp.org>
10823
10824         spawn: Don't override the system defined values on FreeBSD 8.
10825         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
10826         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
10827         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
10828         if HAVE_POSIX_SPAWN is 1.
10829         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
10830
10831 2010-03-01  Bruno Haible  <bruno@clisp.org>
10832
10833         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
10834         regarding Automake.
10835
10836 2010-02-25  Bruno Haible  <bruno@clisp.org>
10837
10838         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
10839         * gnulib-tool: Define 'echo' as a function only before the ksh alias
10840         setting, not afterwards.
10841         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10842
10843 2010-02-24  Eric Blake  <eblake@redhat.com>
10844
10845         bootstrap, git-version-gen: use timestamp
10846         * build-aux/git-version-gen (scriptversion): Force UTC.
10847         * build-aux/bootstrap (scriptversion): New variable.
10848
10849         bootstrap: allow older git
10850         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
10851         older than 1.6.4.  Requested by the libvirt project.
10852
10853 2010-02-23  Eric Blake  <eblake@redhat.com>
10854
10855         warn-on-use: work with old autoconf
10856         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
10857         AS_VAR semantics of autoconf 2.60.
10858         Reported by Bruno Haible.
10859
10860         bootstrap: improve some comments
10861         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
10862         clarification comments.
10863
10864         gettimeofday: provide correct function
10865         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
10866         when replacement is declared, otherwise provide gettimeofday.
10867         Reported by Michael Goffioul.
10868
10869 2010-02-23  Jim Meyering  <meyering@redhat.com>
10870
10871         lib-ignore: relax license to "unlimited", not LGPLv2+
10872         * modules/lib-ignore (License): Relax to "unlimited".
10873
10874 2010-02-23  Jim Meyering  <meyering@redhat.com>
10875
10876         lib-ignore: relax license to LGPLv2+
10877         * modules/lib-ignore (License): Relax to LGPLv2+.
10878
10879 2010-02-22  Eric Blake  <eblake@redhat.com>
10880
10881         lseek: avoid bash 3.2 broken pipe bug
10882         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10883         warning from bash 3.2.
10884         Reported by Ben Pfaff, with analysis from Bruno Haible.
10885
10886         bootstrap: support non-FSF copyright holder
10887         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10888         bootstrap.conf override of COPYRIGHT_HOLDER.
10889         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
10890
10891         bootstrap: interoperate with gettext 0.14.1
10892         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
10893
10894         bootstrap: allow for alternate submodule location
10895         * build-aux/bootstrap (gnulib_path): New variable; use instead of
10896         hardcoding submodule location.
10897         (gnulib_mk): Allow direct use of Makefile.am.
10898
10899         bootstrap: use GNULIB_SRCDIR to reduce disk usage
10900         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
10901         rather than reconfiguring where the submodule points.
10902
10903         gettimeofday: restore support for platforms that lack function
10904         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
10905         replacement if function is missing.
10906         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
10907         * modules/sys_time (Makefile.am): Substitute it.
10908         * lib/sys_time.in.h (gettimeofday): Check it.
10909         Reported by Michael Goffioul.
10910
10911 2010-02-21  Bruno Haible  <bruno@clisp.org>
10912
10913         * lib/stdio.in.h (obstack_printf): Fix typo.
10914
10915 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
10916
10917         vc-list-files: use bzr ls's -R option
10918         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
10919         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
10920
10921 2010-02-21  Jim Meyering  <meyering@redhat.com>
10922
10923         init.sh: fix EXEEXT shims to work also for names like test-prog
10924         * tests/init.sh: Re-exec a better shell, when needed.
10925         If the current shell lacks support for posix $(...), an init.sh-using
10926         test will now try to find a shell that supports that.  If EXEEXT is
10927         nonempty, we also require support for hyphen-in-alias-name and shell
10928         substitutions like ${var#glob}.  Failure to find such a shell results
10929         in a skipped test.
10930
10931 2010-02-21  Bruno Haible  <bruno@clisp.org>
10932
10933         Really work around around "broken pipe" error message from bash 3.2.
10934         * gnulib-tool (func_reset_sigpipe): Remove function.
10935         (echo): In bash 3.2, define to a function that uses printf.
10936         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
10937
10938 2010-02-20  Bruno Haible  <bruno@clisp.org>
10939
10940         Restore support for automake 1.9.6 with autoconf 2.61.
10941         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
10942         Reported by James Youngman <jay@gnu.org>.
10943
10944 2010-02-20  Bruno Haible  <bruno@clisp.org>
10945
10946         Improve *printf warning condition.
10947         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
10948         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
10949         and the function is overridden due to SIGPIPE emulation.
10950
10951 2010-02-20  Bruno Haible  <bruno@clisp.org>
10952
10953         * lib/stdio.in.h: Tweak comments.
10954
10955 2010-02-19  Bruno Haible  <bruno@clisp.org>
10956
10957         Make it easier to find modules. New gnulib-tool option '--find'.
10958         * gnulib-tool: New option --find.
10959         (func_usage): Document it.
10960         (func_sanitize_modulelist): New function, extracted from
10961         func_all_modules.
10962         (func_all_modules): Invoke it.
10963         * doc/gnulib-tool.texi (Which modules?): New node.
10964
10965 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
10966
10967         * lib/sys_select.in.h: Provide select replacement even if
10968         sys/select.h exists on a system, for Interix.
10969
10970 2010-02-18  Jim Meyering  <meyering@redhat.com>
10971
10972         init.sh: don't use $(...) just yet
10973         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
10974         to accommodate e.g., Solaris' /bin/sh.
10975
10976 2010-02-17  Bruno Haible  <bruno@clisp.org>
10977
10978         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
10979         Reported by Ludovic Courtès <ludo@gnu.org>.
10980
10981 2010-02-16  Simon Josefsson  <simon@josefsson.org>
10982
10983         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
10984         linking with -lintl.
10985
10986 2010-02-17  Simon Josefsson  <simon@josefsson.org>
10987
10988         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
10989         if not provided by the system's netdb.h.  Reported by
10990         ludo@gnu.org (Ludovic Courtès).
10991
10992 2010-02-15  Jim Meyering  <meyering@redhat.com>
10993
10994         init.sh: improve portability and efficiency
10995         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
10996         "dummy" in a for loop.
10997         Use '!', not '^' to select the complement of a character set used
10998         in a "case" statement.
10999         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11000         Suggestions from Eric Blake.
11001
11002         init.sh: automatically accommodate programs with the .exe suffix
11003         Automatically arrange for an invocation of "prog" to execute the
11004         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11005         may use the simpler "prog", yet still work when built on a system
11006         that requires specifying the added suffix.
11007         Do this by constructing a function named "prog" that invokes
11008         "prog.exe" for each .exe file in selected directories.
11009         * tests/init.sh (find_exe_basenames_): New function.
11010         (create_exe_shim_functions_): New function.
11011         (path_prepend_): Use it.
11012
11013         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11014         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11015         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11016
11017 2010-02-14  Jim Meyering  <meyering@redhat.com>
11018
11019         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11020         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11021         (sc_prohibit_hash_pjw_without_use): New rule.
11022
11023         maint.mk: allow the default upload destination dir to be overridden
11024         * top/maint.mk (upload_dest_dir_): Define with a default that
11025         preserves the status quo.
11026         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11027         Reported by Peter Simons.
11028
11029         maint.mk: prohibit inclusion of "hash.h" without_use
11030         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11031
11032 2010-02-10  Jim Meyering  <meyering@redhat.com>
11033
11034         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11035         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11036
11037 2010-02-09  Eric Blake  <ebb9@byu.net>
11038         and Bruno Haible  <bruno@clisp.org>
11039
11040         obstack-printf-posix: ensure declaration
11041         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11042         extracted from gl_FUNC_OBSTACK_PRINTF.
11043         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11044         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11045         Likewise.
11046         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11047         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11048         0.
11049
11050 2010-02-08  Bruno Haible  <bruno@clisp.org>
11051
11052         gnulib-tool: Fix typo in 2010-02-07 commit.
11053         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11054         Reported by Eric Blake.
11055
11056 2010-02-07  Bruno Haible  <bruno@clisp.org>
11057
11058         gnulib-tool: Fix up caching patches.
11059         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11060         option --no-cache. Use associative arrays when supported by the shell.
11061         (sed_comments): New variable.
11062         (modcache): Renamed from do_cache.
11063         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11064         abbreviate unnecessarily.
11065         (have_associative): New variable.
11066         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11067         way also for ksh and zsh.
11068         (func_init_sed_convert_to_cache_statements): New function, extracted
11069         from func_cache_lookup_module. Add support for associative arrays.
11070         Don't set the c_MODULE_cached variable here. Ignore all lines before
11071         the first field header. Remove only the final newline, not all trailing
11072         newlines. Support empty fields correctly. Limit the use of 'eval' to
11073         assignments.
11074         (func_get_description, func_get_status, func_get_notice,
11075         func_get_applicability, func_get_filelist, func_get_dependencies,
11076         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11077         func_get_automake_snippet, func_get_include_directive,
11078         func_get_link_directive, func_get_license, func_get_maintainer):
11079         Update documentation. List the unoptimized code first. Add support for
11080         associative arrays. Limit the use of 'eval' to assignments.
11081         (func_get_applicability): Undo stylistic pessimisations.
11082         (func_get_automake_snippet, func_get_include_directive): Reduce code
11083         duplication.
11084         (func_modules_transitive_closure, func_modules_add_dummy,
11085         func_modules_notice, func_modules_to_filelist, func_add_file,
11086         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11087         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11088         func_create_testdir, func_create_megatestdir): Update documentation.
11089
11090 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11091
11092         * gnulib-tool (func_cache_lookup_module): Store the module name
11093         belonging to the cache variable; error out if two different
11094         module names map to the same cache variable name.
11095
11096 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11097
11098         gnulib-tool: Make caching optional.
11099         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11100         Update matching short versions of --no-changelog.
11101         (func_usage): Update.
11102         (sed_extract_cache_prog): Renamed from ...
11103         (sed_extract_prog): ... this; revert to old extraction script.
11104         (func_get_description, func_get_status)
11105         (func_get_notice, func_get_applicability, func_get_filelist)
11106         (func_get_dependencies, func_get_autoconf_early_snippet)
11107         (func_get_autoconf_snippet, func_get_automake_snippet)
11108         (func_get_include_directive, func_get_link_directive)
11109         (func_get_license, func_get_maintainer): If $do_cache is false,
11110         use old, non-caching extraction scripts.
11111         Suggestion by Bruno Haible.
11112
11113 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11114
11115         gnulib-tool: cache module metainformation.
11116         * gnulib-tool (sed_extract_prog): Match newline before each
11117         header, and rewrite header to a shell variable suffix.
11118         (func_cache_var, func_cache_lookup_module): New functions,
11119         to turn a module name into a cache variable prefix, and to
11120         look up and cache module metainformation.
11121         (func_get_description, func_get_status)
11122         (func_get_notice, func_get_applicability, func_get_filelist)
11123         (func_get_dependencies, func_get_autoconf_early_snippet)
11124         (func_get_autoconf_snippet, func_get_automake_snippet)
11125         (func_get_include_directive, func_get_link_directive)
11126         (func_get_license, func_get_maintainer): Use
11127         func_cache_lookup_module.
11128
11129 2010-02-07  Bruno Haible  <bruno@clisp.org>
11130
11131         fnctl: Fix missing dependency.
11132         * modules/fcntl (Depends-on): Add getdtablesize.
11133         Reported by John W. Eaton <jwe@gnu.org>.
11134
11135 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11136
11137         Argp: fix recognition of short alias options.
11138
11139         * lib/argp-parse.c (convert_options): Fix improper use of
11140         `|' between character values.
11141         * tests/test-argp.c (group1_option): New alias option
11142         --read (-r).
11143         (group1_parser): Special handling for 'r'.
11144         (test15): New test case.
11145         (test_fun): Add test15.
11146         * tests/test-argp-2.sh: Update expected --help and --usage
11147         outputs.
11148
11149 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11150
11151         * tests/test-argp.c: Fix indentation.
11152
11153 2010-02-04  Eric Blake  <ebb9@byu.net>
11154
11155         gettimeofday: expose type of second argument
11156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11157         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11158         * tests/test-gettimeofday.c: Use it to silence warning.
11159         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11160         the issue.
11161
11162 2010-02-03  Jim Meyering  <meyering@redhat.com>
11163
11164         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11165         * lib/regcomp.c (TYPE_SIGNED): Define.
11166         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11167
11168         regcomp.c: avoid a new -Wshadow warning
11169         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11170
11171 2010-02-01  Jim Meyering  <meyering@redhat.com>
11172
11173         removing useless parentheses in cpp #define directives
11174         For motivation, see commit c0221df4, "define STREQ(a,b)
11175         consistently, removing useless parentheses"
11176         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11177         * lib/mountlist.c (MNT_IGNORE): Likewise.
11178         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11179
11180 2010-02-01  Eric Blake  <ebb9@byu.net>
11181
11182         sys_time: use link-warning
11183         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11184         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11185         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11186         * modules/sys_time (Depends-on): Add warn-on-use.
11187         (Makefile.am): Always build replacement.
11188         (configure.ac): Update substitutions.
11189         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11190         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11191         bother with SYS_TIME_H.
11192         * modules/gettimeofday (configure.ac): Declare indicator.
11193         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11194         in use.
11195
11196         closein-tests: silence compiler warning
11197         * tests/test-closein.c (main): Ignore fread result.
11198         * modules/closein-tests (Depends-on): Add ignore-value.
11199
11200         tests: silence warning about system return
11201         * tests/test-areadlink-with-size.c (main): Ignore system result.
11202         * tests/test-areadlink.c (main): Likewise.
11203         * tests/test-areadlinkat-with-size.c (main): Likewise.
11204         * tests/test-areadlinkat.c (main): Likewise.
11205         * tests/test-canonicalize-lgpl.c (main): Likewise.
11206         * tests/test-canonicalize.c (main): Likewise.
11207         * tests/test-chown.c (main): Likewise.
11208         * tests/test-fchownat.c (main): Likewise.
11209         * tests/test-fdutimensat.c (main): Likewise.
11210         * tests/test-fstatat.c (main): Likewise.
11211         * tests/test-futimens.c (main): Likewise.
11212         * tests/test-lchown.c (main): Likewise.
11213         * tests/test-link.c (main): Likewise.
11214         * tests/test-linkat.c (main): Likewise.
11215         * tests/test-lstat.c (main): Likewise.
11216         * tests/test-mkdir.c (main): Likewise.
11217         * tests/test-mkdirat.c (main): Likewise.
11218         * tests/test-mkfifo.c (main): Likewise.
11219         * tests/test-mkfifoat.c (main): Likewise.
11220         * tests/test-mknod.c (main): Likewise.
11221         * tests/test-readlink.c (main): Likewise.
11222         * tests/test-remove.c (main): Likewise.
11223         * tests/test-rename.c (main): Likewise.
11224         * tests/test-renameat.c (main): Likewise.
11225         * tests/test-rmdir.c (main): Likewise.
11226         * tests/test-symlink.c (main): Likewise.
11227         * tests/test-symlinkat.c (main): Likewise.
11228         * tests/test-unlink.c (main): Likewise.
11229         * tests/test-unlinkat.c (main): Likewise.
11230         * tests/test-utimens.c (main): Likewise.
11231         * tests/test-utimensat.c (main): Likewise.
11232         * modules/areadlink-tests (Depends-on): Add ignore-value.
11233         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11234         * modules/areadlinkat-tests (Depends-on): Likewise.
11235         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11236         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11237         * modules/canonicalize-tests (Depends-on): Likewise.
11238         * modules/chown-tests (Depends-on): Likewise.
11239         * modules/fdutimensat-tests (Depends-on): Likewise.
11240         * modules/futimens-tests (Depends-on): Likewise.
11241         * modules/lchown-tests (Depends-on): Likewise.
11242         * modules/link-tests (Depends-on): Likewise.
11243         * modules/linkat-tests (Depends-on): Likewise.
11244         * modules/lstat-tests (Depends-on): Likewise.
11245         * modules/mkdir-tests (Depends-on): Likewise.
11246         * modules/mkfifo-tests (Depends-on): Likewise.
11247         * modules/mkfifoat-tests (Depends-on): Likewise.
11248         * modules/mknod-tests (Depends-on): Likewise.
11249         * modules/openat-tests (Depends-on): Likewise.
11250         * modules/readlink-tests (Depends-on): Likewise.
11251         * modules/remove-tests (Depends-on): Likewise.
11252         * modules/rename-tests (Depends-on): Likewise.
11253         * modules/renameat-tests (Depends-on): Likewise.
11254         * modules/rmdir-tests (Depends-on): Likewise.
11255         * modules/symlink-tests (Depends-on): Likewise.
11256         * modules/symlinkat-tests (Depends-on): Likewise.
11257         * modules/unlink-tests (Depends-on): Likewise.
11258         * modules/utimens-tests (Depends-on): Likewise.
11259         * modules/utimensat-tests (Depends-on): Likewise.
11260
11261 2010-01-31  Bruno Haible  <bruno@clisp.org>
11262
11263         Perform the same test for many <math.h> functions.
11264         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11265         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11266         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11267         of gl_MATHFUNC.
11268         * modules/acos (configure.ac): Likewise.
11269         * modules/asin (configure.ac): Likewise.
11270         * modules/atan (configure.ac): Likewise.
11271         * modules/atan2 (configure.ac): Likewise.
11272         * modules/cbrt (configure.ac): Likewise.
11273         * modules/copysign (configure.ac): Likewise.
11274         * modules/cos (configure.ac): Likewise.
11275         * modules/cosh (configure.ac): Likewise.
11276         * modules/erf (configure.ac): Likewise.
11277         * modules/erfc (configure.ac): Likewise.
11278         * modules/exp (configure.ac): Likewise.
11279         * modules/fmod (configure.ac): Likewise.
11280         * modules/hypot (configure.ac): Likewise.
11281         * modules/j0 (configure.ac): Likewise.
11282         * modules/j1 (configure.ac): Likewise.
11283         * modules/jn (configure.ac): Likewise.
11284         * modules/lgamma (configure.ac): Likewise.
11285         * modules/log (configure.ac): Likewise.
11286         * modules/log10 (configure.ac): Likewise.
11287         * modules/log1p (configure.ac): Likewise.
11288         * modules/pow (configure.ac): Likewise.
11289         * modules/remainder (configure.ac): Likewise.
11290         * modules/sin (configure.ac): Likewise.
11291         * modules/sinh (configure.ac): Likewise.
11292         * modules/tan (configure.ac): Likewise.
11293         * modules/tanh (configure.ac): Likewise.
11294         * modules/y0 (configure.ac): Likewise.
11295         * modules/y1 (configure.ac): Likewise.
11296         * modules/yn (configure.ac): Likewise.
11297         Suggested by Paolo Bonzini.
11298
11299 2010-01-31  Bruno Haible  <bruno@clisp.org>
11300
11301         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11302
11303 2010-01-31  Bruno Haible  <bruno@clisp.org>
11304
11305         Work around getdelim() bug on FreeBSD 8.0.
11306         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11307         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11308         not work.
11309         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11310         is 1.
11311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11312         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11313         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11314         a non-zero size.
11315         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11316
11317 2010-01-31  Bruno Haible  <bruno@clisp.org>
11318
11319         Work around getline() bug on FreeBSD 8.0.
11320         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11321         and a non-zero size.
11322         * tests/test-getline.c (main): Likewise.
11323         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11324         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11325
11326 2010-01-28  Eric Blake  <ebb9@byu.net>
11327
11328         regex: fix build failure
11329         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11330         platforms.
11331
11332 2010-01-28  Jim Meyering  <meyering@redhat.com>
11333
11334         regex: do not ignore memory allocation failure
11335         * lib/regex_internal.c (create_cd_newstate): Detect
11336         re_node_set_init_copy failure.   Extracted from glibc commit
11337         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11338
11339         regex: sync more white-space changes from libc
11340         * lib/regex_internal.c: White-space only changes.
11341         * lib/regexec.c: Likewise.
11342
11343         regex: add many uses of __attribute_warn_unused_result__
11344         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11345         * lib/regexec.c: Likewise.
11346         Extracted from a messy glibc commit.
11347
11348         regcomp.c: spelling and merge-artifact from glibc
11349         * lib/regcomp.c: Merge remainder of glibc's
11350         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11351
11352         regcomp.c: sync white-space changes from glibc
11353         * lib/regcomp.c: Merge to accommodate white space
11354         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11355
11356         regcomp.c: do not ignore internal return values
11357         * lib/regcomp.c: Do not ignore internal return values.
11358         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11359         but without its white-space changes and spelling fixes.
11360
11361         regex_internal.h: define __attribute_warn_unused_result__
11362         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11363
11364         maint: add a syntax-check rule to check for vulnerable Makefile.in
11365         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11366
11367 2010-01-27  Jim Meyering  <meyering@redhat.com>
11368
11369         ncftpput-ftp: clean up spaces
11370         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11371         Remove trailing blanks.
11372
11373 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11374
11375         * build-aux/git-version-gen: Fix copyright statement.
11376         * build-aux/gnupload: Likewise.
11377         * tests/test-arcfour.c: Likewise.
11378         * tests/test-arctwo.c: Likewise.
11379         * tests/test-count-one-bits.c: Likewise.
11380         * tests/test-crc.c: Likewise.
11381         * tests/test-des.c: Likewise.
11382         * tests/test-gc-arcfour.c: Likewise.
11383         * tests/test-gc-arctwo.c: Likewise.
11384         * tests/test-gc-des.c: Likewise.
11385         * tests/test-gc-hmac-md5.c: Likewise.
11386         * tests/test-gc-hmac-sha1.c: Likewise.
11387         * tests/test-gc-md2.c: Likewise.
11388         * tests/test-gc-md4.c: Likewise.
11389         * tests/test-gc-md5.c: Likewise.
11390         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11391         * tests/test-gc-rijndael.c: Likewise.
11392         * tests/test-gc-sha1.c: Likewise.
11393         * tests/test-gc.c: Likewise.
11394         * tests/test-gethostname.c: Likewise.
11395         * tests/test-gettimeofday.c: Likewise.
11396         * tests/test-hash.c: Likewise.
11397         * tests/test-hmac-md5.c: Likewise.
11398         * tests/test-hmac-sha1.c: Likewise.
11399         * tests/test-md2.c: Likewise.
11400         * tests/test-md4.c: Likewise.
11401         * tests/test-md5.c: Likewise.
11402         * tests/test-memchr.c: Likewise.
11403         * tests/test-memchr2.c: Likewise.
11404         * tests/test-memcmp.c: Likewise.
11405         * tests/test-memmem.c: Likewise.
11406         * tests/test-memrchr.c: Likewise.
11407         * tests/test-rawmemchr.c: Likewise.
11408         * tests/test-read-file.c: Likewise.
11409         * tests/test-rijndael.c: Likewise.
11410         * tests/test-sockets.c: Likewise.
11411         * tests/test-strchrnul.c: Likewise.
11412         * tests/test-strstr.c: Likewise.
11413         * tests/test-strtod.c: Likewise.
11414         * build-aux/ncftpput-ftp: Likewise.
11415
11416 2010-01-26  Eric Blake  <ebb9@byu.net>
11417
11418         ignore-value: update recommended header name
11419         * modules/ignore-value (Include): Only use <> for headers that
11420         exist in glibc.
11421
11422 2010-01-26  Jim Meyering  <meyering@redhat.com>
11423
11424         test-userspec.c: avoid compiler warnings
11425         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11426         and "initialization discards qualifiers..." warnings.
11427         Put the first "uid" in its own scope, and make char* members "const".
11428
11429 2010-01-25  Bruno Haible  <bruno@clisp.org>
11430
11431         gnulib-tool: Make warning diagnostics consistent.
11432         * gnulib-tool (func_warning): New function.
11433         Use it everywhere where gnulib-tool produces output to stderr and it is
11434         not a fatal error.
11435
11436 2010-01-25  Bruno Haible  <bruno@clisp.org>
11437
11438         Fix test dependencies.
11439         * modules/xstrtol-tests (Depends-on): Add inttypes.
11440         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11441
11442 2010-01-25 Pádraig Brady <P@draigBrady.com>
11443
11444         syntax-check: detect incorrect boolean macro values in config.h
11445         * modules/maintainer-makefile (configure.ac): Parameterize the location
11446         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11447         The logic is from Eric Blake and the location indicated by Jim Meyering.
11448         Note the more natural CONFIG_HEADER name is prohibited by automake
11449         for backwards compatibility reasons.
11450         * top/maint.mk (sc_Wundef_boolean): New rule.
11451
11452 2010-01-25  Jim Meyering  <meyering@redhat.com>
11453
11454         bootstrap: detect MacOS 10.6's shasum, too
11455         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11456         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11457
11458 2010-01-23  Jim Meyering  <meyering@redhat.com>
11459
11460         xstrtoll: new module
11461         * modules/xstrtoll: New file.
11462         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11463         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11464         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
11465         ./configure fails if you use this module and lack "long long".
11466         * modules/xstrtoll-tests: New module.
11467         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
11468         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
11469         new init.sh-based test framework.
11470
11471 2010-01-24  Bruno Haible  <bruno@clisp.org>
11472
11473         Tests for module 'yn'.
11474         * modules/yn-tests: New file.
11475         * tests/test-yn.c: New file.
11476
11477         Tests for module 'y1'.
11478         * modules/y1-tests: New file.
11479         * tests/test-y1.c: New file.
11480
11481         Tests for module 'y0'.
11482         * modules/y0-tests: New file.
11483         * tests/test-y0.c: New file.
11484
11485         Tests for module 'tanh'.
11486         * modules/tanh-tests: New file.
11487         * tests/test-tanh.c: New file.
11488
11489         Tests for module 'tan'.
11490         * modules/tan-tests: New file.
11491         * tests/test-tan.c: New file.
11492
11493         Tests for module 'sqrt'.
11494         * modules/sqrt-tests: New file.
11495         * tests/test-sqrt.c: New file.
11496
11497         Tests for module 'sinh'.
11498         * modules/sinh-tests: New file.
11499         * tests/test-sinh.c: New file.
11500
11501         Tests for module 'sin'.
11502         * modules/sin-tests: New file.
11503         * tests/test-sin.c: New file.
11504
11505         Tests for module 'rint'.
11506         * modules/rint-tests: New file.
11507         * tests/test-rint.c: New file.
11508
11509         Tests for module 'remainder'.
11510         * modules/remainder-tests: New file.
11511         * tests/test-remainder.c: New file.
11512
11513         Tests for module 'pow'.
11514         * modules/pow-tests: New file.
11515         * tests/test-pow.c: New file.
11516
11517         Tests for module 'nextafter'.
11518         * modules/nextafter-tests: New file.
11519         * tests/test-nextafter.c: New file.
11520
11521         Tests for module 'modf'.
11522         * modules/modf-tests: New file.
11523         * tests/test-modf.c: New file.
11524
11525         Tests for module 'logb'.
11526         * modules/logb-tests: New file.
11527         * tests/test-logb.c: New file.
11528
11529         Tests for module 'log1p'.
11530         * modules/log1p-tests: New file.
11531         * tests/test-log1p.c: New file.
11532
11533         Tests for module 'log10'.
11534         * modules/log10-tests: New file.
11535         * tests/test-log10.c: New file.
11536
11537         Tests for module 'log'.
11538         * modules/log-tests: New file.
11539         * tests/test-log.c: New file.
11540
11541         Tests for module 'lgamma'.
11542         * modules/lgamma-tests: New file.
11543         * tests/test-lgamma.c: New file.
11544
11545         Tests for module 'ldexp'.
11546         * modules/ldexp-tests: New file.
11547         * tests/test-ldexp.c: New file.
11548
11549         Tests for module 'jn'.
11550         * modules/jn-tests: New file.
11551         * tests/test-jn.c: New file.
11552
11553         Tests for module 'j1'.
11554         * modules/j1-tests: New file.
11555         * tests/test-j1.c: New file.
11556
11557         Tests for module 'j0'.
11558         * modules/j0-tests: New file.
11559         * tests/test-j0.c: New file.
11560
11561         Tests for module 'hypot'.
11562         * modules/hypot-tests: New file.
11563         * tests/test-hypot.c: New file.
11564
11565         Tests for module 'fmod'.
11566         * modules/fmod-tests: New file.
11567         * tests/test-fmod.c: New file.
11568
11569         Tests for module 'fabs'.
11570         * modules/fabs-tests: New file.
11571         * tests/test-fabs.c: New file.
11572
11573         Tests for module 'exp'.
11574         * modules/exp-tests: New file.
11575         * tests/test-exp.c: New file.
11576
11577         Tests for module 'erfc'.
11578         * modules/erfc-tests: New file.
11579         * tests/test-erfc.c: New file.
11580
11581         Tests for module 'erf'.
11582         * modules/erf-tests: New file.
11583         * tests/test-erf.c: New file.
11584
11585         Tests for module 'cosh'.
11586         * modules/cosh-tests: New file.
11587         * tests/test-cosh.c: New file.
11588
11589         Tests for module 'cos'.
11590         * modules/cos-tests: New file.
11591         * tests/test-cos.c: New file.
11592
11593         Tests for module 'copysign'.
11594         * modules/copysign-tests: New file.
11595         * tests/test-copysign.c: New file.
11596
11597         Tests for module 'cbrt'.
11598         * modules/cbrt-tests: New file.
11599         * tests/test-cbrt.c: New file.
11600
11601         Tests for module 'atan2'.
11602         * modules/atan2-tests: New file.
11603         * tests/test-atan2.c: New file.
11604
11605         Tests for module 'atan'.
11606         * modules/atan-tests: New file.
11607         * tests/test-atan.c: New file.
11608
11609         Tests for module 'asin'.
11610         * modules/asin-tests: New file.
11611         * tests/test-asin.c: New file.
11612
11613         Tests for module 'acos'.
11614         * modules/acos-tests: New file.
11615         * tests/test-acos.c: New file.
11616
11617 2010-01-24  Bruno Haible  <bruno@clisp.org>
11618
11619         Fix tests for common <math.h> functions.
11620         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
11621         code snippet that references the function pointer, rather than merely
11622         calling the function. Substitute the FUNC_LIBM variable.
11623         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
11624         * modules/acos (configure.ac): Likewise.
11625         * modules/asin (configure.ac): Likewise.
11626         * modules/atan (configure.ac): Likewise.
11627         * modules/atan2 (configure.ac): Likewise.
11628         * modules/cbrt (configure.ac): Likewise.
11629         * modules/copysign (configure.ac): Likewise.
11630         * modules/cos (configure.ac): Likewise.
11631         * modules/cosh (configure.ac): Likewise.
11632         * modules/erf (configure.ac): Likewise.
11633         * modules/erfc (configure.ac): Likewise.
11634         * modules/exp (configure.ac): Likewise.
11635         * modules/fabs (configure.ac): Likewise.
11636         * modules/fmod (configure.ac): Likewise.
11637         * modules/hypot (configure.ac): Likewise.
11638         * modules/j0 (configure.ac): Likewise.
11639         * modules/j1 (configure.ac): Likewise.
11640         * modules/jn (configure.ac): Likewise.
11641         * modules/ldexp (configure.ac): Likewise.
11642         * modules/lgamma (configure.ac): Likewise.
11643         * modules/log (configure.ac): Likewise.
11644         * modules/log10 (configure.ac): Likewise.
11645         * modules/log1p (configure.ac): Likewise.
11646         * modules/logb (configure.ac): Likewise.
11647         * modules/modf (configure.ac): Likewise.
11648         * modules/nextafter (configure.ac): Likewise.
11649         * modules/pow (configure.ac): Likewise.
11650         * modules/remainder (configure.ac): Likewise.
11651         * modules/rint (configure.ac): Likewise.
11652         * modules/sin (configure.ac): Likewise.
11653         * modules/sinh (configure.ac): Likewise.
11654         * modules/tan (configure.ac): Likewise.
11655         * modules/tanh (configure.ac): Likewise.
11656         * modules/y0 (configure.ac): Likewise.
11657         * modules/y1 (configure.ac): Likewise.
11658         * modules/yn (configure.ac): Likewise.
11659
11660 2010-01-24  Bruno Haible  <bruno@clisp.org>
11661
11662         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
11663         * tests/test-acosl.c (x): New variable.
11664         (main): Store argument in x and fetch it from x.
11665         * tests/test-asinl.c (x): New variable.
11666         (main): Store argument in x and fetch it from x.
11667         * tests/test-atanl.c (x): New variable.
11668         (main): Store argument in x and fetch it from x.
11669         * tests/test-cosl.c (x): New variable.
11670         (main): Store argument in x and fetch it from x.
11671         * tests/test-expl.c (x): New variable.
11672         (main): Store argument in x and fetch it from x.
11673         * tests/test-logl.c (x): New variable.
11674         (main): Store argument in x and fetch it from x.
11675         * tests/test-sinl.c (x): New variable.
11676         (main): Store argument in x and fetch it from x.
11677         * tests/test-sqrtl.c (x): New variable.
11678         (main): Store argument in x and fetch it from x.
11679         * tests/test-tanl.c (x): New variable.
11680         (main): Store argument in x and fetch it from x.
11681
11682 2010-01-24  Bruno Haible  <bruno@clisp.org>
11683
11684         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
11685         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
11686         assignments to the initial TESTS_ENVIRONMENT.
11687         * doc/gnulib.texi (Unit test modules): Document it.
11688         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
11689         TESTS_ENVIRONMENT.
11690         * modules/btowc-tests (Makefile.am): Likewise.
11691         * modules/c-stack-tests (Makefile.am): Likewise.
11692         * modules/c-strcase-tests (Makefile.am): Likewise.
11693         * modules/copy-file-tests (Makefile.am): Likewise.
11694         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11695         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11696         * modules/mbrtowc-tests (Makefile.am): Likewise.
11697         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11698         * modules/mbscasestr-tests (Makefile.am): Likewise.
11699         * modules/mbschr-tests (Makefile.am): Likewise.
11700         * modules/mbscspn-tests (Makefile.am): Likewise.
11701         * modules/mbsinit-tests (Makefile.am): Likewise.
11702         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11703         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11704         * modules/mbspbrk-tests (Makefile.am): Likewise.
11705         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11706         * modules/mbsrchr-tests (Makefile.am): Likewise.
11707         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11708         * modules/mbsspn-tests (Makefile.am): Likewise.
11709         * modules/mbsstr-tests (Makefile.am): Likewise.
11710         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11711         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11712         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11713         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11714         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11715         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11716         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11717         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11718         * modules/wcrtomb-tests (Makefile.am): Likewise.
11719         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11720         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11721         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
11722         assignments from TESTS_ENVIRONMENT.
11723         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
11724         augmentation.
11725         * modules/argp-version-etc-tests (Makefile.am): Likewise.
11726         * modules/atexit-tests (Makefile.am): Likewise.
11727         * modules/binary-io-tests (Makefile.am): Likewise.
11728         * modules/closein-tests (Makefile.am): Likewise.
11729         * modules/dprintf-posix-tests (Makefile.am): Likewise.
11730         * modules/exclude-tests (Makefile.am): Likewise.
11731         * modules/fflush-tests (Makefile.am): Likewise.
11732         * modules/fpending-tests (Makefile.am): Likewise.
11733         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11734         * modules/freadahead-tests (Makefile.am): Likewise.
11735         * modules/freadptr-tests (Makefile.am): Likewise.
11736         * modules/freadseek-tests (Makefile.am): Likewise.
11737         * modules/fseek-tests (Makefile.am): Likewise.
11738         * modules/fseeko-tests (Makefile.am): Likewise.
11739         * modules/ftell-tests (Makefile.am): Likewise.
11740         * modules/ftello-tests (Makefile.am): Likewise.
11741         * modules/idpriv-drop-tests (Makefile.am): Likewise.
11742         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
11743         * modules/lseek-tests (Makefile.am): Likewise.
11744         * modules/parse-duration-tests (Makefile.am): Likewise.
11745         * modules/perror-tests (Makefile.am): Likewise.
11746         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
11747         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
11748         * modules/pipe-tests (Makefile.am): Likewise.
11749         * modules/pread-tests (Makefile.am): Likewise.
11750         * modules/printf-posix-tests (Makefile.am): Likewise.
11751         * modules/select-tests (Makefile.am): Likewise.
11752         * modules/sigpipe-tests (Makefile.am): Likewise.
11753         * modules/tsearch-tests (Makefile.am): Likewise.
11754         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11755         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11756         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11757         * modules/uniwidth/width-tests (Makefile.am): Likewise.
11758         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
11759         * modules/version-etc-tests (Makefile.am): Likewise.
11760         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11761         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11762         * modules/xalloc-die-tests (Makefile.am): Likewise.
11763         * modules/xprintf-posix-tests (Makefile.am): Likewise.
11764         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11765         * modules/xstrtol-tests (Makefile.am): Likewise.
11766         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11767         * modules/yesno-tests (Makefile.am): Likewise.
11768         Suggested by Jim Meyering.
11769
11770 2010-01-24  Bruno Haible  <bruno@clisp.org>
11771
11772         More documentation.
11773         * doc/gnulib.texi (Writing modules): New chapter.
11774         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
11775         the new chapter.
11776
11777 2010-01-24  Jim Meyering  <meyering@redhat.com>
11778
11779         maint.mk: do not prepend "./" after filtering
11780         * top/maint.mk (_prepend_srcdir_prefix): New variable
11781         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
11782         "./" when $(srcdir) is ".".
11783
11784         define STREQ(a,b) consistently, removing useless parentheses
11785         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
11786         since the only risk is that "a" or "b" contains an unparenthesized
11787         comma, but if either did that, STREQ would have 3 or more arguments.
11788         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
11789         * lib/fts.c (STREQ): Remove unnecessary parentheses.
11790         * lib/hash-triple.c (STREQ): Likewise.
11791         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
11792         * lib/getugroups.c (STREQ): Likewise.
11793
11794 2010-01-23  Jim Meyering  <meyering@redhat.com>
11795
11796         maint.mk: fix syntax-check in a non-srcdir build directory
11797         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
11798         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
11799
11800 2010-01-22  Jim Meyering  <meyering@redhat.com>
11801
11802         userspec: add unit tests
11803         * tests/test-userspec.c: New file.
11804         * modules/userspec-tests: Likewise.
11805
11806 2010-01-21  Jim Meyering  <meyering@redhat.com>
11807
11808         maint.mk: handle source file names containing "." robustly
11809         * top/maint.mk (_dot_escaped_srcdir): Define.
11810         (VC_LIST): Use it in LHS of sed substitution.
11811
11812 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
11813
11814         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
11815         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
11816         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
11817         from a non-srcdir build.
11818
11819 2010-01-20  Eric Blake  <ebb9@byu.net>
11820
11821         warn-on-use: use instead of link-warning
11822         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
11823         * modules/unistd (Depends-on, Makefile.am): Likewise.
11824         * modules/arpa_inet (Depends-on): Replace link-warning with
11825         warn-on-use.
11826         (Makefile.am): Update rules accordingly.
11827         * modules/ctype (Depends-on, Makefile.am): Likewise.
11828         * modules/dirent (Depends-on, Makefile.am): Likewise.
11829         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
11830         * modules/inttypes (Depends-on, Makefile.am): Likewise.
11831         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11832         * modules/locale (Depends-on, Makefile.am): Likewise.
11833         * modules/math (Depends-on, Makefile.am): Likewise.
11834         * modules/search (Depends-on, Makefile.am): Likewise.
11835         * modules/signal (Depends-on, Makefile.am): Likewise.
11836         * modules/spawn (Depends-on, Makefile.am): Likewise.
11837         * modules/stdlib (Depends-on, Makefile.am): Likewise.
11838         * modules/string (Depends-on, Makefile.am): Likewise.
11839         * modules/strings (Depends-on, Makefile.am): Likewise.
11840         * modules/sys_file (Depends-on, Makefile.am): Likewise.
11841         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
11842         * modules/sys_select (Depends-on, Makefile.am): Likewise.
11843         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
11844         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
11845         * modules/sys_times (Depends-on, Makefile.am): Likewise.
11846         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11847         * modules/wchar (Depends-on, Makefile.am): Likewise.
11848         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
11849         should be poisoned.
11850         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
11851         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
11852         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
11853         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11854         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11855         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11856         * m4/math_h.m4 (gl_MATH_H): Likewise.
11857         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11858         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11860         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11861         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11863         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11864         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
11865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11869         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11870         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11871         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11872         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11873         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
11874         GL_LINK_WARNING.
11875         * lib/ctype.in.h: Likewise.
11876         * lib/dirent.in.h: Likewise.
11877         * lib/fcntl.in.h: Likewise.
11878         * lib/inttypes.in.h: Likewise.
11879         * lib/langinfo.in.h: Likewise.
11880         * lib/locale.in.h: Likewise.
11881         * lib/math.in.h: Likewise.
11882         * lib/search.in.h: Likewise.
11883         * lib/signal.in.h: Likewise.
11884         * lib/spawn.in.h: Likewise.
11885         * lib/stdio.in.h: Likewise.
11886         * lib/stdlib.in.h: Likewise.
11887         * lib/string.in.h: Likewise.
11888         * lib/strings.in.h: Likewise.
11889         * lib/sys_file.in.h: Likewise.
11890         * lib/sys_ioctl.in.h: Likewise.
11891         * lib/sys_select.in.h: Likewise.
11892         * lib/sys_socket.in.h: Likewise.
11893         * lib/sys_stat.in.h: Likewise.
11894         * lib/sys_times.in.h: Likewise.
11895         * lib/sys_utsname.in.h: Likewise.
11896         * lib/unistd.in.h: Likewise.
11897         * lib/wchar.in.h: Likewise.
11898
11899 2010-01-20  Bruno Haible  <bruno@clisp.org>
11900
11901         Avoid duplicate -lm.
11902         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
11903         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
11904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
11905         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
11906         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
11907         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
11908         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
11909         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
11910         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
11911         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
11912         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
11913         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11914         Reported by Paolo Bonzini.
11915
11916 2010-01-19  Bruno Haible  <bruno@clisp.org>
11917
11918         langinfo, nl_langinfo: Relicense under LGPLv2+.
11919         * modules/langinfo (License): Change to LGPLv2+.
11920         * modules/nl_langinfo (License): Likewise.
11921         Patch by David Lutterkort <lutter@redhat.com>.
11922
11923 2010-01-19  Bruno Haible  <bruno@clisp.org>
11924
11925         Avoid compilation error with cc on OSF/1 5.1.
11926         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
11927         statement, not before.
11928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11929
11930 2010-01-18  Bruno Haible  <bruno@clisp.org>
11931
11932         Avoid a link error due to the __printf__ symbol.
11933         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
11934         and 2.6.x.
11935         (__format__, __printf__): Remove definitions.
11936         * lib/argp-fmtstream.h: Likewise.
11937         * lib/argp.h: Likewise.
11938         * lib/error.h: Likewise.
11939         * lib/vasnprintf.h: Likewise.
11940         * lib/xprintf.h: Likewise.
11941         * lib/xvasprintf.h: Likewise.
11942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11943
11944 2010-01-18  Bruno Haible  <bruno@clisp.org>
11945
11946         Tests for module 'tanl'.
11947         * modules/tanl-tests: New file.
11948         * tests/test-tanl.c: New file.
11949
11950         Tests for module 'sqrtl'.
11951         * modules/sqrtl-tests: New file.
11952         * tests/test-sqrtl.c: New file.
11953
11954         Tests for module 'sinl'.
11955         * modules/sinl-tests: New file.
11956         * tests/test-sinl.c: New file.
11957
11958         Tests for module 'logl'.
11959         * modules/logl-tests: New file.
11960         * tests/test-logl.c: New file.
11961
11962         Tests for module 'expl'.
11963         * modules/expl-tests: New file.
11964         * tests/test-expl.c: New file.
11965
11966         Tests for module 'cosl'.
11967         * modules/cosl-tests: New file.
11968         * tests/test-cosl.c: New file.
11969
11970         Tests for module 'atanl'.
11971         * modules/atanl-tests: New file.
11972         * tests/test-atanl.c: New file.
11973
11974         Tests for module 'asinl'.
11975         * modules/asinl-tests: New file.
11976         * tests/test-asinl.c: New file.
11977
11978         Tests for module 'acosl'.
11979         * modules/acosl-tests: New file.
11980         * tests/test-acosl.c: New file.
11981
11982         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11983         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
11984         tanl): Use the standard gnulib idiom.
11985         * lib/cosl.c: Don't include trigl.c and sincosl.c.
11986         * lib/sinl.c: Likewise.
11987         * lib/tanl.c: Don't include trigl.c.
11988         (kernel_tanl): Make static.
11989         * lib/sincosl.c: Include trigl.h first.
11990         * lib/trigl.c: Likewise.
11991         * m4/acosl.m4: New file.
11992         * m4/asinl.m4: New file.
11993         * m4/atanl.m4: New file.
11994         * m4/cosl.m4: New file.
11995         * m4/expl.m4: New file.
11996         * m4/logl.m4: New file.
11997         * m4/sinl.m4: New file.
11998         * m4/sqrtl.m4: New file.
11999         * m4/tanl.m4: New file.
12000         * m4/mathl.m4: Remove file.
12001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12002         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12003         Don't initialize GNULIB_MATHL.
12004         * modules/acosl: New file.
12005         * modules/asinl: New file.
12006         * modules/atanl: New file.
12007         * modules/cosl: New file.
12008         * modules/expl: New file.
12009         * modules/logl: New file.
12010         * modules/sinl: New file.
12011         * modules/sqrtl: New file.
12012         * modules/tanl: New file.
12013         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12014         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12015         substitute GNULIB_MATHL.
12016         * modules/mathl: Rewritten.
12017         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12018         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12019         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12020         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12021         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12022         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12023         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12024         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12025         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12026
12027 2010-01-18  Bruno Haible  <bruno@clisp.org>
12028
12029         sqrt: Make gl_FUNC_SQRT requirable.
12030         * m4/sqrt.m4: New file.
12031         * modules/sqrt (Files): Add it.
12032         (configure.ac): Invoke gl_FUNC_SQRT.
12033
12034 2010-01-18  Bruno Haible  <bruno@clisp.org>
12035
12036         New modules for common <math.h> functions.
12037         * m4/mathfunc.m4: New file.
12038         * modules/acos: New file.
12039         * modules/asin: New file.
12040         * modules/atan: New file.
12041         * modules/atan2: New file.
12042         * modules/cbrt: New file.
12043         * modules/copysign: New file.
12044         * modules/cos: New file.
12045         * modules/cosh: New file.
12046         * modules/erf: New file.
12047         * modules/erfc: New file.
12048         * modules/exp: New file.
12049         * modules/fabs: New file.
12050         * modules/fmod: New file.
12051         * modules/hypot: New file.
12052         * modules/j0: New file.
12053         * modules/j1: New file.
12054         * modules/jn: New file.
12055         * modules/ldexp: New file.
12056         * modules/lgamma: New file.
12057         * modules/log: New file.
12058         * modules/log10: New file.
12059         * modules/log1p: New file.
12060         * modules/logb: New file.
12061         * modules/modf: New file.
12062         * modules/nextafter: New file.
12063         * modules/pow: New file.
12064         * modules/remainder: New file.
12065         * modules/rint: New file.
12066         * modules/sin: New file.
12067         * modules/sinh: New file.
12068         * modules/sqrt: New file.
12069         * modules/tan: New file.
12070         * modules/tanh: New file.
12071         * modules/y0: New file.
12072         * modules/y1: New file.
12073         * modules/yn: New file.
12074         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12075         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12076         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12077         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12078         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12079         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12080         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12081         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12082         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12083         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12084         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12085         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12086         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12087         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12088         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12089         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12090         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12091         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12092         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12093         * doc/posix-functions/log.texi: Mention the 'log' module.
12094         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12095         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12096         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12097         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12098         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12099         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12100         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12101         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12102         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12103         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12104         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12105         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12106         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12107         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12108         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12109         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12110
12111 2010-01-18  Jim Meyering  <meyering@redhat.com>
12112
12113         ignore-value: relax license to LGPLv2+
12114         * modules/ignore-value (License): Relax to LGPLv2+.
12115
12116         getdate: don't leak when TZ contains two or more '"'s
12117         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12118         double quote in TZ after the first one.
12119
12120         readtokens: do not leak internal token_lengths buffer
12121         * lib/readtokens.c (readtokens): Free the local, lengths,
12122         when the supplied "token_lengths" parameter is NULL.
12123
12124 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12125
12126         Fix a couple of missing LIBTHREAD link failures on AIX.
12127         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12128         $(LIBTHREAD).
12129         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12130
12131         Link test-poll against INET_PTON_LIB.
12132         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12133         for inet_pton on Solaris 10.
12134
12135 2010-01-17  Bruno Haible  <bruno@clisp.org>
12136
12137         unistdio/*-sprintf: Fix typo in module description.
12138         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12139         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12140         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12141         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12142         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12143         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12144         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12145         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12146
12147 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12148
12149         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12150         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12151         variables in shell case patterns, for AIX and HP-UX ksh.
12152
12153         Split large sed scripts, for HP-UX sed.
12154         * modules/stdio: Split sed scripts around 50 sed commands,
12155         to avoid HP-UX limit of 99 commands, in the near future.
12156         * modules/string: Likewise.
12157         * modules/unistd: Likewise.
12158
12159         gnulib-tool: avoid writing in the current directory.
12160         * gnulib-tool (func_emit_lib_Makefile_am)
12161         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12162         not in the current directory, so concurrent gnulib-tool
12163         instances do not interfere.
12164
12165 2010-01-16  Jim Meyering  <meyering@redhat.com>
12166
12167         doc: update users.txt
12168         * users.txt: Add grep.
12169         (diffutils, gzip): Update URLs.
12170
12171 2010-01-12  Bruno Haible  <bruno@clisp.org>
12172
12173         posix_spawn: Avoid test failure on Cygwin.
12174         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12175         characters.
12176         Reported by Simon Josefsson.
12177
12178 2010-01-12  Bruno Haible  <bruno@clisp.org>
12179
12180         * tests/test-cond.c (main): When skipping the test, show the reason.
12181
12182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12183
12184         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12185
12186 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12187
12188         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12189         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12190
12191 2010-01-12  Eric Blake  <ebb9@byu.net>
12192
12193         build: guarantee AS_VAR_IF
12194         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12195         (gl_AS_VAR_IF): Move...
12196         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12197         Reported by Simon Josefsson.
12198
12199 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12200
12201         * lib/stdio.in.h: Fix typo.
12202
12203 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12204
12205         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12206         libgpg-error.
12207
12208 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12209
12210         * tests/test-xalloc-die.sh: Use $EXEEXT.
12211
12212 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12213             Bruno Haible  <bruno@clisp.org>
12214
12215         getlogin, getlogin_r: Avoid test failure.
12216         * tests/test-getlogin.c: Include <stdio.h>.
12217         (main): Skip the test when the function fails because stdin is not a
12218         tty.
12219         * tests/test-getlogin_r.c: Include <stdio.h>.
12220         (main): Skip the test when the function fails because stdin is not a
12221         tty.
12222
12223 2010-01-11  Eric Blake  <ebb9@byu.net>
12224
12225         tests: avoid more large file warnings
12226         * tests/test-fflush.c: Avoid warning about ftell use.
12227         * tests/test-fseek.c: Avoid warning about fseek use.
12228
12229 2010-01-10  Bruno Haible  <bruno@clisp.org>
12230
12231         nproc: Work better on Linux when /proc and /sys are not mounted.
12232         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12233         as lower bound when, on glibc/Linux systems,
12234         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12235         Suggested by Pádraig Brady <P@draigbrady.com>.
12236         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12237
12238         nproc: Refactor.
12239         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12240         extracted from num_processors.
12241         (num_processors): Call it.
12242
12243 2010-01-11  Jim Meyering  <meyering@redhat.com>
12244
12245         utimecmp: avoid new warning from upcoming gcc-4.5.0
12246         * lib/utimecmp.c (BILLION): Define using #define rather than an
12247         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12248
12249 2010-01-11  Eric Blake  <ebb9@byu.net>
12250
12251         math: add portability warnings for classification macros
12252         * modules/math (Depends-on): Add warn-on-use.
12253         (Makefile.am): Provide new substitutions.
12254         * m4/math_h.m4 (gl_MATH_H): Require inline.
12255         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12256         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12257         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12258         implement warnings.
12259
12260         unistd: warn on use of environ without module
12261         * modules/unistd (Depends-on): Add warn-on-use.
12262         (Makefile.am): Provide new substitutions.
12263         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12264         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12265
12266         stdio: warn on suspicious uses
12267         * modules/stdio (Depends-on): Add warn-on-use.
12268         (Makefile.am): Provide new substitutions.
12269         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12270         fseeko.
12271         * lib/stdio.in.h (gets): Always warn on use.
12272         (fseek, ftell): Adjust when warnings are issued, and honor
12273         _GL_NO_LARGE_FILES as a way to silence the warning.
12274         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12275         any warning about large file offsets.
12276         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12277         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12278         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12279         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12280         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12281         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12282         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12283         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12284
12285         warn-on-use: new module
12286         * modules/warn-on-use: New file.
12287         * build-aux/warn-on-use.h: Likewise.
12288         * m4/warn-on-use.m4: Likewise.
12289         * MODULES.html.sh (Support for building): Mention it.
12290
12291 2010-01-10  Bruno Haible  <bruno@clisp.org>
12292
12293         Tests for module 'unistr/u32-strdup'.
12294         * modules/unistr/u32-strdup-tests: New file.
12295         * tests/unistr/test-u32-strdup.c: New file.
12296
12297         Tests for module 'unistr/u16-strdup'.
12298         * modules/unistr/u16-strdup-tests: New file.
12299         * tests/unistr/test-u16-strdup.c: New file.
12300
12301         Tests for module 'unistr/u8-strdup'.
12302         * modules/unistr/u8-strdup-tests: New file.
12303         * tests/unistr/test-u8-strdup.c: New file.
12304         * tests/unistr/test-strdup.h: New file.
12305
12306         Tests for module 'unistr/u32-strncmp'.
12307         * modules/unistr/u32-strncmp-tests: New file.
12308         * tests/unistr/test-u32-strncmp.c: New file.
12309
12310         Tests for module 'unistr/u16-strncmp'.
12311         * modules/unistr/u16-strncmp-tests: New file.
12312         * tests/unistr/test-u16-strncmp.c: New file.
12313
12314         Tests for module 'unistr/u8-strncmp'.
12315         * modules/unistr/u8-strncmp-tests: New file.
12316         * tests/unistr/test-u8-strncmp.c: New file.
12317         * tests/unistr/test-strncmp.h: New file.
12318
12319         Tests for module 'unistr/u32-strcoll'.
12320         * modules/unistr/u32-strcoll-tests: New file.
12321         * tests/unistr/test-u32-strcoll.c: New file.
12322
12323         Tests for module 'unistr/u16-strcoll'.
12324         * modules/unistr/u16-strcoll-tests: New file.
12325         * tests/unistr/test-u16-strcoll.c: New file.
12326
12327         Tests for module 'unistr/u8-strcoll'.
12328         * modules/unistr/u8-strcoll-tests: New file.
12329         * tests/unistr/test-u8-strcoll.c: New file.
12330
12331         Tests for module 'unistr/u32-strcmp'.
12332         * modules/unistr/u32-strcmp-tests: New file.
12333         * tests/unistr/test-u32-strcmp.c: New file.
12334         * tests/unistr/test-u32-strcmp.h: New file.
12335
12336         Tests for module 'unistr/u16-strcmp'.
12337         * modules/unistr/u16-strcmp-tests: New file.
12338         * tests/unistr/test-u16-strcmp.c: New file.
12339         * tests/unistr/test-u16-strcmp.h: New file.
12340
12341         Tests for module 'unistr/u8-strcmp'.
12342         * modules/unistr/u8-strcmp-tests: New file.
12343         * tests/unistr/test-u8-strcmp.c: New file.
12344         * tests/unistr/test-u8-strcmp.h: New file.
12345         * tests/unistr/test-strcmp.h: New file.
12346
12347         Tests for module 'unistr/u32-strncat'.
12348         * modules/unistr/u32-strncat-tests: New file.
12349         * tests/unistr/test-u32-strncat.c: New file.
12350
12351         Tests for module 'unistr/u16-strncat'.
12352         * modules/unistr/u16-strncat-tests: New file.
12353         * tests/unistr/test-u16-strncat.c: New file.
12354
12355         Tests for module 'unistr/u8-strncat'.
12356         * modules/unistr/u8-strncat-tests: New file.
12357         * tests/unistr/test-u8-strncat.c: New file.
12358         * tests/unistr/test-strncat.h: New file.
12359
12360         Tests for module 'unistr/u32-strcat'.
12361         * modules/unistr/u32-strcat-tests: New file.
12362         * tests/unistr/test-u32-strcat.c: New file.
12363
12364         Tests for module 'unistr/u16-strcat'.
12365         * modules/unistr/u16-strcat-tests: New file.
12366         * tests/unistr/test-u16-strcat.c: New file.
12367
12368         Tests for module 'unistr/u8-strcat'.
12369         * modules/unistr/u8-strcat-tests: New file.
12370         * tests/unistr/test-u8-strcat.c: New file.
12371         * tests/unistr/test-strcat.h: New file.
12372
12373         Tests for module 'unistr/u32-stpncpy'.
12374         * modules/unistr/u32-stpncpy-tests: New file.
12375         * tests/unistr/test-u32-stpncpy.c: New file.
12376
12377         Tests for module 'unistr/u16-stpncpy'.
12378         * modules/unistr/u16-stpncpy-tests: New file.
12379         * tests/unistr/test-u16-stpncpy.c: New file.
12380
12381         Tests for module 'unistr/u8-stpncpy'.
12382         * modules/unistr/u8-stpncpy-tests: New file.
12383         * tests/unistr/test-u8-stpncpy.c: New file.
12384         * tests/unistr/test-stpncpy.h: New file.
12385
12386         Tests for module 'unistr/u32-strncpy'.
12387         * modules/unistr/u32-strncpy-tests: New file.
12388         * tests/unistr/test-u32-strncpy.c: New file.
12389
12390         Tests for module 'unistr/u16-strncpy'.
12391         * modules/unistr/u16-strncpy-tests: New file.
12392         * tests/unistr/test-u16-strncpy.c: New file.
12393
12394         Tests for module 'unistr/u8-strncpy'.
12395         * modules/unistr/u8-strncpy-tests: New file.
12396         * tests/unistr/test-u8-strncpy.c: New file.
12397         * tests/unistr/test-strncpy.h: New file.
12398
12399         Tests for module 'unistr/u32-stpcpy'.
12400         * modules/unistr/u32-stpcpy-tests: New file.
12401         * tests/unistr/test-u32-stpcpy.c: New file.
12402
12403         Tests for module 'unistr/u16-stpcpy'.
12404         * modules/unistr/u16-stpcpy-tests: New file.
12405         * tests/unistr/test-u16-stpcpy.c: New file.
12406
12407         Tests for module 'unistr/u8-stpcpy'.
12408         * modules/unistr/u8-stpcpy-tests: New file.
12409         * tests/unistr/test-u8-stpcpy.c: New file.
12410         * tests/unistr/test-stpcpy.h: New file.
12411
12412         Tests for module 'unistr/u32-strcpy'.
12413         * modules/unistr/u32-strcpy-tests: New file.
12414         * tests/unistr/test-u32-strcpy.c: New file.
12415
12416         Tests for module 'unistr/u16-strcpy'.
12417         * modules/unistr/u16-strcpy-tests: New file.
12418         * tests/unistr/test-u16-strcpy.c: New file.
12419
12420         Tests for module 'unistr/u8-strcpy'.
12421         * modules/unistr/u8-strcpy-tests: New file.
12422         * tests/unistr/test-u8-strcpy.c: New file.
12423         * tests/unistr/test-strcpy.h: New file.
12424
12425         Tests for module 'unistr/u32-strnlen'.
12426         * modules/unistr/u32-strnlen-tests: New file.
12427         * tests/unistr/test-u32-strnlen.c: New file.
12428
12429         Tests for module 'unistr/u16-strnlen'.
12430         * modules/unistr/u16-strnlen-tests: New file.
12431         * tests/unistr/test-u16-strnlen.c: New file.
12432
12433         Tests for module 'unistr/u8-strnlen'.
12434         * modules/unistr/u8-strnlen-tests: New file.
12435         * tests/unistr/test-u8-strnlen.c: New file.
12436         * tests/unistr/test-strnlen.h: New file.
12437
12438         Tests for module 'unistr/u32-strlen'.
12439         * modules/unistr/u32-strlen-tests: New file.
12440         * tests/unistr/test-u32-strlen.c: New file.
12441
12442         Tests for module 'unistr/u16-strlen'.
12443         * modules/unistr/u16-strlen-tests: New file.
12444         * tests/unistr/test-u16-strlen.c: New file.
12445
12446         Tests for module 'unistr/u8-strlen'.
12447         * modules/unistr/u8-strlen-tests: New file.
12448         * tests/unistr/test-u8-strlen.c: New file.
12449
12450         Tests for module 'unistr/u32-prev'.
12451         * modules/unistr/u32-prev-tests: New file.
12452         * tests/unistr/test-u32-prev.c: New file.
12453
12454         Tests for module 'unistr/u16-prev'.
12455         * modules/unistr/u16-prev-tests: New file.
12456         * tests/unistr/test-u16-prev.c: New file.
12457
12458         Tests for module 'unistr/u8-prev'.
12459         * modules/unistr/u8-prev-tests: New file.
12460         * tests/unistr/test-u8-prev.c: New file.
12461
12462         Tests for module 'unistr/u32-next'.
12463         * modules/unistr/u32-next-tests: New file.
12464         * tests/unistr/test-u32-next.c: New file.
12465
12466         Tests for module 'unistr/u16-next'.
12467         * modules/unistr/u16-next-tests: New file.
12468         * tests/unistr/test-u16-next.c: New file.
12469
12470         Tests for module 'unistr/u8-next'.
12471         * modules/unistr/u8-next-tests: New file.
12472         * tests/unistr/test-u8-next.c: New file.
12473
12474         Tests for module 'unistr/u32-strmbtouc'.
12475         * modules/unistr/u32-strmbtouc-tests: New file.
12476         * tests/unistr/test-u32-strmbtouc.c: New file.
12477
12478         Tests for module 'unistr/u16-strmbtouc'.
12479         * modules/unistr/u16-strmbtouc-tests: New file.
12480         * tests/unistr/test-u16-strmbtouc.c: New file.
12481
12482         Tests for module 'unistr/u8-strmbtouc'.
12483         * modules/unistr/u8-strmbtouc-tests: New file.
12484         * tests/unistr/test-u8-strmbtouc.c: New file.
12485
12486         Tests for module 'unistr/u32-strmblen'.
12487         * modules/unistr/u32-strmblen-tests: New file.
12488         * tests/unistr/test-u32-strmblen.c: New file.
12489
12490         Tests for module 'unistr/u16-strmblen'.
12491         * modules/unistr/u16-strmblen-tests: New file.
12492         * tests/unistr/test-u16-strmblen.c: New file.
12493
12494         Tests for module 'unistr/u8-strmblen'.
12495         * modules/unistr/u8-strmblen-tests: New file.
12496         * tests/unistr/test-u8-strmblen.c: New file.
12497
12498         Tests for module 'unistr/u32-cpy-alloc'.
12499         * modules/unistr/u32-cpy-alloc-tests: New file.
12500         * tests/unistr/test-u32-cpy-alloc.c: New file.
12501
12502         Tests for module 'unistr/u16-cpy-alloc'.
12503         * modules/unistr/u16-cpy-alloc-tests: New file.
12504         * tests/unistr/test-u16-cpy-alloc.c: New file.
12505
12506         Tests for module 'unistr/u8-cpy-alloc'.
12507         * modules/unistr/u8-cpy-alloc-tests: New file.
12508         * tests/unistr/test-u8-cpy-alloc.c: New file.
12509         * tests/unistr/test-cpy-alloc.h: New file.
12510
12511         Tests for module 'unistr/u32-mbsnlen'.
12512         * modules/unistr/u32-mbsnlen-tests: New file.
12513         * tests/unistr/test-u32-mbsnlen.c: New file.
12514
12515         Tests for module 'unistr/u16-mbsnlen'.
12516         * modules/unistr/u16-mbsnlen-tests: New file.
12517         * tests/unistr/test-u16-mbsnlen.c: New file.
12518
12519         Tests for module 'unistr/u8-mbsnlen'.
12520         * modules/unistr/u8-mbsnlen-tests: New file.
12521         * tests/unistr/test-u8-mbsnlen.c: New file.
12522
12523         Tests for module 'unistr/u32-chr'.
12524         * modules/unistr/u32-chr-tests: New file.
12525         * tests/unistr/test-u32-chr.c: New file.
12526
12527         Tests for module 'unistr/u16-chr'.
12528         * modules/unistr/u16-chr-tests: New file.
12529         * tests/unistr/test-u16-chr.c: New file.
12530
12531         Tests for module 'unistr/u8-chr'.
12532         * modules/unistr/u8-chr-tests: New file.
12533         * tests/unistr/test-u8-chr.c: New file.
12534         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
12535
12536         Tests for module 'unistr/u32-cmp2'.
12537         * modules/unistr/u32-cmp2-tests: New file.
12538         * tests/unistr/test-u32-cmp2.c: New file.
12539
12540         Tests for module 'unistr/u16-cmp2'.
12541         * modules/unistr/u16-cmp2-tests: New file.
12542         * tests/unistr/test-u16-cmp2.c: New file.
12543
12544         Tests for module 'unistr/u8-cmp2'.
12545         * modules/unistr/u8-cmp2-tests: New file.
12546         * tests/unistr/test-u8-cmp2.c: New file.
12547         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
12548
12549         Tests for module 'unistr/u32-cmp'.
12550         * modules/unistr/u32-cmp-tests: New file.
12551         * tests/unistr/test-u32-cmp.c: New file.
12552
12553         Tests for module 'unistr/u16-cmp'.
12554         * modules/unistr/u16-cmp-tests: New file.
12555         * tests/unistr/test-u16-cmp.c: New file.
12556
12557         Tests for module 'unistr/u8-cmp'.
12558         * modules/unistr/u8-cmp-tests: New file.
12559         * tests/unistr/test-u8-cmp.c: New file.
12560         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
12561
12562         Tests for module 'unistr/u32-set'.
12563         * modules/unistr/u32-set-tests: New file.
12564         * tests/unistr/test-u32-set.c: New file.
12565
12566         Tests for module 'unistr/u16-set'.
12567         * modules/unistr/u16-set-tests: New file.
12568         * tests/unistr/test-u16-set.c: New file.
12569
12570         Tests for module 'unistr/u8-set'.
12571         * modules/unistr/u8-set-tests: New file.
12572         * tests/unistr/test-u8-set.c: New file.
12573         * tests/unistr/test-set.h: New file.
12574
12575         Tests for module 'unistr/u32-move'.
12576         * modules/unistr/u32-move-tests: New file.
12577         * tests/unistr/test-u32-move.c: New file.
12578
12579         Tests for module 'unistr/u16-move'.
12580         * modules/unistr/u16-move-tests: New file.
12581         * tests/unistr/test-u16-move.c: New file.
12582
12583         Tests for module 'unistr/u8-move'.
12584         * modules/unistr/u8-move-tests: New file.
12585         * tests/unistr/test-u8-move.c: New file.
12586         * tests/unistr/test-move.h: New file.
12587
12588         Tests for module 'unistr/u32-cpy'.
12589         * modules/unistr/u32-cpy-tests: New file.
12590         * tests/unistr/test-u32-cpy.c: New file.
12591
12592         Tests for module 'unistr/u16-cpy'.
12593         * modules/unistr/u16-cpy-tests: New file.
12594         * tests/unistr/test-u16-cpy.c: New file.
12595
12596         Tests for module 'unistr/u8-cpy'.
12597         * modules/unistr/u8-cpy-tests: New file.
12598         * tests/unistr/test-u8-cpy.c: New file.
12599         * tests/unistr/test-cpy.h: New file.
12600
12601 2010-01-09  Bruno Haible  <bruno@clisp.org>
12602
12603         Tests for module 'unistr/u32-uctomb'.
12604         * modules/unistr/u32-uctomb-tests: New file.
12605         * tests/unistr/test-u32-uctomb.c: New file.
12606
12607         Tests for module 'unistr/u16-uctomb'.
12608         * modules/unistr/u16-uctomb-tests: New file.
12609         * tests/unistr/test-u16-uctomb.c: New file.
12610
12611         Tests for module 'unistr/u8-uctomb'.
12612         * modules/unistr/u8-uctomb-tests: New file.
12613         * tests/unistr/test-u8-uctomb.c: New file.
12614
12615         Tests for module 'unistr/u32-mbtoucr'.
12616         * modules/unistr/u32-mbtoucr-tests: New file.
12617         * tests/unistr/test-u32-mbtoucr.c: New file.
12618
12619         Tests for module 'unistr/u16-mbtoucr'.
12620         * modules/unistr/u16-mbtoucr-tests: New file.
12621         * tests/unistr/test-u16-mbtoucr.c: New file.
12622
12623         Tests for module 'unistr/u8-mbtoucr'.
12624         * modules/unistr/u8-mbtoucr-tests: New file.
12625         * tests/unistr/test-u8-mbtoucr.c: New file.
12626
12627         Tests for module 'unistr/u32-mbtouc'.
12628         * modules/unistr/u32-mbtouc-tests: New file.
12629         * tests/unistr/test-u32-mbtouc.c: New file.
12630
12631         Tests for module 'unistr/u16-mbtouc'.
12632         * modules/unistr/u16-mbtouc-tests: New file.
12633         * tests/unistr/test-u16-mbtouc.c: New file.
12634
12635         Tests for module 'unistr/u8-mbtouc'.
12636         * modules/unistr/u8-mbtouc-tests: New file.
12637         * tests/unistr/test-u8-mbtouc.c: New file.
12638
12639         Tests for module 'unistr/u32-mbtouc-unsafe'.
12640         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
12641         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
12642         * tests/unistr/test-u32-mbtouc.h: New file.
12643
12644         Tests for module 'unistr/u16-mbtouc-unsafe'.
12645         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
12646         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
12647         * tests/unistr/test-u16-mbtouc.h: New file.
12648
12649         Tests for module 'unistr/u8-mbtouc-unsafe'.
12650         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
12651         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
12652         * tests/unistr/test-u8-mbtouc.h: New file.
12653
12654         Tests for module 'unistr/u32-mblen'.
12655         * modules/unistr/u32-mblen-tests: New file.
12656         * tests/unistr/test-u32-mblen.c: New file.
12657
12658         Tests for module 'unistr/u16-mblen'.
12659         * modules/unistr/u16-mblen-tests: New file.
12660         * tests/unistr/test-u16-mblen.c: New file.
12661
12662         Tests for module 'unistr/u8-mblen'.
12663         * modules/unistr/u8-mblen-tests: New file.
12664         * tests/unistr/test-u8-mblen.c: New file.
12665
12666         Tests for module 'unistr/u32-to-u16'.
12667         * modules/unistr/u32-to-u16-tests: New file.
12668         * tests/unistr/test-u32-to-u16.c: New file.
12669
12670         Tests for module 'unistr/u32-to-u8'.
12671         * modules/unistr/u32-to-u8-tests: New file.
12672         * tests/unistr/test-u32-to-u8.c: New file.
12673
12674         Tests for module 'unistr/u16-to-u32'.
12675         * modules/unistr/u16-to-u32-tests: New file.
12676         * tests/unistr/test-u16-to-u32.c: New file.
12677
12678         Tests for module 'unistr/u16-to-u8'.
12679         * modules/unistr/u16-to-u8-tests: New file.
12680         * tests/unistr/test-u16-to-u8.c: New file.
12681
12682         Tests for module 'unistr/u8-to-u32'.
12683         * modules/unistr/u8-to-u32-tests: New file.
12684         * tests/unistr/test-u8-to-u32.c: New file.
12685
12686         Tests for module 'unistr/u8-to-u16'.
12687         * modules/unistr/u8-to-u16-tests: New file.
12688         * tests/unistr/test-u8-to-u16.c: New file.
12689
12690         Tests for module 'unistr/u32-check'.
12691         * modules/unistr/u32-check-tests: New file.
12692         * tests/unistr/test-u32-check.c: New file.
12693
12694         Tests for module 'unistr/u16-check'.
12695         * modules/unistr/u16-check-tests: New file.
12696         * tests/unistr/test-u16-check.c: New file.
12697
12698         Tests for module 'unistr/u8-check'.
12699         * modules/unistr/u8-check-tests: New file.
12700         * tests/unistr/test-u8-check.c: New file.
12701
12702         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
12703         (category_equals): New function.
12704         (main): Add more tests.
12705         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
12706
12707         * tests/unictype/test-bidi_byname.c (main): Add more tests.
12708
12709 2010-01-10  Bruno Haible  <bruno@clisp.org>
12710
12711         unistr/u*-strcoll: Try harder to distinguish different strings.
12712         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
12713         compare s1 and s2 to see if they are different.
12714
12715 2010-01-10  Bruno Haible  <bruno@clisp.org>
12716
12717         unistr/u*-stpncpy: Fix the return value.
12718         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
12719         description of the return value consistent with stpncpy in glibc.
12720         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
12721         written non-NUL unit.
12722
12723 2010-01-10  Bruno Haible  <bruno@clisp.org>
12724
12725         unistr/u*-next: Add missing dependencies.
12726         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
12727         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
12728         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
12729
12730 2010-01-10  Bruno Haible  <bruno@clisp.org>
12731
12732         unistr/u8-mbsnlen: Fix return value for incomplete character.
12733         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
12734         u8_mblen.
12735         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
12736         Remove unistr/u8-mblen.
12737         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
12738         u16_mblen.
12739         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
12740         Remove unistr/u16-mblen.
12741
12742 2010-01-10  Bruno Haible  <bruno@clisp.org>
12743
12744         wchar: Fix compilation error when <wchar.h> is used from coreutils.
12745         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
12746         Reported by Brian Gough <bjg@gnu.org> and
12747         Chris Clayton <chris2553@googlemail.com> via
12748         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
12749
12750 2010-01-09  Bruno Haible  <bruno@clisp.org>
12751
12752         unistr/u16-to-u32: Reject invalid input.
12753         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
12754         u16_mbtouc.
12755         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
12756         Remove unistr/u16-mbtouc.
12757
12758         unistr/u16-to-u8: Reject invalid input.
12759         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
12760         u16_mbtouc.
12761         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
12762         Remove unistr/u16-mbtouc.
12763
12764         unistr/u8-to-u32: Reject invalid input.
12765         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
12766         u8_mbtouc.
12767         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
12768         Remove unistr/u8-mbtouc.
12769
12770         unistr/u8-to-u16: Reject invalid input.
12771         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
12772         u8_mbtouc.
12773         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
12774         Remove unistr/u8-mbtouc.
12775
12776 2010-01-09  Bruno Haible  <bruno@clisp.org>
12777
12778         Tests for module 'getlogin'.
12779         * modules/getlogin-tests: New file.
12780         * tests/test-getlogin.c: New file.
12781
12782         New module 'getlogin'.
12783         * lib/unistd.in.h (getlogin): New declaration.
12784         * lib/getlogin.c: New file.
12785         * m4/getlogin.m4: New file.
12786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
12787         HAVE_GETLOGIN.
12788         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
12789         HAVE_GETLOGIN.
12790         * modules/getlogin: New file.
12791         * doc/posix-functions/getlogin.texi: Mention the new module.
12792         Reported by John W. Eaton <jwe@gnu.org>.
12793
12794 2010-01-09  Bruno Haible  <bruno@clisp.org>
12795
12796         getlogin_r: Support for native Windows.
12797         * lib/getlogin_r.c: Include <windows.h>
12798         (getlogin_r): Implement for native Windows.
12799         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
12800         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
12801         via John W. Eaton <jwe@gnu.org>.
12802
12803 2010-01-09  Bruno Haible  <bruno@clisp.org>
12804
12805         getlogin_r: Small fixes.
12806         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
12807         succeeds.
12808         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
12809         before testing whether getlogin_r is declared. No need to set
12810         HAVE_DECL_GETLOGIN_R to 1.
12811         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
12812
12813 2010-01-09  Bruno Haible  <bruno@clisp.org>
12814
12815         * lib/unistd.in.h (getlogin_r): Add comment.
12816
12817 2010-01-09  Bruno Haible  <bruno@clisp.org>
12818
12819         Tests for module 'getlogin_r'.
12820         * modules/getlogin_r-tests: New file.
12821         * tests/test-getlogin_r.c: New file.
12822
12823 2010-01-09  Jim Meyering  <meyering@redhat.com>
12824
12825         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
12826         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
12827         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
12828
12829 2010-01-08  Simon Josefsson  <simon@josefsson.org>
12830
12831         * lib/dup2.c (rpl_dup2): Improve comment.
12832
12833 2010-01-08  Eric Blake  <ebb9@byu.net>
12834
12835         maint.mk: allow packages to add makefile @@ exceptions
12836         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
12837         (sc_makefile_check): Rename...
12838         (sc_makefile_at_at_check): ...to this, and use hook.
12839
12840         dup2: work around mingw bug
12841         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
12842         Reported by Simon Josefsson.
12843
12844 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
12845
12846         glob: Fix C++ compilation.
12847         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
12848         C++.
12849
12850 2010-01-07  Bruno Haible  <bruno@clisp.org>
12851
12852         Fix indentation of wctype.in.h, broken since 2007-01-06.
12853         * lib/wctype.in.h: Fix indentation of preprocessor directives.
12854
12855 2010-01-07  Bruno Haible  <bruno@clisp.org>
12856
12857         mbslen: Avoid collision with system function.
12858         * lib/string.in.h [MirBSD]: Include <wchar.h>.
12859         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
12860         * m4/mbslen.m4: New file.
12861         * modules/mbslen (Files): Add it.
12862         (configure.ac): Invoke gl_MBSLEN.
12863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
12864         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
12865         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
12866         via Ian Beckwith <ianb@erislabs.net>.
12867
12868 2010-01-07  Bruno Haible  <bruno@clisp.org>
12869
12870         dirent: Document the last fix.
12871         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
12872
12873 2010-01-07  Bruno Haible  <bruno@clisp.org>
12874
12875         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
12876         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
12877         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
12878         va_list are defined.
12879         * doc/posix-headers/stdio.texi: Document the bug of missing types.
12880         Reported by Eric Blake.
12881
12882 2010-01-07  Bruno Haible  <bruno@clisp.org>
12883
12884         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
12885         * modules/xlist (Depends-on): Add 'list',
12886         * modules/xoset (Depends-on): Add 'oset'.
12887         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12888
12889 2010-01-07  Bruno Haible  <bruno@clisp.org>
12890
12891         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
12892         * doc/posix-functions/strncasecmp.texi: Likewise.
12893
12894 2010-01-07  Bruno Haible  <bruno@clisp.org>
12895
12896         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
12897
12898 2010-01-07  John W. Eaton  <jwe@octave.org>
12899
12900         wctype: allow C++ use
12901         * lib/wctype.in.h: Add extern "C" block for C++.
12902
12903 2010-01-06  Eric Blake  <ebb9@byu.net>
12904
12905         maint.mk: detect incorrect GFDL usage
12906         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
12907
12908 2010-01-06  Jim Meyering  <meyering@redhat.com>
12909         and Eric Blake  <ebb9@byu.net>
12910
12911         maint.mk: ignore multi-line copyright in NEWS
12912         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
12913
12914 2010-01-06  Eric Blake  <ebb9@byu.net>
12915
12916         select: add missing dependency
12917         * modules/select-tests (Depends-on): Move sockets dependency...
12918         * modules/select (Depends-on): ...here.
12919         Reported by Ian Beckwith.
12920
12921         doc: regenerate INSTALL
12922         * doc/INSTALL: Reflect recent autoconf update.
12923         * doc/INSTALL.ISO: Likewise.
12924         * doc/INSTALL.UTF-8: Likewise.
12925
12926         pread: fix compilation on glibc
12927         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
12928         Reported by Ralf Wildenhues.
12929
12930         dirent: fix test failure
12931         * lib/dirent.in.h (includes): Guarantee ino_t.
12932         Reported by Ralf Wildenhues.
12933
12934 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
12935
12936         linkat, renameat: avoid bad free
12937         * lib/at-func2.c (at_func2): Fix typo.
12938         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
12939
12940 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12941
12942         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
12943         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
12944         to avoid failure of symlink test later.
12945
12946 2010-01-06  Eric Blake  <ebb9@byu.net>
12947
12948         stdio, unistd: guarantee ssize_t
12949         * lib/unistd.in.h (includes): Ensure that types required by POSIX
12950         2008 are exposed when needed.
12951         * lib/stdio.in.h (includes): Likewise.
12952         Reported by Ralf Wildenhues.
12953
12954 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
12955
12956         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
12957         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
12958         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
12959
12960 2010-01-06  Jim Meyering  <meyering@redhat.com>
12961
12962         readtokens: this module *does* require xalloc.h
12963         It uses only functions that were omitted by the old syntax-check rule.
12964         * lib/readtokens.c: Include "xalloc.h" once again.
12965         * modules/readtokens (Depends-on): Add xalloc.
12966         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
12967
12968 2010-01-05  Eric Blake  <ebb9@byu.net>
12969
12970         maint: support 'make announcement' from a VPATH build
12971         * top/maint.mk (announcement): Look for correct NEWS file.
12972
12973 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
12974
12975         utimens (fdutimens): ignore a negative FD, per contract
12976         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
12977         when we have a valid file descriptor.  Otherwise, using a brand
12978         new glibc (with just-patched futimens that now fails with EBADF)
12979         would cause this function to fail with ENOSYS.
12980         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
12981         See also http://bugzilla.redhat.com/552320.
12982
12983 2010-01-05  Eric Blake  <ebb9@byu.net>
12984
12985         strcase: document what it provides
12986         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
12987         gnulib module.
12988         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
12989         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
12990
12991 2010-01-05  Jim Meyering  <meyering@redhat.com>
12992
12993         maint: remove useless inclusions of "xalloc.h"
12994         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
12995         * lib/readtokens.c: Likewise.
12996         * lib/same.c: Likewise.
12997         * modules/getloadavg (Depends-on): Remove xalloc.
12998         * modules/readtokens: Likewise.
12999         * modules/same: Likewise.
13000
13001         maint.mk: include 4 more function names in alloca.h-checking regexp
13002         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13003         regexp.  Before, we would give a false-positive (saying alloca.h
13004         is included unnecessarily) when the only uses involved omitted symbols.
13005
13006         xalloc.h: use consistent formatting
13007         * lib/xalloc.h: Move declarations to start in the first column.
13008
13009 2010-01-05  Eric Blake  <ebb9@byu.net>
13010
13011         mkdir: avoid xalloc
13012         * lib/mkdir.c (includes): Drop unused header.
13013         Reported by John W. Eaton.
13014
13015 2010-01-04  Jim Meyering  <meyering@redhat.com>
13016
13017         nl_langinfo: avoid configure-time syntax error
13018         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13019         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13020         the empty string.  Don't let that provoke a shell syntax error.
13021
13022         regcomp, regexec, fnmatch: avoid array bounds read error
13023         * lib/regcomp.c (build_equiv_class): From glibc:
13024         Use only the low 24 bits of a findidx return value as an index
13025         into the weights array.  Patch by Ulrich Drepper:
13026         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13027         * lib/regexec.c (check_node_accept_bytes): Likewise.
13028         * lib/fnmatch_loop.c (FCT): Likewise.
13029
13030         regcomp: skip collseq lookup when there are no rules
13031         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13032         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13033
13034         regcomp: recognize ill-formed { } expressions
13035         * lib/regcomp.c (parse_dup_op): From glibc:
13036         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13037
13038         regcomp: fix typo in comment
13039         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13040         s/satisfy/satisfies/.
13041
13042         regcomp: sync from glibc: remove dead store
13043         * lib/regcomp.c (duplicate_node_closure): Remove useless
13044         search_duplicated_node call and dead store.
13045
13046         regcomp: sync from glibc; always use nl_langinfo
13047         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13048         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13049         * modules/regex (Depends-on): Add nl_langinfo.
13050
13051 2010-01-04  Eric Blake  <ebb9@byu.net>
13052
13053         fdopendir: fix configure test
13054         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13055
13056 2010-01-01  Bruno Haible  <bruno@clisp.org>
13057
13058         wchar: Remove unused configure check.
13059         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13060
13061 2010-01-01  Eric Blake  <ebb9@byu.net>
13062
13063         headers: make check of system header explicit
13064         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13065         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13066         ourselves.
13067         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13069         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13070         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13071         internals.
13072         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13073         missing.
13074         Suggested by Bruno Haible.
13075
13076 2010-01-01  Jim Meyering  <meyering@redhat.com>
13077
13078         ChangeLog: tweak to eliminate unnecessary copyright line
13079         * ChangeLog: Remove a copyright line that was mistakenly updated
13080         by today's update-copyright run.  Reported by Eric Blake.
13081
13082         test-update-copyright: don't let envvar setting cause test failure
13083         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13084
13085 2010-01-01  Bruno Haible  <bruno@clisp.org>
13086
13087         localename: Avoid gcc warning.
13088         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13089         function if it is not used.
13090
13091 2010-01-01  Jim Meyering  <meyering@redhat.com>
13092
13093         update nearly all FSF copyright year lists to include 2010
13094         Use the same procedure as for 2009, outlined in
13095         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13096
13097         version-etc: set COPYRIGHT_YEAR to 2010
13098         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13099
13100 2009-12-31  Eric Blake  <ebb9@byu.net>
13101
13102         doc: correct availability of cygwin 1.5.x getopt
13103         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13104         variables.
13105         * doc/posix-functions/opterr.texi (opterr): Likewise.
13106         * doc/posix-functions/optind.texi (optind): Likewise.
13107         * doc/posix-functions/optopt.texi (optopt): Likewise.
13108         * doc/posix-functions/tzname.texi (tzname): Likewise.
13109
13110         openat: update maintainer
13111         * modules/openat (Maintainer): Add myself.
13112
13113         utimens: avoid shadowing warning
13114         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13115         buffers into one, to avoid shadowing, as well as avoiding a
13116         redundant stat.
13117         Reported by Jim Meyering.
13118
13119         test-dup2: avoid compiler warning
13120         * tests/test-dup2.c (is_inheritable): Only define if used.
13121
13122 2010-01-01  Bruno Haible  <bruno@clisp.org>
13123
13124         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13125         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13126         defined, use wctomb instead of wcrtomb.
13127
13128 2010-01-01  Bruno Haible  <bruno@clisp.org>
13129
13130         iconv: Reject native Solaris iconv.
13131         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13132         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13133
13134 2009-12-31  Bruno Haible  <bruno@clisp.org>
13135
13136         * tests/test-signal.c (main): Remove test of 'SIG'.
13137
13138 2009-12-31  Bruno Haible  <bruno@clisp.org>
13139
13140         spawn: Fix incomplete fix.
13141         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13142         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13143         warnings for GNULIB_POSIXCHECK again.
13144         Reported by Eric Blake.
13145
13146 2009-12-31  Bruno Haible  <bruno@clisp.org>
13147
13148         Avoid namespace pollution on glibc systems.
13149         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13150         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13151         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13152         glibc systems.
13153
13154 2009-12-31  Bruno Haible  <bruno@clisp.org>
13155
13156         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13157         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13158         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13159         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13160         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13161         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13162         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13163
13164 2009-12-31  Bruno Haible  <bruno@clisp.org>
13165
13166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13167         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13168         afterwards.
13169
13170 2009-12-31  Bruno Haible  <bruno@clisp.org>
13171
13172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13173         SYS_UTSNAME_H.
13174
13175 2009-12-31  Bruno Haible  <bruno@clisp.org>
13176
13177         spawn: Fix misapplied patch.
13178         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13179         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13180         warnings for GNULIB_POSIXCHECK.
13181
13182 2009-12-31  Bruno Haible  <bruno@clisp.org>
13183
13184         times: Update after sys_times changed.
13185         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13186         * modules/times (Files): Add it.
13187         (configure.ac): Invoke gl_FUNC_TIMES.
13188
13189 2009-12-31  Bruno Haible  <bruno@clisp.org>
13190
13191         Use AC_C_INLINE where necessary.
13192         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13195         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13196         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13197         * m4/mbiter.m4 (gl_MBITER): Likewise.
13198         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13199         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13200         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13201         * modules/u64 (configure.ac): Likewise.
13202
13203 2009-12-31  Bruno Haible  <bruno@clisp.org>
13204
13205         Use AC_C_INLINE instead of module 'inline' where possible.
13206         * modules/inline (Description): Clarify purpose.
13207         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13208         * modules/count-one-bits (Depends-on): Remove inline.
13209         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13210         * modules/openat (Depends-on): Remove inline.
13211         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13212         instead of depending on module 'inline'.
13213         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13214         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13215         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13216         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13217         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13218         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13219         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13220         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13221         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13222         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13223         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13224         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13225         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13226         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13227         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13228         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13229         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13230         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13231         Likewise.
13232         * modules/unictype/property-ascii-hex-digit (Depends-on,
13233         configure.ac): Likewise.
13234         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13235         configure.ac): Likewise.
13236         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13237         configure.ac): Likewise.
13238         * modules/unictype/property-bidi-block-separator (Depends-on,
13239         configure.ac): Likewise.
13240         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13241         configure.ac): Likewise.
13242         * modules/unictype/property-bidi-common-separator (Depends-on,
13243         configure.ac): Likewise.
13244         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13245         Likewise.
13246         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13247         configure.ac): Likewise.
13248         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13249         configure.ac): Likewise.
13250         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13251         configure.ac): Likewise.
13252         * modules/unictype/property-bidi-european-digit (Depends-on,
13253         configure.ac): Likewise.
13254         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13255         configure.ac): Likewise.
13256         * modules/unictype/property-bidi-left-to-right (Depends-on,
13257         configure.ac): Likewise.
13258         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13259         configure.ac): Likewise.
13260         * modules/unictype/property-bidi-other-neutral (Depends-on,
13261         configure.ac): Likewise.
13262         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13263         Likewise.
13264         * modules/unictype/property-bidi-segment-separator (Depends-on,
13265         configure.ac): Likewise.
13266         * modules/unictype/property-bidi-whitespace (Depends-on,
13267         configure.ac): Likewise.
13268         * modules/unictype/property-combining (Depends-on, configure.ac):
13269         Likewise.
13270         * modules/unictype/property-composite (Depends-on, configure.ac):
13271         Likewise.
13272         * modules/unictype/property-currency-symbol (Depends-on,
13273         configure.ac): Likewise.
13274         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13275         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13276         Likewise.
13277         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13278         configure.ac): Likewise.
13279         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13280         Likewise.
13281         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13282         Likewise.
13283         * modules/unictype/property-extender (Depends-on, configure.ac):
13284         Likewise.
13285         * modules/unictype/property-format-control (Depends-on, configure.ac):
13286         Likewise.
13287         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13288         Likewise.
13289         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13290         Likewise.
13291         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13292         Likewise.
13293         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13294         Likewise.
13295         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13296         Likewise.
13297         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13298         Likewise.
13299         * modules/unictype/property-id-start (Depends-on, configure.ac):
13300         Likewise.
13301         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13302         Likewise.
13303         * modules/unictype/property-ids-binary-operator (Depends-on,
13304         configure.ac): Likewise.
13305         * modules/unictype/property-ids-trinary-operator (Depends-on,
13306         configure.ac): Likewise.
13307         * modules/unictype/property-ignorable-control (Depends-on,
13308         configure.ac): Likewise.
13309         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13310         Likewise.
13311         * modules/unictype/property-join-control (Depends-on, configure.ac):
13312         Likewise.
13313         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13314         Likewise.
13315         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13316         Likewise.
13317         * modules/unictype/property-logical-order-exception (Depends-on,
13318         configure.ac): Likewise.
13319         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13320         Likewise.
13321         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13322         * modules/unictype/property-non-break (Depends-on, configure.ac):
13323         Likewise.
13324         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13325         Likewise.
13326         * modules/unictype/property-numeric (Depends-on, configure.ac):
13327         Likewise.
13328         * modules/unictype/property-other-alphabetic (Depends-on,
13329         configure.ac): Likewise.
13330         * modules/unictype/property-other-default-ignorable-code-point
13331         (Depends-on, configure.ac): Likewise.
13332         * modules/unictype/property-other-grapheme-extend (Depends-on,
13333         configure.ac): Likewise.
13334         * modules/unictype/property-other-id-continue (Depends-on,
13335         configure.ac): Likewise.
13336         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13337         Likewise.
13338         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13339         Likewise.
13340         * modules/unictype/property-other-math (Depends-on, configure.ac):
13341         Likewise.
13342         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13343         Likewise.
13344         * modules/unictype/property-paired-punctuation (Depends-on,
13345         configure.ac): Likewise.
13346         * modules/unictype/property-paragraph-separator (Depends-on,
13347         configure.ac): Likewise.
13348         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13349         Likewise.
13350         * modules/unictype/property-pattern-white-space (Depends-on,
13351         configure.ac): Likewise.
13352         * modules/unictype/property-private-use (Depends-on, configure.ac):
13353         Likewise.
13354         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13355         Likewise.
13356         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13357         Likewise.
13358         * modules/unictype/property-radical (Depends-on, configure.ac):
13359         Likewise.
13360         * modules/unictype/property-sentence-terminal (Depends-on,
13361         configure.ac): Likewise.
13362         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13363         Likewise.
13364         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13365         * modules/unictype/property-terminal-punctuation (Depends-on,
13366         configure.ac): Likewise.
13367         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13368         Likewise.
13369         * modules/unictype/property-unassigned-code-value (Depends-on,
13370         configure.ac): Likewise.
13371         * modules/unictype/property-unified-ideograph (Depends-on,
13372         configure.ac): Likewise.
13373         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13374         Likewise.
13375         * modules/unictype/property-variation-selector (Depends-on,
13376         configure.ac): Likewise.
13377         * modules/unictype/property-white-space (Depends-on, configure.ac):
13378         Likewise.
13379         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13380         Likewise.
13381         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13382         Likewise.
13383         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13384         Likewise.
13385         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13386         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13387         Likewise.
13388
13389 2009-12-31  Bruno Haible  <bruno@clisp.org>
13390
13391         Remove unnecessary AC_C_INLINE invocation.
13392         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13393         since 2009-08-21.
13394
13395 2009-12-31  Jim Meyering  <meyering@redhat.com>
13396
13397         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13398         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13399         With this change, we can all remove the gpg_key_ID = ... definition
13400         from our respective cfg.mk files.
13401
13402         maint.mk: create announcement template in ~/, not in /tmp
13403         * top/maint.mk (emit_upload_commands): Adjust.
13404         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13405         Remove temporary file, .ci-msg.
13406
13407 2009-12-31  Eric Blake  <ebb9@byu.net>
13408
13409         link-warning: always build headers with link warnings
13410         * modules/arpa_inet (Makefile.am): Always build replacement
13411         header.
13412         * modules/ctype (Makefile.am): Likewise.
13413         * modules/dirent (Makefile.am): Likewise.
13414         * modules/inttypes (Makefile.am): Likewise.
13415         * modules/langinfo (Makefile.am): Likewise.
13416         * modules/locale (Makefile.am): Likewise.
13417         * modules/spawn (Makefile.am): Likewise.
13418         * modules/sys_file (Makefile.am): Likewise.
13419         * modules/sys_ioctl (Makefile.am): Likewise.
13420         * modules/sys_select (Makefile.am): Likewise.
13421         * modules/sys_socket (Makefile.am): Likewise.
13422         * modules/sys_times (Makefile.am): Likewise.
13423         * modules/sys_utsname (Makefile.am): Likewise.
13424         * modules/sys_wait (Makefile.am): Likewise.
13425         * modules/wchar (Makefile.am): Likewise.
13426         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13427         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13428         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13429         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13430         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13431         Likewise.
13432         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13433         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13434         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13435         Likewise.
13436         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13437         Likewise.
13438         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13439         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13440         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13442         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13444         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13445         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13446         (gl_WCHAR_H_DEFAULTS): Likewise.
13447
13448 2009-12-31  Eric Blake  <ebb9@byu.net>
13449
13450         signal, spawn: use link warnings
13451         * lib/signal.in.h (sigset_t): Make unconditional.
13452         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13453         (sigpending, sigprocmask, sigaction): Add link warnings.
13454         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13455         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13456         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13457         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13458         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13459         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13460         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13461         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13462         (posix_spawn_file_actions_destroy)
13463         (posix_spawn_file_actions_addopen)
13464         (posix_spawn_file_actions_addclose)
13465         (posix_spawn_file_actions_adddup2): Likewise.
13466         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
13467         * tests/test-signal.c (main): Enhance test.
13468
13469         spawn: improve wrapper support
13470         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
13471         (gl_SPAWN_H_DEFAULTS): New defaults.
13472         * modules/spawn (Makefile.am): Substitute them.
13473         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
13474         Only declare if missing or broken.
13475
13476         sys_times, sys_utsname: use include_next
13477         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
13478         header.
13479         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
13480         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13481         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13482         * modules/sys_times (Depends-on): Add include_next.
13483         (Makefile.am): Substitute additional values.
13484         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13485         * lib/sys_times.in.h (includes): Include native header, if
13486         available.
13487         * lib/sys_utsname.in.h (includes): Likewise.
13488         * tests/test-sys_times.c (main): Enhance test.
13489
13490         fdutimensat: revert prior patch
13491         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
13492         utimens.h.
13493         Reported by Bruno Haible.
13494
13495 2009-12-30  Eric Blake  <ebb9@byu.net>
13496
13497         sys_wait: drop link-warning dependency
13498         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
13499         link-warning efforts.
13500         * lib/sys_wait.in.h: Likewise.
13501
13502         fdutimensat: remove bogus dependency
13503         * modules/fdutimensat (Depends-on): Drop inline.
13504
13505         unistd: fix typo
13506         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
13507
13508 2009-12-30  Bruno Haible  <bruno@clisp.org>
13509
13510         Fix compilation error with Solaris cc.
13511         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
13512         * lib/unicase/u16-is-invariant.c: Likewise.
13513         * lib/unicase/u32-is-invariant.c: Likewise.
13514         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13515
13516 2009-12-30  Bruno Haible  <bruno@clisp.org>
13517
13518         Fix test crash.
13519         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
13520         locales.
13521         Reported by Simon Josefsson <simon@josefsson.org>.
13522
13523 2009-12-30  Bruno Haible  <bruno@clisp.org>
13524
13525         Fix compilation error on most platforms.
13526         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
13527         Reported by Simon Josefsson <simon@josefsson.org>
13528         and Nelson H. F. Beebe <beebe@math.utah.edu>.
13529
13530 2009-12-30  Eric Blake  <ebb9@byu.net>
13531
13532         futimens, utimensat: work around ntfs-3g bug
13533         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
13534         a ctime bug is present, and expand workaround to cover ntfs-3g.
13535         * lib/utimens.c (fdutimens, lutimens): Likewise.
13536         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
13537         (validate_timespec): Adjust return value.
13538         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
13539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13540         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
13541
13542 2009-12-29  Eric Blake  <ebb9@byu.net>
13543
13544         link-warning: make usage consistent
13545         * modules/ctype (Depends-on): Add link-warning.
13546         (Makefile.am): Update rules accordingly.
13547         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13548         * modules/locale (Depends-on, Makefile.am): Likewise.
13549         * modules/sys_file (Makefile.am): Likewise.
13550         * modules/getopt-posix (Makefile.am): Delete unused link warning
13551         efforts.
13552         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
13553         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
13554         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
13555         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
13556
13557         stdio: remove unused variables
13558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
13559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
13560         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13561
13562         tests: test more substitute headers
13563         * modules/ctype-tests: New file.
13564         * modules/dirent-tests: Likewise.
13565         * modules/spawn-tests: Likewise.
13566         * modules/sys_file-tests: Likewise.
13567         * modules/sys_ioctl-tests: Likewise.
13568         * modules/sys_wait-tests: Likewise.
13569         * tests/test-ctype.c: Likewise.
13570         * tests/test-dirent.c: Likewise.
13571         * tests/test-spawn.c: Likewise.
13572         * tests/test-sys_file.c: Likewise.
13573         * tests/test-sys_ioctl.c: Likewise.
13574         * tests/test-sys_wait.c: Likewise.
13575         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
13576         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
13577         whether or not flock is in use.
13578
13579         tests: remove License section from module
13580         * modules/arpa_inet-tests: Remove unneeded section.
13581         * modules/byteswap-tests: Likewise.
13582         * modules/ceilf-tests: Likewise.
13583         * modules/ceill-tests: Likewise.
13584         * modules/crypto/des-tests: Likewise.
13585         * modules/crypto/gc-arcfour-tests: Likewise.
13586         * modules/crypto/gc-arctwo-tests: Likewise.
13587         * modules/crypto/gc-des-tests: Likewise.
13588         * modules/crypto/gc-hmac-md5-tests: Likewise.
13589         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13590         * modules/crypto/gc-md2-tests: Likewise.
13591         * modules/crypto/gc-md4-tests: Likewise.
13592         * modules/crypto/gc-md5-tests: Likewise.
13593         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13594         * modules/crypto/gc-rijndael-tests: Likewise.
13595         * modules/crypto/gc-sha1-tests: Likewise.
13596         * modules/crypto/gc-tests: Likewise.
13597         * modules/crypto/md2-tests: Likewise.
13598         * modules/crypto/md4-tests: Likewise.
13599         * modules/fcntl-h-tests: Likewise.
13600         * modules/floorf-tests: Likewise.
13601         * modules/floorl-tests: Likewise.
13602         * modules/frexp-nolibm-tests: Likewise.
13603         * modules/frexp-tests: Likewise.
13604         * modules/frexpl-nolibm-tests: Likewise.
13605         * modules/frexpl-tests: Likewise.
13606         * modules/getaddrinfo-tests: Likewise.
13607         * modules/inttypes-tests: Likewise.
13608         * modules/isfinite-tests: Likewise.
13609         * modules/isinf-tests: Likewise.
13610         * modules/ldexpl-tests: Likewise.
13611         * modules/locale-tests: Likewise.
13612         * modules/math-tests: Likewise.
13613         * modules/netdb-tests: Likewise.
13614         * modules/netinet_in-tests: Likewise.
13615         * modules/printf-frexp-tests: Likewise.
13616         * modules/printf-frexpl-tests: Likewise.
13617         * modules/priv-set-tests: Likewise.
13618         * modules/random_r-tests: Likewise.
13619         * modules/round-tests: Likewise.
13620         * modules/roundf-tests: Likewise.
13621         * modules/roundl-tests: Likewise.
13622         * modules/search-tests: Likewise.
13623         * modules/select-tests: Likewise.
13624         * modules/signal-tests: Likewise.
13625         * modules/stdbool-tests: Likewise.
13626         * modules/stddef-tests: Likewise.
13627         * modules/stdint-tests: Likewise.
13628         * modules/stdio-tests: Likewise.
13629         * modules/stdlib-tests: Likewise.
13630         * modules/string-tests: Likewise.
13631         * modules/strings-tests: Likewise.
13632         * modules/sys_select-tests: Likewise.
13633         * modules/sys_socket-tests: Likewise.
13634         * modules/sys_stat-tests: Likewise.
13635         * modules/sys_time-tests: Likewise.
13636         * modules/sys_utsname-tests: Likewise.
13637         * modules/sysexits-tests: Likewise.
13638         * modules/time-tests: Likewise.
13639         * modules/trunc-tests: Likewise.
13640         * modules/truncf-tests: Likewise.
13641         * modules/truncl-tests: Likewise.
13642         * modules/tsearch-tests: Likewise.
13643         * modules/unistd-tests: Likewise.
13644         * modules/wchar-tests: Likewise.
13645         * modules/wctype-tests: Likewise.
13646
13647         tests: fix license on several tests
13648         * tests/test-des.c: Update to GPLv3+.
13649         * tests/test-flock.c: Likewise.
13650         * tests/test-fsync.c: Likewise.
13651         * tests/test-futimens.h: Likewise.
13652         * tests/test-gc-arcfour.c: Likewise.
13653         * tests/test-gc-arctwo.c: Likewise.
13654         * tests/test-gc-des.c: Likewise.
13655         * tests/test-gc-hmac-md5.c: Likewise.
13656         * tests/test-gc-hmac-sha1.c: Likewise.
13657         * tests/test-gc-md2.c: Likewise.
13658         * tests/test-gc-md4.c: Likewise.
13659         * tests/test-gc-md5.c: Likewise.
13660         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13661         * tests/test-gc-rijndael.c: Likewise.
13662         * tests/test-gc-sha1.c: Likewise.
13663         * tests/test-gc.c: Likewise.
13664         * tests/test-getcwd.c: Likewise.
13665         * tests/test-link.c: Likewise.
13666         * tests/test-link.h: Likewise.
13667         * tests/test-lutimens.h: Likewise.
13668         * tests/test-md2.c: Likewise.
13669         * tests/test-md4.c: Likewise.
13670         * tests/test-mkdir.h: Likewise.
13671         * tests/test-rename.c: Likewise.
13672         * tests/test-rename.h: Likewise.
13673         * tests/test-safe-alloc.c: Likewise.
13674         * tests/test-utimens-common.h: Likewise.
13675         * tests/test-utimens.h: Likewise.
13676
13677         maint: sync license texts
13678         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
13679         * doc/gpl-3.0.texi: Revert copyright year update.
13680         * doc/lgpl-3.0.texi: Likewise.
13681
13682 2009-12-29  Jim Meyering  <meyering@redhat.com>
13683
13684         update nearly all FSF copyright year lists to include 2009
13685         The files named by the following are exempted:
13686             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
13687               test -f "$dst" && { echo "$dst"; continue; }
13688               test -d "$dst" || continue
13689               echo "$dst"/$(basename "$src")
13690             done > exempt
13691             git ls-files tests/unictype >> exempt
13692         In the remaining files, convert to all-interval notation if
13693         - there is already at least one year interval like 2000-2003
13694         - the file is maintained by me
13695         - the file is in lib/uni*/, where that style already prevails
13696         Otherwise, use update-copyright's default.
13697
13698 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13699         and Eric Blake  <ebb9@byu.net>
13700
13701         tests: don't require debug system() to pass
13702         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
13703         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13704         * tests/test-unlink.h (test_unlink_func): Likewise.
13705         * tests/test-fstatat.c (main): ...into callers.
13706         * tests/test-lstat.c (main): Likewise.
13707         * tests/test-rmdir.c (main): Likewise.
13708         * tests/test-unlink.c (main): Likewise.
13709         * tests/test-unlinkat.c (main): Likewise.
13710         * tests/test-areadlink-with-size.c (main): Don't require a
13711         debug-only system call to pass, aiding cross-testing to mingw.
13712         * tests/test-areadlink.c (main): Likewise.
13713         * tests/test-areadlinkat-with-size.c (main): Likewise.
13714         * tests/test-areadlinkat.c (main): Likewise.
13715         * tests/test-canonicalize-lgpl.c (main): Likewise.
13716         * tests/test-canonicalize.c (main): Likewise.
13717         * tests/test-chown.c (main): Likewise.
13718         * tests/test-fchownat.c (main): Likewise.
13719         * tests/test-lchown.c (main): Likewise.
13720         * tests/test-fdutimensat.c (main): Likewise.
13721         * tests/test-futimens.c (main): Likewise.
13722         * tests/test-link.c (main): Likewise.
13723         * tests/test-linkat.c (main): Likewise.
13724         * tests/test-mkdir.c (main): Likewise.
13725         * tests/test-mkdirat.c (main): Likewise.
13726         * tests/test-mkfifo.c (main): Likewise.
13727         * tests/test-mkfifoat.c (main): Likewise.
13728         * tests/test-mknod.c (main): Likewise.
13729         * tests/test-readlink.c (main): Likewise.
13730         * tests/test-remove.c (main): Likewise.
13731         * tests/test-rename.c (main): Likewise.
13732         * tests/test-renameat.c (main): Likewise.
13733         * tests/test-symlink.c (main): Likewise.
13734         * tests/test-symlinkat.c (main): Likewise.
13735         * tests/test-utimens.c (main): Likewise.
13736         * tests/test-utimensat.c (main): Likewise.
13737
13738 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13739
13740         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
13741         on $(UNUSED_PARAMETER_H) to avoid build failure.
13742
13743 2009-12-28  Jim Meyering  <meyering@redhat.com>
13744
13745         update-copyright: you may specify a max. line length other than 72
13746         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13747
13748         maint: use consistent FSF copyright line syntax
13749         * lib/posixtm.c: Add missing comma in FSF copyright line.
13750         * lib/posixtm.h: Likewise.
13751         * lib/getugroups.c: Add missing ", Inc.".
13752
13753         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
13754         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
13755         FSF copyright line.  Remove trailing blanks.
13756
13757 2009-12-28  Eric Blake  <ebb9@byu.net>
13758
13759         test-dup2: reduce dependencies
13760         * modules/cloexec (Configure.ac): Set witness.
13761         * modules/dup2-tests (Depends-on): Drop cloexec.
13762         * tests/test-dup2.c (main): Skip portion of test if cloexec module
13763         not present.
13764         Suggested by Bruno Haible.
13765
13766 2009-12-26  Bruno Haible  <bruno@clisp.org>
13767
13768         Remove an unneeded dependency.
13769         * modules/fseterr (Depends-on): Remove dup2.
13770
13771 2009-12-26  Eric Blake  <ebb9@byu.net>
13772
13773         tests: use macros.h in more places
13774         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
13775         (ASSERT_STREAM): Provide default of stderr.
13776         * tests/test-dirent-safer.c: Include macros.h, using alternate
13777         stream for assertions.
13778         * tests/test-dup-safer.c: Likewise.
13779         * tests/test-freopen-safer.c: Likewise.
13780         * tests/test-getopt.c: Likewise.
13781         * tests/test-openat-safer.c: Likewise.
13782         * tests/test-pipe.c: Likewise.
13783         * tests/test-popen-safer.c: Likewise.
13784         * modules/dirent-safer-tests (Files): Include macros.h.
13785         * modules/unistd-safer-tests (Files): Likewise.
13786         * modules/freopen-safer-tests (Files): Likewise.
13787         * modules/getopt-posix-tests (Files): Likewise.
13788         * modules/openat-safer-tests (Files): Likewise.
13789         * modules/pipe-tests (Files): Likewise.
13790
13791 2009-12-26  Bruno Haible  <bruno@clisp.org>
13792
13793         javacomp: Portability fix.
13794         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
13795         that it also works on Solaris.
13796
13797 2009-12-26  Bruno Haible  <bruno@clisp.org>
13798
13799         localename: Fix storage allocation of gl_locale_name_thread's result.
13800         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
13801         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
13802         all platforms that have 'uselocale'.
13803         (gl_locale_name_thread_unsafe): New function, extracted from
13804         gl_locale_name_thread.
13805         (gl_locale_name_thread): Call struniq on all platforms that have
13806         'uselocale'.
13807         * tests/test-localename.c (test_locale_name_thread): Check that the
13808         resulting strings are permanently allocated.
13809         * modules/localename-tests (Depends-on): Add strdup.
13810
13811 2009-12-26  Bruno Haible  <bruno@clisp.org>
13812
13813         * tests/test-localename.c (categories): Fill in the strings.
13814
13815 2009-12-26  Jim Meyering  <meyering@redhat.com>
13816
13817         isdir: complete the removal of m4/isdir.m4
13818         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
13819
13820         isdir: clean up, since at least grep still uses it
13821         * lib/isdir.c: Include "isdir.h".
13822         (S_ISDIR): Remove now-unneeded definition.
13823         * modules/isdir (Files): Add lib/isdir.h.
13824         * lib/isdir.h: New file, with declaration.
13825         * m4/isdir.m4: Remove file -- unneeded.
13826
13827 2009-12-25  Bruno Haible  <bruno@clisp.org>
13828
13829         selinux-h: Make generated .h files standalone.
13830         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
13831         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
13832         * lib/se-selinux.in.h: Likewise.
13833         * modules/selinux-h (Depends-on): Add unused-parameter.
13834         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
13835         selinux/selinux.h and selinux/context.h.
13836         Suggested by Eric Blake.
13837
13838 2009-12-25  Bruno Haible  <bruno@clisp.org>
13839
13840         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
13841         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
13842         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
13843         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
13844         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
13845
13846 2009-12-24  Bruno Haible  <bruno@clisp.org>
13847
13848         openat: Fix warning.
13849         * lib/openat-proc.c: Include <unistd.h>.
13850
13851 2009-12-24  Bruno Haible  <bruno@clisp.org>
13852
13853         New module 'unused-parameter'.
13854         * build-aux/unused-parameter.h: New file, extracted from earlier
13855         gnulib-common.m4.
13856         * modules/unused-parameter: New file.
13857         * lib/unistr.h: Include unused-parameter.h.
13858         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
13859         _GL_UNUSED.
13860         * modules/unistr/base (Depends-on): Add unused-parameter.
13861
13862 2009-12-24  Bruno Haible  <bruno@clisp.org>
13863
13864         Add missing dependencies to 'extensions' module.
13865         * m4/extensions.m4: Add comment.
13866         * modules/accept4 (Depends-on): Add extensions.
13867         * modules/dup3 (Depends-on): Likewise.
13868         * modules/fcntl (Depends-on): Likewise.
13869         * modules/futimens (Depends-on): Likewise.
13870         * modules/mknod (Depends-on): Likewise.
13871         * modules/pipe2 (Depends-on): Likewise.
13872         * modules/stat-time (Depends-on): Likewise.
13873         * modules/strcasestr-simple (Depends-on): Likewise.
13874         * modules/strsignal (Depends-on): Likewise.
13875         * modules/utimensat (Depends-on): Likewise.
13876         * modules/localcharset (Depends-on): Likewise. Needed because of
13877         gl_FCNTL_O_FLAGS.
13878         * modules/wcrtomb (Depends-on): Likewise. Needed because of
13879         AC_TYPE_MBSTATE_T.
13880         * modules/wcsnrtombs (Depends-on): Likewise.
13881         * modules/wcsrtombs (Depends-on): Likewise.
13882
13883 2009-12-24  Bruno Haible  <bruno@clisp.org>
13884
13885         binary-io: Avoid gcc warning due to SET_BINARY.
13886         * lib/binary-io.h (SET_BINARY): Cast the result to void.
13887         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
13888
13889 2009-12-24  Bruno Haible  <bruno@clisp.org>
13890
13891         Avoid future namespace pollution on glibc systems.
13892         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
13893         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
13894         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
13895         glibc systems.
13896
13897 2009-12-24  Bruno Haible  <bruno@clisp.org>
13898
13899         Refactor common macros used in tests.
13900         * tests/macros.h: New file.
13901         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
13902         and/or <stdlib.h>, if appropriate.
13903         (ASSERT, SIZEOF): Remove macros.
13904         * tests/test-areadlink-with-size.c: Likewise.
13905         * tests/test-areadlinkat.c: Likewise.
13906         * tests/test-areadlinkat-with-size.c: Likewise.
13907         * tests/test-argmatch.c: Likewise.
13908         * tests/test-argv-iter.c: Likewise.
13909         * tests/test-array-mergesort.c: Likewise.
13910         * tests/test-array_list.c: Likewise.
13911         * tests/test-array_oset.c: Likewise.
13912         * tests/test-avltree_list.c: Likewise.
13913         * tests/test-avltree_oset.c: Likewise.
13914         * tests/test-avltreehash_list.c: Likewise.
13915         * tests/test-base64.c: Likewise.
13916         * tests/test-binary-io.c: Likewise.
13917         * tests/test-bitrotate.c: Likewise.
13918         * tests/test-btowc.c: Likewise.
13919         * tests/test-byteswap.c: Likewise.
13920         * tests/test-c-ctype.c: Likewise.
13921         * tests/test-c-stack.c: Likewise.
13922         * tests/test-c-strcasecmp.c: Likewise.
13923         * tests/test-c-strcasestr.c: Likewise.
13924         * tests/test-c-strncasecmp.c: Likewise.
13925         * tests/test-c-strstr.c: Likewise.
13926         * tests/test-canonicalize-lgpl.c: Likewise.
13927         * tests/test-canonicalize.c: Likewise.
13928         * tests/test-carray_list.c: Likewise.
13929         * tests/test-ceilf1.c: Likewise.
13930         * tests/test-ceilf2.c: Likewise.
13931         * tests/test-ceill.c: Likewise.
13932         * tests/test-chown.c: Likewise.
13933         * tests/test-cloexec.c: Likewise.
13934         * tests/test-copy-acl.c: Likewise.
13935         * tests/test-copy-file.c: Likewise.
13936         * tests/test-count-one-bits.c: Likewise.
13937         * tests/test-dprintf-posix.c: Likewise.
13938         * tests/test-dup2.c: Likewise.
13939         * tests/test-dup3.c: Likewise.
13940         * tests/test-duplocale.c: Likewise.
13941         * tests/test-fbufmode.c: Likewise.
13942         * tests/test-fchdir.c: Likewise.
13943         * tests/test-fchownat.c: Likewise.
13944         * tests/test-fcntl-safer.c: Likewise.
13945         * tests/test-fcntl.c: Likewise.
13946         * tests/test-fdopendir.c: Likewise.
13947         * tests/test-fdutimensat.c: Likewise.
13948         * tests/test-fflush2.c: Likewise.
13949         * tests/test-file-has-acl.c: Likewise.
13950         * tests/test-filevercmp.c: Likewise.
13951         * tests/test-flock.c: Likewise.
13952         * tests/test-floorf1.c: Likewise.
13953         * tests/test-floorf2.c: Likewise.
13954         * tests/test-floorl.c: Likewise.
13955         * tests/test-fnmatch.c: Likewise.
13956         * tests/test-fopen.h: Likewise.
13957         * tests/test-fpending.c: Likewise.
13958         * tests/test-fprintf-posix.c: Likewise.
13959         * tests/test-fpurge.c: Likewise.
13960         * tests/test-freadable.c: Likewise.
13961         * tests/test-freadahead.c: Likewise.
13962         * tests/test-freading.c: Likewise.
13963         * tests/test-freadptr.c: Likewise.
13964         * tests/test-freadptr2.c: Likewise.
13965         * tests/test-freadseek.c: Likewise.
13966         * tests/test-freopen.c: Likewise.
13967         * tests/test-frexp.c: Likewise.
13968         * tests/test-frexpl.c: Likewise.
13969         * tests/test-fseek.c: Likewise.
13970         * tests/test-fseeko.c: Likewise.
13971         * tests/test-fstatat.c: Likewise.
13972         * tests/test-fstrcmp.c: Likewise.
13973         * tests/test-fsync.c: Likewise.
13974         * tests/test-ftell.c: Likewise.
13975         * tests/test-ftello.c: Likewise.
13976         * tests/test-func.c: Likewise.
13977         * tests/test-futimens.c: Likewise.
13978         * tests/test-fwritable.c: Likewise.
13979         * tests/test-fwriting.c: Likewise.
13980         * tests/test-getcwd.c: Likewise.
13981         * tests/test-getdate.c: Likewise.
13982         * tests/test-getdelim.c: Likewise.
13983         * tests/test-getdtablesize.c: Likewise.
13984         * tests/test-getgroups.c: Likewise.
13985         * tests/test-getline.c: Likewise.
13986         * tests/test-getndelim2.c: Likewise.
13987         * tests/test-glob.c: Likewise.
13988         * tests/test-hash.c: Likewise.
13989         * tests/test-i-ring.c: Likewise.
13990         * tests/test-iconv-utf.c: Likewise.
13991         * tests/test-iconv.c: Likewise.
13992         * tests/test-idpriv-drop.c: Likewise.
13993         * tests/test-idpriv-droptemp.c: Likewise.
13994         * tests/test-inet_ntop.c: Likewise.
13995         * tests/test-inet_pton.c: Likewise.
13996         * tests/test-isblank.c: Likewise.
13997         * tests/test-isfinite.c: Likewise.
13998         * tests/test-isinf.c: Likewise.
13999         * tests/test-isnan.c: Likewise.
14000         * tests/test-isnand.h: Likewise.
14001         * tests/test-isnanf.h: Likewise.
14002         * tests/test-isnanl.h: Likewise.
14003         * tests/test-lchown.c: Likewise.
14004         * tests/test-ldexpl.c: Likewise.
14005         * tests/test-link.c: Likewise.
14006         * tests/test-linkat.c: Likewise.
14007         * tests/test-linked_list.c: Likewise.
14008         * tests/test-linkedhash_list.c: Likewise.
14009         * tests/test-localename.c: Likewise.
14010         * tests/test-lseek.c: Likewise.
14011         * tests/test-lstat.c: Likewise.
14012         * tests/test-mbmemcasecmp.c: Likewise.
14013         * tests/test-mbmemcasecoll.c: Likewise.
14014         * tests/test-mbrtowc.c: Likewise.
14015         * tests/test-mbscasecmp.c: Likewise.
14016         * tests/test-mbscasestr1.c: Likewise.
14017         * tests/test-mbscasestr2.c: Likewise.
14018         * tests/test-mbscasestr3.c: Likewise.
14019         * tests/test-mbscasestr4.c: Likewise.
14020         * tests/test-mbschr.c: Likewise.
14021         * tests/test-mbscspn.c: Likewise.
14022         * tests/test-mbsinit.c: Likewise.
14023         * tests/test-mbsncasecmp.c: Likewise.
14024         * tests/test-mbsnrtowcs.c: Likewise.
14025         * tests/test-mbspbrk.c: Likewise.
14026         * tests/test-mbspcasecmp.c: Likewise.
14027         * tests/test-mbsrchr.c: Likewise.
14028         * tests/test-mbsrtowcs.c: Likewise.
14029         * tests/test-mbsspn.c: Likewise.
14030         * tests/test-mbsstr1.c: Likewise.
14031         * tests/test-mbsstr2.c: Likewise.
14032         * tests/test-mbsstr3.c: Likewise.
14033         * tests/test-memchr.c: Likewise.
14034         * tests/test-memchr2.c: Likewise.
14035         * tests/test-memcmp.c: Likewise.
14036         * tests/test-memmem.c: Likewise.
14037         * tests/test-memrchr.c: Likewise.
14038         * tests/test-mkdir.c: Likewise.
14039         * tests/test-mkdirat.c: Likewise.
14040         * tests/test-mkfifo.c: Likewise.
14041         * tests/test-mkfifoat.c: Likewise.
14042         * tests/test-mknod.c: Likewise.
14043         * tests/test-nanosleep.c: Likewise.
14044         * tests/test-nl_langinfo.c: Likewise.
14045         * tests/test-obstack-printf.c: Likewise.
14046         * tests/test-open.c: Likewise.
14047         * tests/test-openat.c: Likewise.
14048         * tests/test-pipe-filter-gi1.c: Likewise.
14049         * tests/test-pipe-filter-gi2-main.c: Likewise.
14050         * tests/test-pipe-filter-ii1.c: Likewise.
14051         * tests/test-pipe-filter-ii2-main.c: Likewise.
14052         * tests/test-pipe2.c: Likewise.
14053         * tests/test-popen.h: Likewise.
14054         * tests/test-posixtm.c: Likewise.
14055         * tests/test-pread.c: Likewise.
14056         * tests/test-printf-frexp.c: Likewise.
14057         * tests/test-printf-frexpl.c: Likewise.
14058         * tests/test-printf-posix.c: Likewise.
14059         * tests/test-priv-set.c: Likewise.
14060         * tests/test-quotearg.c: Likewise.
14061         * tests/test-random_r.c: Likewise.
14062         * tests/test-rawmemchr.c: Likewise.
14063         * tests/test-rbtree_list.c: Likewise.
14064         * tests/test-rbtree_oset.c: Likewise.
14065         * tests/test-rbtreehash_list.c: Likewise.
14066         * tests/test-readlink.c: Likewise.
14067         * tests/test-remove.c: Likewise.
14068         * tests/test-rename.c: Likewise.
14069         * tests/test-renameat.c: Likewise.
14070         * tests/test-rmdir.c: Likewise.
14071         * tests/test-round1.c: Likewise.
14072         * tests/test-roundf1.c: Likewise.
14073         * tests/test-roundl.c: Likewise.
14074         * tests/test-safe-alloc.c: Likewise.
14075         * tests/test-sameacls.c: Likewise.
14076         * tests/test-set-mode-acl.c: Likewise.
14077         * tests/test-setenv.c: Likewise.
14078         * tests/test-sigaction.c: Likewise.
14079         * tests/test-signbit.c: Likewise.
14080         * tests/test-sleep.c: Likewise.
14081         * tests/test-snprintf-posix.c: Likewise.
14082         * tests/test-snprintf.c: Likewise.
14083         * tests/test-sprintf-posix.c: Likewise.
14084         * tests/test-stat-time.c: Likewise.
14085         * tests/test-stat.c: Likewise.
14086         * tests/test-strcasestr.c: Likewise.
14087         * tests/test-strchrnul.c: Likewise.
14088         * tests/test-strerror.c: Likewise.
14089         * tests/test-striconv.c: Likewise.
14090         * tests/test-striconveh.c: Likewise.
14091         * tests/test-striconveha.c: Likewise.
14092         * tests/test-strsignal.c: Likewise.
14093         * tests/test-strstr.c: Likewise.
14094         * tests/test-strtod.c: Likewise.
14095         * tests/test-strverscmp.c: Likewise.
14096         * tests/test-symlink.c: Likewise.
14097         * tests/test-symlinkat.c: Likewise.
14098         * tests/test-trunc1.c: Likewise.
14099         * tests/test-trunc2.c: Likewise.
14100         * tests/test-truncf1.c: Likewise.
14101         * tests/test-truncf2.c: Likewise.
14102         * tests/test-truncl.c: Likewise.
14103         * tests/test-uname.c: Likewise.
14104         * tests/test-unlink.c: Likewise.
14105         * tests/test-unlinkat.c: Likewise.
14106         * tests/test-unsetenv.c: Likewise.
14107         * tests/test-usleep.c: Likewise.
14108         * tests/test-utimens.c: Likewise.
14109         * tests/test-utimensat.c: Likewise.
14110         * tests/test-vasnprintf-posix.c: Likewise.
14111         * tests/test-vasnprintf-posix2.c: Likewise.
14112         * tests/test-vasnprintf.c: Likewise.
14113         * tests/test-vasprintf-posix.c: Likewise.
14114         * tests/test-vasprintf.c: Likewise.
14115         * tests/test-vdprintf-posix.c: Likewise.
14116         * tests/test-vfprintf-posix.c: Likewise.
14117         * tests/test-vprintf-posix.c: Likewise.
14118         * tests/test-vsnprintf-posix.c: Likewise.
14119         * tests/test-vsnprintf.c: Likewise.
14120         * tests/test-vsprintf-posix.c: Likewise.
14121         * tests/test-wcrtomb.c: Likewise.
14122         * tests/test-wcsnrtombs.c: Likewise.
14123         * tests/test-wcsrtombs.c: Likewise.
14124         * tests/test-wctype.c: Likewise.
14125         * tests/test-wcwidth.c: Likewise.
14126         * tests/test-xfprintf-posix.c: Likewise.
14127         * tests/test-xmemdup0.c: Likewise.
14128         * tests/test-xprintf-posix.c: Likewise.
14129         * tests/test-xvasprintf.c: Likewise.
14130         * tests/unicase/test-locale-language.c: Likewise.
14131         * tests/unicase/test-mapping-part1.h: Likewise.
14132         * tests/unicase/test-predicate-part1.h: Likewise.
14133         * tests/unicase/test-u8-casecmp.c: Likewise.
14134         * tests/unicase/test-u8-casecoll.c: Likewise.
14135         * tests/unicase/test-u8-casefold.c: Likewise.
14136         * tests/unicase/test-u8-is-cased.c: Likewise.
14137         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14138         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14139         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14140         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14141         * tests/unicase/test-u8-tolower.c: Likewise.
14142         * tests/unicase/test-u8-totitle.c: Likewise.
14143         * tests/unicase/test-u8-toupper.c: Likewise.
14144         * tests/unicase/test-u16-casecmp.c: Likewise.
14145         * tests/unicase/test-u16-casecoll.c: Likewise.
14146         * tests/unicase/test-u16-casefold.c: Likewise.
14147         * tests/unicase/test-u16-is-cased.c: Likewise.
14148         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14149         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14150         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14151         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14152         * tests/unicase/test-u16-tolower.c: Likewise.
14153         * tests/unicase/test-u16-totitle.c: Likewise.
14154         * tests/unicase/test-u16-toupper.c: Likewise.
14155         * tests/unicase/test-u32-casecmp.c: Likewise.
14156         * tests/unicase/test-u32-casecoll.c: Likewise.
14157         * tests/unicase/test-u32-casefold.c: Likewise.
14158         * tests/unicase/test-u32-is-cased.c: Likewise.
14159         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14160         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14161         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14162         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14163         * tests/unicase/test-u32-tolower.c: Likewise.
14164         * tests/unicase/test-u32-totitle.c: Likewise.
14165         * tests/unicase/test-u32-toupper.c: Likewise.
14166         * tests/unicase/test-ulc-casecmp.c: Likewise.
14167         * tests/unicase/test-ulc-casecoll.c: Likewise.
14168         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14169         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14170         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14171         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14172         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14173         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14174         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14175         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14176         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14177         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14178         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14179         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14180         * tests/unictype/test-bidi_byname.c: Likewise.
14181         * tests/unictype/test-bidi_name.c: Likewise.
14182         * tests/unictype/test-bidi_of.c: Likewise.
14183         * tests/unictype/test-bidi_test.c: Likewise.
14184         * tests/unictype/test-block_list.c: Likewise.
14185         * tests/unictype/test-block_of.c: Likewise.
14186         * tests/unictype/test-block_test.c: Likewise.
14187         * tests/unictype/test-categ_and.c: Likewise.
14188         * tests/unictype/test-categ_and_not.c: Likewise.
14189         * tests/unictype/test-categ_byname.c: Likewise.
14190         * tests/unictype/test-categ_name.c: Likewise.
14191         * tests/unictype/test-categ_none.c: Likewise.
14192         * tests/unictype/test-categ_of.c: Likewise.
14193         * tests/unictype/test-categ_or.c: Likewise.
14194         * tests/unictype/test-categ_test_withtable.c: Likewise.
14195         * tests/unictype/test-combining.c: Likewise.
14196         * tests/unictype/test-decdigit.c: Likewise.
14197         * tests/unictype/test-digit.c: Likewise.
14198         * tests/unictype/test-mirror.c: Likewise.
14199         * tests/unictype/test-numeric.c: Likewise.
14200         * tests/unictype/test-pr_byname.c: Likewise.
14201         * tests/unictype/test-pr_test.c: Likewise.
14202         * tests/unictype/test-predicate-part1.h: Likewise.
14203         * tests/unictype/test-scripts.c: Likewise.
14204         * tests/unictype/test-sy_c_ident.c: Likewise.
14205         * tests/unictype/test-sy_java_ident.c: Likewise.
14206         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14207         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14208         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14209         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14210         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14211         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14212         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14213         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14214         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14215         * tests/uninorm/test-compat-decomposition.c: Likewise.
14216         * tests/uninorm/test-composition.c: Likewise.
14217         * tests/uninorm/test-decomposing-form.c: Likewise.
14218         * tests/uninorm/test-decomposition.c: Likewise.
14219         * tests/uninorm/test-u8-nfc.c: Likewise.
14220         * tests/uninorm/test-u8-nfd.c: Likewise.
14221         * tests/uninorm/test-u8-nfkc.c: Likewise.
14222         * tests/uninorm/test-u8-nfkd.c: Likewise.
14223         * tests/uninorm/test-u8-normcmp.c: Likewise.
14224         * tests/uninorm/test-u8-normcoll.c: Likewise.
14225         * tests/uninorm/test-u16-nfc.c: Likewise.
14226         * tests/uninorm/test-u16-nfd.c: Likewise.
14227         * tests/uninorm/test-u16-nfkc.c: Likewise.
14228         * tests/uninorm/test-u16-nfkd.c: Likewise.
14229         * tests/uninorm/test-u16-normcmp.c: Likewise.
14230         * tests/uninorm/test-u16-normcoll.c: Likewise.
14231         * tests/uninorm/test-u32-nfc.c: Likewise.
14232         * tests/uninorm/test-u32-nfd.c: Likewise.
14233         * tests/uninorm/test-u32-nfkc.c: Likewise.
14234         * tests/uninorm/test-u32-nfkd.c: Likewise.
14235         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14236         * tests/uninorm/test-u32-normcmp.c: Likewise.
14237         * tests/uninorm/test-u32-normcoll.c: Likewise.
14238         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14239         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14240         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14241         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14242         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14243         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14244         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14245         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14246         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14247         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14248         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14249         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14250         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14251         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14252         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14253         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14254         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14255         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14256         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14257         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14258         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14259         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14260         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14261         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14262         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14263         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14264         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14265         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14266         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14267         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14268         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14269         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14270         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14271         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14272         * tests/uniwidth/test-u8-width.c: Likewise.
14273         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14274         * tests/uniwidth/test-u16-width.c: Likewise.
14275         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14276         * tests/uniwidth/test-u32-width.c: Likewise.
14277         * tests/uniwidth/test-uc_width.c: Likewise.
14278         * tests/uniwidth/test-uc_width2.c: Likewise.
14279         * modules/acl-tests (Files): Add tests/macros.h.
14280         * modules/areadlink-tests (Files): Likewise.
14281         * modules/areadlink-with-size-tests (Files): Likewise.
14282         * modules/areadlinkat-tests (Files): Likewise.
14283         * modules/areadlinkat-with-size-tests (Files): Likewise.
14284         * modules/argmatch-tests (Files): Likewise.
14285         * modules/argv-iter-tests (Files): Likewise.
14286         * modules/array-list-tests (Files): Likewise.
14287         * modules/array-mergesort-tests (Files): Likewise.
14288         * modules/array-oset-tests (Files): Likewise.
14289         * modules/avltree-list-tests (Files): Likewise.
14290         * modules/avltree-oset-tests (Files): Likewise.
14291         * modules/avltreehash-list-tests (Files): Likewise.
14292         * modules/base64-tests (Files): Likewise.
14293         * modules/binary-io-tests (Files): Likewise.
14294         * modules/bitrotate-tests (Files): Likewise.
14295         * modules/btowc-tests (Files): Likewise.
14296         * modules/byteswap-tests (Files): Likewise.
14297         * modules/c-ctype-tests (Files): Likewise.
14298         * modules/c-stack-tests (Files): Likewise.
14299         * modules/c-strcase-tests (Files): Likewise.
14300         * modules/c-strcasestr-tests (Files): Likewise.
14301         * modules/c-strstr-tests (Files): Likewise.
14302         * modules/canonicalize-lgpl-tests (Files): Likewise.
14303         * modules/canonicalize-tests (Files): Likewise.
14304         * modules/carray-list-tests (Files): Likewise.
14305         * modules/ceilf-tests (Files): Likewise.
14306         * modules/ceill-tests (Files): Likewise.
14307         * modules/chown-tests (Files): Likewise.
14308         * modules/cloexec-tests (Files): Likewise.
14309         * modules/copy-file-tests (Files): Likewise.
14310         * modules/count-one-bits-tests (Files): Likewise.
14311         * modules/dprintf-posix-tests (Files): Likewise.
14312         * modules/dup2-tests (Files): Likewise.
14313         * modules/dup3-tests (Files): Likewise.
14314         * modules/duplocale-tests (Files): Likewise.
14315         * modules/fbufmode-tests (Files): Likewise.
14316         * modules/fchdir-tests (Files): Likewise.
14317         * modules/fcntl-safer-tests (Files): Likewise.
14318         * modules/fcntl-tests (Files): Likewise.
14319         * modules/fdopendir-tests (Files): Likewise.
14320         * modules/fdutimensat-tests (Files): Likewise.
14321         * modules/fflush-tests (Files): Likewise.
14322         * modules/filevercmp-tests (Files): Likewise.
14323         * modules/flock-tests (Files): Likewise.
14324         * modules/floorf-tests (Files): Likewise.
14325         * modules/floorl-tests (Files): Likewise.
14326         * modules/fnmatch-tests (Files): Likewise.
14327         * modules/fopen-safer-tests (Files): Likewise.
14328         * modules/fopen-tests (Files): Likewise.
14329         * modules/fpending-tests (Files): Likewise.
14330         * modules/fprintf-posix-tests (Files): Likewise.
14331         * modules/fpurge-tests (Files): Likewise.
14332         * modules/freadable-tests (Files): Likewise.
14333         * modules/freadahead-tests (Files): Likewise.
14334         * modules/freading-tests (Files): Likewise.
14335         * modules/freadptr-tests (Files): Likewise.
14336         * modules/freadseek-tests (Files): Likewise.
14337         * modules/freopen-tests (Files): Likewise.
14338         * modules/frexp-nolibm-tests (Files): Likewise.
14339         * modules/frexp-tests (Files): Likewise.
14340         * modules/frexpl-nolibm-tests (Files): Likewise.
14341         * modules/frexpl-tests (Files): Likewise.
14342         * modules/fseek-tests (Files): Likewise.
14343         * modules/fseeko-tests (Files): Likewise.
14344         * modules/fstrcmp-tests (Files): Likewise.
14345         * modules/fsync-tests (Files): Likewise.
14346         * modules/ftell-tests (Files): Likewise.
14347         * modules/ftello-tests (Files): Likewise.
14348         * modules/func-tests (Files): Likewise.
14349         * modules/futimens-tests (Files): Likewise.
14350         * modules/fwritable-tests (Files): Likewise.
14351         * modules/fwriting-tests (Files): Likewise.
14352         * modules/getcwd-tests (Files): Likewise.
14353         * modules/getdate-tests (Files): Likewise.
14354         * modules/getdelim-tests (Files): Likewise.
14355         * modules/getdtablesize-tests (Files): Likewise.
14356         * modules/getgroups-tests (Files): Likewise.
14357         * modules/getline-tests (Files): Likewise.
14358         * modules/getndelim2-tests (Files): Likewise.
14359         * modules/glob-tests (Files): Likewise.
14360         * modules/hash-tests (Files): Likewise.
14361         * modules/i-ring-tests (Files): Likewise.
14362         * modules/iconv-tests (Files): Likewise.
14363         * modules/iconv_open-utf-tests (Files): Likewise.
14364         * modules/idpriv-drop-tests (Files): Likewise.
14365         * modules/idpriv-droptemp-tests (Files): Likewise.
14366         * modules/inet_ntop-tests (Files): Likewise.
14367         * modules/inet_pton-tests (Files): Likewise.
14368         * modules/isblank-tests (Files): Likewise.
14369         * modules/isfinite-tests (Files): Likewise.
14370         * modules/isinf-tests (Files): Likewise.
14371         * modules/isnan-tests (Files): Likewise.
14372         * modules/isnand-nolibm-tests (Files): Likewise.
14373         * modules/isnand-tests (Files): Likewise.
14374         * modules/isnanf-nolibm-tests (Files): Likewise.
14375         * modules/isnanf-tests (Files): Likewise.
14376         * modules/isnanl-nolibm-tests (Files): Likewise.
14377         * modules/isnanl-tests (Files): Likewise.
14378         * modules/lchown-tests (Files): Likewise.
14379         * modules/ldexpl-tests (Files): Likewise.
14380         * modules/link-tests (Files): Likewise.
14381         * modules/linkat-tests (Files): Likewise.
14382         * modules/linked-list-tests (Files): Likewise.
14383         * modules/linkedhash-list-tests (Files): Likewise.
14384         * modules/localename-tests (Files): Likewise.
14385         * modules/lseek-tests (Files): Likewise.
14386         * modules/lstat-tests (Files): Likewise.
14387         * modules/mbmemcasecmp-tests (Files): Likewise.
14388         * modules/mbmemcasecoll-tests (Files): Likewise.
14389         * modules/mbrtowc-tests (Files): Likewise.
14390         * modules/mbscasecmp-tests (Files): Likewise.
14391         * modules/mbscasestr-tests (Files): Likewise.
14392         * modules/mbschr-tests (Files): Likewise.
14393         * modules/mbscspn-tests (Files): Likewise.
14394         * modules/mbsinit-tests (Files): Likewise.
14395         * modules/mbsncasecmp-tests (Files): Likewise.
14396         * modules/mbsnrtowcs-tests (Files): Likewise.
14397         * modules/mbspbrk-tests (Files): Likewise.
14398         * modules/mbspcasecmp-tests (Files): Likewise.
14399         * modules/mbsrchr-tests (Files): Likewise.
14400         * modules/mbsrtowcs-tests (Files): Likewise.
14401         * modules/mbsspn-tests (Files): Likewise.
14402         * modules/mbsstr-tests (Files): Likewise.
14403         * modules/memchr-tests (Files): Likewise.
14404         * modules/memchr2-tests (Files): Likewise.
14405         * modules/memcmp-tests (Files): Likewise.
14406         * modules/memmem-tests (Files): Likewise.
14407         * modules/memrchr-tests (Files): Likewise.
14408         * modules/mkdir-tests (Files): Likewise.
14409         * modules/mkfifo-tests (Files): Likewise.
14410         * modules/mkfifoat-tests (Files): Likewise.
14411         * modules/mknod-tests (Files): Likewise.
14412         * modules/nanosleep-tests (Files): Likewise.
14413         * modules/nl_langinfo-tests (Files): Likewise.
14414         * modules/obstack-printf-tests (Files): Likewise.
14415         * modules/open-tests (Files): Likewise.
14416         * modules/openat-tests (Files): Likewise.
14417         * modules/pipe-filter-gi-tests (Files): Likewise.
14418         * modules/pipe-filter-ii-tests (Files): Likewise.
14419         * modules/pipe2-tests (Files): Likewise.
14420         * modules/popen-safer-tests (Files): Likewise.
14421         * modules/popen-tests (Files): Likewise.
14422         * modules/posixtm-tests (Files): Likewise.
14423         * modules/pread-tests (Files): Likewise.
14424         * modules/printf-frexp-tests (Files): Likewise.
14425         * modules/printf-frexpl-tests (Files): Likewise.
14426         * modules/printf-posix-tests (Files): Likewise.
14427         * modules/priv-set-tests (Files): Likewise.
14428         * modules/quotearg-tests (Files): Likewise.
14429         * modules/random_r-tests (Files): Likewise.
14430         * modules/rawmemchr-tests (Files): Likewise.
14431         * modules/rbtree-list-tests (Files): Likewise.
14432         * modules/rbtree-oset-tests (Files): Likewise.
14433         * modules/rbtreehash-list-tests (Files): Likewise.
14434         * modules/readlink-tests (Files): Likewise.
14435         * modules/remove-tests (Files): Likewise.
14436         * modules/rename-tests (Files): Likewise.
14437         * modules/renameat-tests (Files): Likewise.
14438         * modules/rmdir-tests (Files): Likewise.
14439         * modules/round-tests (Files): Likewise.
14440         * modules/roundf-tests (Files): Likewise.
14441         * modules/roundl-tests (Files): Likewise.
14442         * modules/safe-alloc-tests (Files): Likewise.
14443         * modules/setenv-tests (Files): Likewise.
14444         * modules/sigaction-tests (Files): Likewise.
14445         * modules/signbit-tests (Files): Likewise.
14446         * modules/sleep-tests (Files): Likewise.
14447         * modules/snprintf-posix-tests (Files): Likewise.
14448         * modules/snprintf-tests (Files): Likewise.
14449         * modules/sprintf-posix-tests (Files): Likewise.
14450         * modules/stat-tests (Files): Likewise.
14451         * modules/stat-time-tests (Files): Likewise.
14452         * modules/strcasestr-tests (Files): Likewise.
14453         * modules/strchrnul-tests (Files): Likewise.
14454         * modules/strerror-tests (Files): Likewise.
14455         * modules/striconv-tests (Files): Likewise.
14456         * modules/striconveh-tests (Files): Likewise.
14457         * modules/striconveha-tests (Files): Likewise.
14458         * modules/strsignal-tests (Files): Likewise.
14459         * modules/strstr-tests (Files): Likewise.
14460         * modules/strtod-tests (Files): Likewise.
14461         * modules/strverscmp-tests (Files): Likewise.
14462         * modules/symlink-tests (Files): Likewise.
14463         * modules/symlinkat-tests (Files): Likewise.
14464         * modules/trunc-tests (Files): Likewise.
14465         * modules/truncf-tests (Files): Likewise.
14466         * modules/truncl-tests (Files): Likewise.
14467         * modules/uname-tests (Files): Likewise.
14468         * modules/unicase/cased-tests (Files): Likewise.
14469         * modules/unicase/ignorable-tests (Files): Likewise.
14470         * modules/unicase/locale-language-tests (Files): Likewise.
14471         * modules/unicase/tolower-tests (Files): Likewise.
14472         * modules/unicase/totitle-tests (Files): Likewise.
14473         * modules/unicase/toupper-tests (Files): Likewise.
14474         * modules/unicase/u8-casecmp-tests (Files): Likewise.
14475         * modules/unicase/u8-casecoll-tests (Files): Likewise.
14476         * modules/unicase/u8-casefold-tests (Files): Likewise.
14477         * modules/unicase/u8-is-cased-tests (Files): Likewise.
14478         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
14479         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
14480         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
14481         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
14482         * modules/unicase/u8-tolower-tests (Files): Likewise.
14483         * modules/unicase/u8-totitle-tests (Files): Likewise.
14484         * modules/unicase/u8-toupper-tests (Files): Likewise.
14485         * modules/unicase/u16-casecmp-tests (Files): Likewise.
14486         * modules/unicase/u16-casecoll-tests (Files): Likewise.
14487         * modules/unicase/u16-casefold-tests (Files): Likewise.
14488         * modules/unicase/u16-is-cased-tests (Files): Likewise.
14489         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
14490         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
14491         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
14492         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
14493         * modules/unicase/u16-tolower-tests (Files): Likewise.
14494         * modules/unicase/u16-totitle-tests (Files): Likewise.
14495         * modules/unicase/u16-toupper-tests (Files): Likewise.
14496         * modules/unicase/u32-casecmp-tests (Files): Likewise.
14497         * modules/unicase/u32-casecoll-tests (Files): Likewise.
14498         * modules/unicase/u32-casefold-tests (Files): Likewise.
14499         * modules/unicase/u32-is-cased-tests (Files): Likewise.
14500         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
14501         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
14502         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
14503         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
14504         * modules/unicase/u32-tolower-tests (Files): Likewise.
14505         * modules/unicase/u32-totitle-tests (Files): Likewise.
14506         * modules/unicase/u32-toupper-tests (Files): Likewise.
14507         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
14508         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
14509         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
14510         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
14511         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
14512         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
14513         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
14514         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
14515         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
14516         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
14517         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
14518         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
14519         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
14520         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
14521         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
14522         * modules/unictype/bidicategory-name-tests (Files): Likewise.
14523         * modules/unictype/bidicategory-of-tests (Files): Likewise.
14524         * modules/unictype/bidicategory-test-tests (Files): Likewise.
14525         * modules/unictype/block-list-tests (Files): Likewise.
14526         * modules/unictype/block-of-tests (Files): Likewise.
14527         * modules/unictype/block-test-tests (Files): Likewise.
14528         * modules/unictype/category-C-tests (Files): Likewise.
14529         * modules/unictype/category-Cc-tests (Files): Likewise.
14530         * modules/unictype/category-Cf-tests (Files): Likewise.
14531         * modules/unictype/category-Cn-tests (Files): Likewise.
14532         * modules/unictype/category-Co-tests (Files): Likewise.
14533         * modules/unictype/category-Cs-tests (Files): Likewise.
14534         * modules/unictype/category-L-tests (Files): Likewise.
14535         * modules/unictype/category-Ll-tests (Files): Likewise.
14536         * modules/unictype/category-Lm-tests (Files): Likewise.
14537         * modules/unictype/category-Lo-tests (Files): Likewise.
14538         * modules/unictype/category-Lt-tests (Files): Likewise.
14539         * modules/unictype/category-Lu-tests (Files): Likewise.
14540         * modules/unictype/category-M-tests (Files): Likewise.
14541         * modules/unictype/category-Mc-tests (Files): Likewise.
14542         * modules/unictype/category-Me-tests (Files): Likewise.
14543         * modules/unictype/category-Mn-tests (Files): Likewise.
14544         * modules/unictype/category-N-tests (Files): Likewise.
14545         * modules/unictype/category-Nd-tests (Files): Likewise.
14546         * modules/unictype/category-Nl-tests (Files): Likewise.
14547         * modules/unictype/category-No-tests (Files): Likewise.
14548         * modules/unictype/category-P-tests (Files): Likewise.
14549         * modules/unictype/category-Pc-tests (Files): Likewise.
14550         * modules/unictype/category-Pd-tests (Files): Likewise.
14551         * modules/unictype/category-Pe-tests (Files): Likewise.
14552         * modules/unictype/category-Pf-tests (Files): Likewise.
14553         * modules/unictype/category-Pi-tests (Files): Likewise.
14554         * modules/unictype/category-Po-tests (Files): Likewise.
14555         * modules/unictype/category-Ps-tests (Files): Likewise.
14556         * modules/unictype/category-S-tests (Files): Likewise.
14557         * modules/unictype/category-Sc-tests (Files): Likewise.
14558         * modules/unictype/category-Sk-tests (Files): Likewise.
14559         * modules/unictype/category-Sm-tests (Files): Likewise.
14560         * modules/unictype/category-So-tests (Files): Likewise.
14561         * modules/unictype/category-Z-tests (Files): Likewise.
14562         * modules/unictype/category-Zl-tests (Files): Likewise.
14563         * modules/unictype/category-Zp-tests (Files): Likewise.
14564         * modules/unictype/category-Zs-tests (Files): Likewise.
14565         * modules/unictype/category-and-not-tests (Files): Likewise.
14566         * modules/unictype/category-and-tests (Files): Likewise.
14567         * modules/unictype/category-byname-tests (Files): Likewise.
14568         * modules/unictype/category-name-tests (Files): Likewise.
14569         * modules/unictype/category-none-tests (Files): Likewise.
14570         * modules/unictype/category-of-tests (Files): Likewise.
14571         * modules/unictype/category-or-tests (Files): Likewise.
14572         * modules/unictype/category-test-withtable-tests (Files): Likewise.
14573         * modules/unictype/combining-class-tests (Files): Likewise.
14574         * modules/unictype/ctype-alnum-tests (Files): Likewise.
14575         * modules/unictype/ctype-alpha-tests (Files): Likewise.
14576         * modules/unictype/ctype-blank-tests (Files): Likewise.
14577         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
14578         * modules/unictype/ctype-digit-tests (Files): Likewise.
14579         * modules/unictype/ctype-graph-tests (Files): Likewise.
14580         * modules/unictype/ctype-lower-tests (Files): Likewise.
14581         * modules/unictype/ctype-print-tests (Files): Likewise.
14582         * modules/unictype/ctype-punct-tests (Files): Likewise.
14583         * modules/unictype/ctype-space-tests (Files): Likewise.
14584         * modules/unictype/ctype-upper-tests (Files): Likewise.
14585         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
14586         * modules/unictype/decimal-digit-tests (Files): Likewise.
14587         * modules/unictype/digit-tests (Files): Likewise.
14588         * modules/unictype/mirror-tests (Files): Likewise.
14589         * modules/unictype/numeric-tests (Files): Likewise.
14590         * modules/unictype/property-alphabetic-tests (Files): Likewise.
14591         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
14592         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
14593         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
14594         Likewise.
14595         * modules/unictype/property-bidi-block-separator-tests (Files):
14596         Likewise.
14597         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
14598         Likewise.
14599         * modules/unictype/property-bidi-common-separator-tests (Files):
14600         Likewise.
14601         * modules/unictype/property-bidi-control-tests (Files): Likewise.
14602         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
14603         Likewise.
14604         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
14605         Likewise.
14606         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
14607         Likewise.
14608         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
14609         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
14610         Likewise.
14611         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
14612         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
14613         Likewise.
14614         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
14615         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
14616         * modules/unictype/property-bidi-segment-separator-tests (Files):
14617         Likewise.
14618         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
14619         * modules/unictype/property-byname-tests (Files): Likewise.
14620         * modules/unictype/property-combining-tests (Files): Likewise.
14621         * modules/unictype/property-composite-tests (Files): Likewise.
14622         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
14623         * modules/unictype/property-dash-tests (Files): Likewise.
14624         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
14625         * modules/unictype/property-default-ignorable-code-point-tests (Files):
14626         Likewise.
14627         * modules/unictype/property-deprecated-tests (Files): Likewise.
14628         * modules/unictype/property-diacritic-tests (Files): Likewise.
14629         * modules/unictype/property-extender-tests (Files): Likewise.
14630         * modules/unictype/property-format-control-tests (Files): Likewise.
14631         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
14632         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
14633         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
14634         * modules/unictype/property-hex-digit-tests (Files): Likewise.
14635         * modules/unictype/property-hyphen-tests (Files): Likewise.
14636         * modules/unictype/property-id-continue-tests (Files): Likewise.
14637         * modules/unictype/property-id-start-tests (Files): Likewise.
14638         * modules/unictype/property-ideographic-tests (Files): Likewise.
14639         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
14640         * modules/unictype/property-ids-trinary-operator-tests (Files):
14641         Likewise.
14642         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
14643         * modules/unictype/property-iso-control-tests (Files): Likewise.
14644         * modules/unictype/property-join-control-tests (Files): Likewise.
14645         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
14646         * modules/unictype/property-line-separator-tests (Files): Likewise.
14647         * modules/unictype/property-logical-order-exception-tests (Files):
14648         Likewise.
14649         * modules/unictype/property-lowercase-tests (Files): Likewise.
14650         * modules/unictype/property-math-tests (Files): Likewise.
14651         * modules/unictype/property-non-break-tests (Files): Likewise.
14652         * modules/unictype/property-not-a-character-tests (Files): Likewise.
14653         * modules/unictype/property-numeric-tests (Files): Likewise.
14654         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
14655         * modules/unictype/property-other-default-ignorable-code-point-tests
14656         (Files): Likewise.
14657         * modules/unictype/property-other-grapheme-extend-tests (Files):
14658         Likewise.
14659         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
14660         * modules/unictype/property-other-id-start-tests (Files): Likewise.
14661         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
14662         * modules/unictype/property-other-math-tests (Files): Likewise.
14663         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
14664         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
14665         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
14666         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
14667         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
14668         * modules/unictype/property-private-use-tests (Files): Likewise.
14669         * modules/unictype/property-punctuation-tests (Files): Likewise.
14670         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
14671         * modules/unictype/property-radical-tests (Files): Likewise.
14672         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
14673         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
14674         * modules/unictype/property-space-tests (Files): Likewise.
14675         * modules/unictype/property-terminal-punctuation-tests (Files):
14676         Likewise.
14677         * modules/unictype/property-test-tests (Files): Likewise.
14678         * modules/unictype/property-titlecase-tests (Files): Likewise.
14679         * modules/unictype/property-unassigned-code-value-tests (Files):
14680         Likewise.
14681         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
14682         * modules/unictype/property-uppercase-tests (Files): Likewise.
14683         * modules/unictype/property-variation-selector-tests (Files): Likewise.
14684         * modules/unictype/property-white-space-tests (Files): Likewise.
14685         * modules/unictype/property-xid-continue-tests (Files): Likewise.
14686         * modules/unictype/property-xid-start-tests (Files): Likewise.
14687         * modules/unictype/property-zero-width-tests (Files): Likewise.
14688         * modules/unictype/scripts-tests (Files): Likewise.
14689         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
14690         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
14691         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
14692         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
14693         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
14694         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
14695         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
14696         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
14697         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
14698         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
14699         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
14700         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
14701         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
14702         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
14703         * modules/uninorm/composition-tests (Files): Likewise.
14704         * modules/uninorm/decomposing-form-tests (Files): Likewise.
14705         * modules/uninorm/decomposition-tests (Files): Likewise.
14706         * modules/uninorm/filter-tests (Files): Likewise.
14707         * modules/uninorm/nfc-tests (Files): Likewise.
14708         * modules/uninorm/nfd-tests (Files): Likewise.
14709         * modules/uninorm/nfkc-tests (Files): Likewise.
14710         * modules/uninorm/nfkd-tests (Files): Likewise.
14711         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
14712         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
14713         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
14714         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
14715         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
14716         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
14717         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
14718         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14719         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
14720         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
14721         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
14722         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
14723         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14724         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
14725         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
14726         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
14727         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
14728         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14729         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
14730         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
14731         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
14732         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
14733         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14734         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
14735         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
14736         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
14737         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
14738         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
14739         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
14740         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
14741         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
14742         * modules/uniwidth/u8-width-tests (Files): Likewise.
14743         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
14744         * modules/uniwidth/u16-width-tests (Files): Likewise.
14745         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
14746         * modules/uniwidth/u32-width-tests (Files): Likewise.
14747         * modules/uniwidth/width-tests (Files): Likewise.
14748         * modules/unlink-tests (Files): Likewise.
14749         * modules/unsetenv-tests (Files): Likewise.
14750         * modules/usleep-tests (Files): Likewise.
14751         * modules/utimens-tests (Files): Likewise.
14752         * modules/utimensat-tests (Files): Likewise.
14753         * modules/vasnprintf-posix-tests (Files): Likewise.
14754         * modules/vasnprintf-tests (Files): Likewise.
14755         * modules/vasprintf-posix-tests (Files): Likewise.
14756         * modules/vasprintf-tests (Files): Likewise.
14757         * modules/vdprintf-posix-tests (Files): Likewise.
14758         * modules/vfprintf-posix-tests (Files): Likewise.
14759         * modules/vprintf-posix-tests (Files): Likewise.
14760         * modules/vsnprintf-posix-tests (Files): Likewise.
14761         * modules/vsnprintf-tests (Files): Likewise.
14762         * modules/vsprintf-posix-tests (Files): Likewise.
14763         * modules/wcrtomb-tests (Files): Likewise.
14764         * modules/wcsnrtombs-tests (Files): Likewise.
14765         * modules/wcsrtombs-tests (Files): Likewise.
14766         * modules/wctype-tests (Files): Likewise.
14767         * modules/wcwidth-tests (Files): Likewise.
14768         * modules/xmemdup0-tests (Files): Likewise.
14769         * modules/xprintf-posix-tests (Files): Likewise.
14770         * modules/xvasprintf-tests (Files): Likewise.
14771
14772 2009-12-24  Eric Blake  <ebb9@byu.net>
14773
14774         test-nanosleep: fix typo
14775         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
14776         patch.
14777         Reported by Bruno Haible.
14778
14779 2009-12-24  Bruno Haible  <bruno@clisp.org>
14780
14781         Reduce namespace pollution on glibc systems.
14782         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
14783         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
14784         systems.
14785         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
14786         <getopt.h> on glibc systems.
14787         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
14788         systems.
14789         * lib/fcntl.c: Include <unistd.h> here instead.
14790
14791 2009-12-24  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/stdlib.in.h (includes): Fix typo in today's commit.
14794
14795 2009-12-24  Eric Blake  <ebb9@byu.net>
14796
14797         tests: add signature checks
14798         * tests/signature.h (SIGNATURE_CHECK): New file.
14799         * modules/atexit-tests (Files): Use it.
14800         * modules/btowc-tests (Files): Likewise.
14801         * modules/canonicalize-lgpl-tests (Files): Likewise.
14802         * modules/ceilf-tests (Files): Likewise.
14803         * modules/ceill-tests (Files): Likewise.
14804         * modules/chown-tests (Files): Likewise.
14805         * modules/dprintf-posix-tests (Files): Likewise.
14806         * modules/dup2-tests (Files): Likewise.
14807         * modules/dup3-tests (Files): Likewise.
14808         * modules/duplocale-tests (Files): Likewise.
14809         * modules/fchdir-tests (Files): Likewise.
14810         * modules/fcntl-tests (Files): Likewise.
14811         * modules/fdopendir-tests (Files): Likewise.
14812         * modules/fflush-tests (Files): Likewise.
14813         * modules/flock-tests (Files): Likewise.
14814         * modules/floorf-tests (Files): Likewise.
14815         * modules/floorl-tests (Files): Likewise.
14816         * modules/fnmatch-tests (Files): Likewise.
14817         * modules/fopen-tests (Files): Likewise.
14818         * modules/fprintf-posix-tests (Files): Likewise.
14819         * modules/freopen-tests (Files): Likewise.
14820         * modules/frexp-nolibm-tests (Files): Likewise.
14821         * modules/frexp-tests (Files): Likewise.
14822         * modules/frexpl-nolibm-tests (Files): Likewise.
14823         * modules/frexpl-tests (Files): Likewise.
14824         * modules/fseek-tests (Files): Likewise.
14825         * modules/fseeko-tests (Files): Likewise.
14826         * modules/fsync-tests (Files): Likewise.
14827         * modules/ftell-tests (Files): Likewise.
14828         * modules/ftello-tests (Files): Likewise.
14829         * modules/futimens-tests (Files): Likewise.
14830         * modules/getaddrinfo-tests (Files): Likewise.
14831         * modules/getcwd-tests (Files): Likewise.
14832         * modules/getdelim-tests (Files): Likewise.
14833         * modules/getdtablesize-tests (Files): Likewise.
14834         * modules/getgroups-tests (Files): Likewise.
14835         * modules/gethostname-tests (Files): Likewise.
14836         * modules/getline-tests (Files): Likewise.
14837         * modules/getopt-posix-tests (Files): Likewise.
14838         * modules/gettimeofday-tests (Files): Likewise.
14839         * modules/glob-tests (Files): Likewise.
14840         * modules/iconv-tests (Files): Likewise.
14841         * modules/inet_ntop-tests (Files): Likewise.
14842         * modules/inet_pton-tests (Files): Likewise.
14843         * modules/isblank-tests (Files): Likewise.
14844         * modules/lchown-tests (Files): Likewise.
14845         * modules/ldexpl-tests (Files): Likewise.
14846         * modules/link-tests (Files): Likewise.
14847         * modules/linkat-tests (Files): Likewise.
14848         * modules/lseek-tests (Files): Likewise.
14849         * modules/lstat-tests (Files): Likewise.
14850         * modules/mbrtowc-tests (Files): Likewise.
14851         * modules/mbsinit-tests (Files): Likewise.
14852         * modules/mbsnrtowcs-tests (Files): Likewise.
14853         * modules/mbsrtowcs-tests (Files): Likewise.
14854         * modules/memchr-tests (Files): Likewise.
14855         * modules/memcmp-tests (Files): Likewise.
14856         * modules/memmem-tests (Files): Likewise.
14857         * modules/memrchr-tests (Files): Likewise.
14858         * modules/mkdir-tests (Files): Likewise.
14859         * modules/mkfifo-tests (Files): Likewise.
14860         * modules/mkfifoat-tests (Files): Likewise.
14861         * modules/mknod-tests (Files): Likewise.
14862         * modules/nanosleep-tests (Files): Likewise.
14863         * modules/nl_langinfo-tests (Files): Likewise.
14864         * modules/obstack-printf-tests (Files): Likewise.
14865         * modules/open-tests (Files): Likewise.
14866         * modules/openat-tests (Files): Likewise.
14867         * modules/perror-tests (Files): Likewise.
14868         * modules/pipe2-tests (Files): Likewise.
14869         * modules/poll-tests (Files): Likewise.
14870         * modules/popen-tests (Files): Likewise.
14871         * modules/posix_spawn-tests (Files): Likewise.
14872         * modules/posix_spawnp-tests (Files): Likewise.
14873         * modules/pread-tests (Files): Likewise.
14874         * modules/printf-posix-tests (Files): Likewise.
14875         * modules/pty-tests (Files): Likewise.
14876         * modules/random_r-tests (Files): Likewise.
14877         * modules/rawmemchr-tests (Files): Likewise.
14878         * modules/readlink-tests (Files): Likewise.
14879         * modules/remove-tests (Files): Likewise.
14880         * modules/rename-tests (Files): Likewise.
14881         * modules/renameat-tests (Files): Likewise.
14882         * modules/rmdir-tests (Files): Likewise.
14883         * modules/round-tests (Files): Likewise.
14884         * modules/roundf-tests (Files): Likewise.
14885         * modules/roundl-tests (Files): Likewise.
14886         * modules/select-tests (Files): Likewise.
14887         * modules/setenv-tests (Files): Likewise.
14888         * modules/sigaction-tests (Files): Likewise.
14889         * modules/sleep-tests (Files): Likewise.
14890         * modules/snprintf-posix-tests (Files): Likewise.
14891         * modules/snprintf-tests (Files): Likewise.
14892         * modules/sprintf-posix-tests (Files): Likewise.
14893         * modules/stat-tests (Files): Likewise.
14894         * modules/strcasestr-tests (Files): Likewise.
14895         * modules/strchrnul-tests (Files): Likewise.
14896         * modules/strerror-tests (Files): Likewise.
14897         * modules/strsignal-tests (Files): Likewise.
14898         * modules/strstr-tests (Files): Likewise.
14899         * modules/strtod-tests (Files): Likewise.
14900         * modules/strverscmp-tests (Files): Likewise.
14901         * modules/symlink-tests (Files): Likewise.
14902         * modules/symlinkat-tests (Files): Likewise.
14903         * modules/times-tests (Files): Likewise.
14904         * modules/trunc-tests (Files): Likewise.
14905         * modules/truncf-tests (Files): Likewise.
14906         * modules/truncl-tests (Files): Likewise.
14907         * modules/tsearch-tests (Files): Likewise.
14908         * modules/uname-tests (Files): Likewise.
14909         * modules/unlink-tests (Files): Likewise.
14910         * modules/unsetenv-tests (Files): Likewise.
14911         * modules/usleep-tests (Files): Likewise.
14912         * modules/utimensat-tests (Files): Likewise.
14913         * modules/vasprintf-tests (Files): Likewise.
14914         * modules/vdprintf-posix-tests (Files): Likewise.
14915         * modules/vfprintf-posix-tests (Files): Likewise.
14916         * modules/vprintf-posix-tests (Files): Likewise.
14917         * modules/vsnprintf-posix-tests (Files): Likewise.
14918         * modules/vsnprintf-tests (Files): Likewise.
14919         * modules/vsprintf-posix-tests (Files): Likewise.
14920         * modules/wcrtomb-tests (Files): Likewise.
14921         * modules/wcsnrtombs-tests (Files): Likewise.
14922         * modules/wcsrtombs-tests (Files): Likewise.
14923         * modules/wcwidth-tests (Files): Likewise.
14924         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
14925         * tests/test-isinf.c (isinf): Likewise.
14926         * tests/test-isnan.c (isnan): Likewise.
14927         * tests/test-signbit.c (signbit): Likewise.
14928         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
14929         declaration, either as macro or with correct signature.
14930         (select): Ensure function under test is declared with correct
14931         signature in correct header.
14932         * tests/test-atexit.c (atexit): Likewise.
14933         * tests/test-btowc.c (btowc): Likewise.
14934         * tests/test-canonicalize-lgpl.c (realpath)
14935         (canonicalize_file_name): Likewise.
14936         * tests/test-ceilf1.c (ceilf): Likewise.
14937         * tests/test-ceill.c (ceill): Likewise.
14938         * tests/test-chown.c (chown): Likewise.
14939         * tests/test-dprintf-posix.c (dprintf): Likewise.
14940         * tests/test-dup2.c (dup2): Likewise.
14941         * tests/test-dup3.c (dup3): Likewise.
14942         * tests/test-duplocale.c (duplocale): Likewise.
14943         * tests/test-fchdir.c (fchdir): Likewise.
14944         * tests/test-fchownat.c (fchownat): Likewise.
14945         * tests/test-fcntl.c (fcntl): Likewise.
14946         * tests/test-fdopendir.c (fdopendir): Likewise.
14947         * tests/test-fflush.c (fflush): Likewise.
14948         * tests/test-flock.c (flock): Likewise.
14949         * tests/test-floorf1.c (floorf): Likewise.
14950         * tests/test-floorl.c (floorl): Likewise.
14951         * tests/test-fnmatch.c (fnmatch): Likewise.
14952         * tests/test-fopen.c (fopen): Likewise.
14953         * tests/test-fprintf-posix.c (fprintf): Likewise.
14954         * tests/test-freopen.c (freopen): Likewise.
14955         * tests/test-frexp.c (frexp): Likewise.
14956         * tests/test-frexpl.c (frexpl): Likewise.
14957         * tests/test-fseek.c (fseek): Likewise.
14958         * tests/test-fseeko.c (fseeko): Likewise.
14959         * tests/test-fstatat.c (fstatat): Likewise.
14960         * tests/test-fsync.c (fsync): Likewise.
14961         * tests/test-ftell.c (ftell): Likewise.
14962         * tests/test-ftello.c (ftello): Likewise.
14963         * tests/test-futimens.c (futimens): Likewise.
14964         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
14965         (gai_strerror): Likewise.
14966         * tests/test-getcwd.c (getcwd): Likewise.
14967         * tests/test-getdelim.c (getdelim): Likewise.
14968         * tests/test-getdtablesize.c (getdtablesize): Likewise.
14969         * tests/test-getgroups.c (getgroups): Likewise.
14970         * tests/test-gethostname.c (gethostname): Likewise.
14971         * tests/test-getline.c (getline): Likewise.
14972         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
14973         Likewise.
14974         * tests/test-gettimeofday.c (gettimeofday): Likewise.
14975         * tests/test-glob.c (glob, globfree): Likewise.
14976         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
14977         * tests/test-inet_ntop.c (inet_ntop): Likewise.
14978         * tests/test-inet_pton.c (inet_pton): Likewise.
14979         * tests/test-isblank.c (isblank): Likewise.
14980         * tests/test-lchown.c (lchown): Likewise.
14981         * tests/test-ldexpl.c (ldexpl): Likewise.
14982         * tests/test-link.c (link): Likewise.
14983         * tests/test-linkat.c (linkat): Likewise.
14984         * tests/test-lseek.c (lseek): Likewise.
14985         * tests/test-lstat.c (lstat): Likewise.
14986         * tests/test-mbrtowc.c (mbrtowc): Likewise.
14987         * tests/test-mbsinit.c (mbsinit): Likewise.
14988         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
14989         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
14990         * tests/test-memchr.c (memchr): Likewise.
14991         * tests/test-memcmp.c (memcmp): Likewise.
14992         * tests/test-memmem.c (memmem): Likewise.
14993         * tests/test-memrchr.c (memrchr): Likewise.
14994         * tests/test-mkdir.c (mkdir): Likewise.
14995         * tests/test-mkdirat.c (mkdirat): Likewise.
14996         * tests/test-mkfifo.c (mkfifo): Likewise.
14997         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
14998         * tests/test-mknod.c (mknod): Likewise.
14999         * tests/test-nanosleep.c (nanosleep): Likewise.
15000         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15001         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15002         Likewise.
15003         * tests/test-open.c (open): Likewise.
15004         * tests/test-openat.c (openat): Likewise.
15005         * tests/test-perror.c (perror): Likewise.
15006         * tests/test-pipe2.c (pipe2): Likewise.
15007         * tests/test-poll.c (poll): Likewise.
15008         * tests/test-popen.c (popen, pclose): Likewise.
15009         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15010         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15011         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15012         (posix_spawn_file_actions_destroy)
15013         (posix_spawn_file_actions_addclose)
15014         (posix_spawn_file_actions_addopen)
15015         (posix_spawn_file_actions_adddup2): Likewise.
15016         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15017         * tests/test-pread.c (pread): Likewise.
15018         * tests/test-printf-posix.c (printf): Likewise.
15019         * tests/test-pty.c (openpty, forkpty): Likewise.
15020         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15021         (random_r): Likewise.
15022         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15023         * tests/test-readlink.c (readlink): Likewise.
15024         * tests/test-remove.c (remove): Likewise.
15025         * tests/test-rename.c (rename): Likewise.
15026         * tests/test-renameat.c (renameat): Likewise.
15027         * tests/test-rmdir.c (rmdir): Likewise.
15028         * tests/test-round1.c (round): Likewise.
15029         * tests/test-roundf1.c (roundf): Likewise.
15030         * tests/test-roundl.c (roundl): Likewise.
15031         * tests/test-setenv.c (setenv): Likewise.
15032         * tests/test-sigaction.c (sigaction): Likewise.
15033         * tests/test-sleep.c (sleep): Likewise.
15034         * tests/test-snprintf.c (snprintf): Likewise.
15035         * tests/test-sprintf-posix.c (sprintf): Likewise.
15036         * tests/test-stat.c (stat): Likewise.
15037         * tests/test-stpncpy.c (stpncpy): Likewise.
15038         * tests/test-strcasestr.c (strcasestr): Likewise.
15039         * tests/test-strchrnul.c (strchrnul): Likewise.
15040         * tests/test-strerror.c (strerror): Likewise.
15041         * tests/test-strsignal.c (strsignal): Likewise.
15042         * tests/test-strstr.c (strstr): Likewise.
15043         * tests/test-strtod.c (strtod): Likewise.
15044         * tests/test-strverscmp.c (strverscmp): Likewise.
15045         * tests/test-symlink.c (symlink): Likewise.
15046         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15047         * tests/test-times.c (times): Likewise.
15048         * tests/test-trunc1.c (trunc): Likewise.
15049         * tests/test-truncf1.c (truncf): Likewise.
15050         * tests/test-truncl.c (truncl): Likewise.
15051         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15052         Likewise.
15053         * tests/test-uname.c (uname): Likewise.
15054         * tests/test-unlink.c (unlink): Likewise.
15055         * tests/test-unlinkat.c (unlinkat): Likewise.
15056         * tests/test-unsetenv.c (unsetenv): Likewise.
15057         * tests/test-usleep.c (usleep): Likewise.
15058         * tests/test-utimensat.c (utimensat): Likewise.
15059         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15060         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15061         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15062         * tests/test-vprintf-posix.c (vprintf): Likewise.
15063         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15064         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15065         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15066         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15067         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15068         * tests/test-wcwidth.c (wcwidth): Likewise.
15069
15070         build: pull in conditional headers during GNULIB_POSIXCHECK
15071         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15072         definitions from any conditionally-included headers.
15073         * lib/stdlib.in.h (includes): Likewise.
15074         * lib/unistd.in.h (includes): Likewise.
15075
15076 2009-12-24  Bruno Haible  <bruno@clisp.org>
15077
15078         * tests/test-argv-iter.c: Include header file being tested immediately
15079         after config.h.
15080         * tests/test-base64.c: Likewise.
15081         * tests/test-flock.c: Likewise.
15082         * tests/test-fsync.c: Likewise.
15083         * tests/test-getdate.c: Likewise.
15084         * tests/test-getndelim2.c: Likewise.
15085         * tests/test-isfinite.c: Likewise.
15086         * tests/test-isinf.c: Likewise.
15087         * tests/test-strerror.c: Likewise.
15088         * tests/test-strsignal.c: Likewise.
15089
15090 2009-12-23  Eric Blake  <ebb9@byu.net>
15091
15092         unistd: work around cygwin bug
15093         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15094         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15095         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15096
15097 2009-12-23  Bruno Haible  <bruno@clisp.org>
15098
15099         localename: More tests.
15100         * tests/test-localename.c (SIZEOF): New macro.
15101         (categories): New variable.
15102         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15103         test_locale_name_default): Add test w.r.t. thread locale.
15104         (test_locale_name_thread): New function.
15105         (main): Invoke it.
15106
15107         localename: Make aware of thread locale.
15108         * lib/localename.h (gl_locale_name_thread): New declaration.
15109         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15110         behaviour with respect to thread locale.
15111         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15112         <langinfo.h>, glthread/lock.h.
15113         (SIZE_BITS): New macro.
15114         (string_hash): New function.
15115         (struct hash_node): New type.
15116         (HASH_TABLE_SIZE): New macro.
15117         (struniq_hash_table, struniq_lock): New variables.
15118         (struniq): New function.
15119         (gl_locale_name_thread): New function.
15120         (gl_locale_name): Invoke it.
15121         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15122         * modules/localename (Depends-on): Add lock.
15123         Reported by Mike Gran <spk121@yahoo.com>.
15124
15125 2009-12-23  Eric Blake  <ebb9@byu.net>
15126
15127         va-args: new module
15128         * modules/va-args: New file.
15129         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15130         * MODULES.html.sh (Core language properties): Mention it.
15131
15132         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15133         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15134         named alias for __attribute__((__unused__)).
15135         * lib/chown.c: Update client.
15136         * lib/fchmodat.c: Likewise.
15137         * lib/fts.c: Likewise.
15138         * lib/getdate.y: Likewise.
15139         * lib/getgroups.c: Likewise.
15140         * lib/getopt.c: Likewise.
15141         * lib/getugroups.c: Likewise.
15142         * lib/mkdir.c: Likewise.
15143         * lib/mkfifo.c: Likewise.
15144         * lib/mkfifoat.c: Likewise.
15145         * lib/mknod.c: Likewise.
15146         * lib/mknodat.c: Likewise.
15147         * lib/readlink.c: Likewise.
15148         * lib/se-context.in.h: Likewise.
15149         * lib/se-selinux.in.h: Likewise.
15150         * lib/sockets.c: Likewise.
15151         * lib/symlink.c: Likewise.
15152         * lib/symlinkat.c: Likewise.
15153         * lib/unicodeio.c: Likewise.
15154         * lib/unistr.h: Likewise.
15155         * tests/test-areadlink.c: Likewise.
15156         * tests/test-areadlinkat.c: Likewise.
15157         * tests/test-filenamecat.c: Likewise.
15158         * tests/test-fseeko.c: Likewise.
15159         * tests/test-ftello.c: Likewise.
15160         * tests/test-getdate.c: Likewise.
15161         * tests/test-getgroups.c: Likewise.
15162         * tests/test-gethostname.c: Likewise.
15163         * tests/test-quotearg.c: Likewise.
15164         * tests/test-version-etc.c: Likewise.
15165         * tests/test-xalloc-die.c: Likewise.
15166         * tests/test-xfprintf-posix.c: Likewise.
15167         * tests/test-xprintf-posix.c: Likewise.
15168         * tests/test-xvasprintf.c: Likewise.
15169
15170         tests: avoid compiler warnings
15171         * tests/test-fcntl.c (main): Delete unused parameters.
15172         * tests/test-freopen-safer.c (main): Likewise.
15173         * tests/test-xalloc-die.c (main): Mark unused parameters.
15174         * tests/test-fseeko.c (main): Likewise.
15175         * tests/test-ftello.c (main): Likewise.
15176         * tests/test-nanosleep.c (main): Avoid declaration warning.
15177         * tests/test-sleep.c (main): Likewise.
15178         * tests/test-unsetenv.c (main): Silence warning about string
15179         literal.
15180         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15181
15182 2009-12-23  Bruno Haible  <bruno@clisp.org>
15183
15184         * tests/test-localename.c (test_locale_name): New function, extracted
15185         from main. Also test mixed situations.
15186         (test_locale_name_posix, test_locale_name_environ,
15187         test_locale_name_default): New functions.
15188         (main): Invoke them all.
15189         * modules/localename-tests (configure.ac): Test for newlocale.
15190
15191 2009-12-23  Bruno Haible  <bruno@clisp.org>
15192
15193         unistd: Ensure getcwd gets declared before being overridden.
15194         * lib/unistd.in.h: Conditionally include <io.h>.
15195
15196 2009-12-22  Bruno Haible  <bruno@clisp.org>
15197
15198         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15199         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15200         (gl_WCHAR_H): Invoke it.
15201         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15202         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15203         Reported by Karl Berry <karl@freefriends.org>.
15204
15205 2009-12-22  Eric Blake  <ebb9@byu.net>
15206
15207         math, unistd: avoid redundant includes
15208         * lib/math.in.h (isnan): No need to re-include <math.h>.
15209         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15210
15211         getsubopt: work around cygwin bug
15212         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15213         avoid conflicting with system getsubopt.
15214         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15215         bug.
15216
15217         getopt: synchronize from glibc
15218         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15219         parameter order.  Adjust all callers.
15220         (_getopt_internal_r, main): Adjust quoting in error messages.
15221         Drop considerations for outdated POSIX 1003.2 error message.
15222         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15223         callers.
15224         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15225
15226         test-getopt: test stderr behavior
15227         * modules/getopt-posix-tests (Depends-on): Add dup2.
15228         * tests/test-getopt.c (ASSERT): Avoid stderr.
15229         (main): Move stderr to a temporary file.
15230         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15231         Instead, add parameter to inform caller if output occurred.
15232         (test_getopt): Adjust all existing tests to expect silence, and
15233         add new tests of leading ":".
15234         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15235         glibc shortcomings with leading "-:" or "+:" in optstring.
15236         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15237         Likewise.
15238         * doc/posix-functions/getopt.texi (getopt): Likewise.
15239
15240         test-getopt: enhance test
15241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15242         supports optind=0.
15243         * tests/test-getopt.c (OPTIND_MIN): Move...
15244         * tests/test-getopt.h (OPTIND_MIN): ...here.
15245         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15246         Require that optind=0 works, since modern BSD supports it in
15247         addition to optreset, and since coreutils expects it.
15248         (test_getopt_long_only): New test.
15249         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15250         glibc shortcomings with 'W;', and enforcement of optind=0.
15251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15252         Likewise.
15253
15254 2009-12-21  Bruno Haible  <bruno@clisp.org>
15255
15256         localename: Improvements for MacOS X and Cygwin.
15257         * lib/localename.h (gl_locale_name_environ): New declaration.
15258         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15259         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15260         (gl_locale_name_posix): Invoke it.
15261         (gl_locale_name_default): Add comments. Use Windows native API also on
15262         Cygwin.
15263
15264 2009-12-21  Bruno Haible  <bruno@clisp.org>
15265
15266         Update list of Win32 locale ids.
15267         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15268         (LANG_SAMI): Renamed from LANG_SAAMI.
15269         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15270         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15271         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15272         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15273         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15274         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15275         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15276         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15277         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15278         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15279         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15280         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15281         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15282         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15283         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15284         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15285         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15286         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15287         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15288         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15289         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15290         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15291         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15292         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15293         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15294         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15295         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15296         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15297         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15298         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15299         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15300         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15301         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15302         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15303         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15304         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15305         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15306         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15307         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15308         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15309         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15310         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15311         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15312         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15313         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15314         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15315         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15316         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15317         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15318         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15319         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15320         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15321         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15322         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15323         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15324         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15325         Add more languages and countries for Sami, Sorbian. Add more countries
15326         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15327         for Pashto. Change country for Syriac, Tswana.
15328
15329 2009-12-21  Eric Blake  <ebb9@byu.net>
15330
15331         test-utimens: avoid spurious failure
15332         * tests/test-chown.h (nap): Factor...
15333         * tests/nap.h: ...into new file.
15334         * tests/test-lchown.h (nap): Avoid duplication.
15335         * tests/test-utimens-common.h (nap): Use shared implementation,
15336         necessary on file systems with 1-second resolution.
15337         * modules/chown-tests (Files): Include new file.
15338         * modules/fdutimensat-tests (Files): Likewise.
15339         * modules/futimens-tests (Files): Likewise.
15340         * modules/lchown-tests (Files): Likewise.
15341         * modules/openat-tests (Files): Likewise.
15342         * modules/utimens-tests (Files): Likewise.
15343         * modules/utimensat-tests (Files): Likewise.
15344
15345 2009-12-19  Eric Blake  <ebb9@byu.net>
15346
15347         futimens, utimensat: work around Linux bug
15348         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15349         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15350         * lib/utimensat.c (rpl_utimensat): Work around it.
15351         * lib/futimens.c (rpl_futimens): Adjust comment.
15352
15353         utimens: work around Linux ctime bug
15354         * lib/utimens.c (detect_ctime_bug): New helper function.
15355         (update_timespec): Differentiate between workaround needed for
15356         this bug vs. what is needed for systems that lack utimensat.
15357         (fdutimens, lutimens): Work around bug.
15358
15359         utimens: check for ctime update
15360         * tests/test-utimens-common.h (check_ctime): Define.
15361         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15362         * tests/test-futimens.h (test_futimens): Likewise.
15363         * tests/test-lutimens.h (test_lutimens): Likewise.
15364         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15365         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15366
15367 2009-12-19  Bruno Haible  <bruno@clisp.org>
15368
15369         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15370         * tests/test-dprintf-posix2.sh: New file.
15371         * tests/test-dprintf-posix2.c: New file.
15372         * modules/dprintf-posix-tests (Files): Add them.
15373         (configure.ac): Check for getrlimit and setrlimit.
15374         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15375
15376 2009-12-19  Bruno Haible  <bruno@clisp.org>
15377
15378         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15379         * tests/test-fprintf-posix3.sh: New file.
15380         * tests/test-fprintf-posix3.c: New file.
15381         * modules/fprintf-posix-tests (Files): Add them.
15382         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15383
15384 2009-12-19  Eric Blake  <ebb9@byu.net>
15385
15386         dirfd: fix prototype
15387         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15388         * lib/dirfd.c (dirfd): Likewise.
15389
15390         canonicalize: reduce memory usage
15391         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15392         allocation to size.
15393         Reported by Solar Designer <solar@openwall.com>.
15394
15395 2009-12-19  Bruno Haible  <bruno@clisp.org>
15396
15397         New module attribute 'Applicability'.
15398         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15399         * gnulib-tool: New option --extract-applicability.
15400         (func_usage): Document it.
15401         (sed_extract_prog): Recognize it.
15402         (func_get_applicability): New function.
15403         (func_import): Generalize handling of 'link-warning' module.
15404         * modules/link-warning (Applicability): New section.
15405         * modules/arg-nonnull (Applicability): New section.
15406         Repoted by Simon Josefsson <simon@josefsson.org>.
15407
15408 2009-12-19  Bruno Haible  <bruno@clisp.org>
15409
15410         fflush: tweak
15411         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15412         * lib/fseeko.c (rpl_fseeko): Likewise.
15413
15414 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15415
15416         * lib/gl_list.h: Fix typo in comment.
15417
15418 2009-12-16  Eric Blake  <ebb9@byu.net>
15419
15420         fcntl: use to simplify other modules
15421         * modules/cloexec (Depends-on): Add fcntl.
15422         * modules/fchdir (Depends-on): Likewise.
15423         * modules/fd-safer-flag (Depends-on): Likewise.
15424         * modules/unistd-safer (Depends-on): Likewise.
15425         * modules/dup3 (configure.ac): Set module indicator.
15426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15427         missing.
15428         * lib/fchdir.c (_gl_register_dup): Fix comment.
15429         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15430         * lib/dup-safer.c (dup_safer): Likewise.
15431         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15432         * lib/dup3.c (dup3): Likewise.
15433         * tests/test-fchdir.c (main): Enhance test.
15434         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15435
15436         fcntl: port portions of fcntl to mingw
15437         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15438         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15439         replacement for mingw.
15440         * modules/fcntl (Description): Update.
15441         (Depends-on): Add dup2.
15442         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15443         * modules/fcntl-h (Makefile.am): Substitute it.
15444         * lib/fcntl.in.h (fcntl): Update declaration.
15445         (F_DUPFD, F_GETFD): New macros, when needed.
15446         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15447         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15448         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15449         we now guarantee.
15450
15451         fcntl: work around cygwin bug in F_DUPFD
15452         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15453         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15454         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15455         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15456         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15457
15458         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15459         * modules/fcntl (Files): List new files.
15460         (configure.ac): Run a test.
15461         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15462         * lib/fcntl.c (rpl_fcntl): Likewise.
15463         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15464         (gl_FCNTL_H): Always replace fcntl.h.
15465         * modules/fcntl-h (Makefile.am): Substitute witnesses.
15466         * lib/fcntl.in.h (fcntl): Declare replacement.
15467         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
15468         needed, plus a witness.
15469         * doc/posix-functions/fcntl.texi (fcntl): Document this.
15470         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15471         * tests/test-fcntl.c: New file.
15472         * modules/fcntl-tests: Likewise.
15473
15474         binary-io: avoid potential compilation warning
15475         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
15476         directives.
15477
15478         fflush: avoid compilation error on NetBSD
15479         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
15480         between off_t and fpos_t, since the latter is sometimes a struct.
15481         * lib/fseeko.c (rpl_fseeko): Likewise.
15482         Reported by Alexander Nasonov <alnsn@yandex.ru>.
15483
15484 2009-12-15  Eric Blake  <ebb9@byu.net>
15485
15486         fcntl-h, stdio, sys_ioctl: fix declarations
15487         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
15488         function must not take arguments.
15489         * lib/sys_ioctl.in.h (ioctl): Likewise.
15490         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
15491         (open): Add a link warning.
15492
15493 2009-12-15  Jim Meyering  <meyering@redhat.com>
15494
15495         areadlink, areadlink-with-size: relax license to LGPLv2+
15496         * modules/areadlink (License): Relax to LGPLv2+.
15497         * modules/areadlink-with-size (License): Likewise.
15498
15499 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
15500             Bruno Haible  <bruno@clisp.org>
15501
15502         *printf: Fix memory leak.
15503         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
15504         * lib/vfprintf.c (vfprintf): Likewise.
15505         * lib/dprintf.c (dprintf): Likewise.
15506         * lib/vdprintf.c (vdprintf): Likewise.
15507
15508 2009-12-14  Eric Blake  <ebb9@byu.net>
15509
15510         accept4: adjust module dependencies
15511         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
15512
15513         utimens: one more try at avoiding compiler warning
15514         * lib/utimens.c (lutimens): Lower scope of result.
15515
15516 2009-12-13  Bruno Haible  <bruno@clisp.org>
15517
15518         Move the malloc checking from module 'list' to new module 'xlist'.
15519         * modules/xlist: New file.
15520         * lib/gl_xlist.h: New file.
15521         * lib/gl_xlist.c: New file.
15522         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
15523         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
15524         gl_list_add_last, gl_list_add_before, gl_list_add_after,
15525         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
15526         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
15527         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
15528         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
15529         gl_sortedlist_nx_add): New declarations.
15530         (struct gl_list_implementation): Rename and change methods accordingly.
15531         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
15532         (gl_list_nx_create): Renamed from gl_list_create.
15533         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15534         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15535         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15536         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15537         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15538         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15539         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15540         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15541         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
15542         gl_list_create_empty.
15543         (gl_list_nx_create): Renamed from gl_list_create.
15544         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15545         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15546         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15547         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15548         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15549         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15550         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15551         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15552         * lib/gl_array_list.c: Don't include xalloc.h.
15553         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
15554         NULL upon out-of-memory.
15555         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
15556         out-of-memory.
15557         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
15558         Change return type to 'int'.
15559         (gl_array_nx_set_at): Renamed from gl_array_set_at.
15560         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15561         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
15562         upon out-of-memory.
15563         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
15564         upon out-of-memory.
15565         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
15566         upon out-of-memory.
15567         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
15568         upon out-of-memory.
15569         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
15570         out-of-memory.
15571         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
15572         Update.
15573         (gl_array_list_implementation): Update.
15574         * lib/gl_carray_list.c: Don't include xalloc.h.
15575         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
15576         Return NULL upon out-of-memory.
15577         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
15578         out-of-memory.
15579         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
15580         Change return type to 'int'.
15581         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
15582         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15583         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
15584         upon out-of-memory.
15585         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
15586         upon out-of-memory.
15587         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
15588         out-of-memory.
15589         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
15590         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
15591         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
15592         Update.
15593         (gl_carray_list_implementation): Update.
15594         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
15595         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
15596         gl_linked_create_empty. Return NULL upon out-of-memory.
15597         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
15598         out-of-memory.
15599         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
15600         Change return type to 'int'. Return -1 upon out-of-memory.
15601         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
15602         out-of-memory.
15603         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
15604         upon out-of-memory.
15605         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
15606         upon out-of-memory.
15607         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
15608         NULL upon out-of-memory.
15609         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
15610         upon out-of-memory.
15611         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
15612         out-of-memory.
15613         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
15614         Update.
15615         * lib/gl_linked_list.c: Don't include xalloc.h.
15616         (gl_linked_list_implementation): Update.
15617         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
15618         (add_to_bucket): Change return type to 'int'.
15619         (gl_linkedhash_list_implementation): Update.
15620         * lib/gl_anytree_list1.h (free_subtree): New function.
15621         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
15622         gl_tree_create_empty. Return NULL upon out-of-memory.
15623         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
15624         Change return type to 'int'. Return -1 upon out-of-memory.
15625         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
15626         out-of-memory.
15627         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
15628         (gl_tree_remove_node): New function, moved here from
15629         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
15630         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
15631         Update.
15632         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
15633         malloc, not xmalloc. Return NULL upon out-of-memory.
15634         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15635         out-of-memory.
15636         (gl_tree_remove_node_from_tree): New function, extracted from
15637         gl_tree_remove_node.
15638         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15639         upon out-of-memory.
15640         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15641         out-of-memory.
15642         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15643         upon out-of-memory.
15644         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15645         upon out-of-memory.
15646         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15647         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
15648         not xmalloc. Return NULL upon out-of-memory.
15649         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15650         out-of-memory.
15651         (gl_tree_remove_node_from_tree): New function, extracted from
15652         gl_tree_remove_node.
15653         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15654         upon out-of-memory.
15655         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15656         out-of-memory.
15657         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15658         upon out-of-memory.
15659         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15660         upon out-of-memory.
15661         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15662         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
15663         gl_anytree_list1.h before gl_anyavltree_list2.h.
15664         (gl_avltree_list_implementation): Update.
15665         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
15666         gl_anytree_list1.h before gl_anyavltree_list2.h.
15667         (gl_rbtree_list_implementation): Update.
15668         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
15669         Change return type to 'int'. Return -1 upon out-of-memory. Use
15670         __builtin_expect.
15671         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
15672         (gl_avltreehash_list_implementation): Update.
15673         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
15674         (gl_rbtreehash_list_implementation): Update.
15675         * modules/array-list (Depends-on): Remove xalloc.
15676         * modules/carray-list (Depends-on): Likewise.
15677         * modules/linked-list (Depends-on): Likewise.
15678         * modules/linkedhash-list (Depends-on): Likewise.
15679         * modules/avltree-list (Depends-on): Likewise.
15680         * modules/rbtree-list (Depends-on): Likewise.
15681         * modules/avltreehash-list (Depends-on): Likewise.
15682         * modules/rbtreehash-list (Depends-on): Likewise.
15683
15684         * modules/xsublist: New file.
15685         * lib/gl_xsublist.h: New file.
15686         * lib/gl_xsublist.c: New file.
15687         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
15688         (gl_sublist_nx_create): New declaration.
15689         * lib/gl_sublist.c: Don't include xalloc.h.
15690         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
15691         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
15692         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
15693         Change return type to 'int'. Return -1 upon out-of-memory.
15694         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
15695         upon out-of-memory.
15696         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
15697         NULL upon out-of-memory.
15698         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
15699         upon out-of-memory.
15700         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
15701         NULL upon out-of-memory.
15702         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
15703         NULL upon out-of-memory.
15704         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
15705         upon out-of-memory.
15706         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
15707         (gl_sublist_list_implementation): Update.
15708         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
15709         upon out-of-memory.
15710         * modules/sublist (Depends-on): Remove xalloc.
15711
15712         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
15713         * tests/test-carray_list.c: Likewise.
15714         * tests/test-linked_list.c: Likewise.
15715         * tests/test-linkedhash_list.c: Likewise.
15716         * tests/test-avltree_list.c: Likewise.
15717         * tests/test-rbtree_list.c: Likewise.
15718         * tests/test-avltreehash_list.c: Likewise.
15719         * tests/test-rbtreehash_list.c: Likewise.
15720         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
15721         * modules/carray-list-tests (Makefile.am): Likewise.
15722         * modules/linked-list-tests (Makefile.am): Likewise.
15723         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15724         * modules/avltree-list-tests (Makefile.am): Likewise.
15725         * modules/rbtree-list-tests (Makefile.am): Likewise.
15726         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15727         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15728
15729         * NEWS: Mention the changes.
15730
15731         * lib/clean-temp.c: Include gl_xlist.h.
15732         * modules/clean-temp (Depends-on): Add xlist.
15733
15734         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
15735         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
15736
15737         * tests/test-array_oset.c: Include gl_xlist.h.
15738         * modules/array-oset-tests (Depends-on): Add xlist.
15739
15740         Reported by José E. Marchesi <jemarch@gnu.org>.
15741
15742 2009-12-13  Bruno Haible  <bruno@clisp.org>
15743
15744         Move the malloc checking from module 'oset' to new module 'xoset'.
15745         * modules/xoset: New file.
15746         * lib/gl_xoset.h: New file.
15747         * lib/gl_xoset.c: New file.
15748         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
15749         declarations.
15750         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
15751         (struct gl_oset_implementation): Rename and change methods accordingly.
15752         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
15753         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15754         'int'. Mark as __warn_unused_result__.
15755         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
15756         gl_oset_create_empty.
15757         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15758         'int'.
15759         * lib/gl_array_oset.c: Don't include xalloc.h.
15760         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
15761         malloc, not xmalloc.
15762         (grow): Change return type to 'int'. Don't call xalloc_die.
15763         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
15764         to 'int'.
15765         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
15766         'int'.
15767         (gl_array_oset_implementation): Update.
15768         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
15769         gl_tree_create_empty.
15770         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
15771         'int'.
15772         * lib/gl_avltree_oset.c: Don't include xalloc.h.
15773         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15774         xmalloc.
15775         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15776         not xmalloc.
15777         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15778         xmalloc.
15779         (gl_avltree_oset_implementation): Update.
15780         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
15781         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15782         xmalloc.
15783         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15784         not xmalloc.
15785         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15786         xmalloc.
15787         (gl_rbtree_oset_implementation): Update.
15788         * modules/array-oset (Depends-on): Remove xalloc.
15789         * modules/avltree-oset (Depends-on): Likewise.
15790         * modules/rbtree-oset (Depends-on): Likewise.
15791         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
15792         * tests/test-avltree_oset.c: Likewise.
15793         * tests/test-rbtree_oset.c: Likewise.
15794         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15795         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
15796         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15797         * NEWS: Mention the change.
15798
15799 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
15800
15801         maint.mk: allow a project to override release-prep commands
15802         * top/maint.mk (alpha, beta, stable): Move release-preparatory
15803         commands into a new rule.
15804         (release-prep): New rule.
15805         (release-prep-hook): New overridable variable.
15806
15807 2009-12-13  Bruno Haible  <bruno@clisp.org>
15808
15809         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
15810
15811 2009-12-13  Jim Meyering  <meyering@redhat.com>
15812
15813         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
15814         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
15815
15816 2009-12-12  Bruno Haible  <bruno@clisp.org>
15817
15818         duplocale: Tweak.
15819         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
15820
15821 2009-12-12  Karl Berry  <karl@gnu.org>
15822
15823         * config/srclist.txt (strtoll.c): tab changes, no more sync.
15824
15825 2009-12-12  Bruno Haible  <bruno@clisp.org>
15826
15827         * m4/po.m4: Undo incorrect untabification.
15828
15829 2009-12-12  Bruno Haible  <bruno@clisp.org>
15830
15831         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
15832         * modules/c-strtod (Depends-on): Add locale.
15833         * modules/c-strtold (Depends-on): Likewise.
15834
15835 2009-12-12  Bruno Haible  <bruno@clisp.org>
15836
15837         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
15838
15839 2009-12-11  Eric Blake  <ebb9@byu.net>
15840
15841         setenv: relax requirement in light of POSIX ruling
15842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
15843         not NULL.
15844         * tests/test-setenv.c (main): Relax test.
15845         * tests/test-unsetenv.c (main): Likewise.
15846         * doc/posix-functions/setenv.texi (setenv): Document this.
15847         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15848
15849 2009-12-11  Bruno Haible  <bruno@clisp.org>
15850
15851         New module 'fd-safer-flag'.
15852         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
15853         * lib/dup-safer.c (dup_safer_flag): Remove function.
15854         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
15855         * lib/fd-safer.c (fd_safer_flag): Remove function.
15856         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
15857         * modules/cloexec (configure.ac): Drop indicator macro.
15858         * modules/fd-safer-flag: New file.
15859         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
15860         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
15861         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
15862
15863 2009-12-11  Bruno Haible  <bruno@clisp.org>
15864
15865         Tests for module 'nl_langinfo'.
15866         * modules/nl_langinfo-tests: New file.
15867         * tests/test-nl_langinfo.sh: New file.
15868         * tests/test-nl_langinfo.c: New file.
15869
15870         New module 'nl_langinfo'.
15871         * lib/nl_langinfo.c: New file.
15872         * m4/nl_langinfo.m4: New file.
15873         * modules/nl_langinfo: New file.
15874         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
15875
15876 2009-12-11  Bruno Haible  <bruno@clisp.org>
15877
15878         Tests for module 'langinfo'.
15879         * modules/langinfo-tests: New file.
15880         * tests/test-langinfo.c: New file.
15881
15882         New module 'langinfo'.
15883         * lib/langinfo.in.h: New file.
15884         * m4/langinfo_h.m4: New file.
15885         * modules/langinfo: New file.
15886         * doc/posix-headers/langinfo.texi: Mention the new module.
15887
15888 2009-12-11  Bruno Haible  <bruno@clisp.org>
15889
15890         * lib/config.charset: Untabify.
15891
15892 2009-12-11  Bruno Haible  <bruno@clisp.org>
15893
15894         * modules/unistd-safer (configure.ac): Drop indicator macro.
15895
15896 2009-12-11  Bruno Haible  <bruno@clisp.org>
15897
15898         Move pipe2-safer code to its own file.
15899         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
15900         * lib/pipe-safer.c (pipe2_safer): Remove function.
15901         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
15902         (Makefile.am): Add it to lib_SOURCES.
15903
15904 2009-12-10  Bruno Haible  <bruno@clisp.org>
15905
15906         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
15907
15908 2009-12-10  Bruno Haible  <bruno@clisp.org>
15909
15910         Declare which arguments expect non-NULL values, for GCC and clang.
15911         * build-aux/arg-nonnull.h: New file.
15912         * modules/arg-nonnull: New file.
15913         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
15914         (inet_ntop, inet_pton): Use it.
15915         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
15916         (closedir, dirfd, opendir, scandir, alphasort): Use it.
15917         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
15918         (open, openat): Use it.
15919         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
15920         (fnmatch): Use it.
15921         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
15922         (getopt, getopt_long, getopt_long_only): Use it.
15923         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
15924         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
15925         Use it.
15926         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
15927         (iconv_open): Use it.
15928         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
15929         (strtoimax, strtoumax): Use it.
15930         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
15931         (duplocale): Use it.
15932         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
15933         (frexp, frexpl): Use it.
15934         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
15935         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
15936         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
15937         (tsearch, tfind, tdelete, twalk): Use it.
15938         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
15939         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15940         sigpending): Use it.
15941         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
15942         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15943         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15944         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15945         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15946         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15947         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15948         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15949         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15950         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15951         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15952         Use it.
15953         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
15954         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
15955         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
15956         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
15957         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
15958         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
15959         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
15960         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
15961         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
15962         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
15963         strtoull, unsetenv): Use it.
15964         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
15965         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15966         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15967         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15968         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15969         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
15970         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
15971         (strcasecmp, strncasecmp): Use it.
15972         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
15973         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
15974         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
15975         rpl_setsockopt): Use it.
15976         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
15977         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
15978         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
15979         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
15980         (gettimeofday): Use it.
15981         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
15982         (times): Use it.
15983         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
15984         (uname): Use it.
15985         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
15986         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
15987         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
15988         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
15989         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
15990         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
15991         unlinkat, write): Use it.
15992         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
15993         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
15994         * lib/argv-iter.h: Include arg-nonnull.h.
15995         (_ATTRIBUTE_NONNULL_): Remove macro.
15996         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
15997         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
15998         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
15999         optimization.
16000         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16001         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16002         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16003         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16004         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16005         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16006         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16007         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16008         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16009         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16010         * modules/dirent (Depends-on): Add arg-nonnull.
16011         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16012         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16013         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16014         * modules/fnmatch (Depends-on): Add arg-nonnull.
16015         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16016         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16017         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16018         * modules/glob (Depends-on): Add arg-nonnull.
16019         (Makefile.am): Insert arg-nonnull.h into glob.h.
16020         * modules/iconv_open (Depends-on): Add arg-nonnull.
16021         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16022         * modules/inttypes (Depends-on): Add arg-nonnull.
16023         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16024         * modules/locale (Depends-on): Add arg-nonnull.
16025         (Makefile.am): Insert arg-nonnull.h into locale.h.
16026         * modules/math (Depends-on): Add arg-nonnull.
16027         (Makefile.am): Insert arg-nonnull.h into math.h.
16028         * modules/netdb (Depends-on): Add arg-nonnull.
16029         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16030         * modules/search (Depends-on): Add arg-nonnull.
16031         (Makefile.am): Insert arg-nonnull.h into search.h.
16032         * modules/signal (Depends-on): Add arg-nonnull.
16033         (Makefile.am): Insert arg-nonnull.h into signal.h.
16034         * modules/spawn (Depends-on): Add arg-nonnull.
16035         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16036         * modules/stdio (Depends-on): Add arg-nonnull.
16037         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16038         * modules/stdlib (Depends-on): Add arg-nonnull.
16039         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16040         * modules/string (Depends-on): Add arg-nonnull.
16041         (Makefile.am): Insert arg-nonnull.h into string.h.
16042         * modules/strings (Depends-on): Add arg-nonnull.
16043         (Makefile.am): Insert arg-nonnull.h into strings.h.
16044         * modules/sys_socket (Depends-on): Add arg-nonnull.
16045         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16046         * modules/sys_stat (Depends-on): Add arg-nonnull.
16047         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16048         * modules/sys_time (Depends-on): Add arg-nonnull.
16049         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16050         * modules/sys_times (Depends-on): Add arg-nonnull.
16051         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16052         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16053         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16054         * modules/time (Depends-on): Add arg-nonnull.
16055         (Makefile.am): Insert arg-nonnull.h into time.h.
16056         * modules/unistd (Depends-on): Add arg-nonnull.
16057         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16058         * modules/wchar (Depends-on): Add arg-nonnull.
16059         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16060         * modules/argv-iter (Depends-on): Add arg-nonnull.
16061         * tests/test-canonicalize.c (null_ptr): New function.
16062         (main): Use it.
16063         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16064         (main): Use it.
16065         * tests/test-memmem.c (null_ptr): New function.
16066         (main): Use it.
16067         Reported by Jim Meyering.
16068
16069 2009-12-10  Bruno Haible  <bruno@clisp.org>
16070
16071         Use spaces for indentation, not tabs.
16072         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16073         * m4/*.m4: Untabify.
16074         * build-aux/*.h: Untabify.
16075         * tests/**/*.[hc]: Untabify.
16076         * README: New section "Indent with spaces, not TABs", based on
16077         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16078         * NEWS: Mention the change.
16079
16080 2009-12-10  Bruno Haible  <bruno@clisp.org>
16081
16082         pty test: Fix link error.
16083         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16084         test_pty_LDADD.
16085
16086 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16087
16088         * modules/pty: New file.
16089         * modules/pty-tests: New file.
16090         * m4/pty.m4: New file.
16091         * tests/test-pty.c: New file.
16092         * doc/glibc-headers/pty.texi: Modified.
16093         * doc/glibc-functions/forkpty.texi: Modified.
16094         * doc/glibc-functions/openpty.texi: Modified.
16095
16096 2009-12-10  Bruno Haible  <bruno@clisp.org>
16097
16098         Avoid syntax error in C++ mode.
16099         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16100
16101 2009-12-10  Bruno Haible  <bruno@clisp.org>
16102
16103         Use sed with option -e.
16104         * gnulib-tool (func_version, func_emit_copyright_notice,
16105         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16106         option -e to sed.
16107         * modules/link-warning (Makefile.am): Likewise.
16108
16109 2009-12-10  Jim Meyering  <meyering@redhat.com>
16110
16111         mgetgroups: do not write bytes beyond end of malloc'd buffer
16112         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16113         username, we call getgroups with a one-element-shorter buffer,
16114         but still told it the length was original, max_n_groups.
16115
16116 2009-12-09  Eric Blake  <ebb9@byu.net>
16117
16118         cloexec: relax license
16119         * modules/cloexec (Maintainer): Add myself.
16120         (License): Use LGPL, not GPL.
16121
16122         link-warning: optimize generation
16123         * modules/link-warning (Makefile.am): Reduce process usage.
16124
16125 2009-12-09  Bruno Haible  <bruno@clisp.org>
16126
16127         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16128         workaround was added on 2009-11-17.
16129
16130 2009-12-09  Jim Meyering  <meyering@redhat.com>
16131             Bruno Haible  <bruno@clisp.org>
16132
16133         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16134         * modules/link-warning (Makefile.am): Make the comment-removing sed
16135         command more robust in the face of bootstrap-prepended comment lines.
16136
16137 2009-12-09  Bruno Haible  <bruno@clisp.org>
16138
16139         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16140         most one group.
16141
16142 2009-12-09  Simon Josefsson <simon@josefsson.org>
16143             Bruno Haible  <bruno@clisp.org>
16144
16145         * build-aux/link-warning.h: Add copyright notice.
16146         * modules/link-warning (Makefile.am): Generate link-warning.h from
16147         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16148         * NEWS: Mention change in link-warning module.
16149         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16150         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16151         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16152         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16153         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16154         * modules/math (Makefile.am): Add dependency to math.h.
16155         * modules/search (Makefile.am): Add dependency to search.h.
16156         * modules/signal (Makefile.am): Add dependency to signal.h.
16157         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16158         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16159         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16160         * modules/string (Makefile.am): Add dependency to string.h.
16161         * modules/strings (Makefile.am): Add dependency to strings.h.
16162         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16163         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16164         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16165         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16166         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16167         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16168         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16169         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16170         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16171
16172 2009-12-09  Bruno Haible  <bruno@clisp.org>
16173
16174         fchdir: Optimize away rpl_fstat when possible.
16175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16176         REPLACE_OPEN_DIRECTORY.
16177         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16178
16179 2009-12-09  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/fchdir.c: Update comment.
16182
16183 2009-12-09  Bruno Haible  <bruno@clisp.org>
16184
16185         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16186
16187 2009-12-08  Eric Blake  <ebb9@byu.net>
16188
16189         fchdir: avoid memory leak on re-registration.
16190         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16191
16192 2009-12-08  Jim Meyering  <meyering@redhat.com>
16193
16194         init.sh: avoid Solaris 10 /bin/sh portability problem
16195         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16196         sourced script:
16197           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16198           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16199           bar
16200         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16201         and two tests used that idiom.
16202         * tests/init.sh: Update suggested usage comments.
16203         (path_prepend_): New function, to be used in place
16204         of the --src-path=DIR option.
16205         (setup_): Move PATH-prepending code into path_prepend_.
16206         * tests/test-pread.sh: Adapt to new usage.
16207         * tests/test-xalloc-die.sh: Likewise.
16208
16209 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16210
16211         * doc/gnulib.texi (Glibc pty.h): Add.
16212         * doc/glibc-functions/forkpty.texi: Add.
16213         * doc/glibc-functions/openpty.texi: Add.
16214         Suggested by Bruno Haible.
16215
16216 2009-12-08  Eric Blake  <ebb9@byu.net>
16217
16218         fchdir: fix logic bugs
16219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16220         * tests/test-fchdir.c (main): Enhance test.
16221         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16222         is in use.
16223
16224         dup2: fix logic bugs
16225         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16226         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16227         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16228         exists.
16229         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16230
16231 2009-12-07  Eric Blake  <ebb9@byu.net>
16232
16233         unlink: fix m4 detection
16234         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16235
16236         unistd-safer: add unit test
16237         * modules/unistd-safer-tests: New file.
16238         * tests/test-dup-safer.c: Likewise.
16239         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16240         * tests/test-dup2.c (setmode): Likewise.
16241         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16242
16243         cloexec: preserve text vs. binary across dup_cloexec
16244         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16245         mode.
16246         * modules/dup2-tests (Depends-on): Add binary-io.
16247         * modules/cloexec-tests (Depends-on): Likewise.
16248         * tests/test-dup2.c (setmode, is_mode): New helpers.
16249         (main): Add tests that translation mode is preserved.
16250         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16251         Reported by Bruno Haible.
16252
16253         mgetgroups: reduce duplicate listings
16254         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16255         resulting array.
16256         * tests/test-chown.h (test_chown): Simplify client.
16257         * tests/test-lchown.h (test_lchown): Likewise.
16258
16259 2009-12-06  Bruno Haible  <bruno@clisp.org>
16260
16261         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16262         value.
16263
16264 2009-12-06  Bruno Haible  <bruno@clisp.org>
16265
16266         * lib/progname.c: Include stdio.h, stdlib.h.
16267         (set_program_name): Reject a NULL argument.
16268
16269 2009-12-05  Eric Blake  <ebb9@byu.net>
16270
16271         pipe2-safer: new module
16272         * modules/pipe2-safer: New file.
16273         * lib/unistd-safer.h (pipe2_safer): New prototype.
16274         * lib/unistd--.h (pipe2): New wrapper.
16275         * lib/pipe-safer.c (pipe2_safer): New function.
16276         * modules/pipe (Depends-on): Add pipe2-safer.
16277         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16278
16279         stdlib-safer: preserve cloexec flag for mkostemp[s]
16280         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16281         fd_safer_flag.
16282
16283         unistd-safer: allow preservation of cloexec status via flag
16284         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16285         prototypes.
16286         * lib/dup-safer.c (dup_safer_flag): New function.
16287         * lib/fd-safer.c (fd_safer_flag): Likewise.
16288         * modules/cloexec (configure.ac): Set witness.
16289
16290         test-dup2: enhance test
16291         * modules/dup2-tests (Depends-on): Add cloexec.
16292         * tests/test-dup2.c (main): Enhance test.
16293
16294         cloexec: add dup_cloexec
16295         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16296         header and comments.
16297         * lib/cloexec.c (set_cloexec_flag): Add comments.
16298         (dup_cloexec): New function, with mingw implementation borrowed
16299         from...
16300         * lib/w32spawn.h (dup_noinherit): ...here.
16301         * modules/execute (Depends-on): Add cloexec.
16302         * modules/pipe (Depends-on): Likewise.
16303         * modules/cloexec (Depends-on): Add dup2.
16304         * modules/cloexec-tests (Files): New file.
16305         * tests/test-cloexec.c: Likewise.
16306
16307         test-xalloc-die: fix test for mingw
16308         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16309         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16310         directory and .exe suffix off argv[0] output.
16311
16312         test-fseeko: fix test for mingw
16313         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16314         than undefining fseek, so test will pass on mingw.
16315
16316 2009-12-05  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/progname.h (set_program_name): Clarify specification.
16319         * lib/progname.c (set_program_name): Likewise.
16320         Reported by Jim Meyering.
16321
16322 2009-12-05  Jim Meyering  <meyering@redhat.com>
16323
16324         maint.mk: backslash-escape parens in default regexp
16325         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16326         backslash-escape the literal parentheses.
16327
16328         maint.mk: news-date-check: use grep -E
16329         * top/maint.mk (today): Define a Make variable, not a...
16330         (news-date-check): ...shell variable.
16331         (news-date-regexp): Use the Make variable.
16332         Use grep's -E option.  Change the failing diagnostic to mention
16333         the variable, $(news-date-regexp).
16334
16335 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16336
16337         maintainer-makefile: allow customization of NEWS entry format
16338         * top/maint.mk (news-date-regexp): New overridable variable.
16339         (news-date-check): Use it.
16340
16341 2009-12-04  Eric Blake  <ebb9@byu.net>
16342
16343         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16344         * lib/mgetgroups.h (xgetgroups): New prototype.
16345         * lib/mgetgroups.c (xgetgroups): New wrapper.
16346         (mgetgroups): Handle ENOSYS.
16347         * modules/mgetgroups (Depends-on): Add realloc.
16348         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16349
16350         mgetgroups: avoid argument promotion issues with -1
16351         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16352         for invalid gid_t.
16353         * tests/test-chown.h (getegid, test_chown): Likewise.
16354         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16355
16356 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16357
16358         exclude: Fix header file problems.
16359         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16360
16361 2009-12-01  Jim Meyering  <meyering@redhat.com>
16362
16363         fts: fts_open: do not let an empty string cause immediate failure
16364         This is required in support of GNU rm, for which the command
16365         "rm A '' B" must process and remove both A and B, in spite of
16366         the empty string argument.
16367         * lib/fts.c (fts_open): Do not let the presence of an empty string
16368         cause fts_open to fail immediately.  Most fts-using tools must be
16369         able to process all arguments, in order, and can be expected to
16370         diagnose such arguments themselves.
16371
16372 2009-11-30  Eric Blake  <ebb9@byu.net>
16373
16374         utimens: fix compilation error
16375         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16376         Declare variable at right scope.
16377
16378 2009-11-29  Jim Meyering  <meyering@redhat.com>
16379
16380         bootstrap: handle perl-5.11's changed --version output
16381         * build-aux/bootstrap (get_version): Handle perl separately,
16382         since perl-5.11's --version output is different.
16383
16384 2009-11-28  Jim Meyering  <meyering@redhat.com>
16385
16386         userspec: depend on the inttostr module, too
16387         * modules/userspec (Depends-on): Add inttostr.
16388
16389         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16390         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16391         number of MAXUID when it evaluates to (uid_t) -1.
16392         Likewise for group ID.  Reported by Matt McCutchen in
16393         <http://savannah.gnu.org/bugs/?28113>
16394
16395         userspec: reformat to use spaces, not TABs
16396         * lib/userspec.c: Expand TABs to spaces.
16397         Add Emacs' "indent-tabs-mode: nil" hint.
16398
16399 2009-11-27  Eric Blake  <ebb9@byu.net>
16400
16401         getopt-gnu: flush out another BSD bug
16402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16403         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16404         flush out BSD bug.
16405         * tests/test-getopt.h (test_getopt): End lists with NULL.
16406         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16407         (test_getopt_long_posix): Enhance test.
16408         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16409         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16410         getopt-gnu.
16411         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16412         Likewise.
16413
16414 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16415
16416         * modules/idpriv-droptemp-tests (Notice): Fix text.
16417
16418 2009-11-27  Jim Meyering  <meyering@redhat.com>
16419
16420         test-xalloc-die: avoid spurious failure due to libtool argv difference
16421         In a libtool-enabled project, this test would fail due to a difference
16422         in the emitted program name, e.g.,
16423         -test-xalloc-die: memory exhausted
16424         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16425         Use program to avoid that.
16426         * modules/xalloc-die-tests (Depends-on): Add progname.
16427         * tests/test-xalloc-die.c: Include progname.h".
16428         (program_name): Remove decl.
16429         (main): Call set_program_name.
16430         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16431
16432 2009-11-26  Richard Jones  <rjones@redhat.com>
16433
16434         w32sock: leave win32 error in place.
16435         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16436
16437 2009-11-26  Eric Blake  <ebb9@byu.net>
16438
16439         init.sh: suggest to use skip_ and fail_ functions in comments
16440         * tests/init.sh: Add a sentence.
16441
16442 2009-11-25  Bruno Haible  <bruno@clisp.org>
16443
16444         init.sh: add documentation in comments
16445         * tests/init.sh: Add some developer and user documentation.
16446
16447 2009-11-26  Jim Meyering  <meyering@redhat.com>
16448
16449         init.sh: accommodate even those who specify bogus srcdir manually
16450         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16451         configure-time tests to be sanitized, so that there is no need to
16452         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16453         (with no double quotes) suffices.  However, since tests may be
16454         invoked manually, and since you may explicitly set srcdir to the
16455         name of a directory containing spaces, do quote its uses here.
16456         * tests/test-pread.sh: Likewise.
16457         Suggested by Bruno Haible.
16458
16459         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16460         * tests/test-pread.sh: Write no data into the pipe, because
16461         test-pread actually reads none.  This avoids a diagnostic,
16462         "bash: echo: write error: Broken pipe", that arises in the unusual
16463         event something is ignoring SIGPIPE, and might be interpreted
16464         as some sort of failure.  Reported by Bruno Haible.
16465
16466 2009-11-25  Jim Meyering  <meyering@redhat.com>
16467
16468         test-pread: cover failure with ESPIPE and EINVAL
16469         * tests/test-pread.c (main): Test for failure, too.
16470         * tests/test-pread.sh: Invoke with stdin on a pipe.
16471         Suggested by Eric Blake.
16472
16473         pread: improvement and fix
16474         * modules/pread (Depends-on): Depend on lseek, for portability to
16475         e.g., mingw.  Suggested by Eric Blake.
16476         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
16477
16478         unistd.in.h: correct declaration of pread
16479         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
16480         Reported by Richard W.M. Jones.
16481
16482         test-pread.sh: distribute the test script
16483         * modules/pread-tests (Files): Include test-pread.sh.
16484
16485         test-pread.sh: clean up
16486         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
16487         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
16488         That is unnecessary, since it's always ".".
16489         Suggestion from Eric Blake.
16490
16491         test-pread.sh: make executable
16492         * tests/test-pread.sh: Set executable bit.
16493         Reported by Eric Blake.
16494
16495         correct typo in test-pread.sh
16496         * tests/test-pread.sh: Add #! line.
16497
16498         test pread
16499         * tests/test-pread.c: New file.
16500         * tests/test-pread.sh: Likewise.
16501         * modules/pread-tests: Likewise.
16502
16503         pread: new module
16504         * modules/pread: New file.
16505         * lib/unistd.in.h (pread): Define/declare.
16506         * lib/pread.c (pread): New file.
16507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
16508         * modules/unistd (Makefile.am): Substitute witnesses.
16509         * doc/posix-functions/pread.texi (pread): Update.
16510         * MODULES.html.sh: Add pread.
16511
16512 2009-11-25  Jim Meyering  <meyering@redhat.com>
16513
16514         tests/init.sh: new file to be used via most *.sh tests
16515         * tests/init.sh: New file.
16516
16517 2009-11-25  Eric Blake  <ebb9@byu.net>
16518
16519         utimens: work around older Linux failure with symlinks
16520         * lib/utimens.c (lutimensat_works_really): New variable.
16521         (fdutimens, lutimens): Use it to manage kernels that support
16522         nanosecond times on files, but not on symlinks.
16523         Reported by OndÅ™ej Vašík.
16524
16525         utimes: fix configure grammar
16526         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
16527
16528 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
16529
16530         regex: Fix fastmap for multibyte character ranges.
16531         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
16532         characters when a multibyte character range is included.
16533
16534 2009-11-22  Andy Wingo  <wingo@pobox.com>
16535
16536         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
16537         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
16538
16539 2009-11-24  Bruno Haible  <bruno@clisp.org>
16540
16541         doc: Most *_l functions exist in MacOS X 10.5.
16542         * doc/posix-functions/duplocale.texi: Update platforms list.
16543         * doc/posix-functions/freelocale.texi: Likewise.
16544         * doc/posix-functions/newlocale.texi: Likewise.
16545         * doc/posix-functions/uselocale.texi: Likewise.
16546         * doc/posix-functions/isalnum_l.texi: Likewise.
16547         * doc/posix-functions/isalpha_l.texi: Likewise.
16548         * doc/posix-functions/isblank_l.texi: Likewise.
16549         * doc/posix-functions/iscntrl_l.texi: Likewise.
16550         * doc/posix-functions/isdigit_l.texi: Likewise.
16551         * doc/posix-functions/isgraph_l.texi: Likewise.
16552         * doc/posix-functions/islower_l.texi: Likewise.
16553         * doc/posix-functions/isprint_l.texi: Likewise.
16554         * doc/posix-functions/ispunct_l.texi: Likewise.
16555         * doc/posix-functions/isspace_l.texi: Likewise.
16556         * doc/posix-functions/isupper_l.texi: Likewise.
16557         * doc/posix-functions/iswalnum_l.texi: Likewise.
16558         * doc/posix-functions/iswalpha_l.texi: Likewise.
16559         * doc/posix-functions/iswblank_l.texi: Likewise.
16560         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16561         * doc/posix-functions/iswctype_l.texi: Likewise.
16562         * doc/posix-functions/iswdigit_l.texi: Likewise.
16563         * doc/posix-functions/iswgraph_l.texi: Likewise.
16564         * doc/posix-functions/iswlower_l.texi: Likewise.
16565         * doc/posix-functions/iswprint_l.texi: Likewise.
16566         * doc/posix-functions/iswpunct_l.texi: Likewise.
16567         * doc/posix-functions/iswspace_l.texi: Likewise.
16568         * doc/posix-functions/iswupper_l.texi: Likewise.
16569         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16570         * doc/posix-functions/isxdigit_l.texi: Likewise.
16571         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
16572         * doc/posix-functions/strcasecmp_l.texi: Likewise.
16573         * doc/posix-functions/strcoll_l.texi: Likewise.
16574         * doc/posix-functions/strfmon_l.texi: Likewise.
16575         * doc/posix-functions/strftime_l.texi: Likewise.
16576         * doc/posix-functions/strncasecmp_l.texi: Likewise.
16577         * doc/posix-functions/strxfrm_l.texi: Likewise.
16578         * doc/posix-functions/tolower_l.texi: Likewise.
16579         * doc/posix-functions/toupper_l.texi: Likewise.
16580         * doc/posix-functions/towctrans_l.texi: Likewise.
16581         * doc/posix-functions/towlower_l.texi: Likewise.
16582         * doc/posix-functions/towupper_l.texi: Likewise.
16583         * doc/posix-functions/wcscoll_l.texi: Likewise.
16584         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16585         * doc/posix-functions/wctrans_l.texi: Likewise.
16586         * doc/posix-functions/wctype_l.texi: Likewise.
16587         * doc/glibc-functions/strptime_l.texi: Likewise.
16588         * doc/glibc-functions/strtod_l.texi: Likewise.
16589         * doc/glibc-functions/strtof_l.texi: Likewise.
16590         * doc/glibc-functions/strtol_l.texi: Likewise.
16591         * doc/glibc-functions/strtold_l.texi: Likewise.
16592         * doc/glibc-functions/strtoll_l.texi: Likewise.
16593         * doc/glibc-functions/strtoul_l.texi: Likewise.
16594         * doc/glibc-functions/strtoull_l.texi: Likewise.
16595         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16596         * doc/glibc-functions/wcstod_l.texi: Likewise.
16597         * doc/glibc-functions/wcstof_l.texi: Likewise.
16598         * doc/glibc-functions/wcstol_l.texi: Likewise.
16599         * doc/glibc-functions/wcstold_l.texi: Likewise.
16600         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16601         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16602         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16603
16604 2009-11-24  Bruno Haible  <bruno@clisp.org>
16605
16606         duplocale: Fix logic bug.
16607         * lib/duplocale.c: Don't include <langinfo.h>.
16608         (_NL_LOCALE_NAME): Remove macro.
16609         (rpl_duplocale): Use setlocale instead of nl_langinfo.
16610         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
16611
16612 2009-11-23  Jim Meyering  <meyering@redhat.com>
16613
16614         test-update-copyright: don't hard-code /usr/bin/perl
16615         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
16616         perl to print the current year.  Gilles Espinasse reported that
16617         the replaced use of perl was hard-coded as /usr/bin/perl.
16618
16619 2009-11-23  Bruno Haible  <bruno@clisp.org>
16620
16621         duplocale: Add support for glibc 2.3.x.
16622         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
16623
16624 2009-11-22  Bruno Haible  <bruno@clisp.org>
16625
16626         vasnprintf: Tiny optimization.
16627         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
16628         MacOS X.
16629
16630 2009-11-22  Bruno Haible  <bruno@clisp.org>
16631
16632         Tests for module 'duplocale'.
16633         * modules/duplocale-tests: New file.
16634         * tests/test-duplocale.c: New file.
16635
16636         New module 'duplocale'.
16637         * m4/duplocale.m4: New file.
16638         * lib/locale.in.h (duplocale): New declaration.
16639         * lib/duplocale.c: New file.
16640         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
16641         gl_LOCALE_H_DEFAULTS): New macros.
16642         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
16643         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
16644         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
16645         REPLACE_DUPLOCALE.
16646         * modules/duplocale: New file.
16647         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
16648
16649 2009-11-22  Bruno Haible  <bruno@clisp.org>
16650
16651         * modules/locale-tests (configure.ac): Test for newlocale function.
16652         * tests/test-locale.c: When the system has extended locale functions,
16653         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
16654
16655         locale: Make locale_t available when possible.
16656         * lib/locale.in.h: Include <xlocale.h> when it exists.
16657         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
16658         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
16659         * modules/locale (Depends-on): Add extensions.
16660         (Makefile.am): Also substitute HAVE_XLOCALE_H.
16661         * doc/posix-headers/locale.texi: Document the problem with locale_t.
16662
16663 2009-11-22  Bruno Haible  <bruno@clisp.org>
16664
16665         Add comments.
16666         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
16667         invocation.
16668         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
16669         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16670         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16671
16672 2009-11-22  Bruno Haible  <bruno@clisp.org>
16673
16674         error: account for the possibility of freopen (stdout).
16675         * lib/error.c: Include <unistd.h>.
16676         (flush_stdout): New function, extracted from error and error_at_line.
16677         Determine stdout's fd dynamically.
16678         (error, error_at_line): Invoke flush_stdout.
16679         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
16680         * modules/error (Depends-on): Add unistd.
16681
16682 2009-11-22  Bruno Haible  <bruno@clisp.org>
16683
16684         diffseq: Add comment.
16685         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
16686
16687 2009-11-22  Jim Meyering  <meyering@redhat.com>
16688
16689         c-stack: avoid defining an unused static function
16690         * lib/c-stack.c (find_stack_direction): Do not define this function
16691         when it will not be used.
16692
16693         diffseq: avoid spurious gcc warnings
16694         * lib/diffseq.h (IF_LINT2): Define.
16695         (compareseq): Use it to initialize two members of "part".
16696         This avoids two used-uninitialized warnings.
16697
16698 2009-11-21  Jim Meyering  <meyering@redhat.com>
16699
16700         c-stack: avoid "ignoring return value of `write'" warning
16701         * lib/c-stack.c: Include "ignore-value.h".
16702         (die): Explicitly ignore each write return value.
16703         * modules/c-stack (Depends-on): Add ignore-value.
16704
16705 2009-11-21  Bruno Haible  <bruno@clisp.org>
16706
16707         diffseq: reduce scope of variable 'best'.
16708         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
16709         variable, earlier used for two different purposes.
16710
16711 2009-11-21  Jim Meyering  <meyering@redhat.com>
16712
16713         diffseq: remove useless assignment to "best"
16714         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
16715         assignment.  At that point "best" is already guaranteed to be zero.
16716
16717 2009-11-20  Eric Blake  <ebb9@byu.net>
16718
16719         build: mention ftp redirector in release announcements
16720         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
16721         values that used to come from cfg.mk; mention FTP redirect URL.
16722         * build-aux/announce-gen: Mention the mirror list.
16723         Suggested by Karl Berry.
16724
16725         nanosleep: improve port to mingw
16726         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
16727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
16728         LIB_NANOSLEEP, but only when needed.
16729         * modules/select (Link): Document LIBSOCKET.
16730         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
16731         enough.
16732
16733         nanosleep: work around cygwin bug
16734         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
16735         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
16736         bug.
16737         (getnow): Delete, not needed.
16738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
16739         LIB_CLOCK_GETTIME.
16740         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
16741         clock-time, gettime.
16742         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
16743         bug.
16744         * modules/nanosleep-tests: New test.
16745         * tests/test-nanosleep.c: New file.
16746
16747         sleep: work around cygwin bug
16748         * lib/sleep.c (rpl_sleep): Work around the bug.
16749         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
16750         (gl_PREREQ_SLEEP): Delete unused macro.
16751         * modules/sleep (Depends-on): Add verify.
16752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16753         * modules/unistd (Makefile.am): Substitute witness.
16754         * lib/unistd.in.h (sleep): Update prototype.
16755         * doc/posix-functions/sleep.texi (sleep): Document the bug.
16756         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
16757         * modules/sleep-tests (Depends-on): Check for alarm.
16758
16759 2009-11-20  Jim Meyering  <meyering@redhat.com>
16760
16761         maint.mk: improve sc_prohibit_magic_number_exit
16762         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
16763         so it does not match uses like System.exit(1).
16764         Add comments showing how to correct all offenders.
16765
16766 2009-11-19  Eric Blake  <ebb9@byu.net>
16767
16768         xalloc-die-tests: add missing library
16769         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
16770
16771         test-xvasprintf: silence compiler warnings
16772         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
16773         empty string from gcc.
16774
16775 2009-11-19  Jim Meyering  <meyering@redhat.com>
16776
16777         xfreopen: new module, from coreutils
16778         * modules/xfreopen: New module.
16779         * lib/xfreopen.c: New file.
16780         * lib/xfreopen.h: New file.
16781         * MODULES.html.sh (File stream based Input/Output"): Add it.
16782
16783 2009-11-19  Eric Blake  <ebb9@byu.net>
16784
16785         manywarnings: depend on warnings
16786         * modules/manywarnings (Depends-on): Add warnings.
16787
16788         build: avoid compiler warnings
16789         * lib/select.c (rpl_select): Delete unused variable.
16790         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
16791
16792 2009-11-18  Eric Blake  <ebb9@byu.net>
16793
16794         tests: avoid false negative with --with-packager
16795         * tests/test-version-etc.sh: Discard packager information.
16796         * tests/test-argp-version-etc-1.sh: Likewise.
16797         Reported by Mike Frysinger.
16798
16799         utimens: fix regression on Solaris
16800         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
16801         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
16802         can only change fd timestamps via futimesat.  Instead, use an
16803         additional witness macro to avoid BSD bug.
16804         Reported by Jim Meyering.
16805
16806 2009-11-17  Eric Blake  <ebb9@byu.net>
16807
16808         usleep: use it to simplify tests
16809         * modules/stat-time-tests (Depends-on): Add usleep.
16810         (configure.ac): Drop usleep check.
16811         * modules/chown-tests (Depends-on, configure.ac): Likewise.
16812         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
16813         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
16814         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
16815         * modules/openat-tests (Depends-on, configure.ac): Likewise.
16816         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
16817         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
16818         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
16819         Likewise.
16820         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
16821         * tests/test-lchown.h (nap): Likewise.
16822         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
16823         * tests/test-stat-time.c (nap): Likewise.
16824         * tests/test-utimens-common.h (nap): Update comments.
16825
16826         usleep: new module
16827         * modules/usleep: New file.
16828         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
16829         * lib/usleep.c (usleep): Likewise.
16830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16831         * modules/unistd (Makefile.am): Substitute witnesses.
16832         * lib/unistd.in.h (usleep): Add declaration.
16833         * doc/pastposix-functions/usleep.texi (usleep): Document this.
16834         * MODULES.html.sh (Date and time): Likewise.
16835         * modules/usleep-tests (Depends-on): New test.
16836         * tests/test-usleep.c: New file.
16837
16838         chown: work around OpenBSD bug
16839         * lib/chown.c (rpl_chown): Work around the bug.
16840         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
16841         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
16842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
16843         * modules/chown (Depends-on): Add stdbool.
16844         * modules/lchown (Depends-on): Likewise.
16845         * doc/posix-functions/chown.texi (chown): Document the bug.
16846         * doc/posix-functions/lchown.texi (lchown): Likewise.
16847         * tests/test-lchown.h (test_chown): Relax test.
16848
16849         mkstemp: avoid conflict with C++ keyword template
16850         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
16851         * lib/mkostemp.c (mkostemp): Likewise.
16852         * lib/mkostemps.c (mkostemps): Likewise.
16853         * lib/mkstemp.c (mkstemp): Likewise.
16854         * lib/mkstemps.c (mkstemps): Likewise.
16855
16856         xalloc-die-tests: optimize
16857         * tests/test-xalloc-die.sh: Reduce number of processes.
16858
16859 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16860
16861         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
16862         patch from ludo@gnu.org (Ludovic Courtès).
16863
16864 2009-11-17  Jim Meyering  <meyering@redhat.com>
16865
16866         version-etc: use proper license string
16867         * modules/version-etc (License): Use LGPL, not LGPLv3+.
16868         * modules/version-etc-fsf: Likewise.
16869
16870 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16871
16872         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
16873         printed to stdout.  Deal with EOL differences.
16874
16875 2009-11-17  Eric Blake  <ebb9@byu.net>
16876
16877         unsetenv: work around Solaris bug
16878         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
16879         * lib/unsetenv.c (rpl_unsetenv): Work around it.
16880         Reported by Jim Meyering.
16881
16882         vasnprintf: avoid compiler warnings
16883         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
16884         variables.
16885         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
16886
16887 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16888
16889         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
16890         settings since xalloc-die is no longer the self test,
16891         xalloc-die.sh is.
16892
16893 2009-11-17  Jim Meyering  <meyering@redhat.com>
16894
16895         test-xalloc-die.sh: make the code agree with the commit log
16896         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
16897         at the end, just in case you happen to have a test-xalloc-die
16898         program in some other PATH directory.
16899
16900         test-xalloc-die.sh: fix a portability bug
16901         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
16902         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
16903         Otherwise, argv[0] (as often seen in diagnostics) would be too
16904         system-dependent, sometimes with, and sometimes without the leading "./".
16905
16906         version-etc-fsf: relax license to LGPLv3+
16907         * modules/version-etc-fsf (License): Relax license.
16908
16909 2009-11-16  Eric Blake  <ebb9@byu.net>
16910
16911         xalloc-die-tests: avoid printing null pointer
16912         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
16913         shell script.
16914         * tests/test-xalloc-die.c (program_name): Declare.
16915         * tests/test-xalloc-die.sh (tmpfiles): New file.
16916
16917         setenv, unsetenv: work around various bugs
16918         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
16919         (setenv) [HAVE_SETENV]: Work around bugs.
16920         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
16921         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
16922         for bugs.
16923         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
16924         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
16925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
16926         * modules/stdlib (Makefile.am): Update substitutions.
16927         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
16928         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
16929         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16930         * modules/setenv-tests: New test.
16931         * modules/unsetenv-tests: Likewise.
16932         * tests/test-setenv.c: New file.
16933         * tests/test-unsetenv.c: Likewise.
16934
16935 2009-11-16  Jim Meyering  <meyering@redhat.com>
16936
16937         version-etc: relax license to LGPLv3+
16938         * modules/version-etc (License): Relax license.
16939
16940         better AC_REQUIRE expanded-before-required-warning avoidance
16941         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
16942         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
16943         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
16944         which is no longer needed.
16945
16946 2009-11-16  Eric Blake  <ebb9@byu.net>
16947
16948         test-freading: clean up temporary file
16949         * tests/test-freading.c (main): Remove file on success, and use
16950         ASSERT more liberally.
16951         Reported by Jim Meyering.
16952
16953 2009-11-16  Jim Meyering  <meyering@redhat.com>
16954
16955         avoid new AC_REQUIRE expanded-before-required warnings
16956         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
16957         merely using it.
16958         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
16959         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
16960
16961 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16962
16963         * tests/test-xalloc-die.c: New file.
16964         * modules/xalloc-die-tests: New file.
16965         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
16966         XFAIL_TESTS so it can be appended by modules.
16967
16968 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16969
16970         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
16971         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
16972
16973 2009-11-14  Eric Blake  <ebb9@byu.net>
16974
16975         fnmatch: avoid compiler warning
16976         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
16977         to silence compiler warning about mismatch signedness in ?:.
16978         Reported by Robert Millan.
16979
16980         intprops: add double-inclusion guard
16981         * lib/intprops.h: Allow idempotent includes.
16982         Suggested by Bruce Korb.
16983
16984         openat: detect Solaris fchownat bug
16985         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
16986         penalizing glibc chownat when only lchownat is broken.
16987         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
16988         trailing slash bugs.
16989         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
16990         * modules/openat-tests (Files): Include more files.
16991         (Depends-on): Add mgetgroups, sleep, stat-time.
16992         (configure.ac): Add additional checks.
16993         (Makefile.am): Build new test.
16994         * tests/test-fchownat.c: New file.
16995
16996         lchown: detect Solaris and FreeBSD bug
16997         * lib/lchown.c (rpl_lchown): Work around bug.
16998         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
16999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17000         * modules/unistd (Makefile.am): Populate it.
17001         * lib/unistd.in.h (lchown): Update declaration.
17002         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17003         * modules/lchown-tests: New file.
17004         * tests/test-lchown.h (test_lchown): Likewise.
17005         * tests/test-lchown.c (main): Likewise.
17006
17007         chown: detect Solaris and FreeBSD bug
17008         * lib/chown.c (rpl_chown): Work around bug.
17009         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17010         (gl_PREREQ_CHOWN): Delete.
17011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17012         * modules/unistd (Makefile.am): Populate it.
17013         * lib/unistd.in.h (chown): Update declaration.
17014         * lib/lchown.c (chown): Update client.
17015         * modules/lchown (Depends-on): Add lstat.
17016         * doc/posix-functions/chown.texi (chown): Document the bug.
17017         * doc/posix-functions/getgroups.texi (getgroups): Document
17018         getgroups pitfall.
17019         * modules/chown-tests: New file.
17020         * tests/test-chown.h (test_chown): Likewise.
17021         * tests/test-chown.c (main): Likewise.
17022
17023 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17024
17025         gnulib-tool: correctly detect absence of m4 directories
17026         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17027
17028 2009-11-14  Jim Meyering  <meyering@redhat.com>
17029
17030         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17031         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17032
17033 2009-11-14  John W. Eaton  <jwe@gnu.org>
17034
17035         strftime.h: wrap funtion declaration in extern "C" block
17036         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17037
17038 2009-11-13  Eric Blake  <ebb9@byu.net>
17039
17040         getgroups: avoid compiler warning
17041         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17042
17043         getgroups: work around FreeBSD bug
17044         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17045         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17046         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17047         * tests/test-getgroups.c (main): Fix buffer overrun.
17048
17049         getgroups: avoid compilation failure
17050         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17051         * modules/getgroups (Depends-on): Add stdint.
17052
17053 2009-11-13  Jim Meyering  <meyering@redhat.com>
17054
17055         test-getgroups: avoid compilation failure
17056         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17057
17058 2009-11-13  Eric Blake  <ebb9@byu.net>
17059
17060         mgetgroups: new module, taken from coreutils
17061         * modules/mgetgroups: New file.
17062         * lib/mgetgroups.h: Likewise.
17063         * lib/mgetgroups.c (mgetgroups): Likewise.
17064         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17065         * MODULES.html.sh (Users and groups): Mention it.
17066
17067         getgroups: don't expose GETGROUPS_T to user
17068         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17069         an element at a time if GETGROUPS_T is wrong size.
17070         * lib/getugroups.h (getugroups): Change signature.
17071         * lib/unistd.in.h (getgroups): Likewise.
17072         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17073         signature needs fixing.
17074         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17075         AC_TYPE_GETGROUPS.
17076         * modules/group-member (Depends-on): Add getgroups.
17077         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17078         (group_member): Rely on getgroups replacement.
17079         * lib/getugroups.c (getugroups): Use gid_t.
17080         * tests/test-getgroups.c (main): Likewise.
17081         * NEWS: Mention the signature change.
17082         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17083         problem with signature.
17084         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17085         GETGROUPS_T is still useful for setgroups.
17086
17087         getgroups, getugroups: provide stubs for mingw
17088         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17089         * lib/getugroups.c (getugroups): Likewise.
17090         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17091         function.  Modernize replacement scheme.
17092         (gl_PREREQ_GETGROUPS): Delete.
17093         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17094         * modules/getgroups (configure.ac): Declare witness.
17095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17096         * modules/unistd (Depends-on): Substitute witness.
17097         * lib/unistd.in.h (getgroups): Declare replacement.
17098
17099         getgroups: avoid calling exit
17100         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17101         drop xalloc.
17102         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17103         dependencies.
17104         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17105         exiting, in the rare case of malloc failure.
17106
17107         getgroups: fix logic error
17108         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17109         has more than 20 groups.
17110         * modules/getgroups-tests: New test.
17111         * tests/test-getgroups.c: New file.
17112
17113 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17114
17115         * tests/test-base64.c: Improve.
17116
17117 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17118
17119         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17120         Blake <ebb9@byu.net>.
17121
17122 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17123
17124         * tests/test-xvasprintf.c: Add %s%s related checks.
17125
17126 2009-11-12  Eric Blake  <ebb9@byu.net>
17127
17128         version-etc: match standards.texi style
17129         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17130         and use <> only for URLs.
17131
17132 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17133
17134         fts: do not fail on a submount during traversal
17135         * lib/fts.c (fts_build): Read the stat info again after opening
17136         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17137         Original report at http://bugzilla.redhat.com/501848.
17138
17139 2009-11-12  Jim Meyering  <meyering@redhat.com>
17140
17141         bootstrap: sync from coreutils
17142         * build-aux/bootstrap (bootstrap_epilogue): New function.
17143         Use git_modules_config in one more place.  This make bootstrap's
17144         --gnulib-srcdir option more useful for testing.
17145
17146         bootstrap: generalize autoheader check
17147         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17148         AC_CONFIG_HEADERS.
17149
17150 2009-11-11  Eric Blake  <ebb9@byu.net>
17151
17152         mkfifoat: use new modules for Solaris and BSD bugs
17153         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17154         * lib/mkfifoat.c (mknodat): Split...
17155         * lib/mknodat.c (mknodat): ...into new file.
17156         * modules/mkfifoat (Files): Ship new file.
17157         (Depends-on): Add mkfifo, mknod.
17158         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17159         (Depends-on): Add symlink.
17160         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17161         redundant with test_mkfifo.h.
17162         (do_mkfifoat, do_mknodat): New helpers.
17163
17164         mknod: new module
17165         * modules/mknod: New file.
17166         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17167         * lib/mknod.c (mknod): Likewise.
17168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17169         defaults.
17170         * modules/sys_stat (Makefile.am): Substitute them.
17171         * lib/sys_stat.in.h (mknod): Declare replacement.
17172         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17173         Document it.
17174         * doc/posix-functions/mknod.texi (mknod): Likewise.
17175         * modules/mknod-tests: New test.
17176         * tests/test-mknod.c: Likewise.
17177
17178         mkfifo: new module
17179         * modules/mkfifo: New file.
17180         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17181         * lib/mkfifo.c (mkfifo): Likewise.
17182         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17183         defaults.
17184         * modules/sys_stat (Makefile.am): Substitute them.
17185         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17186         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17187         Document it.
17188         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17189         * modules/mkfifo-tests: New test.
17190         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17191         from test-mkfifoat.c.
17192         * tests/test-mkfifo.c: New file.
17193
17194         readlink: detect FreeBSD bug
17195         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17196         slash on symlink.
17197         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17198         * tests/test-readlink.h (test_readlink): Enhance test.
17199
17200         symlink: detect FreeBSD bug
17201         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17202         slash on symlink.
17203         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17204         * tests/test-symlink.h (test_symlink): Enhance test.
17205
17206 2009-11-10  Eric Blake  <ebb9@byu.net>
17207
17208         link: detect FreeBSD bug
17209         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17210         symlink.
17211         * doc/posix-functions/link.texi (link): Document the bug.
17212         * tests/test-link.h (test_link): Enhance test.
17213         * tests/test-linkat.c (main): Update caller.
17214
17215         unlink, remove: detect FreeBSD bug
17216         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17217         slash on symlink.
17218         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17219         * doc/posix-functions/remove.texi (remove): Likewise.
17220         * tests/test-unlink.h (test_unlink): Enhance test.
17221         * tests/test-remove.c (main): Likewise.
17222
17223 2009-11-09  Eric Blake  <ebb9@byu.net>
17224
17225         rename: detect FreeBSD bug
17226         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17227         slash on symlink.
17228         * modules/renameat-tests (Depends-on): Add filenamecat.
17229         * tests/test-rename.h (test_rename): Allow one more errno.
17230         * tests/test-renameat.c (main): Likewise.
17231         * doc/posix-functions/rename.texi (rename): Document the bug.
17232
17233         open: detect FreeBSD bug
17234         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17235         symlink.
17236         * doc/posix-functions/open.texi (open): Document the bug.
17237         * doc/posix-functions/utimes.texi (utimes): Likewise.
17238         * tests/test-open.h (test_open): Add parameters, and test symlink
17239         handling.
17240         * tests/test-open.c (main): Adjust caller.
17241         * tests/test-fcntl-safer.c (main): Likewise.
17242         * modules/open-tests (Depends-on): Add stdbool, symlink.
17243         * modules/fcntl-safer-tests (Depends-on): Likewise.
17244         * tests/test-openat.c (main): Add test-open tests.
17245
17246         stat: detect FreeBSD bug
17247         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17248         symlink.
17249         * doc/posix-functions/stat.texi (stat): Document the bug.
17250         * tests/test-stat.h (test_stat_func): Add argument.
17251         * tests/test-stat.c (main): Adjust caller.
17252         * tests/test-fstatat.c (main): Likewise.
17253         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17254         Reported by Jim Meyering.
17255
17256 2009-11-09  James Youngman  <jay@gnu.org>
17257
17258         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17259         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17260
17261 2009-11-08  Jim Meyering  <meyering@redhat.com>
17262
17263         utimens: remove invalid futimesat call
17264         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17265         It used the file descriptor of the target file as the DIR_FD
17266         parameter and NULL as the file name.  That caused failure with
17267         errno == EFAULT on FreeBSD-8.0-rc2
17268
17269 2009-11-07  Eric Blake  <ebb9@byu.net>
17270
17271         fflush, freadseek: use fseeko, not fseek
17272         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17273         (clear_ungetc_buffer): Avoid potential problems on large files.
17274         * lib/freadseek.c (freadseek): Likewise.
17275         * modules/freadseek (Depends-on): Add fseeko.
17276         * modules/fseek (configure.ac): Set a witness.
17277         * tests/test-fflush.c (main): Use fseeko.
17278         * tests/test-fpurge.c (fseek): Disable link warning.
17279         * tests/test-freadable.c (fseek): Likewise.
17280         * tests/test-freading.c (fseek): Likewise.
17281         * tests/test-fseeko.c (fseek): Likewise.
17282         * tests/test-ftell.c (fseek): Likewise.
17283         * tests/test-ftello.c (fseek): Likewise.
17284         * tests/test-fwritable.c (fseek): Likewise.
17285         * tests/test-fwriting.c (fseek): Likewise.
17286
17287 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17288
17289         * modules/memchr (Depends-on): Drop getpagesize dependency.
17290
17291 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17292
17293         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17294         Reported by Ludovic Courtès.
17295         * build-aux/pmccabe2html: Improve example usage.
17296         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17297
17298 2009-11-06  Jim Meyering  <meyering@redhat.com>
17299
17300         do-release-commit-and-tag: New module.
17301         Automate the release-commit and tag process.
17302         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17303         * modules/do-release-commit-and-tag: New file.
17304         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17305
17306 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17307
17308         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17309         because test-select.c uses inet_pton.
17310
17311 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17312
17313         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17314         GETADDRINFO_LIB.  Bump serial number.
17315         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17316         Suggested by Eric Blake <ebb9@byu.net>.
17317
17318 2009-11-05  Eric Blake  <ebb9@byu.net>
17319
17320         strtod: detect darwin bug
17321         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17322         Reported by Leo Davis.
17323
17324         freopen-safer: new module
17325         * modules/freopen-safer: New module.
17326         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17327         * lib/freopen-safer.c (freopen_safer): New file.
17328         * lib/stdio-safer.h (freopen_safer): New declaration.
17329         * lib/stdio--.h (freopen): New override.
17330         * MODULES.html.sh (File stream based Input/Output): Mention it.
17331         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17332         freopen-safer module.
17333         * doc/posix-functions/stderr.texi (stderr): Likewise.
17334         * doc/posix-functions/stdin.texi (stdin): Likewise.
17335         * doc/posix-functions/stdout.texi (stdout): Likewise.
17336         * modules/freopen-safer-tests: New test.
17337         * tests/test-reopen-safer.c: New file.
17338
17339 2009-11-05  Jim Meyering  <meyering@redhat.com>
17340
17341         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17342         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17343
17344 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17345
17346         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17347
17348 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17349
17350         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17351
17352 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17353
17354         Fix link error.
17355         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17356         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17357
17358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17359
17360         * tests/test-func.c: Also test value of __func__.
17361
17362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17363
17364         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17365         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17366
17367 2009-11-05  Bruno Haible  <bruno@clisp.org>
17368
17369         Fix link error.
17370         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17372         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17373
17374 2009-11-05  Bruno Haible  <bruno@clisp.org>
17375
17376         Tests for module 'inet_pton'.
17377         * modules/inet_pton-tests: New file.
17378         * tests/test-inet_pton.c: New file.
17379
17380 2009-11-05  Bruno Haible  <bruno@clisp.org>
17381
17382         Tests for module 'inet_ntop'.
17383         * modules/inet_ntop-tests: New file.
17384         * tests/test-inet_ntop.c: New file.
17385
17386 2009-11-04  Eric Blake  <ebb9@byu.net>
17387
17388         stdlib-safer: wrap all mkstemp variants
17389         * modules/mkostemp (configure.ac): Set witness.
17390         * modules/mkostemps (configure.ac): Likewise.
17391         * modules/mkstemps (configure.ac): Likewise.
17392         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17393         (mkstemps_safer): Wrap more functions.
17394         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17395         wrapping.
17396         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17397         (mkstemps_safer): Implement the wrappers.
17398
17399         mkstemps, mkostemps: new modules
17400         * modules/mkostemps: New module.
17401         * modules/mkstemps: Likewise.
17402         * lib/mkostemps.c (mkostemps): New file.
17403         * lib/mkstemps.c (mkstemps): Likewise.
17404         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17405         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17407         * modules/stdlib (Makefile.am): Substitute them.
17408         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17409         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17410         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17411         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17412         * MODULES.html.sh (File system functions): Mention them.
17413
17414         tempname: resync from glibc
17415         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17416         same values for __GT_FILE as glibc.  Abort even when assertions
17417         are disabled.
17418         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17419         match its value otherwise.  Allow idempotent inclusion.
17420         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17421         * lib/mkostemp.c (mkostemp): Likewise.
17422         * lib/mkstemp.c (mkstemp): Likewise.
17423         * lib/tmpfile.c (tmpfile): Likewise.
17424         * NEWS: Document this.
17425
17426         utimens: fix use of futimens on older Linux
17427         * lib/utimens.c (fdutimens): Use updated, rather than original,
17428         timespec to avoid bug in older Linux kernel.
17429         Reported by Simon Josefsson.
17430
17431 2009-11-04  Bruno Haible  <bruno@clisp.org>
17432
17433         Make num_processors more flexible and consistent.
17434         * lib/nproc.h (enum nproc_query): New type.
17435         (num_processors): Add a 'query' argument.
17436         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17437         (num_processors): Add a 'query' argument. Test the value of the
17438         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17439         mingw, count the number of CPUs available for the current process.
17440         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17441         Check for sched_getaffinity and sched_getaffinity_np.
17442         * modules/nproc (Depends-on): Add c-ctype, extensions.
17443         * NEWS: Mention the change.
17444
17445 2009-11-03  Bruno Haible  <bruno@clisp.org>
17446
17447         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17448
17449 2009-11-03  Jim Meyering  <meyering@redhat.com>
17450
17451         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17452         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17453         if it is defined.
17454
17455 2009-11-02  Eric Blake  <ebb9@byu.net>
17456
17457         mktime, timegm: share common declaration
17458         * lib/mktime-internal.h: New file.
17459         * lib/mktime.c: Use it rather than open-coding a declaration.
17460         * lib/timegm.c: Likewise.
17461         * modules/mktime (Files): Ship it.
17462         * modules/timegm (Files): Likewise.
17463         Suggested by Bruno Haible.
17464
17465         test-update-copyright: update test to match script changes
17466         * tests/test-update-copyright.sh: Avoid hard-coding perl
17467         location.  Don't update *.bak created by earlier runs.
17468
17469 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17470             Simon Josefsson  <simon@josefsson.org>
17471             Bruno Haible  <bruno@clisp.org>
17472
17473         Fix link error on Solaris 8.
17474         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
17475         also in libnsl. Define also INET_PTON_LIB.
17476         * modules/inet_pton (Link): New section.
17477
17478 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17479             Bruno Haible  <bruno@clisp.org>
17480
17481         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
17482         * modules/inet_ntop (Link): New section.
17483         Reported by Boyan Kasarov <bkasarov@gmail.com>.
17484
17485 2009-11-02  Eric Blake  <ebb9@byu.net>
17486
17487         maint: avoid compiler warnings in m4 macros
17488         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
17489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
17490
17491 2009-11-02  Simon Josefsson  <simon@josefsson.org>
17492
17493         * m4/pmccabe2html.m4: Remove file.
17494         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
17495         function.  Change maintainer.
17496         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
17497         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
17498         Courtès).
17499
17500 2009-10-31  Eric Blake  <ebb9@byu.net>
17501
17502         fseeko: fix m4 regression
17503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
17504         regression from 2009-10-27.
17505         Reported by Ralf Wildenhues.
17506
17507 2009-10-31  Jim Meyering  <meyering@redhat.com>
17508
17509         inttostr: aesthetics and improved (compile-time) safety
17510         Define inttype_is_signed rather than inttype_is_unsigned,
17511         since the sole use is via "#if inttype_is_signed".
17512         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
17513         inttype_is_unsigned.
17514         * lib/offtostr.c (inttype_is_signed): Likewise.
17515         * lib/uinttostr.c (inttype_is_signed): Likewise.
17516         * lib/umaxtostr.c (inttype_is_signed): Likewise.
17517         * lib/inttostr.c (inttostr): Use verify to cross-check the
17518         inttype_is_signed value and the signedness of the actual type.
17519         * modules/inttostr (Depends-on): Add verify.
17520
17521 2009-10-30  Eric Blake  <ebb9@byu.net>
17522
17523         build: avoid compiler warnings
17524         * lib/fchmodat.c (lchmod): Mark unused variables.
17525         * lib/getopt.c (_getopt_initialize): Likewise.
17526         * lib/mktime.c (__mktime_internal): Provide prototype.
17527         * lib/inttostr.c (inttostr): Avoid compiler warning even with
17528         older gcc that do not understand #pragma GCC diagnostic.
17529         * lib/uinttostr.c (inttype_is_unsigned): Define.
17530         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
17531
17532 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17533
17534         stat: fix compilation on AIX
17535         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
17536         only see struct stat64.
17537
17538 2009-10-30  Eric Blake  <ebb9@byu.net>
17539
17540         exclude: make more robust
17541         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
17542         rather than masking a coding bug.
17543         Suggested by Bruno Haible.
17544
17545 2009-10-30  Jim Meyering  <meyering@redhat.com>
17546
17547         perl scripts: remove #!/usr/bin/perl in favor of more portable...
17548         Rather than putting #!/usr/bin/perl on the first line,
17549         start with a variant of what's recommended by "man perlrun" that
17550         invokes the first "perl" program from your shell's search path.
17551         * build-aux/gitlog-to-changelog: Replace #!... as above.
17552         Add a "Local Variables" perl mode setting.
17553         Prompted by a patch from Ludovic Courtès.
17554         Improved by Eric Blake.
17555         * build-aux/useless-if-before-free: Likewise.
17556         * build-aux/announce-gen: Likewise.
17557         * build-aux/update-copyright: Likewise.
17558
17559 2009-10-29  Eric Blake  <ebb9@byu.net>
17560
17561         filenamecat-lgpl: adjust clients
17562         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
17563         filenamecat.
17564         * modules/renameat (Depends-on): Likewise.
17565
17566         filenamecat: split into filenamecat-lgpl
17567         * modules/filenamecat-lgpl: New module.
17568         * modules/filenamecat (Files): Move library-safe files into
17569         filenamecat-lgpl.
17570         (Depends-on): Add filenamecat-lgpl.
17571         (configure.ac): Declare witness.
17572         * lib/filenamecat.h (file_name_concat): Only declare when using
17573         GPL module.
17574         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
17575         Move...
17576         * lib/filenamecat-lgpl.c: ...into new file.
17577         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
17578         (gl_FILE_NAME_CONCAT): Use it.
17579         * MODULES.html.sh (File system functions): Mention new module.
17580
17581         argp: avoid memory leak
17582         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
17583         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
17584         base_name, since the latter malloc()s and can call exit().
17585         Leak introduced 2006-07-03.
17586
17587         dirname-lgpl: adjust clients that don't need full dirname
17588         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
17589         * modules/filenamecat (Depends-on): Likewise.
17590         * modules/linkat (Depends-on): Likewise.
17591         * modules/mkancesdirs (Depends-on): Likewise.
17592         * modules/mkdir (Depends-on): Likewise.
17593         * modules/openat (Depends-on): Likewise.
17594         * modules/savewd (Depends-on): Likewise.
17595         * modules/rename (Depends-on): Likewise.
17596         (License): Relax license.
17597         * modules/mkdir-tests (Depends-on): Drop progname.
17598         (Makefile.am): Delete unneeded LDADD.
17599         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
17600
17601         dirname: split into dirname-lgpl
17602         * modules/dirname-lgpl: New module.
17603         * modules/dirname (Files): Move library-safe files into
17604         dirname-lgpl.
17605         (Depends-on): Add dirname-lgpl.
17606         (configure.ac): Declare witness.
17607         * modules/double-slash-root (License): Relax license.
17608         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
17609         module.
17610         * lib/dirname.c (dir_len, mdir_name): Move...
17611         * lib/dirname-lgpl.c: ...into new file.
17612         * lib/basename.c (last_component, base_len): Move...
17613         * lib/basename-lgpl.c: ...into new file.
17614         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
17615         (gl_DIRNAME): Use it.
17616         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
17617         Mention new module.
17618         * modules/dirname-tests (Depends-on): Add progname.
17619         * tests/test-dirname.c (program_name): Delete.
17620
17621         mkdir: make safe for libraries
17622         * modules/mkdir (Depends-on): Drop xalloc.
17623         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
17624         exit.
17625
17626         tests: avoid some compiler warnings
17627         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
17628         literals.
17629         * tests/test-memchr.c (main): Avoid type mismatch.
17630         * tests/test-arpa_inet.c (main): Avoid unused parameters.
17631         * tests/test-base64.c (main): Likewise.
17632         * tests/test-getdelim.c (main): Likewise.
17633         * tests/test-gethostname.c (main): Likewise.
17634         * tests/test-getline.c (main): Likewise.
17635         * tests/test-netinet_in.c (main): Likewise.
17636         * tests/test-select.c (open_server_socket, main): Likewise.
17637         * tests/test-select-stdin.c (main): Likewise.
17638         * tests/test-sockets.c (main): Likewise.
17639         * tests/test-strsignal.c (main): Likewise.
17640         * tests/test-sys_select.c (main): Likewise.
17641         * tests/test-sys_socket.c (main): Likewise.
17642         * tests/test-u64.c (main): Likewise.
17643         * tests/test-xfprintf-posix.c (main): Likewise.
17644         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
17645
17646         sockets: avoid compiler warning
17647         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
17648
17649         maint: detect usage(1) and other suspicious exits
17650         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
17651
17652 2009-10-29  Jim Meyering  <meyering@redhat.com>
17653
17654         timespec: long-to-int truncation could make timespec_cmp malfunction
17655         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
17656         a multiple of 2^32 nanoseconds as no difference.
17657
17658 2009-10-28  Jim Meyering  <meyering@redhat.com>
17659
17660         fprintftime: wrap macro code argument in "do {...} while(0)"
17661         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
17662         cpy macro must be a statement that can be followed by a semicolon.
17663         Now that the else clause contains a comment and is hence longer
17664         than one line, I require curly braces.  That in turn requires
17665         that we wrap this code block in the standard do...while(0).
17666
17667         fprintftime: remove stray semicolon from previous change
17668         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
17669
17670         fprintftime: avoid a warning about ignored fwrite return value
17671         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
17672         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
17673         that is unsafe.
17674         * modules/fprintftime (Depends-on): Add ignore-value.
17675
17676         exclude: avoid an unwarranted warning
17677         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
17678
17679 2009-10-27  Eric Blake  <ebb9@byu.net>
17680
17681         fseek: avoid compilation failure when fflush is replaced
17682         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
17683         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
17684         module is in use.
17685         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
17686         module is not in use; since REPLACE_FSEEK worked otherwise.
17687         (GNULIB_FTELLO): Likewise for ftell.
17688         Reported by Ian Beckwith and others.
17689
17690 2009-10-27  Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
17693         Reported by Jim Meyering.
17694
17695 2009-10-27  Jim Meyering  <jim@meyering.net>
17696             Bruno Haible  <bruno@clisp.org>
17697
17698         Avoid warning despite dropping the return value of fwrite.
17699         * lib/unicodeio.c: Include ignore-value.h.
17700         (fwrite_success_callback): Explicitly ignore fwrite's return value.
17701         * modules/unicodeio (Depends-on): Add ignore-value.
17702
17703 2009-10-26  Eric Blake  <ebb9@byu.net>
17704
17705         areadlinkat: fix fallback path
17706         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
17707         pointer and zero.
17708
17709 2009-10-22  Pádraig Brady  <P@draigBrady.com>
17710
17711         Use a better IO block size for modern systems
17712         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
17713         * lib/md2.c: Likewise.
17714         * lib/md4.c: Likewise.
17715         * lib/md5.c: Likewise.
17716         * lib/sha1.c: Likewise.
17717         * lib/sha256.c: Likewise.
17718         * lib/sha512.c: Likewise.
17719
17720 2009-10-22  Eric Blake  <ebb9@byu.net>
17721
17722         tests: avoid several compiler warnings
17723         * tests/test-getcwd.c (main): Avoid buffer underflow.
17724         * tests/test-getdate.c (main): String literals are not safe with
17725         putenv, so use setenv.  Declare unused argument.
17726         * modules/getdate-tests (Depends-on): Add setenv.
17727         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
17728         problems with string literals in char *.
17729         * tests/test-hash.c (main): Avoid shadowing declaration.
17730         (insert_new): Treat string literals as char const *.
17731         * tests/test-getopt.h (test_getopt): Likewise.
17732         (getopt_loop): Alter types to minimize casting elsewhere.
17733         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
17734         (test_getopt_long_posix): Likewise.
17735         (do_getopt_long): Add wrapper to minimize casting.
17736         * tests/test-atexit.c (clear_temp_file): Use void.
17737         * tests/test-areadlink-with-size.c (main): Declare unused
17738         arguments.
17739         * tests/test-areadlink.c (main): Likewise.
17740         * tests/test-areadlinkat-with-size.c (main): Likewise.
17741         * tests/test-areadlinkat.c (main): Likewise.
17742         * tests/test-canonicalize-lgpl.c (main): Likewise.
17743         * tests/test-canonicalize.c (main): Likewise.
17744         * tests/test-dirent-safer.c (main): Likewise.
17745         * tests/test-dirname.c (main): Likewise.
17746         * tests/test-dup2.c (main): Likewise.
17747         * tests/test-fchdir.c (main): Likewise.
17748         * tests/test-fcntl-h.c (main): Likewise.
17749         * tests/test-fcntl-safer.c (main): Likewise.
17750         * tests/test-fdopendir.c (main): Likewise.
17751         * tests/test-fdutimensat.c (main): Likewise.
17752         * tests/test-fflush.c (main): Likewise.
17753         * tests/test-filenamecat.c (main): Likewise.
17754         * tests/test-filevercmp.c (main): Likewise.
17755         * tests/test-fopen-safer.c (main): Likewise.
17756         * tests/test-fopen.c (main): Likewise.
17757         * tests/test-fpending.c (main): Likewise.
17758         * tests/test-fpurge.c (main): Likewise.
17759         * tests/test-freading.c (main): Likewise.
17760         * tests/test-fstatat.c (main): Likewise.
17761         * tests/test-fsync.c (main): Likewise.
17762         * tests/test-futimens.c (main): Likewise.
17763         * tests/test-getndelim2.c (main): Likewise.
17764         * tests/test-gettimeofday.c (main): Likewise.
17765         * tests/test-getopt.c (main): Likewise.
17766         * tests/test-i-ring.c (main): Likewise.
17767         * tests/test-inttypes.c (main): Likewise.
17768         * tests/test-link.c (main): Likewise.
17769         * tests/test-lstat.c (main): Likewise.
17770         * tests/test-math.c (main): Likewise.
17771         * tests/test-md5.c (main): Likewise.
17772         * tests/test-memchr2.c (main): Likewise.
17773         * tests/test-memrchr.c (main): Likewise.
17774         * tests/test-mkdir.c (main): Likewise.
17775         * tests/test-mkdirat.c (main): Likewise.
17776         * tests/test-mkfifoat.c (main): Likewise.
17777         * tests/test-open.c (main): Likewise.
17778         * tests/test-openat-safer.c (main): Likewise.
17779         * tests/test-openat.c (main): Likewise.
17780         * tests/test-quotearg.c (main): Likewise.
17781         * tests/test-rawmemchr.c (main): Likewise.
17782         * tests/test-readlink.c (main): Likewise.
17783         * tests/test-remove.c (main): Likewise.
17784         * tests/test-rename.c (main): Likewise.
17785         * tests/test-renameat.c (main): Likewise.
17786         * tests/test-rmdir.c (main): Likewise.
17787         * tests/test-sha1.c (main): Likewise.
17788         * tests/test-signal.c (main): Likewise.
17789         * tests/test-sigaction.c (main): Likewise.
17790         * tests/test-stat.c (main): Likewise.
17791         * tests/test-stat-time.c (main): Likewise.
17792         * tests/test-stddef.c (main): Likewise.
17793         * tests/test-stdint.c (main): Likewise.
17794         * tests/test-stdio.c (main): Likewise.
17795         * tests/test-stdlib.c (main): Likewise.
17796         * tests/test-strchrnul.c (main): Likewise.
17797         * tests/test-strerror.c (main): Likewise.
17798         * tests/test-string.c (main): Likewise.
17799         * tests/test-strtod.c (main): Likewise.
17800         * tests/test-strverscmp.c (main): Likewise.
17801         * tests/test-symlink.c (main): Likewise.
17802         * tests/test-symlinkat.c (main): Likewise.
17803         * tests/test-sys_stat.c (main): Likewise.
17804         * tests/test-sys_time.c (main): Likewise.
17805         * tests/test-time.c (main): Likewise.
17806         * tests/test-unistd.c (main): Likewise.
17807         * tests/test-unlink.c (main): Likewise.
17808         * tests/test-unlinkat.c (main): Likewise.
17809         * tests/test-utimens.c (main): Likewise.
17810         * tests/test-utimensat.c (main): Likewise.
17811         * tests/test-version-etc.c (main): Likewise.
17812         * tests/test-wchar.c (main): Likewise.
17813         * tests/test-wctype.c (main): Likewise.
17814         * tests/test-xprintf-posix.c (main): Likewise.
17815         * tests/test-posixtm.c (main): Likewise.
17816         (STREQ): Delete unused macro.
17817         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
17818         shadowed variables.
17819         * tests/test-memchr.c (main): Likewise.
17820
17821 2009-10-21  Eric Blake  <ebb9@byu.net>
17822
17823         areadlinkat: avoid failure on older glibc
17824         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
17825         rather than mis-comparing 0 against FUNC_RESULT of char*.
17826
17827 2009-10-21  Bruno Haible  <bruno@clisp.org>
17828
17829         * modules/stpncpy (License): Relicense under LGPLv2+.
17830         Reported by David Lutterkort <lutter@redhat.com>.
17831
17832 2009-10-20  Eric Blake  <ebb9@byu.net>
17833
17834         utimensat: work around Solaris 9 bug
17835         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
17836         has trailing slash bugs.
17837         * tests/test-lutimens.h (test_lutimens): Enhance test.
17838         * tests/test-utimens.h (test_utimens): Likewise.
17839         * doc/posix-functions/utime.texi (utime): Enhance documentation.
17840         * doc/posix-functions/utimes.texi (utimes): Likewise.
17841         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17842         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
17843         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
17844         * doc/posix-functions/futimens.texi (futimens): Likewise.
17845
17846         fdutimensat: new module
17847         * modules/fdutimensat: New file.
17848         * lib/fdutimensat.c (fdutimensat): Likewise.
17849         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
17850         * MODULES.html.sh (File system functions): Mention module.
17851         * modules/fdutimensat-tests: New test.
17852         * tests/test-fdutimensat.c: Likewise.
17853
17854         doc: regenerate INSTALL
17855         * doc/INSTALL: Reflect recent autoconf update.
17856         * doc/INSTALL.ISO: Likewise.
17857         * doc/INSTALL.UTF-8: Likewise.
17858
17859 2009-10-20  Pádraig Brady  <P@draigBrady.com>
17860
17861         acl: warn if ACL support is not detected
17862         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
17863
17864 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
17865
17866         * lib/nproc.h: Add extern "C" block for C++.
17867
17868 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
17869             Bruno Haible  <bruno@clisp.org>
17870
17871         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
17872         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
17873         * doc/posix-functions/isalpha.texi: Likewise.
17874         * doc/posix-functions/isblank.texi: Likewise.
17875         * doc/posix-functions/iscntrl.texi: Likewise.
17876         * doc/posix-functions/isdigit.texi: Likewise.
17877         * doc/posix-functions/isgraph.texi: Likewise.
17878         * doc/posix-functions/islower.texi: Likewise.
17879         * doc/posix-functions/isprint.texi: Likewise.
17880         * doc/posix-functions/ispunct.texi: Likewise.
17881         * doc/posix-functions/isspace.texi: Likewise.
17882         * doc/posix-functions/isupper.texi: Likewise.
17883         * doc/posix-functions/isxdigit.texi: Likewise.
17884
17885 2009-10-18  Bruno Haible  <bruno@clisp.org>
17886
17887         Tests for module 'isblank'.
17888         * modules/isblank-tests: New file.
17889         * tests/test-isblank.c: New file.
17890
17891         New module 'isblank'.
17892         * lib/isblank.c: New file.
17893         * m4/isblank.m4: New file.
17894         * modules/isblank: New file.
17895         * doc/posix-functions/isblank.texi: Mention the new module.
17896
17897 2009-10-18  Bruno Haible  <bruno@clisp.org>
17898
17899         New module 'ctype'.
17900         * lib/ctype.in.h: New file.
17901         * m4/ctype.m4: New file.
17902         * modules/ctype: New file.
17903         * doc/posix-headers/ctype.texi: Mention the new module.
17904
17905 2009-10-18  Jim Meyering  <meyering@redhat.com>
17906
17907         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
17908         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
17909         right after its initialization, rather than farther down.
17910         Keeping these in close proximity makes it easier to ensure
17911         that each such variable is initialized.  E.g.,
17912
17913             LIB_CLOCK_GETTIME=
17914             AC_SUBST([LIB_CLOCK_GETTIME])
17915
17916         This change also increments these serial numbers.
17917         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
17918         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17920
17921 2009-10-18  Bruno Haible  <bruno@clisp.org>
17922
17923         Don't let environment variables perturb build.
17924         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
17925         (gl_PREREQ_GETHRXTIME): ... not here.
17926
17927 2009-10-18  Bruno Haible  <bruno@clisp.org>
17928
17929         Avoid symlink attack in localcharset module.
17930         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
17931         (O_NOFOLLOW): Define fallback.
17932         (get_charset_aliases): Don't open the file if it is a symbolic link.
17933         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
17934         gl_FCNTL_H.
17935         (gl_FCNTL_H): Require it.
17936         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
17937         * modules/localcharset (Files): Add m4/fcntl_h.m4.
17938         Reported by Fergal Glynn <fglynn@veracode.com>.
17939
17940 2009-10-18  Bruno Haible  <bruno@clisp.org>
17941
17942         Implement nproc for mingw.
17943         * lib/nproc.c: Include <windows.h>
17944         (num_processors): On native Windows platforms, try GetSystemInfo.
17945
17946 2009-10-18  Bruno Haible  <bruno@clisp.org>
17947
17948         Implement nproc for IRIX.
17949         * lib/nproc.c: Include <sys/sysmp.h>.
17950         (num_processors): On IRIX systems, try sysmp.
17951         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
17952
17953 2009-10-18  Bruno Haible  <bruno@clisp.org>
17954
17955         Implement nproc for HP-UX.
17956         * lib/nproc.c: Include <sys/pstat.h>
17957         (num_processors): On HP-UX systems, try pstat_getdynamic.
17958         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
17959         pstat_getdynamic.
17960
17961 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
17962             Bruno Haible  <bruno@clisp.org>
17963
17964         Implement nproc for NetBSD, OpenBSD.
17965         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
17966         (ARRAY_SIZE): New macro.
17967         (num_processors): On BSD systems, try sysctl of HW_NCPU.
17968         * m4/nproc.m4: New file.
17969         * modules/nproc (Files): Add m4/nproc.m4.
17970         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
17971         (Makefile.am): Instead, augment lib_SOURCES.
17972
17973 2009-10-18  Bruno Haible  <bruno@clisp.org>
17974
17975         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
17976         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
17977         sys/param.h.
17978
17979 2009-10-16  Eric Blake  <ebb9@byu.net>
17980
17981         utimensat: new module
17982         * modules/utimensat: New file.
17983         * lib/utimensat.c (utimensat): Likewise.
17984         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17985         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
17986         so we can work around Linux bugs.
17987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17988         * modules/sys_stat (Makefile.am): Substitute them.
17989         * lib/sys_stat.in.h (utimensat): Declare it.
17990         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17991         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17992         * modules/utimensat-tests: New test.
17993         * tests/test-utimensat.c: Likewise.
17994
17995         utimens: let lutimens work on non-symlinks
17996         * lib/utimens.c (lutimens): Fall back to utimens rather than
17997         failing with ENOSYS, when file is not a symlink.
17998         (utimens): Reduce redirection.
17999         * tests/test-lutimens.h (test_lutimens): Update test to cover
18000         non-symlinks.
18001         * tests/test-utimens.h (test_utimens): Update test to cover
18002         symlinks.
18003         * tests/test-utimens.c (main): Update caller.
18004
18005         utimens: cache whether utimensat syscall works
18006         * lib/utimens.c (utimensat_works_really): New cache variable.
18007         (fdutimens, lutimens): Use it to avoid failing syscall.
18008
18009         test-stat-time, test-utimens: improve portability
18010         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18011         ext4 on alpha, and for cygwin.
18012         * tests/test-utimens-common.h: New file.
18013         (nap): Factor delays into single function.
18014         * tests/test-lutimens.h (test_lutimens): Use new header.
18015         * tests/test-futimens.h (test_futimens): Likewise.
18016         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18017         timestamps to occur from same machine, as was done previously for
18018         test_utimens.
18019         * modules/utimens-tests (Files): Ship new file.
18020         * modules/futimens-tests (Files): Likewise.
18021         Reported in part by Jim Meyering.
18022
18023         sys_stat: sort replacement declarations
18024         * lib/sys_stat.in.h: Sort declarations.
18025         * lib/futimens.c (futimens): Fix typo.
18026
18027 2009-10-15  Jim Meyering  <meyering@redhat.com>
18028
18029         don't let environment settings perturb build
18030         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18031         could cause a configure-time and/or build-time malfunction.
18032         Typically, a configure-time function-in-library test is performed
18033         via code like this:
18034
18035           LIB_VAR=
18036           AC_SUBST([LIB_VAR])
18037           prefix_saved_LIBS=$LIBS
18038             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18039                        [test "$ac_cv_search_FUNC" = "none required" ||
18040                         LIB_VAR=$ac_cv_search_FUNC])
18041           LIBS=$prefix_saved_LIBS
18042
18043         However, in each of the files affected by this change, the LIB_VAR=
18044         initialization was omitted.  Thus, when set in the environment, its
18045         value would propagate into generated Makefiles when FUNC is not found
18046         in LIB_NAME.
18047         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18048         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18050
18051 2009-10-14  Eric Blake  <ebb9@byu.net>
18052
18053         fchdir: avoid infinite recursion in mingw
18054         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18055         recursing.
18056
18057         test-stat-time: port to mingw
18058         * tests/test-stat-time.c (force_unlink): Return a value.
18059         (test_ctime) [W32]: Fix compilation error.
18060         (nap): Don't call usleep with too large an argument.  Use
18061         force_unlink.
18062         * doc/pastposix-functions/usleep.texi (usleep): Document the
18063         portability issue.
18064
18065 2009-10-13  Jim Meyering  <meyering@redhat.com>
18066
18067         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18068         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18069         * modules/pipe-filter-ii: Likewise.
18070         * modules/sys_socket-tests: Likewise.
18071         * modules/tsearch-tests: Likewise.
18072         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18073         (check): Depend on it.
18074
18075 2009-10-12  Eric Blake  <ebb9@byu.net>
18076
18077         utimens-tests: port to NFS file systems
18078         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18079         comparisons to avoid spurious failures from timestamp drift
18080         between NFS machines.
18081
18082 2009-10-12  Eric Blake  <ebb9@byu.net>
18083
18084         stat-time-tests: minor cleanups
18085         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18086         * tests/test-stat-time.c (nap): Separate assignment from call.
18087         Suggested by Paolo Bonzini and Bruno Haible.
18088
18089         sys_stat: guarantee struct timespec
18090         * lib/sys_stat.in.h (includes): Always include <time.h>
18091         * modules/sys_stat (Depends-on): Add time.
18092         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18093         mode_t permission values.
18094         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18095         get at subsecond timestamps.
18096
18097 2009-10-10  Eric Blake  <ebb9@byu.net>
18098
18099         futimens: new module
18100         * modules/futimens: New file.
18101         * lib/futimens.c (futimens): Likewise.
18102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18103         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18104         we can work around Linux bugs.
18105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18106         * modules/sys_stat (Makefile.am): Substitute them.
18107         * lib/sys_stat.in.h (futimens): Declare it.
18108         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18109         * doc/posix-functions/futimens.texi (futimens): Likewise.
18110         * modules/futimens-tests: New test.
18111         * tests/test-futimens.c: Likewise.
18112
18113         utimens: introduce fdutimens
18114         * lib/utimens.h (fdutimens): New prototype.
18115         * lib/utimens.c (gl_futimens): Move guts...
18116         (fdutimens): ...to new interface.
18117         * tests/test-utimens.c (do_fdutimens): Use it.
18118
18119         utimens: add UTIME_NOW and UTIME_OMIT support
18120         * lib/utimens.c (validate_timespec, update_timespec): New helper
18121         functions.
18122         (gl_futimens, lutimens): Use them.
18123         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18124         stdbool, sys_stat.
18125         (Link): Mention resulting library dependency.
18126         * modules/utimecmp (Link): Likewise.
18127         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18128         (Makefile.am): Pick up library dependency.
18129         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18130         definition.
18131         * tests/test-sys_stat.c: Test the definitions.
18132         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18133         * NEWS: Document library dependency.
18134
18135         utimecmp: support symlink timestamps
18136         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18137         hashing when possible.  Use pathconf when available.
18138         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18139         * modules/utimecmp (Depends-on): Add lstat.
18140
18141         utimens: add lutimens interface
18142         * lib/utimens.c (lutimens): New function.
18143         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18144         * lib/utimens.h (lutimens): Declare new interface.
18145         * tests/test-utimens.c (main): Enhance test.
18146         * tests/test-lutimens.h (test_lutimens): New file.
18147         * modules/utimens-tests (Files): Distribute it.
18148         (Depends-on): Add symlink.
18149         (configure.ac): Check for usleep.
18150
18151         utimens: validate futimens usage
18152         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18153         fewer syscalls on failure later on.  Avoid compiler warning on
18154         mingw.
18155         * modules/utimens (Depends-on): Add dup2.
18156
18157         utimens: add test
18158         * modules/utimens-tests: New test.
18159         * tests/test-utimens.h: New file.
18160         * tests/test-futimens.h: Likewise.
18161         * tests/test-utimens.c: Likewise.
18162
18163         doc: mention timestamp portability issues
18164         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18165         instead.
18166         * doc/posix-functions/utime.texi (utime): Likewise.
18167         * doc/posix-functions/utimes.texi (utimes): Likewise.
18168         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18169         instead.
18170         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18171         module.
18172         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18173         Mention weakness with symlink timestamps.
18174         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18175         to utimensat/futimens instead.
18176         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18177
18178         test-dup2: enhance test
18179         * tests/test-dup2.c (main): Also check AT_FDCWD.
18180
18181         test-stat-time: avoid more spurious failures
18182         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18183         xfs; and avoid race if the two timestamps cross quantization edge.
18184
18185         relocatable: prefer 'file system' over 'filesystem'
18186         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18187         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18188         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18189         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18190         * lib/relocatable.c (compute_curr_prefix): Likewise.
18191
18192 2009-10-10  Jim Meyering  <meyering@redhat.com>
18193
18194         stat-time-tests: check for the usleep function
18195         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18196
18197 2009-10-10  Bruno Haible  <bruno@clisp.org>
18198
18199         * modules/xnanosleep: Put the Link section after the Include section.
18200
18201 2009-10-09  Eric Blake  <ebb9@byu.net>
18202
18203         dup2: work around FreeBSD 6.1 bug
18204         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18205         * doc/posix-functions/dup2.texi (dup2): Document it.
18206         Reported by Nelson H. F. Beebe and Jim Meyering.
18207
18208         test-stat-time: port to buggy NFS clients
18209         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18210         (test_ctime): Also skip test if mtime and ctime are skewed.
18211
18212         maint: prefer 'file system' over 'filesystem'
18213         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18214         * doc/posix-functions/lstat.texi (lstat): Likewise.
18215         * lib/file-has-acl.c (file_has_acl): Likewise.
18216         * lib/fwriteerror.c [TEST]: Likewise.
18217         * tests/test-areadlink.h (test_areadlink): Likewise.
18218         * tests/test-areadlinkat-with-size.c (main): Likewise.
18219         * tests/test-areadlinkat.c (main): Likewise.
18220         * tests/test-canonicalize-lgpl.c (main): Likewise.
18221         * tests/test-canonicalize.c (main): Likewise.
18222         * tests/test-fstatat.c (main): Likewise.
18223         * tests/test-linkat.c (main): Likewise.
18224         * tests/test-lstat.h (test_lstat_func): Likewise.
18225         * tests/test-mkdir.h (test_mkdir): Likewise.
18226         * tests/test-readlink.h (test_readlink): Likewise.
18227         * tests/test-remove.c (main): Likewise.
18228         * tests/test-rename.h (test_rename): Likewise.
18229         * tests/test-renameat.c (main): Likewise.
18230         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18231         * tests/test-symlink.h (test_symlink): Likewise.
18232         * tests/test-symlinkat.c (main): Likewise.
18233         * tests/test-unlink.h (test_unlink_func): Likewise.
18234         * tests/test-unlinkat.c (main): Likewise.
18235
18236         maint: make realtime library usage explicit
18237         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18238         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18239         * modules/settime (Link): Likewise.
18240         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18241
18242         test-stat-time: speed up execution
18243         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18244         warning on mingw.
18245         (nap): New helper function.
18246         (prepare_test): Use it to reduce sleep time.
18247         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18248         execution.
18249         * modules/stat-time-tests (configure.ac): Check for usleep.
18250
18251 2009-10-09  Jim Meyering  <meyering@redhat.com>
18252
18253         selinux-h: always use getfilecon wrappers
18254         * lib/getfilecon.c: New file.
18255         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18256         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18257         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18258         (fgetfilecon): Provide a stub.
18259         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18260         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18261         file unconditionally.
18262         When <selinux/selinux.h> is found, arrange to use wrappers.
18263         * modules/selinux-h (Files): Add getfilecon.c.
18264         (Makefile.am): Substitute include-next-related bits
18265         into the now-always-generated selinux/selinux.h file.
18266         * doc/glibc-functions/lgetfilecon.texi: New file.
18267         * doc/glibc-functions/fgetfilecon.texi: New file.
18268         * doc/glibc-functions/getfilecon.texi: New file.
18269         * doc/glibc-functions/getfilecon-desc.texi: New file.
18270         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18271         which to pull in the new files.
18272         * MODULES.html.sh (Misc): Add selinux-h.
18273
18274 2009-10-08  Jim Meyering  <meyering@redhat.com>
18275
18276         unistd: fix comment typo
18277         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18278
18279 2009-10-08  Eric Blake  <ebb9@byu.net>
18280
18281         areadlink: use SIZE_MAX consistently
18282         * modules/areadlink (Depends-on): Add stdint.
18283         * modules/areadlink-with-size (Depends-on): Likewise.
18284         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18285         gives NULL; drop sys/types, since unistd gives size_t; and add
18286         stdint for SIZE_MAX.
18287         (SIZE_MAX): Rely on headers.
18288         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18289         and add stdint.
18290         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18291         (SIZE_MAX): Likewise.
18292         (INITIAL_BUF_SIZE): Turn into enum.
18293         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18294
18295 2009-10-08  Jim Meyering  <meyering@redhat.com>
18296
18297         areadlinkat: avoid compilation failure
18298         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18299         Fix typo in comment.
18300
18301 2009-10-07  Eric Blake  <ebb9@byu.net>
18302
18303         areadlinkat-with-size: new module
18304         * modules/areadlinkat-with-size: New module.
18305         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18306         * lib/areadlink.h (areadlinkat): Declare it.
18307         * MODULES.html.sh (File system functions): Mention it.
18308         * modules/areadlinkat-with-size-tests: New test.
18309         * tests/test-areadlinkat-with-size.c: New file.
18310
18311         xreadlinkat: new module
18312         * modules/xreadlinkat: New module.
18313         * lib/xreadlinkat.c (xreadlinkat): New file.
18314         * lib/xreadlink.h (xreadlinkat): Declare it.
18315         * MODULES.html.sh (File system functions): Mention it.
18316
18317         areadlinkat: new module
18318         * lib/at-func.c (FUNC_FAIL): New define.
18319         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18320         * modules/areadlinkat: New module.
18321         * lib/linkat.c (areadlinkat): Move...
18322         * lib/areadlinkat.c (areadlinkat): ...to new file.
18323         * lib/areadlink.h (areadlinkat): Declare it.
18324         * modules/linkat (Depends-on): Add areadlinkat.
18325         * MODULES.html.sh (File system functions): Mention it.
18326         * modules/areadlinkat-tests: New test.
18327         * tests/test-areadlinkat.c: New file.
18328
18329         areadlink, areadlink-with-size: add tests
18330         * modules/areadlink-tests: New test.
18331         * modules/areadlink-with-size-tests: Likewise.
18332         * tests/test-areadlink.h: New file.
18333         * tests/test-areadlink.c: Likewise.
18334         * tests/test-areadlink-with-size.c: Likewise.
18335
18336         maint: minor cleanups
18337         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18338         _UNUSED_PARAMETER_ instead.
18339         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18340         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18341         * modules/linkat-tests (Files): Distribute test-link.h.
18342
18343         openat, utimens: whitespace cleanup
18344         * lib/openat.c: Prefer space throughout, rather than mix of 8
18345         spaces vs. tabs.
18346         * lib/at-func.c: Likewise.
18347         * lib/utimens.c: Likewise.
18348
18349         openat: avoid using wrong fd
18350         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18351         working directory chooses same fd.
18352         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18353
18354         mkdir, mkdirat: fix cygwin 1.5.x bug
18355         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18356         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18357         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18358         bug.
18359         (gl_PREREQ_MKDIR): Delete unused macro.
18360         * modules/mkdir (Files): Track file rename.
18361         (configure.ac): Update macro name.
18362         * modules/openat (Depends-on): Add mkdir.
18363         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18364
18365         mkdir, mkdirat: add tests
18366         * modules/mkdir-tests: New test.
18367         * tests/test-mkdir.h: New file.
18368         * tests/test-mkdir.c: Likewise.
18369         * tests/test-mkdirat.c: Likewise.
18370         * modules/openat-tests (Files): Add new files.
18371         (Makefile.am): Run new test.
18372
18373 2009-10-06  Eric Blake  <ebb9@byu.net>
18374
18375         doc: tweak *at function documentation
18376         * doc/posix-functions/faccessat.texi (faccessat): Mention
18377         known issue with replacement.
18378         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18379         * doc/posix-functions/linkat.texi (linkat): Likewise.
18380         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18381         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18382         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18383         * doc/posix-functions/renameat.texi (renameat): Likewise.
18384         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18385
18386         openat: fix GNU/Hurd bug in unlinkat
18387         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18388         broken.
18389         * doc/posix-functions/unlink.texi (unlink): Document this.
18390         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18391
18392         fdopendir: fix GNU/Hurd bug
18393         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18394         allowing non-directory fds.
18395         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18396         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18397         * modules/dirent (Makefile.am): Substitute it.
18398         * lib/dirent.in.h (fdopendir): Declare replacement.
18399         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18400         * tests/test-fdopendir.c (main): Test something other than
18401         /dev/null, since on Hurd that behaves like a directory.
18402
18403         test-symlink: port to GNU/Hurd
18404         * tests/test-symlink.h (test_symlink): Relax expected errno.
18405
18406         doc: tweak more cygwin information
18407         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18408         now compatible with glibc.
18409         * doc/posix-functions/getopt.texi (getopt): Likewise.
18410
18411         getopt-gnu: add another test
18412         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18413         guarantee behavior relied on by m4.
18414         * tests/test-getopt.c (main): Use it.
18415         * modules/getopt-posix-tests (Depends-on): Add setenv.
18416         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18417
18418         getopt: fix compilation on darwin
18419         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18420         include.
18421         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18422         Reported by Ludovic Courtès.
18423
18424 2009-10-06  Bruno Haible  <bruno@clisp.org>
18425
18426         * modules/size_max (Description): Discourage its use.
18427         Reported by Simon Josefsson.
18428
18429 2009-10-06  Jim Meyering  <meyering@redhat.com>
18430
18431         linkat: avoid compilation failure
18432         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18433
18434 2009-10-05  Eric Blake  <ebb9@byu.net>
18435
18436         linkat: support Linux 2.6.17
18437         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18438         linkat on Linux, but allow cache variable override.
18439         * lib/linkat.c (rpl_linkat): Define override.
18440         * modules/linkat (Depends-on): Add symlinkat.
18441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18442         * modules/unistd (Makefile.am): Substitute it.
18443         * lib/unistd.in.h (linkat): Declare replacement.
18444         Reported by Pádraig Brady.
18445
18446         quotearg: port test to systems with C.UTF-8 locale
18447         * tests/test-quotearg.c (struct result_strings): Add another
18448         member, differentiating between C.ASCII and C.UTF-8 handling.
18449         (compare_strings): Add parameter.
18450         (main): Adjust all callers.
18451
18452         getopt: avoid clash with FreeBSD _getopt_internal
18453         * lib/getopt.in.h (_getopt_internal): Override the name.
18454         * lib/getopt_int.h (includes): Pick up any overrides.
18455         Reported by Reuben Thomas.
18456
18457         hash: allow C89 compilation
18458         * lib/hash.c (check_tuning): Move declaration before statement.
18459         Reported by Reuben Thomas.
18460
18461 2009-10-05  Karl Berry  <karl@gnu.org>
18462
18463         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18464
18465 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
18466             Bruno Haible  <bruno@clisp.org>
18467
18468         * lib/uname.c (uname): Use a table-driven algorithm to compute
18469         Windows NT versions.
18470
18471 2009-10-04  Bruno Haible  <bruno@clisp.org>
18472
18473         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
18474         program_invocation_short_name.
18475         * modules/progname (configure.ac): Test for presence of
18476         program_invocation_short_name.
18477         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18478
18479 2009-10-04  Bruno Haible  <bruno@clisp.org>
18480
18481         * lib/progname.c (set_program_name): Fix comment.
18482         Reported by Jim Meyering.
18483
18484 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18485             Bruno Haible  <bruno@clisp.org>
18486
18487         * lib/uname.c: Include <string.h>.
18488         (uname): Do only one call to GetVersionEx in the common case.
18489
18490 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
18491             Bruno Haible  <bruno@clisp.org>
18492
18493         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
18494         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
18495         (uname): Add support for Windows CE and various non-x86 CPU types.
18496
18497 2009-10-03  Bruno Haible  <bruno@clisp.org>
18498
18499         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
18500         invocation to tests/configure.ac.
18501         Reported by Ian Beckwith <ianb@erislabs.net>.
18502
18503 2009-10-02  Eric Blake  <ebb9@byu.net>
18504
18505         fchdir: avoid compiler warning
18506         * lib/fchdir.c (canonicalize_file_name)
18507         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
18508
18509         test-open: support mingw errno values
18510         * tests/test-open.h (test_open): Relax test.
18511         * tests/test-fopen.h (test_fopen): Likewise.
18512         * tests/test-openat-safer.c (main): Likewise.
18513
18514         open: fix opening directory on mingw
18515         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
18516
18517         test-open: on GNU/Hurd, /dev/null is a directory
18518         * tests/test-fopen.h (main): Rename...
18519         (test_fopen): ...to this.  Use a guaranteed non-directory when
18520         confirming open behavior on trailing slash.
18521         * tests/test-openat-safer.c (main): Likewise.
18522         * tests/test-open.h (main): Likewise....
18523         (test_open): ...to this.
18524         * tests/test-fopen.c (main): Adjust caller.
18525         * tests/test-fopen-safer.c (main): Likewise.
18526         * tests/test-open.c (main): Likewise.
18527         * tests/test-fcntl-safer.c (main): Likewise.
18528         Reported by Samuel Thibault.
18529
18530         rename, fchdir: don't ignore chdir failure
18531         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
18532         * lib/rename.c (rpl_rename) [W32]: Likewise.
18533         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
18534         an empty destination directory if source cannot be renamed,
18535         although there is still possibility for failure.
18536         * doc/posix-functions/rename.texi (rename): Document the race.
18537         Reported by Jim Meyering.
18538
18539         maint: cleanup whitespace in recent commits
18540         * lib/rename.c (rpl_rename): Remove tabs.
18541         * tests/test-link.h (test_link): Likewise.
18542         * lib/fchdir.c (get_name): Likewise.
18543         Reported by Jim Meyering.
18544
18545 2009-10-02  Ben Pfaff  <blp@gnu.org>
18546
18547         relocatable-prog-wrapper: Add missing dependency on
18548         double-slash-root.
18549         * modules/relocatable-prog-wrapper: Add dependency.
18550         Reported by Ian Beckwith <ianb@erislabs.net>.
18551
18552 2009-10-02  Eric Blake  <ebb9@byu.net>
18553
18554         renameat: fix Solaris bugs
18555         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
18556         needed fixing.
18557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
18558         * modules/stdio (Makefile.am): Substitute it.
18559         * lib/stdio.in.h (renameat): Declare replacement.
18560         * lib/renameat.c (rpl_renameat): Implement fix.
18561
18562         renameat: new module
18563         * modules/renameat: New file.
18564         * lib/renameat.c (renameat): Likewise.
18565         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
18566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18567         * modules/stdio (Makefile.am): Substitute them.
18568         * lib/stdio.in.h (renameat): Declare it.
18569         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18570         * doc/posix-functions/renameat.texi (renameat): Likewise.
18571         * modules/renameat-tests: New test.
18572         * tests/test-renameat.c: Likewise.
18573
18574         rename: fix mingw bugs
18575         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
18576         directory overwrite bugs.
18577
18578         rename: fix another cygwin 1.5 bug
18579         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
18580         checks.
18581         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
18582         unnecessary cygwin workarounds.  Also work around bug with moving
18583         full directory onto an empty one.
18584         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
18585
18586         rename-dest-slash: merge into rename module
18587         * modules/rename-dest-slash (Status): Mark obsolete.
18588         (Depends-on): Add rename.
18589         (Files): Let rename do it all.
18590         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
18591         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
18592         * m4/rename-dest-slash.m4: ...so this file can be deleted.
18593         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
18594         * lib/rename.c (rpl_rename): Update comments.
18595
18596         rename: fix cygwin 1.5.x bugs
18597         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
18598         * lib/rename.c (rpl_rename): Work around them.
18599         * modules/rename (Depends-on): Add same-inode.
18600
18601         rename: fix Solaris 10 bug
18602         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18603         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
18604         was the only bug.
18605
18606         rename: fix Solaris 9 bug
18607         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
18608         on non-directory.  Avoid calling exit.
18609         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
18610         strdup.
18611         * modules/rename-tests (Depends-on): Drop lstat.
18612         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18613         (gl_PREREQ_RENAME): Delete unused macro.
18614
18615         rename-dest-slash: fix NetBSD bug
18616         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
18617         links.
18618         * modules/rename-dest-slash (Depends-on): Add same-inode.
18619
18620         rename-tests: new test, exposes several platform bugs
18621         * modules/rename-tests: New file.
18622         * tests/test-rename.h: Likewise.
18623         * tests/test-rename.c: Likewise.
18624         * doc/posix-functions/rename.texi (rename): Improve documentation,
18625         including bugs that will eventually be fixed in gnulib.
18626
18627 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
18628
18629         * lib/uname.c: Include <stdlib.h>
18630         (uname): Assume version info is available.
18631
18632 2009-10-02  Jim Meyering  <meyering@redhat.com>
18633
18634         gnu-web-doc-update: correct --help output
18635         * build-aux/gnu-web-doc-update: Make --help output relevant.
18636
18637         gnu-web-doc-update: add standard options
18638         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
18639
18640         gnu-web-doc-update: New module.
18641         Use this script to automatically update the on-line web documentation
18642         for your GNU project at http://www.gnu.org/software/$pkg/manual/
18643         * modules/gnu-web-doc-update: New file, from coreutils.
18644         * build-aux/gnu-web-doc-update: New script.
18645
18646 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
18647
18648         link: LoadLibrary is not needed.
18649         * lib/link.c: Use GetModuleHandle.
18650
18651 2009-10-01  Eric Blake  <ebb9@byu.net>
18652
18653         getopt: bump serial number
18654         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
18655         change.
18656
18657         tests: tighten link, rmdir, and remove tests
18658         * tests/test-link.h (includes): No need to use <config.h> here.
18659         Clean up if directory hard link was created, otherwise test for
18660         trailing '.'.
18661         * tests/test-linkat.c (main): Simplify.
18662         * tests/test-remove.c (main): Enhance test for trailing '.'.
18663         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18664
18665 2009-10-01  Jim Meyering  <meyering@redhat.com>
18666
18667         maint.mk: requiring "make major" was annoying, for a "minor" release.
18668         What is intended is "stable", to contrast with alpha and beta,
18669         so require "make stable", not "make major".
18670         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
18671         (get_tool_versions): Likewise.
18672         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
18673
18674 2009-09-30  Ben Pfaff  <blp@gnu.org>
18675
18676         Fix broken build of replacement for Windows tmpfile().
18677         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
18678         flags argument added along with the 'mkostemp' module.
18679
18680 2009-09-28  Bruno Haible  <bruno@clisp.org>
18681
18682         Avoid identifier clash with POSIX function 'remove' defined as a macro.
18683         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
18684         to 'remove_elt'.
18685         (gl_list_remove): Update.
18686         * lib/gl_list.c (gl_list_remove): Update.
18687         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
18688         to 'remove_elt'.
18689         (gl_oset_remove): Update.
18690         * lib/gl_list.c (gl_oset_remove): Update.
18691         Reported by Eric Blake.
18692
18693 2009-09-28  Eric Blake  <ebb9@byu.net>
18694
18695         doc: mention yet more cygwin 1.7 status
18696         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
18697         cygwin.
18698         * doc/glibc-functions/execvpe.texi (execvpe): New file.
18699         * doc/gnulib.texi (Glibc unistd.h): Mention it.
18700
18701         argp: fix test failure
18702         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
18703         that are not upper-case.  Pass correct range to tolower.
18704
18705 2009-09-27  Jim Meyering  <meyering@redhat.com>
18706
18707         test-yesno: work around sparc-dash here-document infelicity
18708         Without this change, the literal \177 byte in a here document
18709         would make dash 0.5.5.1-3 access uninitialized memory.
18710         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
18711         Instead, use a marker, "@", and filter through tr to create the desired
18712         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
18713
18714 2009-09-27  Bruno Haible  <bruno@clisp.org>
18715
18716         Disable untested support for new flavours of ACLs on AIX.
18717         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
18718         progress.
18719         * lib/set-mode-acl.c (qset_acl): Likewise.
18720
18721 2008-12-07  Bruno Haible  <bruno@clisp.org>
18722
18723         Add support for new flavours of ACLs on AIX. (Untested.)
18724         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
18725         (file_has_acl): Add support for newer AIX.
18726         * lib/set-mode-acl.c (qset_acl): Likewise.
18727         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
18728         Rainer Tammer <tammer@tammer.net>.
18729
18730 2009-09-26  Eric Blake  <ebb9@byu.net>
18731
18732         argp: fix compilation of getopt
18733         * lib/getopt.in.h (includes): Use different guard than glibc.
18734         Reported by Sergey Poznyakoff.
18735
18736         doc: mention more cygwin 1.7 status
18737         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
18738         bug.
18739         * doc/posix-functions/execl.texi (execl): Likewise.
18740         * doc/posix-functions/execle.texi (execle): Likewise.
18741         * doc/posix-functions/execlp.texi (execlp): Likewise.
18742         * doc/posix-functions/execv.texi (execv): Likewise.
18743         * doc/posix-functions/execve.texi (execve): Likewise.
18744         * doc/posix-functions/execvp.texi (execvp): Likewise.
18745         * doc/glibc-functions/canonicalize_file_name.texi
18746         (canonicalize_file_name): Cygwin 1.7 now provides this.
18747         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
18748         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
18749         on AT_SYMLINK_NOFOLLOW.
18750
18751 2009-09-24  Eric Blake  <ebb9@byu.net>
18752
18753         test-linkat: make test more robust
18754         * tests/test-linkat.c (main): Avoid collision with EEXIST.
18755
18756         getopt: fix inclusion guards for cygwin
18757         * modules/getopt-posix (Depends-on): Add include-next.
18758         (Makefile.am): Substitute more items in replacement header.
18759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
18760         <getopt.h>.
18761         * lib/getopt.in.h (includes): Use split inclusion guard, and
18762         prefer <getopt.h> over include <unistd.h> when one is present.
18763         (option): Also override name of 'struct option'.
18764
18765         same-inode: revert prior change; it is not yet ready
18766         * NEWS: Undo mention of this change.
18767         * lib/same-inode.h (same-inode.h): Undo tri-state change.
18768         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18769         * lib/cycle-check.c (cycle_check): Likewise.
18770         * lib/same.c (same_name): Likewise.
18771         * lib/at-func2.c (at_func2): Likewise.
18772
18773 2009-09-23  Eric Blake  <ebb9@byu.net>
18774
18775         linkat: new module
18776         * modules/linkat: New file.
18777         * lib/at-func2.c (at_func2): Likewise.
18778         * lib/linkat.c (linkat): Likewise.
18779         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18780         * lib/openat-priv.h (at_func2): Add declaration.
18781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18782         * modules/unistd (Makefile.am): Substitute them.
18783         * lib/unistd.in.h (linkat): Declare it.
18784         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18785         * doc/posix-functions/linkat.texi (linkat): Likewise.
18786         * doc/posix-functions/link.texi (link): Tweak wording.
18787         * tests/test-link.c (main): Move guts...
18788         * tests/test-link.h (test_link): ...into new file.
18789         * modules/linkat-tests: New test.
18790         * tests/test-linkat.c: Likewise.
18791         * modules/link-tests (Files): Ship new file.
18792         (Depends-on): Add stdbool.
18793
18794         dirname: add library-safe mdir_name
18795         * lib/dirname.h (mdir_name): New prototype.
18796         * lib/dirname.c (dir_name): Move guts...
18797         (mdir_name): ...to new function that avoids xalloc_die.
18798
18799         fchdir: another mingw fix
18800         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
18801         * lib/fchdir.c (get_name): New helper method; skips canonicalize
18802         on mingw (where it has not yet been ported), and make it optional
18803         elsewhere.
18804         (_gl_register_fd): Use it.
18805
18806         same-inode: make SAME_INODE tri-state, to port to mingw
18807         * NEWS: Mention this change.
18808         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
18809         st_ino always being 0.
18810         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18811         * lib/cycle-check.c (cycle_check): Likewise.
18812         * lib/same.c (same_name): Likewise.
18813
18814         lstat: avoid mingw compilation error
18815         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
18816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
18817         lstat ourselves.
18818         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
18819         was adequate.
18820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
18821         the checks for lstat.
18822         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
18823
18824         link: fix test failure on Solaris 9
18825         * lib/link.c (rpl_link): Don't assume link will catch bogus
18826         trailing slash on source.
18827
18828         test-symlinkat: enhance test
18829         * tests/test-readlink.c (main): Move guts...
18830         * tests/test-readlink.h (test_readlink): ...into new file.
18831         * tests/test-symlink.c (main): Move guts...
18832         * tests/test-symlink.h (test_symlink): ...into new file.
18833         * tests/test-symlinkat.c (main): Use new files for further
18834         coverage.
18835         (do_symlink, do_readlink): New helper functions.
18836         * modules/symlink-tests (Files): Ship new file.
18837         (Depends-on): Add stdbool.
18838         * modules/readlink-tests (Files): Ship new file.
18839         (Depends-on): Add stdbool.
18840         * modules/symlinkat-tests (Files): Use new files.
18841
18842 2009-09-23  Eric Blake  <ebb9@byu.net>
18843
18844         readlink: document portability issue with symlink length
18845         * doc/posix-functions/lstat.texi (lstat): Mention that some file
18846         systems have bogus st_size on symlinks, and mention the
18847         areadlink-with-size module.
18848         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18849         * doc/posix-functions/readlink.texi (readlink): Mention the
18850         areadlink module, and ERANGE failure.
18851         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18852         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
18853
18854         readlink: fix Solaris 9 bug with trailing slash
18855         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
18856         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
18857         * doc/posix-functions/readlink.texi (readlink): Document this.
18858         * modules/readlink-tests: New test.
18859         * tests/test-readlink.c: Likewise.
18860
18861         readlink: fix cygwin 1.5.x bug with return type
18862         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
18863         * lib/unistd.in.h (readlink): Use ssize_t.
18864         * lib/readlink.c (readlink): Likewise.
18865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18866         * modules/unistd (Makefile.am): Substitute it.
18867         * lib/unistd.in.h (readlink): Declare replacement.
18868         * doc/posix-functions/readlink.texi (readlink): Document this.
18869
18870         symlink: use throughout gnulib
18871         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
18872         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
18873         symlink is not used.
18874         * modules/symlinkat (Depends-on): Add symlink.
18875         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18876         * modules/canonicalize-tests (Depends-on): Likewise.
18877         * modules/lstat-tests (Depends-on): Likewise.
18878         * modules/openat-tests (Depends-on): Likewise.
18879         * modules/remove-tests (Depends-on): Likewise.
18880         * modules/rmdir-tests (Depends-on): Likewise.
18881         * modules/unlink-tests (Depends-on): Likewise.
18882         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
18883         * tests/test-canonicalize.c (symlink): Likewise.
18884         * tests/test-fstatat.c (symlink): Likewise.
18885         * tests/test-lstat.c (symlink): Likewise.
18886         * tests/test-remove.c (symlink): Likewise.
18887         * tests/test-rmdir.c (symlink): Likewise.
18888         * tests/test-unlink.c (symlink): Likewise.
18889         * tests/test-unlinkat.c (symlink): Likewise.
18890
18891         symlink: new module, for Solaris 9 bug
18892         * modules/symlink: New file.
18893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18894         * lib/symlink.c: Likewise.
18895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18896         * modules/unistd (Makefile.am): Substitute them.
18897         * lib/unistd.in.h (symlink): Declare replacement.
18898         * MODULES.html.sh (File system functions): Mention it.
18899         * doc/posix-functions/symlink.texi (symlink): Likewise.
18900         * modules/symlink-tests: New test.
18901         * tests/test-symlink.c: Likewise.
18902
18903 2009-09-23  Bruno Haible  <bruno@clisp.org>
18904
18905         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
18906         when needed.
18907         Test case: gnulib-tool --import --with-tests atexit inttypes.
18908         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
18909
18910 2009-09-23  Bruno Haible  <bruno@clisp.org>
18911
18912         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
18913         subcommand, not in a subshell.
18914
18915 2009-09-22  Eric Blake  <ebb9@byu.net>
18916
18917         unistd: sort replacement declarations
18918         * lib/unistd.in.h: Sort declarations.
18919
18920         open, openat: minor optimization
18921         * lib/open.c (open): If open succeeded, len is non-zero.
18922         * lib/openat.c (rpl_openat): Likewise.
18923
18924         link-follow: ensure correct result
18925         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
18926         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
18927         distinguish between possible failures.
18928
18929 2009-09-21  Eric Blake  <ebb9@byu.net>
18930
18931         fts: avoid compiler warning
18932         * lib/fts.c (dirent_inode_sort_may_be_useful)
18933         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
18934
18935 2009-09-19  Bruno Haible  <bruno@clisp.org>
18936
18937         * lib/progreloc.c (canonicalize_file_name): New declaration.
18938
18939 2009-09-19  Eric Blake  <ebb9@byu.net>
18940
18941         link: fix quoting
18942         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
18943
18944         openat: fix openat bugs on Solaris 9
18945         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
18946         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
18947         * modules/openat (Depends-on): Add open.
18948         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
18949         * modules/fcntl-h (Makefile.am): Substitute it.
18950         * lib/fcntl.in.h (openat): Declare replacement.
18951         * doc/posix-functions/openat.texi (openat): Document this.
18952
18953         openat: move fstatat and unlinkat into correct files
18954         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
18955         compiled.
18956         * lib/openat.c (fstatat, unlinkat): Move...
18957         * lib/fstatat.c (fstatat): ...into correct files.
18958         * lib/unlinkat.c (unlinkat): Likewise.
18959
18960         openat: fix unlinkat bugs on Solaris 9
18961         * lib/unlinkat.c (unlinkat): New file.
18962         * modules/openat (Depends-on): Add unlink.
18963         (Files): Distribute it.
18964         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
18965         trailing slash behavior is broken.
18966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18967         * modules/unistd (Makefile.am): Substitute it.
18968         * lib/unistd.in.h (unlinkat): Declare replacement.
18969         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
18970
18971         openat: fix fstatat bugs on Solaris 9
18972         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
18973         stat.
18974         * doc/posix-functions/fstatat.texi (fstatat): Document this.
18975
18976         test-unlinkat: enhance test, to expose Solaris 9 bug
18977         * tests/test-unlink.c (main): Factor guts...
18978         * tests/test-unlink.h (test_rmdir_func): ...into new file.
18979         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
18980         * tests/test-rmdir.c (main): Adjust caller.
18981         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
18982         (unlinker): New helper function.
18983         (rmdirat): Enhance check.
18984         * modules/rmdir-tests (Depends-on): Add stdbool.
18985         * modules/unlink-tests (Depends-on): Likewise.
18986         (Files): Add test-unlink.h.
18987         * modules/openat-tests (Files): Likewise.
18988         (Depends-on): Add unlinkdir.
18989
18990         test-fstatat: new test, to expose Solaris 9 bugs
18991         * tests/test-stat.c (main): Factor guts...
18992         * tests/test-stat.h (test_stat_func): ...into new file.
18993         * tests/test-lstat.c (main): Factor guts...
18994         * tests/test-lstat.h (test_lstat_func): ...into new file.
18995         * tests/test-fstatat.c: New file.
18996         * modules/stat-tests (Files): Add test-stat.h.
18997         * modules/lstat-tests (Files): Add test-lstat.h.
18998         (Depends-on): Add stdbool.
18999         * modules/openat-tests (Depends-on): Add pathmax.
19000         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19001         (Makefile.am): Run new test.
19002
19003         remove: new module, for mingw and Solaris 9 bugs
19004         * modules/remove: New file.
19005         * lib/remove.c: Likewise.
19006         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19008         * modules/stdio (Makefile.am): Use them.
19009         * lib/stdio.in.h (remove): Declare replacement.
19010         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19011         * doc/posix-functions/remove.texi (remove): Likewise.
19012         * modules/remove-tests: New test.
19013         * tests/test-remove.c: Likewise.
19014
19015         unlink: new module, for Solaris 9 bug
19016         * modules/unlink: New file.
19017         * lib/unlink.c: Likewise.
19018         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19020         * modules/unistd (Makefile.am): Use them.
19021         * lib/unistd.in.h (stat): Declare replacement.
19022         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19023         * doc/posix-functions/unlink.texi (unlink): Likewise.
19024         * modules/unlink-tests: New test.
19025         * tests/test-unlink.c: Likewise.
19026
19027         lstat: fix Solaris 9 bug
19028         * lib/lstat.c (lstat): Also check for trailing slash on
19029         non-symlink, non-directories.  Use stat module to simplify logic.
19030         * doc/posix-functions/lstat.texi (lstat): Document it.
19031         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19032         (configure.ac): Check for symlink.
19033         * tests/test-lstat.c (main): Add more tests.
19034
19035         stat: add as dependency to other modules
19036         * modules/chown (Depends-on): Add stat.
19037         * modules/euidaccess (Depends-on): Likewise.
19038         * modules/fchdir (Depends-on): Likewise.
19039         * modules/isdir (Depends-on): Likewise.
19040         * modules/link (Depends-on): Likewise.
19041         * modules/lstat (Depends-on): Likewise.
19042         * modules/mkdir-p (Depends-on): Likewise.
19043         * modules/modechange (Depends-on): Likewise.
19044         * modules/open (Depends-on): Likewise.
19045         * modules/readlink (Depends-on): Likewise.
19046         * modules/same (Depends-on): Likewise.
19047
19048         stat: fix Solaris 9 bug
19049         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19050         slash.
19051         * lib/stat.c (rpl_stat): Work around it.
19052         * doc/posix-functions/stat.texi (stat): Update documentation.
19053
19054         stat: new module, for mingw bug
19055         * modules/stat: New file.
19056         * lib/stat.c: Likewise.
19057         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19058         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19059         * modules/sys_stat (Makefile.am): Use them.
19060         * lib/sys_stat.in.h (stat): Declare replacement.
19061         * lib/openat.c (fstatat): Deal with lstat and stat being function
19062         macros.
19063         * modules/openat (Depends-on): Add inline.
19064         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19065         * doc/posix-functions/stat.texi (stat): Likewise.
19066         * modules/stat-tests: New test.
19067         * tests/test-stat.c: Likewise.
19068
19069 2009-09-19  Jim Meyering  <meyering@redhat.com>
19070
19071         syntax-check: detect unnecessary inclusion of canonicalize.h
19072         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19073
19074 2009-09-19  Eric Blake  <ebb9@byu.net>
19075
19076         canonicalize-lgpl: adjust clients to use correct header
19077         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19078         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19079         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19080         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19081         * lib/progreloc.c (includes): Likewise.
19082
19083 2009-09-19  Jim Meyering  <meyering@redhat.com>
19084
19085         test-posixtm.c: correct a comment
19086         * tests/test-posixtm.c: Correct first-line comment.
19087         Spotted by Eric Blake.
19088
19089 2009-09-16  Jim Meyering  <meyering@redhat.com>
19090
19091         posixtm-tests: make T const-correct; add a test case
19092         * tests/test-posixtm.c (T): Declare const.
19093         Add a test for -(2^31+1).
19094         Remove useless can-succeed-only-in-2002 test.
19095
19096         posixtm-tests: adjust the sole failing test
19097         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19098         expected output matches what mktime now produces.  Cross-checked via
19099         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19100
19101         posixtm: move #ifdef'd tests into a new module
19102         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19103         * tests/test-posixtm.c: ... this new file.
19104         * modules/posixtm-tests: New module.
19105
19106 2009-09-19  Eric Blake  <ebb9@byu.net>
19107
19108         openat: simplify use of at-func.c
19109         * lib/at-func.c (includes): Include prerequisites here, to
19110         simplify requirements on client files.
19111         * lib/openat-priv.h: Add double-inclusion guard.
19112         * lib/faccessat.c (includes): Simplify.
19113         * lib/fchmodat.c (includes): Likewise.
19114         * lib/fchownat.c (includes): Likewise.
19115         * lib/mkdirat.c (includes): Likewise.
19116         * lib/mkfifoat.c (includes): Likewise.
19117         * lib/symlinkat.c (includes): Likewise.
19118
19119         openat: allow return of fd 0
19120         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19121         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19122         unistd-safer.
19123         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19124         <fcntl.h>; this module does not leak fds.
19125         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19126         must be allowed to return 0, leaving openat_safer to add the
19127         safety.
19128         (openat_permissive): Avoid writing to just-opened fd 2 if
19129         restoring the current directory fails.
19130         * lib/openat-die.c (openat_restore_fail): Add comment.
19131         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19132         (save_cwd): Guarantee safe fd, but without use of open_safer.
19133         * tests/test-openat.c: New test.
19134         * modules/openat-tests (Files, Makefile.am): Distribute and build
19135         new file.
19136
19137         relocatable-prog-wrapper: fix build
19138         * modules/relocatable-prog-wrapper (Files): Update name of
19139         canonicalize m4 file, broken on 2009-09-17.
19140         Reported by emad hajjar <aleppos@hotmail.com>.
19141
19142 2009-09-19  Bruno Haible  <bruno@clisp.org>
19143
19144         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19145         * lib/safe-alloc.c: Likewise.
19146         Reported by Ian Beckwith <ianb@erislabs.net>.
19147
19148 2009-09-18  Bruno Haible  <bruno@clisp.org>
19149
19150         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19151         Reported by <erobles@sensacd.com.mx>.
19152
19153 2009-09-17  Eric Blake  <ebb9@byu.net>
19154
19155         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19156         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19157         slashes when checking if last component is missing.
19158         * tests/test-canonicalize.c (main): Test this.
19159
19160         canonicalize, canonicalize-lgpl: honor // if distinct from /
19161         * modules/canonicalize (Files): Add double-slash-root.m4.
19162         * modules/canonicalize-lgpl (Files): Likewise.
19163         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19164         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19165         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19166         fallback definition.
19167         (canonicalize_filename_mode): Use it to protect //.
19168         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19169         (__realpath): Likewise.
19170         * tests/test-canonicalize.c (main): Test this.
19171         * tests/test-canonicalize-lgpl.c (main): Likewise.
19172         * modules/canonicalize-tests (Depends-on): Add same-inode.
19173         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19174
19175         canonicalize-lgpl: fix glibc bug with trailing slash
19176         * m4/canonicalize-lgpl.m4: Move contents...
19177         * m4/canonicalize.m4: ...here.
19178         (gl_CANONICALIZE_LGPL): Factor realpath check...
19179         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19180         glibc 2.3.5 bug, fixed 2005-04-27.
19181         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19182         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19183         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19184         * modules/canonicalize-lgpl (Files): Manage file rename.
19185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19186         * modules/stdlib (Makefile.am): Substitute witness.
19187         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19188         is needed.
19189         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19190         replacement is required.
19191         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19192         * doc/glibc-functions/canonicalize_file_name.texi
19193         (canonicalize_file_name): Document this.
19194         * doc/posix-functions/realpath.texi (realpath): Likewise.
19195
19196         canonicalize-lgpl: reject non-directory with trailing slash
19197         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19198         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19199         catches failures in glibc 2.3.5.
19200         * tests/test-canonicalize.c (main): Likewise.
19201
19202         canonicalize-lgpl: use native realpath if it works
19203         * lib/canonicalize-lgpl.c (realpath): Guard with
19204         FUNC_REALPATH_WORKS.
19205         * lib/stdlib.in.h (realpath): Make declaration optional based on
19206         HAVE_REALPATH.
19207         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19208         native realpath works.
19209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19210         * modules/stdlib (Makefile.am): Substitute witness.
19211
19212         canonicalize, canonicalize-lgpl: use <stdlib.h>
19213         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19214         (Include): Mention <stdlib.h>.
19215         (configure.ac): Mention functions we provide.
19216         * modules/canonicalize (configure.ac): Likewise.
19217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19218         realpath if canonicalize_file_name is missing.
19219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19220         * modules/stdlib (Makefile.am): Substitute witnesses.
19221         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19222         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19223         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19224         * NEWS: Document this.
19225         * doc/glibc-functions/canonicalize_file_name.texi
19226         (canonicalize_file_name): Likewise.
19227         * doc/posix-functions/realpath.texi (realpath): Likewise.
19228         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19229
19230         test-canonicalize: consolidate into single C program
19231         * tests/test-canonicalize.sh: Delete; move setup into...
19232         * tests/test-canonicalize.c (main): ...the program, making it
19233         easier to run in debugger.  Add some tests.
19234         * modules/canonicalize-tests (Files): Remove unused file.
19235         (Depends-on): Add progname.
19236         (configure.ac, Makefile.am): Simplify.
19237
19238         test-canonicalize-lgpl: consolidate into single C program
19239         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19240         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19241         easier to run in debugger.  Add some tests.
19242         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19243         (configure.ac, Makefile.am): Simplify.
19244
19245         canonicalize: avoid resolvepath
19246         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19247         unnecessary checks.
19248         * lib/canonicalize.c (includes): Simplify.
19249         (canonicalize_file_name): Drop resolvepath implementation.
19250         * modules/canonicalize (Depends-on): Drop filenamecat.
19251
19252         canonicalize: don't lose errno
19253         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19254         over calls to free.
19255
19256         canonicalize: simplify errno handling
19257         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19258         assignment.
19259
19260         canonicalize, canonicalize-lgpl: update module dependencies
19261         * modules/canonicalize (Depends-on): Add extensions, lstat,
19262         pathmax, stdlib.
19263         (Files): Drop pathmax.h.
19264         (configure.ac): Adjust macro name.
19265         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19266         lstat, stdlib, sys_stat.
19267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19268         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19269         extensions.
19270         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19271         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19272         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19273         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19274         declaration, if available.
19275         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19276         we can rely on the readlink module.
19277         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19278         (includes): Use <unistd.h> unconditionally.
19279
19280 2009-09-17  Eric Blake  <ebb9@byu.net>
19281
19282         maint: make Include sections of modules consistent
19283         * modules/alloca: Use only header name; no need to list #include.
19284         * modules/alloca-opt: Likewise.
19285         * modules/arpa_inet: Likewise.
19286         * modules/canon-host: Likewise.
19287         * modules/configmake: Likewise.
19288         * modules/dirent: Likewise.
19289         * modules/eealloc: Likewise.
19290         * modules/environ: Likewise.
19291         * modules/fchdir: Likewise.
19292         * modules/fcntl: Likewise.
19293         * modules/fcntl-h: Likewise.
19294         * modules/gethrxtime: Likewise.
19295         * modules/gettime: Likewise.
19296         * modules/ignore-value: Likewise.
19297         * modules/inet_ntop: Likewise.
19298         * modules/inet_pton: Likewise.
19299         * modules/inttypes: Likewise.
19300         * modules/isnand-nolibm: Likewise.
19301         * modules/isnanf-nolibm: Likewise.
19302         * modules/mbchar: Likewise.
19303         * modules/mbfile: Likewise.
19304         * modules/mbiter: Likewise.
19305         * modules/mbuiter: Likewise.
19306         * modules/netdb: Likewise.
19307         * modules/netinet_in: Likewise.
19308         * modules/nproc: Likewise.
19309         * modules/pagealign_alloc: Likewise.
19310         * modules/poll: Likewise.
19311         * modules/printf-frexp: Likewise.
19312         * modules/pthread: Likewise.
19313         * modules/putenv: Likewise.
19314         * modules/random_r: Likewise.
19315         * modules/relocatable-prog: Likewise.
19316         * modules/search: Likewise.
19317         * modules/select: Likewise.
19318         * modules/selinux-h: Likewise.
19319         * modules/settime: Likewise.
19320         * modules/signal: Likewise.
19321         * modules/size_max: Likewise.
19322         * modules/socklen: Likewise.
19323         * modules/ssize_t: Likewise.
19324         * modules/stdarg: Likewise.
19325         * modules/stdbool: Likewise.
19326         * modules/stddef: Likewise.
19327         * modules/stdint: Likewise.
19328         * modules/stdio: Likewise.
19329         * modules/stdlib: Likewise.
19330         * modules/string: Likewise.
19331         * modules/strings: Likewise.
19332         * modules/sys_file: Likewise.
19333         * modules/sys_ioctl: Likewise.
19334         * modules/sys_select: Likewise.
19335         * modules/sys_socket: Likewise.
19336         * modules/sys_stat: Likewise.
19337         * modules/sys_time: Likewise.
19338         * modules/sys_times: Likewise.
19339         * modules/sys_utsname: Likewise.
19340         * modules/sys_wait: Likewise.
19341         * modules/sysexits: Likewise.
19342         * modules/time: Likewise.
19343         * modules/times: Likewise.
19344         * modules/tmpfile: Likewise.
19345         * modules/trim: Likewise.
19346         * modules/unistd: Likewise.
19347         * modules/wchar: Likewise.
19348         * modules/wctype: Likewise.
19349
19350 2009-09-17  Bruno Haible  <bruno@clisp.org>
19351
19352         Make getdate.y compile on QNX and NetBSD 5 / i386.
19353         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19354         TIME_T_FITS_IN_LONG_INT.
19355         * lib/getdate.y (long_time_t): New type.
19356         (relative_time): Change type of 'seconds' field to long_time_t.
19357         (get_date): Update types of local variables. Check against overflow
19358         during conversion from long_time_t to time_t.
19359         Reported by Matt Kraai <kraai@ftbfs.org>
19360         and Hasso Tepper <hasso@netbsd.org>.
19361
19362 2009-09-17  Bruno Haible  <bruno@clisp.org>
19363
19364         * modules/COPYING: Update copyright years.
19365         * modules/README: Likeiwse.
19366         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19367         Reported by Ian Beckwith <ianb@erislabs.net>.
19368
19369 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19370
19371         * users.txt: Update references for gnuit package.
19372
19373 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19374
19375         * m4/getdelim.m4: Fix typo in copyright line.
19376
19377 2009-09-17  Bruno Haible  <bruno@clisp.org>
19378
19379         * lib/atoll.c: Use the standard header with GPL copyright.
19380         * lib/argz.in.h: Likewise.
19381         * lib/glob.c: Likewise.
19382         * lib/glob-libc.h: Likewise.
19383         * lib/random_r.c: Likewise.
19384         * lib/siglist.h: Likewise.
19385         * lib/strsignal.c: Likewise.
19386         Reported by Ian Beckwith <ianb@erislabs.net>.
19387
19388 2009-09-17  Eric Blake  <ebb9@byu.net>
19389
19390         rmdir: ensure correct dependency order
19391         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19392
19393 2009-09-17  Bruno Haible  <bruno@clisp.org>
19394
19395         Disable assertion that fails on NetBSD 5 / i386.
19396         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19397         Reported by Sam Steingold <sds@gnu.org>
19398         and Hasso Tepper <hasso@netbsd.org>.
19399
19400 2009-09-16  Eric Blake  <ebb9@byu.net>
19401
19402         unlinkdir: port to mingw
19403         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19404         on which no one can unlink a directory.
19405
19406         stdlib: sort witness names
19407         * modules/stdlib (Makefile.am): Sort replacements.
19408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19409         * lib/stdlib.in.h: Likewise.
19410
19411         parse-duration-tests: avoid link failure
19412         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19413         LIBINTL.
19414         Reported by Tom G. Christensen.
19415
19416         openat-tests: ensure unlinkat behaves like rmdir
19417         * tests/test-rmdir.c (main): Factor guts...
19418         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19419         * modules/rmdir-tests (Files): Ship new file.
19420         * modules/openat-tests: New test.
19421         * tests/test-unlinkat.c: Likewise.
19422
19423         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19424         * modules/rmdir-errno (Status, Notice): Now obsolete.
19425
19426         rmdir: work around cygwin 1.5.x and mingw bugs
19427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19428         * lib/rmdir.c (rmdir): Work around it.
19429         * modules/rmdir (Status, Notice): No longer obsolete.
19430         (Files): Add dos.m4.
19431         (Depends-on): Add unistd.
19432         (configure.ac): Set witnesses.
19433         (License): Relax to LGPLv2+.
19434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19435         * modules/unistd (Makefile.am): Substitute witnesses.
19436         * lib/unistd.in.h (rmdir): Declare replacement.
19437         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19438         * modules/rmdir-tests: New tests.
19439         * tests/test-rmdir.c: Likewise.
19440
19441 2009-09-15  Eric Blake  <ebb9@byu.net>
19442
19443         fchdir: improve use of replacement functions
19444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19446         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19447         REPLACE_CLOSEDIR.
19448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19449         * modules/sys_stat (Makefile.am): Substitute correct witness.
19450         * modules/dirent (Makefile.am): Likewise.
19451         * modules/unistd (Makefile.am): Likewise.
19452         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19453         * lib/unistd.in.h (dup): Likewise.
19454         * lib/sys_stat.in.h (fstat): Likewise.
19455
19456         maint: ignore gnulib-tool temp files
19457         * .gitignore: Ignore files created during gnulib-tool --test.
19458
19459 2009-09-13  Jim Meyering  <meyering@redhat.com>
19460
19461         posixtm: don't reject a time that specify "60" as the number of seconds
19462         * lib/posixtm.c (posixtime): The code to reject invalid dates
19463         would also reject a time specified with the .60 suffix.
19464         But POSIX allows that, in order to accommodate leap seconds.
19465         So don't reject it.
19466         (main): Adjust tests accordingly.
19467         * modules/posixtm (Depends-on): Add stpcpy.
19468
19469 2009-09-11  Jim Meyering  <meyering@redhat.com>
19470
19471         announce-gen: include [$release_type] in emitted Subject:
19472         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
19473         e.g., [stable] in the emitted Subject: line.
19474
19475 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19476
19477         Remove obsolete macros from several modules.
19478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
19479         obsolete Autoconf macros with their modern counterparts.
19480         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
19481         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
19482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
19483         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19484         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
19485         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19487         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19488         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19489         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
19490         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19491         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19492         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19493         * m4/sockets.m4 (gl_SOCKETS): Likewise.
19494         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
19495         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
19496         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19497         * m4/time_r.m4 (gl_TIME_R): Likewise.
19498         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19499         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
19500         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19501
19502         Fix copyright header in build-aux scripts.
19503         * build-aux/git-version-gen: Fix copyright header to match GPLv3
19504         recommendation.
19505         * build-aux/ncftpput-ftp: Likewise.
19506         * build-aux/update-copyright: Likewise.
19507
19508 2009-09-09  Eric Blake  <ebb9@byu.net>
19509
19510         test-link: allow Linux choice of errno
19511         * tests/test-link.c (main): Relax test for alternate error.
19512
19513         strndup: fix improper m4 caching
19514         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
19515         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
19516         (gl_PREREQ_STRNDUP): Delete.
19517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
19518         * modules/string (Makefile.am): Substitute it.
19519         * lib/string.in.h (strndup): Modernize prototype.
19520
19521         getcwd: port to mingw
19522         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
19523         different from the POSIX assumptions made throughout the getcwd
19524         module; fortunately, the mingw getcwd does not need replacement.
19525         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
19526         * modules/getcwd-tests: New test.
19527         * tests/test-getcwd.c: Likewise.
19528
19529         link: fix platform bugs
19530         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
19531         * lib/link.c (link): Work around them.  Fix related mingw bug.
19532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
19533         * modules/unistd (Makefile.am): Substitute it.
19534         * lib/unistd.in.h (link): Declare replacement.
19535         * doc/posix-functions/link.texi (link): Document this.
19536         * modules/link (Depends-on): Add strdup-posix, sys_stat.
19537
19538         test-link: consolidate into single C program, test more cases
19539         * tests/test-link.sh: Delete.
19540         * tests/test-link.c: Test more error conditions.  Exposes bugs on
19541         at least Cygwin and Solaris.
19542         * modules/link-tests (Files): Remove unused file.
19543         (Depends-on): Add errno, sys_stat.
19544         (Makefile.am): Simplify.
19545
19546 2009-09-08  Bruno Haible  <bruno@clisp.org>
19547
19548         Work around towlower, towupper bug on mingw.
19549         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
19550         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
19551         * doc/posix-functions/towlower.texi: Mention the mingw bug.
19552         * doc/posix-functions/towupper.texi: Likewise.
19553         Reported by Eric Blake.
19554
19555 2009-09-08  Jim Meyering  <meyering@redhat.com>
19556
19557         build: don't try to run autoheader if we don't use it
19558         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
19559         is not used in configure.ac.
19560
19561 2009-09-08  Eric Blake  <ebb9@byu.net>
19562
19563         euidaccess: fix compilation error
19564         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
19565
19566         rawmemchr: relax license
19567         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
19568         okay.
19569         Reported by Jim Meyering.
19570
19571         mkfifoat: new module
19572         * modules/mkfifoat: New file.
19573         * lib/mkfifoat.c: Likewise.
19574         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
19575         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19576         * modules/sys_stat (Makefile.am): Use them.
19577         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
19578         * MODULES.html.sh (File system functions): Mention module.
19579         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19580         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19581         * modules/mkfifoat-tests: New test.
19582         * tests/test-mkfifoat.c: Likewise.
19583
19584         strchrnul: relax license
19585         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
19586         okay.
19587         Reported by Jim Meyering.
19588
19589 2009-09-08  Eric Blake  <ebb9@byu.net>
19590
19591         fstatat: fix compilation on Solaris
19592         * lib/fstatat.c (includes): Add fcntl.h.
19593         Reported by Pádraig Brady.
19594
19595 2009-09-07  Eric Blake  <ebb9@byu.net>
19596
19597         rename: modernize replacement
19598         * modules/rename (Depends-on): Add stdio.
19599         (configure.ac): Declare witness.
19600         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
19601         stdio take care of replacement.
19602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
19603         * modules/stdio (Makefile.am): Substitute them.
19604         * lib/stdio.in.h (rename): Declare replacement.
19605         * lib/rename.c (includes): Allow cross-compilation to non-windows
19606         machines.
19607         * doc/posix-functions/rename.texi (rename): Improve
19608         documentation.
19609
19610         stdio: sort witness names
19611         * modules/stdio (Makefile.am): Sort replacements.
19612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19613         * lib/stdio.in.h: Likewise.
19614
19615         getcwd: minor cleanups
19616         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
19617         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
19618
19619         openat: provide more convenience names
19620         * modules/faccessat (configure.ac): Add C witness.
19621         * lib/unistd.in.h (readlinkat): Fix typo.
19622         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
19623         convenience wrappers.
19624         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
19625         wrappers in syntax checks.
19626
19627 2009-09-06  Eric Blake  <ebb9@byu.net>
19628
19629         doc: fix comments in recent patches
19630         * lib/faccessat.c: Mention correct function.
19631         * lib/fchmodat.c: Likewise.
19632         * lib/fchownat.c: Likewise.
19633         * lib/symlinkat.c: Likewise.
19634         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
19635         constants.
19636
19637         faccessat, symlinkat: continue cleanup of previous patch
19638         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
19639         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19640         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
19641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
19642         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
19643         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
19644         set.
19645
19646 2009-09-06  Bruno Haible  <bruno@clisp.org>
19647
19648         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
19649         (fstatat): Declare if GNULIB_FSTATAT is set.
19650         (mkdirat): Declare if GNULIB_MKDIRAT is set.
19651         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
19652         (unlinkat): Declare if GNULIB_UNLINKAT is set.
19653         * modules/fcntl-h (Files): Remove m4/openat.m4.
19654         * modules/sys_stat (Files): Remove m4/openat.m4.
19655         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
19656         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
19657         * modules/unistd (Files): Remove m4/openat.m4.
19658         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
19659         GNULIB_OPENAT.
19660         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
19661         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
19662         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19663         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
19664         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
19665         gl_OPENAT_DEFAULTS.
19666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
19667         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
19668         Don't require gl_OPENAT_DEFAULTS.
19669         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
19670         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
19671         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
19672         (gl_OPENAT_DEFAULTS): Remove macro.
19673
19674 2009-09-06  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/openat (configure.ac): Remove unneeded witness.
19677
19678 2009-09-06  Bruno Haible  <bruno@clisp.org>
19679
19680         Set errno to ENOSYS when a function is entirely unsupported.
19681         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
19682         EOPNOTSUPP.
19683         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19684         * modules/chown (Depends-on): Remove errno.
19685
19686 2009-09-06  Bruno Haible  <bruno@clisp.org>
19687
19688         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
19689
19690 2009-09-06  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/sys_stat.in.h: Fix preprocessor command indentation.
19693
19694 2009-09-06  Ben Pfaff  <blp@gnu.org>
19695             Bruno Haible  <bruno@clisp.org>
19696
19697         Work around a glibc bug in strtok_r.
19698         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
19699         Undefine if UNDEFINE_STRTOK_R is set.
19700         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
19701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19702         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
19703         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
19704         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
19705         UNDEFINE_STRTOK_R.
19706         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
19707
19708 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19709
19710         exclude: minor fix
19711         * lib/exclude.c: Include wctype.h
19712
19713 2009-09-06  Akim Demaille  <demaille@gostai.com>
19714
19715         bootstrap: improve error message
19716         * build-aux/bootstrap (find_tool): Upon failure, report the list
19717         of candidates.
19718         Honor the initial value of the envvar.
19719
19720 2009-09-05  Eric Blake  <ebb9@byu.net>
19721
19722         symlinkat: new module
19723         * modules/symlinkat: New file.
19724         * lib/symlinkat.c: Likewise.
19725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19727         * modules/unistd (Makefile.am): Use them.
19728         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
19729         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
19730         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
19731         * MODULES.html.sh (File system functions): Mention module.
19732         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19733         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19734         * modules/symlinkat-tests: New test.
19735         * tests/test-symlinkat.c: Likewise.
19736
19737         test-openat-safer: add more checks
19738         * tests/test-openat-safer.c (main): Check more code paths.
19739
19740 2009-09-05  Jim Meyering  <meyering@redhat.com>
19741
19742         syntax-check: detect unnecessary inclusion of openat.h
19743         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
19744
19745 2009-09-05  Bruno Haible  <bruno@clisp.org>
19746
19747         Support towlower, towupper.
19748         * doc/posix-functions/towlower.texi: Mention module wctype.
19749         * doc/posix-functions/towupper.texi: Likewise.
19750         * lib/wctype.in.h (towlower, towupper): New functions.
19751         * tests/test-wctype.c: Include stdio.h, stdlib.h.
19752         (ASSERT): New macro.
19753         (e): New variable.
19754         (main): Test also towlower, towupper. Test WEOF argument.
19755         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19756
19757 2009-09-05  Bruno Haible  <bruno@clisp.org>
19758
19759         Fix conversion behaviour when the input is invalid.
19760         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
19761         mark occurring in first pass of indirect conversion.
19762         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
19763         input.
19764         Found by clang's static analyzer.
19765
19766 2009-09-05  Bruno Haible  <bruno@clisp.org>
19767
19768         * tests/test-striconveh.c (main): Test indirect conversion on platforms
19769         where direct conversion is possible.
19770
19771 2009-09-04  Eric Blake  <ebb9@byu.net>
19772
19773         openat: fail with ENOENT on empty name
19774         * lib/openat-proc.c (openat_proc_name): Special-case the empty
19775         buffer.
19776
19777         link-follow: fix logic bug in prior patch
19778         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
19779         reversed sense of yes and no in prior patch.  Avoid confusing
19780         compilation failure with desired semantics.
19781
19782         link-follow: accomodate mingw and cross-compilation
19783         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
19784         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
19785         cross-compilation results to -1, to make linkat easier to
19786         implement when cross-compiling.  Trivially support mingw.
19787         * modules/link-follow (configure.ac): Call new name.
19788         * NEWS: Mention this.
19789
19790 2009-09-03  Eric Blake  <ebb9@byu.net>
19791
19792         faccessat: compile replacement
19793         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
19794         needed.
19795
19796         fts: fix compilation error
19797         * lib/fts.c (includes): Re-add "openat.h", for
19798         openat_needs_fchdir.
19799
19800         faccessat: new module
19801         * modules/faccessat: New file.
19802         * lib/faccessat.c: Likewise.
19803         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19805         * modules/unistd (Makefile.am): Use it.
19806         * lib/unistd.in.h (faccessat): Declare it.
19807         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
19808         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
19809         * MODULES.html.sh (File system functions): Mention it.
19810         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
19811         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19812
19813         euidaccess: prefer POSIX over non-standard implementation
19814         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
19815         * lib/euidaccess.c (euidaccess): Use it if available.
19816
19817         openat: make template easier to use
19818         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
19819         AT_FUNC_F2 to be undefined.
19820         (VALIDATE_FLAG): New macro; use it to reject bad flags.
19821         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
19822         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
19823         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
19824         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
19825         Likewise.
19826         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
19827         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
19828         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
19829         Likewise.
19830
19831         openat: declare in POSIX headers
19832         * NEWS: Mention this.
19833         * modules/openat (configure.ac): Declare witnesses.
19834         (Depends-on): Add fcntl-h, sys_stat, unistd.
19835         (Include): Mention correct headers.
19836         * modules/fcntl-h (Depends-on): Add link-warning.
19837         (Files): Add openat.m4.
19838         (Makefile.am): Substitute witnesses.
19839         * modules/sys_stat (Files, Makefile.am): Likewise.
19840         * modules/unistd (Files, Makefile.am): Likewise.
19841         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
19842         (gl_OPENAT_DEFAULTS): New macro.
19843         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
19844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
19845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
19846         (SYS_STAT_H): Remove unused variable.
19847         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
19848         * lib/fcntl--.h (includes): Remove unneeded header.
19849         * lib/openat-safer.c (includes): Likewise.
19850         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
19851         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
19852         appropriate headers.
19853         (__OPENAT_PREFIX): Delete.
19854         * lib/fcntl.in.h (openat): Provide declaration.
19855         (AT_FDCWD): Fix Solaris bug.
19856         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
19857         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
19858         * lib/fchmodat.c (includes):  Adjust to find declaration.
19859         * lib/fchownat.c (includes): Likewise.
19860         * lib/mkdirat.c (includes): Likewise.
19861         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
19862         still visible.
19863
19864 2009-09-02  Eric Blake  <ebb9@byu.net>
19865
19866         errno: use consistently
19867         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
19868         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
19869         * lib/canonicalize.c (ELOOP): Likewise.
19870         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
19871         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
19872         * lib/lchown.c (EOPNOTSUPP): Likewise.
19873         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
19874         * lib/savewd.c (ESTALE): Likewise.
19875         * lib/settime.c (ENOSYS): Likewise.
19876         * lib/utimens.c (ENOSYS): Likewise.
19877         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
19878         * lib/chdir-safer.c (ELOOP): Likewise.
19879         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
19880         * modules/c-stack (Depends-on): Add errno.
19881         * modules/canonicalize (Depends-on): Likewise.
19882         * modules/chdir-safer (Depends-on): Likewise.
19883         * modules/fdopendir (Depends-on): Likewise.
19884         * modules/inet_ntop (Depends-on): Likewise.
19885         * modules/inet_pton (Depends-on): Likewise.
19886         * modules/lchown (Depends-on): Likewise.
19887         * modules/openat (Depends-on): Likewise.
19888         * modules/savewd (Depends-on): Likewise.
19889         * modules/settime (Depends-on): Likewise.
19890         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
19891
19892         fts: avoid leaking fds
19893         * modules/fts (Depends-on): Add cloexec.
19894         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
19895         flag.
19896
19897         fts: make directory fds more robust
19898         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
19899         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
19900
19901         backupfile, chdir-long, fts, savedir: make safer
19902         * lib/backupfile.c (includes): Use "dirent--.h", since
19903         numbered_backup can write to stderr during readdir.
19904         * lib/savedir.c (includes): Likewise.
19905         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
19906         emulation can write to stderr on failure.
19907         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
19908         * lib/getcwd.c: Document why opendir_safer is unused.
19909         * lib/glob.c: Likewise.
19910         * lib/scandir.c: Likewise.
19911         * lib/openat-proc.c: Likewise, for open_safer.
19912         * modules/backupfile (Depends-on): Add dirent-safer.
19913         * modules/savedir (Depends-on): Likewise.
19914         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
19915         * modules/chdir-long (Depends-on): Add openat-safer.
19916
19917         openat-safer: new module
19918         * modules/openat-safer: New file.
19919         * lib/openat-safer.c: Likewise.
19920         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
19921         * lib/fcntl-safer.h (openat_safer): Declare.
19922         * lib/fcntl--.h (openat): Override.
19923         * MODULES.html.sh (File descriptor based I/O): Mention it.
19924         * lib/openat.h: Add double-inclusion guards.
19925         * lib/openat.c (includes): Only include "fcntl-safer.h", not
19926         "fcntl--.h", so we can implement openat.
19927         * modules/openat-safer-tests: New test.
19928         * tests/test-openat-safer.c: New file.
19929
19930         dirent-safer: new module
19931         * modules/dirent-safer: New file.
19932         * lib/dirent--.h: Likewise.
19933         * lib/dirent-safer.h: Likewise.
19934         * lib/opendir-safer.c: Likewise.
19935         * m4/dirent-safer.m4: Likewise.
19936         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
19937         * modules/dirent-safer-tests: New test.
19938         * tests/test-dirent-safer.c: New file.
19939         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
19940
19941         fdopendir: optimize on mingw
19942         * lib/unistd.in.h (_gl_directory_name): New prototype.
19943         * lib/fchdir.c (_gl_directory_name): Implement it.
19944         (fchdir): Use it to simplify implementation.
19945         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
19946         fchdir, when available, to avoid calling [f]chdir().
19947
19948         fdopendir: split into its own module
19949         * lib/openat.c (fdopendir): Move...
19950         * lib/fdopendir.c: ...into new file.
19951         * modules/fdopendir: New module.
19952         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
19953         * modules/openat (Depends-on): Add fdopendir.
19954         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
19955         fdopendir here.
19956         * modules/savedir (Depends-on): Only need fdopendir, not full
19957         openat.
19958         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
19959         * lib/openat.h (fdopendir): Drop prototype.
19960         * lib/dirent.in.h (fdopendir): Provide prototype.
19961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
19962         * modules/dirent (Makefile.am): Substitute them.
19963         * MODULES.html.sh (File system functions): Mention it.
19964         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
19965         * modules/fdopendir-tests: New file.
19966         * tests/test-fdopendir.c: Likewise.
19967
19968         fchdir: use more consistent macro convention
19969         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
19970         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
19971         REPLACE_FCHDIR, rather than relying on config.h macros.
19972         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
19973         inside a single make-time REPLACE_FCHDIR block, rather than using
19974         the config.h FCHDIR_REPLACEMENT.
19975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
19976         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
19977         Manage fstat replacement.
19978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
19979         REPLACE_FCHDIR.
19980         * modules/sys_stat (Files): Add m4/unistd_h.m4.
19981         (Makefile.am): Substitute REPLACE_FCHDIR.
19982         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
19983         FCHDIR_REPLACEMENT.
19984         * lib/dup-safer.c (dup_safer): Likewise.
19985         * lib/dup2.c (rpl_dup2): Likewise.
19986         * lib/dup3.c (rpl_dup3): Likewise.
19987         * lib/open.c (rpl_open): Likewise.
19988
19989         fchdir: simplify error handling, and support dup3
19990         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
19991         stdbool, malloc-posix, realloc-posix.
19992         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
19993         (ensure_dirs_slot): Return false on allocation failure.
19994         (rpl_dup2): Delete.
19995         (_gl_register_dup): New function.
19996         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
19997         (_gl_register_fd): Close fd on allocation failure.
19998         * lib/fcntl.in.h (_gl_register_fd): Update signature.
19999         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20000         prototype.
20001         (rpl_dup2_fchdir): Delete prototype.
20002         * lib/open.c (open): Update caller.
20003         * lib/dup2.c (dup2): Track fchdir metadata.
20004         * lib/dup3.c (dup3): Likewise.
20005         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20007
20008 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20009
20010         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20011         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20012         don't pass arguments to AC_OUTPUT.
20013
20014 2009-09-02  Bruno Haible  <bruno@clisp.org>
20015
20016         * modules/mkdtemp (License): Relicense under LGPLv2+.
20017         Reported by Paolo Bonzini.
20018
20019 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20020
20021         Replace uses of obsolete autoconf macros in Jim's modules.
20022         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20023         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20024         can evoke a warning from autoconf when run with -Wobsolete
20025         enabled.  They were declared obsolete for good reasons (see
20026         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20027         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20028         should not continue using the deprecated macros.
20029         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20030         obsolete Autoconf macros with modern counterparts.
20031         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20032         * m4/dos.m4 (gl_AC_DOS): Likewise.
20033         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20034         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20035         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20036         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20037         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20039         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20040         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20041         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20042         Likewise.
20043         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20044         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20045         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20046         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20047         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20048         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20049
20050 2009-09-01  Eric Blake  <ebb9@byu.net>
20051
20052         fchdir: fix off-by-one bug in previous patch
20053         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20054         (_gl_unregister_fd): Delete useless if.
20055
20056 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20057
20058         maint.mk: sort the list of syntax-check rules
20059         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20060         easier to get a sense of progress when the rules are run sequentially
20061         and take a long time.
20062
20063 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20064
20065         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20066         * modules/netinet_in: Likewise.
20067         * modules/sys_file: Likewise.
20068         * modules/sys_ioctl: Likewise.
20069         * modules/sys_select: Likewise.
20070         * modules/sys_socket: Likewise.
20071         * modules/sys_stat: Likewise.
20072         * modules/sys_time: Likewise.
20073         * modules/sys_times: Likewise.
20074         * modules/sys_utsname: Likewise.
20075         * modules/sys_wait: Likewise.
20076
20077 2009-09-01  Jim Meyering  <meyering@redhat.com>
20078
20079         fts: help ensure that return values are not ignored
20080         * lib/fts_.h (__GNUC_PREREQ): Define.
20081         (__attribute_warn_unused_result__): Define.
20082         (fts_children, fts_close, fts_open, fts_read): Declare with
20083         __attribute_warn_unused_result__.
20084
20085         fts: fts_close now fails also when closing a dir file descriptor fails
20086         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20087         and propagate to caller, along with errno.
20088
20089         announce-gen: correct formatting in --help output
20090         * build-aux/announce-gen (usage): Move the one-line description in
20091         --help output "up", to where it belongs, just after Usage:.
20092
20093 2009-08-31  Eric Blake  <ebb9@byu.net>
20094
20095         fchdir: port to mingw
20096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20097         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20098         opened, then use a substitute.
20099         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20100         replacement.
20101         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20102         (_gl_register_fd): No need to check stat if open already filters
20103         all directories.
20104         (fchdir): Fix error condition to match POSIX.
20105         * modules/fchdir (Depends-on): Add sys_stat.
20106         * doc/posix-functions/open.texi (open): Document the limitation.
20107         * modules/fchdir-tests: New file.
20108         * tests/test-fchdir.c: Likewise.
20109
20110         canonicalize: allow cross-testing from cygwin to mingw
20111         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20112         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20113         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20114         Likewise.
20115         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20116         target does not support symlinks.
20117         * tests/test-canonicalize-lgpl.sh: Likewise.
20118
20119         chown: avoid compilation warning on mingw
20120         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20121         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20122         mingw.
20123         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20124         * modules/chown (Depends-on): Add errno.
20125
20126 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20127
20128         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20129         command.
20130
20131 2009-08-31  Jim Meyering  <meyering@redhat.com>
20132
20133         canonicalize: remove useless initialization
20134         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20135         initialization of local, "end".
20136
20137 2009-08-30  Bruno Haible  <bruno@clisp.org>
20138
20139         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20140         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20141         ENOSYS.
20142
20143 2009-08-30  Bruno Haible  <bruno@clisp.org>
20144
20145         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20146         /usr/xpg4/bin/tr when it exists.
20147         * tests/test-pipe-filter-gi1.sh: Likewise.
20148
20149 2009-08-30  Bruno Haible  <bruno@clisp.org>
20150
20151         Work around deficient /usr/bin/id program on Solaris.
20152         * tests/test-file-has-acl.sh (ID): New variable.
20153         * tests/test-set-mode-acl.sh (ID): Likewise.
20154         * tests/test-copy-acl.sh (ID): Likewise.
20155         * tests/test-copy-file.sh (ID): Likewise.
20156
20157 2009-08-30  Bruno Haible  <bruno@clisp.org>
20158
20159         New module 'xstriconveh'.
20160         * lib/xstriconveh.h: New file.
20161         * lib/xstriconveh.c: New file.
20162         * modules/xstriconveh: New file.
20163
20164 2009-08-30  Bruno Haible  <bruno@clisp.org>
20165
20166         Make it easier to use mem_cd_iconveh.
20167         * lib/striconveh.h (iconveh_t): New type.
20168         (iconveh_open, iconveh_close): New declarations.
20169         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20170         with a single 'const iconveh_t *' argument.
20171         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20172         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20173         with a single 'const iconveh_t *' argument.
20174         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20175         * tests/test-striconveh.c (main): Update.
20176         * NEWS: Mention the change.
20177
20178 2009-08-30  Bruno Haible  <bruno@clisp.org>
20179
20180         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20181         problem.
20182
20183 2009-08-30  Bruno Haible  <bruno@clisp.org>
20184
20185         Work around iconv_open problem on Solaris.
20186         * lib/iconv_open-solaris.gperf: New file.
20187         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20188         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20189         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20190         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20191         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20192         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20193
20194 2009-08-29  Jim Meyering  <meyering@redhat.com>
20195
20196         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20197         * top/maint.mk (cvs-check): Remove target; it was just an alias
20198         to the better-named vc-diff-check.
20199         (maintainer-distcheck): Remove rule.  It was used only from
20200         the (alpha/beta/major) target, and all of its commands but one
20201         were coreutils-specific.
20202         (vc-dist): Remove rule.
20203         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20204         Run vc-diff-check, not vc-dist.
20205         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20206
20207 2009-08-27  Bruno Haible  <bruno@clisp.org>
20208
20209         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20210         of 0.
20211
20212 2009-08-27  Bruno Haible  <bruno@clisp.org>
20213
20214         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20215         compilers.
20216         * doc/func.texi: Document the SunPRO C bug.
20217
20218 2009-08-27  Bruno Haible  <bruno@clisp.org>
20219
20220         Fix link error on Solaris.
20221         * tests/test-parse-duration.c (xstrdup): Remove function.
20222
20223 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20224
20225         ignore-value: handle pointer types, too
20226         * lib/ignore-value.h (__attribute__): Remove definition.
20227         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20228         of a more concise and more-often effective "(void) i" statement.
20229         (ignore_ptr): New function to suppress warnings from functions that
20230         return pointers, and to make it explicit that one function doesn't
20231         handle all cases.
20232
20233 2009-08-25  Bruno Haible  <bruno@clisp.org>
20234
20235         dup2: work around a Linux bug.
20236         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20237         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20238         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20239         Reported by Simon Josefsson.
20240
20241 2009-08-25  Jim Meyering  <meyering@redhat.com>
20242
20243         libguestfs uses gnulib
20244         * users.txt: Add libguestfs.
20245
20246 2009-08-24  Eric Blake  <ebb9@byu.net>
20247
20248         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20249         * lib/pipe2.c (includes): Add binary-io.h.
20250         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20251
20252 2009-08-24  Bruno Haible  <bruno@clisp.org>
20253
20254         Tolerate declared but missing accept4 syscall.
20255         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20256         available.
20257         * lib/sys_socket.in.h (accept4): If the function is already present,
20258         override it.
20259         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20260         * modules/accept4 (Makefile.am): Compile accept4.c always.
20261         Reported by Paolo Bonzini and Eric Blake.
20262
20263 2009-08-23  Bruno Haible  <bruno@clisp.org>
20264
20265         New module 'accept4'.
20266         * lib/sys_socket.in.h (accept4): New declaration.
20267         * lib/accept4.c: New file.
20268         * m4/accept4.m4: New file.
20269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20270         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20271         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20272         HAVE_ACCEPT4.
20273         * modules/accept4: New file.
20274         * doc/glibc-functions/accept4.texi: Mention the new module.
20275
20276 2009-08-24  Jim Meyering  <meyering@redhat.com>
20277
20278         progname: also set global program_invocation_name, when possible
20279         Before this change, a libtool-enabled program that calls glibc's
20280         error function would report the program name as
20281         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20282         * modules/progname (configure.ac): Check for a declaration of
20283         program_invocation_name.
20284         * lib/progname.c:  Include <errno.h>.
20285         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20286         Set program_invocation_name.
20287
20288 2009-08-23  Bruno Haible  <bruno@clisp.org>
20289
20290         * lib/dup3.c: Include <string.h>.
20291
20292 2009-08-23  Bruno Haible  <bruno@clisp.org>
20293
20294         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20295         * lib/pipe2.c (pipe2): Likewise.
20296         Suggested by Eric Blake.
20297
20298 2009-08-23  Bruno Haible  <bruno@clisp.org>
20299
20300         Tolerate declared but missing dup3 syscall.
20301         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20302         * lib/unistd.in.h (dup3): If the function is already present,
20303         override it.
20304         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20305         * modules/dup3 (Makefile.am): Compile dup3.c always.
20306         Reported by Paolo Bonzini.
20307
20308 2009-08-23  Bruno Haible  <bruno@clisp.org>
20309
20310         Tolerate declared but missing pipe2 syscall.
20311         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20312         available.
20313         * lib/unistd.in.h (pipe2): If the function is already present,
20314         override it.
20315         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20316         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20317         Reported by Paolo Bonzini.
20318
20319 2009-08-23  Bruno Haible  <bruno@clisp.org>
20320
20321         * lib/pipe2.c (pipe2): Move #ifs inside function.
20322
20323 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20324
20325         quotearg: document limitations of quote_these_too
20326         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20327         those limitations are created.
20328         * lib/quotearg.h (set_char_quoting): Document that digits and
20329         letters that are special after backslash are not permitted.
20330         (quotearg_char): Cross-reference set_char_quoting documentation.
20331
20332 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20333
20334         quotearg: implement custom_quoting_style
20335         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20336         right_quote fields.
20337         (set_custom_quoting): New public function.
20338         (quotearg_buffer_restyled): Add left_quote and right_quote
20339         arguments, handle them very much like locale quoting, and update
20340         all uses.
20341         (quotearg_n_custom): New public function.
20342         (quotearg_n_custom_mem): New public function.
20343         (quotearg_custom): New public function.
20344         (quotearg_custom_mem): New public function.
20345         * lib/quotearg.h: Prototype and document new public functions.
20346         (enum quoting_style): For escape_quoting_style and
20347         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20348         ignored even though they're otherwise like c_quoting_style.
20349         Add custom_quoting_style member and document with comparison to
20350         clocale_quoting_style.
20351         * tests/test-quotearg.c (custom_quotes): New array.
20352         (custom_results): New array.
20353         (main): Extend to test custom quoting.
20354
20355 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20356
20357         quotearg: fix right quote escaping when it's in quote_these_too
20358         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20359         quote, be sure to prepend only one backslash.
20360         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20361         (main): Test it.
20362
20363 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20364
20365         quotearg-tests: test escaping of embedded locale quotes
20366         * tests/test-quotearg.c (struct result_strings): Add member for
20367         new input.
20368         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20369         (inputs): Add new input.
20370         (results_g): Add expected results.
20371         (flag_results): Likewise.
20372         (locale_results): Likewise.
20373         (compare_strings): Check those.
20374
20375 2009-08-23  Bruno Haible  <bruno@clisp.org>
20376
20377         Tests for module 'dup3'.
20378         * modules/dup3-tests: New file.
20379         * tests/test-dup3.c: New file.
20380
20381         New module 'dup3'.
20382         * lib/unistd.in.h (dup3): New declaration.
20383         * lib/dup3.c: New file.
20384         * m4/dup3.m4: New file.
20385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20386         HAVE_DUP3.
20387         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20388         * modules/dup3: New file.
20389         * doc/glibc-functions/dup3.texi: Mention the new module.
20390
20391 2009-08-23  Bruno Haible  <bruno@clisp.org>
20392
20393         Tweak the dup2 test.
20394         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20395         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20396         the test file is still empty. Fix argument order of lseek.
20397
20398 2009-08-23  Bruno Haible  <bruno@clisp.org>
20399
20400         Avoid test link errors when the modules getopt-gnu, gettext are used.
20401         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20403
20404 2009-08-23  Bruno Haible  <bruno@clisp.org>
20405
20406         Fix getdtablesize() on mingw.
20407         * lib/getdtablesize.c (getdtablesize): Implement differently.
20408         * lib/unistd.in.h (getdtablesize): Improve comment.
20409
20410 2009-08-23  Bruno Haible  <bruno@clisp.org>
20411
20412         New module 'mkostemp'.
20413         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20414         * lib/stdlib.in.h (mksotemp): New declaration.
20415         * lib/mkostemp.c: New file, from glibc with modifications.
20416         * lib/tempname.h (GT_FILE): Remove outdated comment.
20417         (gen_tempname): Add flags argument.
20418         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20419         (__GT_FILE): Map to 1.
20420         (small_open, large_open): Remove macros.
20421         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20422         * lib/mkstemp.c (mkstemp): Update.
20423         * lib/mkdtemp.c (mkdtemp): Likewise.
20424         * m4/mkostemp.m4: New file.
20425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20426         HAVE_MKOSTEMP.
20427         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20428         HAVE_MKOSTEMP.
20429         * modules/mkostemp: New file, based on modules/mkstemp.
20430         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20431         * NEWS: Mention the change.
20432
20433 2009-08-23  Bruno Haible  <bruno@clisp.org>
20434
20435         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20436         Reported by Eric Blake.
20437
20438 2009-08-23  Bruno Haible  <bruno@clisp.org>
20439
20440         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20441         Reported by Eric Blake.
20442
20443 2009-08-23  Bruno Haible  <bruno@clisp.org>
20444
20445         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20446         * modules/pipe2 (Depends-on): Likewise.
20447
20448 2009-08-23  Eric Blake  <ebb9@byu.net>
20449
20450         fcntl-h: add O_TTY_INIT support
20451         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20452         * tests/test-fcntl-h.c (o): Test it.
20453         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20454
20455         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20456         * modules/fcntl: Move <fcntl.h> header replacement...
20457         * modules/fcntl-h: ...to new name, so as not to collide with
20458         like-named function.
20459         * tests/test-fcntl.c: Rename...
20460         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20461         * modules/fcntl-tests: Rename...
20462         * modules/fcntl-h-tests: ...to this.  Update test file name.
20463         * modules/chdir-long (Depends-on): Update clients.
20464         * modules/chdir-safer (Depends-on): Likewise.
20465         * modules/fcntl-safer (Depends-on): Likewise.
20466         * modules/fts (Depends-on): Likewise.
20467         * modules/mkancesdirs (Depends-on): Likewise.
20468         * modules/mkdir-p (Depends-on): Likewise.
20469         * modules/open (Depends-on): Likewise.
20470         * modules/savewd (Depends-on): Likewise.
20471         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
20472         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20473
20474 2009-08-22  Bruno Haible  <bruno@clisp.org>
20475
20476         * modules/binary-io (License): Relicense under LGPL.
20477         * modules/pipe2 (License): Likewise.
20478
20479 2009-08-22  Bruno Haible  <bruno@clisp.org>
20480
20481         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
20482         return value.
20483         * lib/pipe-filter-gi.c (filter_init): Likewise.
20484         Reported by Eric Blake.
20485
20486 2009-08-22  Bruno Haible  <bruno@clisp.org>
20487
20488         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
20489         * modules/pipe (Depends-on): Add pipe2.
20490
20491 2009-08-22  Bruno Haible  <bruno@clisp.org>
20492
20493         Tests for module 'pipe2'.
20494         * modules/pipe2-tests: New file.
20495         * tests/test-pipe2.c: New file.
20496
20497         New module 'pipe2'.
20498         * lib/unistd.in.h (pipe2): New declaration.
20499         * lib/pipe2.c: New file.
20500         * m4/pipe2.m4: New file.
20501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
20502         HAVE_PIPE2.
20503         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
20504         * modules/pipe2: New file.
20505         * doc/glibc-functions/pipe2.texi: Mention the new module.
20506
20507 2009-08-22  Bruno Haible  <bruno@clisp.org>
20508
20509         Reference some new glibc functions.
20510         * doc/glibc-functions/accept4.texi: New file.
20511         * doc/glibc-functions/dup3.texi: New file.
20512         * doc/glibc-functions/mkostemp.texi: New file.
20513         * doc/glibc-functions/pipe2.texi: New file.
20514         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
20515         (Glibc sys/socket.h): Refer to accept4.
20516         (Glibc unistd.h): Refer to dup3, pipe2.
20517         Reported by Eric Blake.
20518
20519 2009-08-22  Jim Meyering  <meyering@redhat.com>
20520             Bruno Haible  <bruno@clisp.org>
20521
20522         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
20523         This makes it so packages using automake-1.11's silent-rules option
20524         can print e.g., a single "GEN    configmake.h" line, rather than
20525         the 30+ statements that perform the job.  If you want to see the
20526         actual commands, you can still run "make V=1".
20527         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
20528         so that make output is abbreviated when those variables are defined
20529         appropriately.
20530         * modules/argz: Likewise.
20531         * modules/arpa_inet: Likewise.
20532         * modules/byteswap: Likewise.
20533         * modules/configmake: Likewise.
20534         * modules/dirent: Likewise.
20535         * modules/errno: Likewise.
20536         * modules/fcntl: Likewise.
20537         * modules/float: Likewise.
20538         * modules/fnmatch: Likewise.
20539         * modules/getopt-posix: Likewise.
20540         * modules/glob: Likewise.
20541         * modules/iconv_open: Likewise.
20542         * modules/inttypes: Likewise.
20543         * modules/localcharset: Likewise.
20544         * modules/locale: Likewise.
20545         * modules/math: Likewise.
20546         * modules/netdb: Likewise.
20547         * modules/netinet_in: Likewise.
20548         * modules/poll: Likewise.
20549         * modules/posix_spawnp-tests: Likewise.
20550         * modules/sched: Likewise.
20551         * modules/search: Likewise.
20552         * modules/selinux-h: Likewise.
20553         * modules/signal: Likewise.
20554         * modules/spawn: Likewise.
20555         * modules/stdarg: Likewise.
20556         * modules/stdbool: Likewise.
20557         * modules/stddef: Likewise.
20558         * modules/stdint: Likewise.
20559         * modules/stdio: Likewise.
20560         * modules/stdlib: Likewise.
20561         * modules/string: Likewise.
20562         * modules/strings: Likewise.
20563         * modules/sys_file: Likewise.
20564         * modules/sys_ioctl: Likewise.
20565         * modules/sys_select: Likewise.
20566         * modules/sys_socket: Likewise.
20567         * modules/sys_stat: Likewise.
20568         * modules/sys_time: Likewise.
20569         * modules/sys_times: Likewise.
20570         * modules/sys_utsname: Likewise.
20571         * modules/sys_wait: Likewise.
20572         * modules/sysexits: Likewise.
20573         * modules/time: Likewise.
20574         * modules/unistd: Likewise.
20575         * modules/wchar: Likewise.
20576         * modules/wctype: Likewise.
20577
20578 2009-08-22  Jim Meyering  <meyering@redhat.com>
20579
20580         announce-gen: detect write failure
20581         * build-aux/announce-gen: Add Coda at end.
20582         Remove equivalent-but-more-verbose block at top.
20583
20584 2009-08-19  Akim Demaille  <demaille@gostai.com>
20585
20586         bootstrap: --help to stdout.
20587         * bootstrap (usage): Don't send --help to stderr.
20588         Use a here doc instead of a long string.
20589
20590 2009-08-21  Eric Blake  <ebb9@byu.net>
20591
20592         test-popen-safer: split from test-popen
20593         * tests/test-popen.c (main): Move...
20594         * tests/test-popen.h: ...into new file.
20595         * tests/test-popen-safer2.c: New file.
20596         * modules/popen-tests (Files): Add test-popen.h.
20597         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
20598         Suggested by Bruno Haible.
20599
20600         test-fcntl-safer: split from test-open
20601         * tests/test-open.c (main): Move...
20602         * tests/test-open.h: ...into new file.
20603         * tests/test-fcntl-safer.c: New file.
20604         * modules/open-tests (Files): Add test-open.h.
20605         * modules/fcntl-safer-tests: New file.
20606         Suggested by Bruno Haible.
20607
20608         test-fopen-safer: split from test-fopen
20609         * tests/test-fopen.c (main): Move...
20610         * tests/test-fopen.h: ...into new file.
20611         * tests/test-fopen-safer.c: New file.
20612         * modules/fopen-tests (Files): Add test-fopen.h.
20613         * modules/fopen-safer-tests: New file.
20614         Suggested by Bruno Haible.
20615
20616 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20617
20618         popen-safer: test O_CLOEXEC at run-time.
20619         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
20620
20621 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20622
20623         fcntl: move more flags to the header
20624         * lib/cloexec.c: Do not define FD_CLOEXEC here.
20625         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
20626         * lib/fcntl.in.h: Do both things here.
20627
20628 2009-08-21  Jim Meyering  <meyering@redhat.com>
20629
20630         consistently remove $@-t before redirecting to it
20631         * modules/argz: Remove $@-t and $@ before redirecting to the former.
20632         * modules/alloca-opt: Likewise.
20633         * modules/byteswap: Likewise.
20634         * modules/fnmatch: Likewise.
20635         * modules/getopt-posix: Likewise.
20636         * modules/glob: Likewise.
20637         * modules/poll: Likewise.
20638         * modules/posix_spawnp-tests: Likewise.
20639         * modules/sys_socket: Likewise.
20640         * modules/sysexits: Likewise.
20641
20642 2009-08-21  Eric Blake  <ebb9@byu.net>
20643
20644         popen: simplify access to original popen
20645         * lib/popen.c (rpl_popen): No need to worry about popen being a
20646         macro.
20647         Reported by Bruno Haible.
20648
20649 2009-08-20  Eric Blake  <ebb9@byu.net>
20650
20651         build: avoid some compiler warnings
20652         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
20653         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
20654         type.
20655         (new_exclude_segment, excluded_file_pattern_p)
20656         (excluded_file_name_p): Reduce scope.
20657         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
20658         old-style declaration.
20659
20660 2009-08-20  Simon Josefsson  <simon@josefsson.org>
20661
20662         * tests/test-exclude1.sh: Handle Windows EOL.
20663         * tests/test-exclude2.sh: Likewise.
20664         * tests/test-exclude3.sh: Likewise.
20665         * tests/test-exclude4.sh: Likewise.
20666         * tests/test-exclude5.sh: Likewise.
20667         * tests/test-exclude6.sh: Likewise.
20668         * tests/test-exclude7.sh: Likewise.
20669
20670 2009-08-19  Akim Demaille  <demaille@gostai.com>
20671
20672         bootstrap: find sha1sum when named gsha1sum.
20673         * bootstrap (find_tool): New.
20674         ($SHA1SUM): New.
20675         Use it.
20676
20677 2009-08-20  Jim Meyering  <meyering@redhat.com>
20678
20679         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
20680         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
20681         expression that converts "." in a file name to "\." in the resulting
20682         regexp.  Start with a dummy statement, so that prior shell variable
20683         definitions are expanded portably.  Reported by Simon Josefsson.
20684
20685 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
20686
20687         Fix polling for writeability of a screen buffer.
20688         * lib/poll.c: Distinguish input and screen buffers for the
20689         Win32 implementation.
20690         * lib/select.c: Likewise.
20691
20692 2009-08-19  Eric Blake  <ebb9@byu.net>
20693
20694         popen-safer: prevent popen from clobbering std descriptors
20695         * modules/popen-safer: New file.
20696         * lib/popen-safer.c: Likewise.
20697         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
20698         * lib/stdio--.h (popen): Provide override.
20699         * lib/stdio-safer.h (popen_safer): Provide declaration.
20700         * tests/test-popen.c (includes): Partially test this.
20701         * modules/popen-safer-tests: New file, for more tests.
20702         * tests/test-popen-safer.c: Likewise.
20703         * MODULES.html.sh (file stream based Input/Output): Mention it.
20704
20705         tests: test some of the *-safer modules
20706         * modules/fopen-safer (Depends-on): Add fopen.
20707         * modules/fcntl-safer (Depends-on): Add fcntl.
20708         * modules/stdlib-safer (Depends-on): Add stdlib.
20709         (configure.ac): Set indicator.
20710         * modules/unistd-safer (configure.ac): Likewise.
20711         * modules/tmpfile-safer (configure.ac): Likewise.
20712         (Depends-on): Add tmpfile.
20713         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
20714         active.
20715         * tests/test-fopen.c (includes): Test safer versions when they are
20716         in use.
20717         * tests/test-open.c (includes): Likewise.
20718
20719         popen: fix cygwin 1.5 bug when stdin closed
20720         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
20721         * modules/popen: New file.
20722         * modules/popen-tests: Likewise.
20723         * tests/test-popen.c: Likewise.
20724         * m4/popen.m4: Likewise.
20725         * lib/popen.c: Likewise.
20726         * lib/stdio.in.h (popen): New declaration.
20727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
20728         * modules/stdio (Makefile.am): Likewise.
20729         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
20730
20731 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
20732
20733         maint.mk: give full control over update-copyright exclusions
20734         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
20735         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
20736         (update-copyright): Don't force inclusion of top-level
20737         ChangeLog.  Don't force exclusion of all COPYING files, but make
20738         them the default exclusion instead.
20739
20740 2009-08-16  Bruno Haible  <bruno@clisp.org>
20741
20742         Fix test failures on Solaris 10.
20743         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
20744         tests when Solaris iconv() is used.
20745         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20746         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20747         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20748         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20749         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20750
20751 2009-08-16  Bruno Haible  <bruno@clisp.org>
20752
20753         Fix test failures on Solaris 10.
20754         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
20755         'tr' program and pass it as first argument.
20756         * tests/test-pipe-filter-gi1.sh: Likewise.
20757         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
20758         program as first argument.
20759         * tests/test-pipe-filter-gi1.c (main): Likewise.
20760
20761 2009-08-16  Eric Blake  <ebb9@byu.net>
20762
20763         fpurge: fix previous commits
20764         * modules/fpurge (Makefile.am): Make replacement conditional,
20765         partially reverting 2007-04-29 change; missed in previous
20766         attempt.
20767         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
20768         is missing.
20769
20770 2009-08-16  Bruno Haible  <bruno@clisp.org>
20771
20772         Clarify fpurge's effect on the file position.
20773         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
20774         * tests/test-fpurge.c (main): Make a second pass for checking the file
20775         position.
20776
20777 2009-08-16  Bruno Haible  <bruno@clisp.org>
20778
20779         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
20780         declaration of fpurge is missing.
20781         * tests/test-fpurge.c (main): Check that the file has not more contents
20782         than expected. Close the file before removing it.
20783
20784 2009-08-15  Eric Blake  <ebb9@byu.net>
20785
20786         fpurge: don't wrap working cygwin implementation
20787         * lib/fpurge.c (fpurge): Fix comment typo.
20788         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
20789         1.7 to avoid replacement.
20790         * tests/test-fpurge.c (main): Enhance test.
20791
20792 2009-08-15  Eric Blake  <ebb9@byu.net>
20793         and Jim Meyering  <meyering@redhat.com>
20794
20795         test-update-copyright: skip if perl is insufficient
20796         * tests/test-update-copyright.sh: Failure to run maintainer tool
20797         should not cause testsuite failure on cygwin 1.5.
20798
20799 2009-08-14  Eric Blake  <ebb9@byu.net>
20800
20801         doc: mention more functions added in cygwin 1.7.0
20802         * doc/posix-headers/limits.texi (limits.h): Update for recent
20803         cygwin additions.
20804         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
20805         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20806         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
20807         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
20808         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
20809
20810 2009-08-14  Eric Blake  <ebb9@byu.net>
20811
20812         maint.mk: simplify update-copyright rule
20813         * top/maint.mk (update-copyright-local): Delete, and document how
20814         to do it in cfg.mk instead.
20815         (update-copyright-exclude-regexp): Delete, and document how to do
20816         it in .x-update-copyright instead.
20817         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
20818         exclude ChangeLog.
20819
20820 2009-08-14  Bruno Haible  <bruno@clisp.org>
20821
20822         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
20823
20824 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20825
20826         maint.mk: support update-copyright-env
20827         * top/maint.mk (update-copyright-env): Define place-holder.
20828         (update-copyright): Expand $(update-copyright-env) before
20829         invoking update-copyright.
20830
20831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20832
20833         update-copyright: implement forced reformatting
20834         * build-aux/update-copyright: Implement and document
20835         UPDATE_COPYRIGHT_FORCE.
20836         * tests/test-update-copyright.sh: Test it.
20837
20838 2009-08-14  Eric Blake  <ebb9@byu.net>
20839         and Bruno Haible  <bruno@clisp.org>
20840
20841         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
20842         * tests/test-locale.c: Revert previous patch related to NULL.
20843         * tests/test-stdio.c: Likewise.
20844         * tests/test-stdlib.c: Likewise.
20845         * tests/test-string.c: Likewise.
20846         * tests/test-unistd.c: Likewise.
20847         * modules/time-tests (Depends-on): Add verify.
20848         * modules/wchar-tests (Depends-on): Likewise.
20849         * tests/test-time.c: Test for NULL compliance.
20850         * tests/test-wchar.c: Likewise.
20851         * modules/locale (Depends-on): Add stddef.
20852         * modules/stdio (Depends-on): Likewise.
20853         * modules/stdlib (Depends-on): Likewise.
20854         * modules/string (Depends-on): Likewise.
20855         * modules/time (Depends-on): Likewise.
20856         * modules/unistd (Depends-on): Likewise.
20857         * modules/wchar (Depends-on): Likewise.
20858         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
20859         * lib/stdlib.in.h (includes): Likewise.
20860         * lib/string.in.h (includes): Likewise.
20861         * lib/time.in.h (includes): Likewise.
20862         * lib/unistd.in.h (includes): Likewise.
20863         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
20864         replaced.
20865         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20866         * m4/stddef_h.m4: New file.
20867         * modules/stddef: Likewise.
20868         * lib/stddef.in.h: Likewise.
20869         * modules/stddef-tests: Likewise.
20870         * tests/test-stddef.c: Likewise.
20871         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
20872         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
20873         * doc/posix-headers/locale.texi (locale.h): Likewise.
20874         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
20875         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20876         * doc/posix-headers/string.texi (string.h): Likewise.
20877         * doc/posix-headers/time.texi (time.h): Likewise.
20878         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
20879         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
20880
20881 2009-08-14  Eric Blake  <ebb9@byu.net>
20882
20883         doc: improve git diff of texinfo files
20884         * .gitattributes: Add rule for *.texi files, with hint on how to
20885         use it.
20886         Copied from m4, and based on a report by Bruno Haible.
20887
20888 2009-08-14  Bruno Haible  <bruno@clisp.org>
20889
20890         Disable multithread support by default on Cygwin 1.5.x for real.
20891         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
20892
20893 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20894
20895         update-copyright: much ado about intervals
20896         * build-aux/update-copyright: Implement and document
20897         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
20898         of copyright year intervals.
20899         Also, document UPDATE_COPYRIGHT_YEAR.
20900         * tests/test-update-copyright.sh: Test it.
20901
20902         update-copyright: convert 2-digit to 4-digit years
20903         * build-aux/update-copyright: Implement and document.
20904         * tests/test-update-copyright.sh: Update.
20905
20906 2009-08-14  Jim Meyering  <meyering@redhat.com>
20907
20908         test-exclude: avoid coreutils "make check" failure
20909         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
20910         just as in test-argmatch.c.
20911
20912 2009-08-13  Eric Blake  <ebb9@byu.net>
20913
20914         test-dup2: fix bad assumption
20915         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
20916         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
20917
20918         test-version-etc: fix CRLF portability issue
20919         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
20920         recognize \r.
20921         * tests/test-argp-version-etc-1.sh: Likewise.
20922
20923         getopt: update client modules
20924         * modules/argp (Depends-on): Use getopt-gnu.
20925         * modules/git-merge-changelog (Depends-on): Likewise.
20926         * modules/long-options (Depends-on): Likewise.
20927         * modules/xstrtol (Depends-on): Likewise.
20928
20929 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20930
20931         * tests/test-version-etc.sh: Don't fail on different
20932         project/version.  Don't fail on CRLF differences.  Rewrite to use
20933         multiple -e instead of multiple sed forks, suggested by Eric Blake
20934         <ebb9@byu.net>.
20935         * tests/test-argp-version-etc-1.sh: Likewise.
20936
20937 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20938
20939         * tests/test-version-etc.sh: Don't fail on different
20940         project/version.
20941
20942 2009-08-12  Bruno Haible  <bruno@clisp.org>
20943
20944         Tests for modules 'getopt-posix', 'getopt-gnu'.
20945         * modules/getopt-posix-tests: New file.
20946         * tests/test-getopt.c: New file.
20947         * tests/test-getopt.h: New file.
20948         * tests/test-getopt_long.h: New file.
20949
20950         New modules 'getopt-posix', 'getopt-gnu'.
20951         * modules/getopt-gnu: New file, renamed from modules/getopt.
20952         * modules/getopt-posix: New file.
20953         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
20954         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
20955         (gl_GETOPT): Remove macro.
20956         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
20957         Disable the test against BSD systems that declare optreset. Test
20958         against mingw bug. Test against lack of support of optional arguments
20959         on many platforms.
20960         * doc/glibc-headers/getopt.texi: Update module name and list of
20961         relevant platforms.
20962         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
20963         'getopt-gnu' and more portability problems.
20964         * NEWS: Mention the changes.
20965
20966 2009-08-12  Bruno Haible  <bruno@clisp.org>
20967
20968         Ensure that optarg etc. get declared by <unistd.h>.
20969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
20970         AC_USE_SYSTEM_EXTENSIONS.
20971         * modules/getopt (Depends-on): Add 'extensions'.
20972
20973 2009-08-12  Bruno Haible  <bruno@clisp.org>
20974
20975         Avoid test link errors.
20976         * modules/pipe-filter-ii-tests (Makefile.am): Define
20977         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
20978         * modules/pipe-filter-gi-tests (Makefile.am): Define
20979         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
20980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20981
20982 2009-08-12  Bruno Haible  <bruno@clisp.org>
20983
20984         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
20985         gl_GETOPT_SUBSTITUTE before.
20986         (gl_GETOPT): Use it.
20987         * m4/argp.m4 (gl_ARGP): Update.
20988         Reported by Sergey Poznyakoff.
20989
20990         * m4/getopt.m4: Reorder macros.
20991         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
20992         (gl_GETOPT_SUBSTITUTE): Remove macro.
20993
20994 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20995
20996         Minor improvement in gitlog-to-changelog
20997
20998         * build-aux/gitlog-to-changelog: New option `--format' makes
20999         output format string configurable.
21000
21001 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21002
21003         Optimize exclude: use hash tables for non-wildcard patterns.
21004
21005         * lib/exclude.c: Include hash.h and mbuiter.h
21006         (struct exclude_pattern, exclude_segment): New data types.
21007         (struct exclude): Rewrite.
21008         (fnmatch_pattern_has_wildcards): New function.
21009         (new_exclude_segment, free_exclude_segment): New functions.
21010         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21011         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21012         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21013         * modules/exclude: Depend on hash and mbuiter.
21014
21015         * modules/exclude-tests: New file.
21016         * tests/test-exclude.c: New file.
21017         * tests/test-exclude1.sh: New file.
21018         * tests/test-exclude2.sh: New file.
21019         * tests/test-exclude3.sh: New file.
21020         * tests/test-exclude4.sh: New file.
21021         * tests/test-exclude5.sh: New file.
21022         * tests/test-exclude6.sh: New file.
21023         * tests/test-exclude7.sh: New file.
21024
21025 2009-08-12  Bruno Haible  <bruno@clisp.org>
21026
21027         Ensure that getopt() gets declared by <unistd.h>.
21028         * lib/unistd.in.h: Conditionally include getopt.h.
21029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21030         Set GNULIB_UNISTD_H_GETOPT.
21031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21032         GNULIB_UNISTD_H_GETOPT.
21033         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21034
21035 2009-08-12  Bruno Haible  <bruno@clisp.org>
21036
21037         Clarify logic.
21038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21039         gl_replace_getopt instead of GETOPT_H.
21040
21041 2009-08-12  Bruno Haible  <bruno@clisp.org>
21042
21043         * m4/getopt.m4: Add comments.
21044
21045 2009-08-12  Bruno Haible  <bruno@clisp.org>
21046
21047         Disable multithread support by default on Cygwin 1.5.x.
21048         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21049         set gl_use_threads=no if not specified otherwise.
21050
21051 2009-08-11  Bruno Haible  <bruno@clisp.org>
21052
21053         Avoid compilation error on NetBSD 5.0.
21054         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21055         * tests/test-stdio.c: Likewise.
21056         * tests/test-stdlib.c: Likewise.
21057         * tests/test-string.c: Likewise.
21058         * tests/test-unistd.c: Likewise.
21059         Reported by Greg Troxel <gdt@ir.bbn.com>
21060         at <https://savannah.gnu.org/support/?106973>.
21061
21062 2009-08-11  Bruno Haible  <bruno@clisp.org>
21063
21064         * modules/dup2-tests (Depends-on): Remove close.
21065
21066         Undo 2009-07-19 commit.
21067         * modules/acl-tests (Depends-on): Remove close.
21068         * modules/binary-io-tests (Depends-on): Likewise.
21069         * modules/closein-tests (Depends-on): Likewise.
21070         * modules/flock-tests (Depends-on): Likewise.
21071         * modules/fsync-tests (Depends-on): Likewise.
21072         * modules/lseek-tests (Depends-on): Likewise.
21073         * modules/pipe-tests (Depends-on): Likewise.
21074         * modules/posix_spawn-tests (Depends-on): Likewise.
21075         * modules/posix_spawnp-tests (Depends-on): Likewise.
21076         * modules/stat-time-tests (Depends-on): Likewise.
21077         * modules/yesno-tests (Depends-on): Likewise.
21078
21079 2009-08-10  Bruno Haible  <bruno@clisp.org>
21080
21081         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21082
21083 2009-08-10  Bruno Haible  <bruno@clisp.org>
21084
21085         Fix a gcc warning.
21086         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21087
21088 2009-08-10  Bruno Haible  <bruno@clisp.org>
21089
21090         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21091         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21092         not only the first time.
21093         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21094         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21095         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21096         is 1, not only the the first time.
21097
21098 2009-08-10  Bruno Haible  <bruno@clisp.org>
21099
21100         Make it possible to use module 'gethostname' without module 'close'.
21101         * lib/unistd.in.h (close): Evoke a link error only if
21102         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21104         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21105         * modules/unistd (Makefile.am): Substitute
21106         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21107         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21108         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21109         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21110         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21111         * modules/sys_ioctl (Makefile.am): Substitute
21112         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21113         * modules/socket (configure.ac): On native Windows, set
21114         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21116         Reported by Sam Steingold <sds@gnu.org>.
21117
21118 2009-08-10  Bruno Haible  <bruno@clisp.org>
21119
21120         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21121         * modules/ioctl (configure.ac): Likewise.
21122
21123 2009-08-10  Bruno Haible  <bruno@clisp.org>
21124
21125         Avoid collision between gnulib wrapper and libintl wrapper.
21126         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21127         already defined in intl/printf.c.
21128         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21129         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21130
21131 2009-08-09  Bruno Haible  <bruno@clisp.org>
21132
21133         Make <sys/select.h> really self-contained, also on Solaris 10.
21134         * lib/sys_select.in.h: Include <string.h>.
21135         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21136         Solaris 10 problem.
21137         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21138         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21139         Reported by Jim Meyering.
21140
21141 2009-08-09  Bruno Haible  <bruno@clisp.org>
21142
21143         Avoid warnings from 'aclocal' that are due to a use of macro name
21144         AM_XGETTEXT_OPTION that is not defined in automake.
21145         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21146         automake.
21147         * modules/error (configure.ac): Likewise.
21148         * modules/propername (configure.ac): Likewise.
21149         * modules/vasprintf (configure.ac): Likewise.
21150         * modules/verror (configure.ac): Likewise.
21151         * modules/xprintf (configure.ac): Likewise.
21152         * modules/xvasprintf (configure.ac): Likewise.
21153
21154 2009-08-08  Bruno Haible  <bruno@clisp.org>
21155
21156         Avoid compilation error in C++ mode.
21157         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21158         Reported by Sam Steingold <sds@gnu.org>.
21159
21160 2009-08-08  Bruno Haible  <bruno@clisp.org>
21161
21162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21163         for the various Unix platforms.
21164         * doc/posix-headers/limits.texi: Update platforms list regarding
21165         HOST_NAME_MAX.
21166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21167
21168 2009-08-07  Jim Meyering  <meyering@redhat.com>
21169
21170         selinux-at: fix typo in a comment
21171         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21172         Spotted by Paolo Bonzini.
21173
21174         selinux-at: remove redundant m4 code, add documentation
21175         * modules/selinux-at (configure.ac): Remove redundant code.
21176         LIB_SELINUX is already set via the dependent module, selinux-h.
21177         (Include): Add quotes around selinux-at.h.
21178         * lib/selinux-at.h: Add documentation.
21179         Reported by Bruno Haible in
21180         http://marc.info/?l=gnulib-bug&m=124958988300749
21181
21182 2009-08-07  Bruno Haible  <bruno@clisp.org>
21183
21184         Avoid link error on MacOS X 10.3 and 10.4.
21185         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21186         on non-ELF systems.
21187         * lib/argp-pv.c (argp_program_version): Likewise.
21188         Reported by Simon Josefsson.
21189
21190 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21191
21192         * tests/test-version-etc.sh: Use $EXEEXT.
21193
21194 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21195
21196         update-copyright: update documentation to point to maint.mk
21197         * build-aux/update-copyright: Here.
21198
21199 2009-08-06  Jim Meyering  <meyering@redhat.com>
21200
21201         maint.mk: support update-copyright-local
21202         * top/maint.mk (update-copyright-local): Define place-holder.
21203         (update-copyright): Depend on $(update-copyright-local).
21204
21205 2009-08-06  Jim Meyering  <meyering@redhat.com>
21206
21207         selinux-at: new module
21208         Initially written for coreutils, this module will soon be
21209         used by findutils, too.
21210         * MODULES.html.sh [Misc]: Add selinux-at.
21211         * lib/selinux-at.h: New file, from coreutils.
21212         * lib/selinux-at.c: Likewise.
21213         * modules/selinux-at: Likewise.
21214         (License): Change from LGPL to GPL, since it depends
21215         on the GPL'd openat module.
21216
21217         doc: update README
21218         * README: Remove references to cogito.
21219         Remove cvs-repo-updating instructions from 2007.
21220         Don't imply that CVS is better if you have limited disk space.
21221
21222 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21223
21224         update-copyright: support C-style comments
21225         * build-aux/update-copyright: Implement and document.
21226         * tests/test-update-copyright.sh: Test.
21227
21228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21229
21230         update-copyright: support omitted "(C)"
21231         * build-aux/update-copyright: Implement and document.  Also,
21232         allow variable whitespace before "(C)".
21233         * tests/test-update-copyright.sh: Test.
21234
21235 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21236
21237         update-copyright: don't trip on non-FSF copyright statements
21238         * build-aux/update-copyright: Fix so that the first correctly
21239         formatted FSF copyright statement is recognized no matter what
21240         appears before it.  Update documentation.
21241         * tests/test-update-copyright.sh: Test that.
21242
21243 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21244
21245         update-copyright: clean up code a little
21246         * build-aux/update-copyright: Append "_re" to the name of any
21247         variable holding a regular expression.
21248         Replace "old" and "new" with "stmt" in variable names.
21249         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21250         handled correctly.
21251         Format code more consistently.
21252
21253 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21254
21255         update-copyright-tests: improve portability
21256         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21257         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21258
21259 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21260
21261         update-copyright: support @copyright{} and &copy;
21262         * build-aux/update-copyright: Implement and document.
21263         * tests/test-update-copyright.sh: Test.
21264
21265 2009-08-04  Jim Meyering  <meyering@redhat.com>
21266
21267         update-copyright-tests: correctly test EOL=\r\n handling
21268         * tests/test-update-copyright.sh: Put \r at the end of some lines
21269         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21270
21271         maint.mk: make update-copyright exclusion list more configurable
21272         * top/maint.mk (update-copyright): Default to excluding COPYING,
21273         but allow an override, in case someone does want to update that file.
21274
21275         maint.mk: don't update copyright date in COPYING
21276         * top/maint.mk (update-copyright): Exclude COPYING.
21277
21278         maint.mk: add a copyright-updating rule
21279         * top/maint.mk (update-copyright): New rule.
21280         Derived from coreutils/Makefile.am.
21281
21282         update-copyright: rename some variables
21283         * build-aux/update-copyright: Rename a few variables for clarity.
21284         Tweak syntax.  List Joel E. Denny as coauthor.
21285
21286 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21287
21288         update-copyright: fix bug for 2-digit last year and add tests
21289         * build-aux/update-copyright: Fix bug.
21290         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21291         specified.
21292         * modules/update-copyright-tests: New
21293         * tests/test-update-copyright.sh: New.
21294
21295 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21296
21297         update-copyright: handle leading tabs in line prefix
21298         * build-aux/update-copyright: Count leading tabs as 8 spaces
21299         when computing margin.  This helps with the formatting of
21300         ChangeLogs, for example.
21301         Fix documentation a little.
21302
21303 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21304
21305         update-copyright: support EOL=\r\n
21306         * build-aux/update-copyright: Implement that.
21307
21308 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21309
21310         update-copyright: automatically format copyright statements
21311         * build-aux/update-copyright: Implement that.
21312         Also, be a little more predictable and safer by always failing
21313         when the full copyright format is not perfectly recognized as an
21314         unbroken whole.  Discussed at
21315         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21316         Rewrite documentation.
21317
21318 2009-08-03  Bruno Haible  <bruno@clisp.org>
21319
21320         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21321
21322 2009-08-02  Bruno Haible  <bruno@clisp.org>
21323
21324         Tests for module 'uname'.
21325         * modules/uname-tests: New file.
21326         * tests/test-uname.c: New file.
21327
21328         New module 'uname'.
21329         * lib/uname.c: New file.
21330         * m4/uname.m4: New file.
21331         * modules/uname: New file.
21332         * doc/posix-functions/uname.texi: Mention the new module.
21333
21334 2009-08-02  Bruno Haible  <bruno@clisp.org>
21335
21336         Tests for module 'sys_utsname'.
21337         * modules/sys_utsname-tests: New file.
21338         * tests/test-sys_utsname.c: New file.
21339
21340         New module 'sys_utsname'.
21341         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21342         * m4/sys_utsname_h.m4: New file.
21343         * modules/sys_utsname: New file.
21344         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21345
21346 2009-08-02  Bruno Haible  <bruno@clisp.org>
21347
21348         Implicitly initialize the sockets library.
21349         * lib/gethostname.c: Include sockets.h.
21350         (rpl_gethostname): Invoke gl_sockets_startup.
21351         * lib/socket.c: Include sockets.h.
21352         (rpl_socket): Invoke gl_sockets_startup.
21353         * modules/gethostname (Depends-on): Add sockets.
21354         * modules/socket (Depends-on): Likewise.
21355         * tests/test-poll.c: Don't include sockets.h.
21356         (main): Don't invoke gl_sockets_startup.
21357         * tests/test-select.c: Don't include sockets.h.
21358         (main): Don't invoke gl_sockets_startup.
21359
21360 2009-08-02  Bruno Haible  <bruno@clisp.org>
21361
21362         Allow multiple calls to gl_sockets_startup.
21363         * lib/sockets.c (initialized_sockets_version): New variable.
21364         (gl_sockets_startup): Do nothing if already called for this or a higher
21365         version.
21366         (gl_sockets_cleanup): Reset initialized_sockets_version.
21367
21368 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21369
21370         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21371         different project/version.
21372
21373 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21374             Bruno Haible  <bruno@clisp.org>
21375
21376         Tests for module 'pipe-filter-gi'.
21377         * modules/pipe-filter-gi-tests: New file.
21378         * tests/test-pipe-filter-gi1.sh: New file.
21379         * tests/test-pipe-filter-gi1.c: New file.
21380         * tests/test-pipe-filter-gi2.sh: New file.
21381         * tests/test-pipe-filter-gi2-main.c: New file.
21382         * tests/test-pipe-filter-gi2-child.c: New file.
21383
21384         New module 'pipe-filter-gi'.
21385         * lib/pipe-filter-gi.c: New file.
21386         * modules/pipe-filter-gi: New file.
21387
21388 2009-08-02  Bruno Haible  <bruno@clisp.org>
21389             Paolo Bonzini  <bonzini@gnu.org>
21390
21391         Tests for module 'pipe-filter-ii'.
21392         * modules/pipe-filter-ii-tests: New file.
21393         * tests/test-pipe-filter-ii1.sh: New file.
21394         * tests/test-pipe-filter-ii1.c: New file.
21395         * tests/test-pipe-filter-ii2.sh: New file.
21396         * tests/test-pipe-filter-ii2-main.c: New file.
21397         * tests/test-pipe-filter-ii2-child.c: New file.
21398
21399         New module 'pipe-filter-ii'.
21400         * lib/pipe-filter.h: New file.
21401         * lib/pipe-filter-ii.c: New file.
21402         * lib/pipe-filter-aux.h: New file.
21403         * modules/pipe-filter-ii: New file.
21404
21405 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21406
21407         * lib/gc-libgcrypt.c: Change copyright to FSF.
21408         * lib/gc-gnulib.c: Likewise.
21409
21410 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21411
21412         * lib/gethostname.c: Include limits.h.
21413
21414 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21415             Bruno Haible  <bruno@clisp.org>
21416
21417         Ensure HOST_NAME_MAX as part of the gethostname module.
21418         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21419         define also HOST_NAME_MAX.
21420         * tests/test-gethostname.c: Include <limits.h>.
21421         (main): Check also HOST_NAME_MAX.
21422         * doc/posix-headers/limits.texi: Document the mingw problem.
21423
21424 2009-08-02  Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21427         Add comments.
21428
21429 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21430
21431         * lib/gethostname.c: Add Windows wrapper.
21432         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21433         * modules/gethostname: Depend on sys_socket & errno, for also
21434         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21435         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21436
21437 2009-07-31  Jim Meyering  <meyering@redhat.com>
21438
21439         getloadavg: fix symbol name in comment
21440         * lib/getloadavg.c: Correct a typo I introduced when adding
21441         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21442         Matt Kraai spotted the problem.
21443
21444 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21445
21446         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21447         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21448         code also if ! defined N_NAME_POINTER.
21449         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21450         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21451         but the n_name member is a 12-byte array.
21452
21453 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21454
21455         update-copyright: generalize comment handling
21456         * build-aux/update-copyright: Handle copyright statements
21457         within more comment styles.
21458         Document usage.
21459         Report any file with an external copyright holder or parse failure.
21460
21461 2009-07-29  Jim Meyering  <meyering@redhat.com>
21462
21463         mktime: correct setting of REPLACE_MKTIME
21464         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
21465
21466         update-copyright: new module
21467         * modules/update-copyright: New file.
21468         * build-aux/update-copyright: New file.
21469         * MODULES.html.sh (maint+release support): Add update-copyright.
21470
21471 2009-07-27  Bruno Haible  <bruno@clisp.org>
21472
21473         Fix compilation error when <ctime> is used and mktime is replaced.
21474         * lib/time.in.h (mktime): New declaration.
21475         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
21476         REPLACE_MKTIME instead of defining mktime in config.h.
21477         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
21478         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
21479         Reported by Ross McFarland <rwmcfa1@neces.com>.
21480
21481 2009-07-27  Bruno Haible  <bruno@clisp.org>
21482
21483         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
21484         Reported by Matt Kraai <mkraai@beckman.com>.
21485
21486 2009-07-25  Jim Meyering  <meyering@redhat.com>
21487
21488         maint.mk: avoid warnings about missing files
21489         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
21490         diagnostic when .prev-version does not exist.
21491         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
21492         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
21493         nonexistent cfg.mk.
21494         Suggestions from Simon Josefsson.
21495
21496 2009-07-25  Bruno Haible  <bruno@clisp.org>
21497
21498         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
21499         defined as macros. Needed on QNX 6.4.1.
21500         Reported by Matt Kraai <mkraai@beckman.com>.
21501
21502 2009-07-23  Jim Meyering  <meyering@redhat.com>
21503
21504         maint.mk: invoke "make dist" with a working value of XZ_OPT
21505         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
21506
21507 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
21508
21509         Make fseeko.c compile on QNX.
21510         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
21511
21512 2009-07-22  Peter Simons  <simons@cryp.to>
21513
21514         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
21515         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
21516         * lib/md4.h: Likewise.
21517         * lib/md5.h: Likewise.
21518         * lib/sha1.h: Likewise.
21519         * lib/sha256.h: Likewise.
21520         * lib/sha512.h: Likewise.
21521
21522         tests-sha1: don't assign literal string to 'char *' variable
21523         * tests/test-sha1.c (main): Declare locals with "const" to match
21524         attributes of the right hand side.
21525
21526 2009-07-21  Eric Blake  <ebb9@byu.net>
21527
21528         dup2: fix more mingw problems
21529         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
21530         fd to itself.
21531         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21532         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
21533         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
21534         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
21535         care of mingw bugs.
21536
21537 2009-07-21  Jim Meyering  <meyering@redhat.com>
21538
21539         vc-list-files: avoid failure when /bin/sh is dash
21540         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
21541         On some Debian based systems, /bin/sh is a symlink to dash, and running
21542         this command would omit the "/" following each 'tests' prefix:
21543           dash -x build-aux/vc-list-files -C . tests
21544         That is because bash and dash work differently:
21545           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
21546           bash ok
21547           dash odd
21548
21549 2009-07-21  Eric Blake  <ebb9@byu.net>
21550
21551         dup2-tests: test previous patch
21552         * modules/dup2-tests: New file.
21553         * tests/test-dup2.c: Likewise.
21554         * tests/test-open.c (main): Avoid unspecified behavior.
21555         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
21556         test.
21557
21558         dup2: work around mingw and cygwin 1.5 bug
21559         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
21560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21561         * modules/unistd (Makefile.am): Substitute it.
21562         * lib/unistd.in.h (dup2): Declare the replacement.
21563         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
21564         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
21565         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
21566         * modules/execute (Depends-on): Add dup2.
21567         * modules/fseterr (Depends-on): Likewise.
21568         * modules/pipe (Depends-on): Likewise.
21569         * modules/posix_spawn-internal (Depends-on): Likewise.
21570
21571 2009-07-21  Bruno Haible  <bruno@clisp.org>
21572
21573         * modules/.gitattributes: New file.
21574
21575 2009-07-20  Bruno Haible  <bruno@clisp.org>
21576
21577         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
21578         (main): Use it.
21579
21580 2009-07-20  Eric Blake  <ebb9@byu.net>
21581
21582         test-pipe: make a bit more robust.
21583         * tests/test-pipe.c (myerr): Allow error messages regardless of
21584         what we do to stderr.
21585         (test_pipe): Rearrange to avoid deadlock.
21586         (child_main): Try a larger read, to ensure we avoided deadlock.
21587         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
21588         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
21589         if misused.
21590
21591 2009-07-19  Jim Meyering  <meyering@redhat.com>
21592
21593         fts: avoid false-positive cycle-detection
21594         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
21595         for each new command line argument.
21596
21597 2009-07-19  Bruno Haible  <bruno@clisp.org>
21598
21599         Fix build error on mingw with the modules sys_select and unistd.
21600         * modules/acl-tests (Depends-on): Add close.
21601         * modules/binary-io-tests (Depends-on): Likewise.
21602         * modules/closein-tests (Depends-on): Likewise.
21603         * modules/flock-tests (Depends-on): Likewise.
21604         * modules/fsync-tests (Depends-on): Likewise.
21605         * modules/lseek-tests (Depends-on): Likewise.
21606         * modules/pipe-tests (Depends-on): Likewise.
21607         * modules/posix_spawn-tests (Depends-on): Likewise.
21608         * modules/posix_spawnp-tests (Depends-on): Likewise.
21609         * modules/stat-time-tests (Depends-on): Likewise.
21610         * modules/yesno-tests (Depends-on): Likewise.
21611
21612 2009-07-19  Bruno Haible  <bruno@clisp.org>
21613
21614         Unify conditionals.
21615         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
21616         macros, not at the compiler macros.
21617         * lib/pipe.c: Likewise.
21618         * lib/execute.c: Likewise.
21619         * lib/spawni.c: Likewise.
21620
21621 2009-07-19  Bruno Haible  <bruno@clisp.org>
21622
21623         Fix handling of closed stdin/stdout/stderr on mingw.
21624         * lib/w32spawn.h: Include unistd.h.
21625         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
21626         file descriptor with O_NOINHERIT flag.
21627         (fd_safer_noinherit): New function, based on fd-safer.c.
21628         (dup_safer_noinherit): New function, based on dup-safer.c.
21629         (undup_safer_noinherit): New function.
21630         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
21631         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
21632         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
21633         instead of fd_safer.
21634         * tests/test-pipe.c: Include <windows.h>.
21635         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
21636
21637         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
21638         from main.
21639         (test_pipe): Pass an extra argument for disambiguation.
21640         (main): Invoke parent_main or child_main.
21641
21642         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
21643         consistently.
21644
21645 2009-07-18  Eric Blake  <ebb9@byu.net>
21646
21647         test-pipe: fix mingw build
21648         * tests/test-pipe.c (main): Avoid fcntl on mingw.
21649
21650 2009-07-18  Bruno Haible  <bruno@clisp.org>
21651
21652         * modules/pipe-tests (Makefile.am): Fix typo.
21653
21654 2009-07-18  Eric Blake  <ebb9@byu.net>
21655
21656         error: fix mingw build
21657         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
21658         Reported by Bruno Haible.
21659
21660         error: avoid undefined use of stdout
21661         * lib/error.c (error, error_at_line): Check that fd 1 is open
21662         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
21663         is handling faults and the close_stdout module wants to report the
21664         detection of closed stdout as an error.
21665
21666 2009-07-17  Eric Blake  <ebb9@byu.net>
21667
21668         pipe: be robust in face of closed fds
21669         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
21670         should cause child to misbehave.
21671         * modules/pipe-tests: New module.
21672         * tests/test-pipe.c: New file.
21673         * tests/test-pipe.sh: New file.
21674         Reported by Akim Demaille.
21675
21676 2009-07-14  Bruno Haible  <bruno@clisp.org>
21677
21678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
21679         Reported by anonymous kc.
21680
21681 2009-07-07  Jim Meyering  <meyering@redhat.com>
21682
21683         maint.mk: don't look for translatable strings in *.m4 or *.mk
21684         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
21685         when searching for translatable strings.
21686
21687 2009-07-05  Jim Meyering  <meyering@redhat.com>
21688
21689         remove superfluous parentheses in STREQ definition
21690         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
21691         * lib/getugroups.c (STREQ): Likewise.
21692         * lib/fnmatch.c (STREQ): Likewise.
21693         Spotted by Bruno Haible.
21694
21695 2009-07-04  Jim Meyering  <meyering@redhat.com>
21696
21697         argv-iter: new module
21698         * MODULES.html.sh: Add argv-iter.
21699         * lib/argv-iter.c, lib/argv-iter.h: New files.
21700         * modules/argv-iter: New file.
21701         * modules/argv-iter-tests: New file.
21702         * tests/test-argv-iter.c: Test it.
21703
21704 2009-07-04  Bruno Haible  <bruno@clisp.org>
21705
21706         Fix assertion.
21707         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
21708         contains more exact copies of a given entry than file2, leave the extra
21709         copies unpaired rather than aborting.
21710         Reported by Eric Blake.
21711
21712 2009-07-02  Bruno Haible  <bruno@clisp.org>
21713
21714         Speedup git-merge-changelog for git cherry-pick.
21715         * lib/git-merge-changelog.c (struct entries_mapping): New type.
21716         (entries_mapping_get): New function, extracted from compute_mapping.
21717         (entries_mapping_reverse_get): New function.
21718         (compute_mapping): Add a 'full' argument. Return the result in a
21719         'struct entries_mapping'.
21720         (main): Update. Access the mappings through entries_mapping_get.
21721         Reported by Eric Blake.
21722
21723 2009-07-02  Bruno Haible  <bruno@clisp.org>
21724
21725         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
21726         best_i.
21727
21728 2009-07-02  Bruno Haible  <bruno@clisp.org>
21729
21730         Speed up approximate search for matching ChangeLog entries.
21731         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
21732         argument. Call fstrcmp_bounded instead of fstrcmp.
21733         (compute_mapping, try_split_merged_entry, main): Update callers.
21734
21735 2009-07-02  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
21738
21739 2009-06-30  Bruno Haible  <bruno@clisp.org>
21740
21741         Reduce the number of uc_is_cased calls.
21742         * lib/unicase.h (casing_suffix_context_t): Add
21743         'first_char_except_ignorable' field.
21744         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
21745         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
21746         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
21747         Update initializer.
21748         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
21749         case-ignorable characters.
21750         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
21751         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
21752         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
21753         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
21754         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
21755
21756 2009-06-30  Bruno Haible  <bruno@clisp.org>
21757
21758         Tests for module 'unicase/ignorable'.
21759         * modules/unicase/ignorable-tests: New file.
21760         * tests/unicase/test-ignorable.c: New file, generated by
21761         gen-uni-tables.
21762
21763         Tests for module 'unicase/cased'.
21764         * modules/unicase/cased-tests: New file.
21765         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
21766         * tests/unicase/test-predicate-part1.h: New file, derived from
21767         tests/unictype/test-predicate-part1.h.
21768         * tests/unicase/test-predicate-part2.h: New file, same as
21769         tests/unictype/test-predicate-part2.h.
21770
21771         Fix evaluation of "Before C" condition of FINAL_SIGMA.
21772         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
21773         (output_casing_properties): New function.
21774         (main): Call it.
21775         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
21776         * lib/unicase/cased.c: Include unictype/bitmap.h.
21777         (uc_is_cased): Define through a bitmap lookup.
21778         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
21779         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
21780         (uc_is_case_ignorable): Define through a bitmap lookup.
21781         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
21782         lib/unictype/bitmap.h.
21783         (Depends-on): Add inline. Clean up.
21784         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
21785         lib/unictype/bitmap.h.
21786         (Depends-on): Add inline. Clean up.
21787         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
21788         recognition.
21789         * tests/unicase/test-u16-tolower.c (main): Likewise.
21790         * tests/unicase/test-u32-tolower.c (main): Likewise.
21791
21792 2009-06-30  Bruno Haible  <bruno@clisp.org>
21793
21794         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
21795         * lib/unicase/u16-casemap.c: Likewise.
21796         * lib/unicase/u32-casemap.c: Likewise.
21797
21798 2009-06-29  Bruno Haible  <bruno@clisp.org>
21799
21800         Define u32_casefold as a wrapper around u32_ct_casefold.
21801         * lib/unicase/u32-casefold.c: Update.
21802         * modules/unicase/u32-casefold (Depends-on): Add
21803         unicase/u32-ct-casefold, unicase/empty-prefix-context,
21804         unicase/empty-suffix-context. Clean up.
21805
21806         Define u16_casefold as a wrapper around u16_ct_casefold.
21807         * lib/unicase/u16-casefold.c: Update.
21808         * modules/unicase/u16-casefold (Depends-on): Add
21809         unicase/u16-ct-casefold, unicase/empty-prefix-context,
21810         unicase/empty-suffix-context. Clean up.
21811
21812         Define u8_casefold as a wrapper around u8_ct_casefold.
21813         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
21814         * lib/unicase/u8-casefold.c: Update.
21815         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
21816         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21817
21818         Define u32_totitle as a wrapper around u32_ct_totitle.
21819         * lib/unicase/u32-totitle.c: Update.
21820         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
21821         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21822
21823         Define u16_totitle as a wrapper around u16_ct_totitle.
21824         * lib/unicase/u16-totitle.c: Update.
21825         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
21826         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21827
21828         Define u8_totitle as a wrapper around u8_ct_totitle.
21829         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
21830         functions.
21831         (FUNC): Delegate to U_CT_TOTITLE.
21832         * lib/unicase/u8-totitle.c: Update.
21833         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
21834         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21835
21836         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
21837         invocation.
21838         * modules/unicase/u32-tolower (Depends-on): Add
21839         unicase/empty-prefix-context, unicase/empty-suffix-context.
21840
21841         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
21842         invocation.
21843         * modules/unicase/u16-tolower (Depends-on): Add
21844         unicase/empty-prefix-context, unicase/empty-suffix-context.
21845
21846         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
21847         * modules/unicase/u8-tolower (Depends-on): Add
21848         unicase/empty-prefix-context, unicase/empty-suffix-context.
21849
21850         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
21851         invocation.
21852         * modules/unicase/u32-toupper (Depends-on): Add
21853         unicase/empty-prefix-context, unicase/empty-suffix-context.
21854
21855         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
21856         invocation.
21857         * modules/unicase/u16-toupper (Depends-on): Add
21858         unicase/empty-prefix-context, unicase/empty-suffix-context.
21859
21860         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
21861         * modules/unicase/u8-toupper (Depends-on): Add
21862         unicase/empty-prefix-context, unicase/empty-suffix-context.
21863
21864         New module 'unicase/u32-ct-casefold'.
21865         * lib/unicase/u32-ct-casefold.c: New file.
21866         * modules/unicase/u32-ct-casefold: New file.
21867
21868         New module 'unicase/u16-ct-casefold'.
21869         * lib/unicase/u16-ct-casefold.c: New file.
21870         * modules/unicase/u16-ct-casefold: New file.
21871
21872         New module 'unicase/u8-ct-casefold'.
21873         * lib/unicase/u8-ct-casefold.c: New file.
21874         * lib/unicase/u-ct-casefold.h: New file, derived from
21875         lib/unicase/u-casefold.h.
21876         * modules/unicase/u8-ct-casefold: New file.
21877
21878         New module 'unicase/u32-ct-totitle'.
21879         * lib/unicase/u32-ct-totitle.c: New file.
21880         * modules/unicase/u32-ct-totitle: New file.
21881
21882         New module 'unicase/u16-ct-totitle'.
21883         * lib/unicase/u16-ct-totitle.c: New file.
21884         * modules/unicase/u16-ct-totitle: New file.
21885
21886         New module 'unicase/u8-ct-totitle'.
21887         * lib/unicase/u8-ct-totitle.c: New file.
21888         * lib/unicase/u-ct-totitle.h: New file, derived from
21889         lib/unicase/u-totitle.h.
21890         * modules/unicase/u8-ct-totitle: New file.
21891
21892         New module 'unicase/u32-ct-tolower'.
21893         * lib/unicase/u32-ct-tolower.c: New file.
21894         * modules/unicase/u32-ct-tolower: New file.
21895
21896         New module 'unicase/u16-ct-tolower'.
21897         * lib/unicase/u16-ct-tolower.c: New file.
21898         * modules/unicase/u16-ct-tolower: New file.
21899
21900         New module 'unicase/u8-ct-tolower'.
21901         * lib/unicase/u8-ct-tolower.c: New file.
21902         * modules/unicase/u8-ct-tolower: New file.
21903
21904         New module 'unicase/u32-ct-toupper'.
21905         * lib/unicase/u32-ct-toupper.c: New file.
21906         * modules/unicase/u32-ct-toupper: New file.
21907
21908         New module 'unicase/u16-ct-toupper'.
21909         * lib/unicase/u16-ct-toupper.c: New file.
21910         * modules/unicase/u16-ct-toupper: New file.
21911
21912         New module 'unicase/u8-ct-toupper'.
21913         * lib/unicase/u8-ct-toupper.c: New file.
21914         * modules/unicase/u8-ct-toupper: New file.
21915
21916         Add context arguments to u*_casemap functions.
21917         * lib/unicase/unicasemap.h: Include unicase.h.
21918         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
21919         suffix_context arguments.
21920         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
21921         functions.
21922         (FUNC): Add prefix_context and suffix_context arguments. Use
21923         uc_is_cased and uc_is_case_ignorable.
21924         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
21925         * lib/unicase/u16-casemap.c: Likewise.
21926         * lib/unicase/u32-casemap.c: Likewise.
21927         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
21928         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21929         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
21930         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21931         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
21932         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21933
21934         New module 'unicase/u32-suffix-context'.
21935         * lib/unicase/u32-suffix-context.c: New file.
21936         * modules/unicase/u32-suffix-context: New file.
21937
21938         New module 'unicase/u16-suffix-context'.
21939         * lib/unicase/u16-suffix-context.c: New file.
21940         * modules/unicase/u16-suffix-context: New file.
21941
21942         New module 'unicase/u8-suffix-context'.
21943         * lib/unicase/u8-suffix-context.c: New file.
21944         * lib/unicase/u-suffix-context.h: New file.
21945         * modules/unicase/u8-suffix-context: New file.
21946
21947         New module 'unicase/empty-suffix-context'.
21948         * lib/unicase/empty-suffix-context.c: New file.
21949         * modules/unicase/empty-suffix-context: New file.
21950
21951         New module 'unicase/u32-prefix-context'.
21952         * lib/unicase/u32-prefix-context.c: New file.
21953         * modules/unicase/u32-prefix-context: New file.
21954
21955         New module 'unicase/u16-prefix-context'.
21956         * lib/unicase/u16-prefix-context.c: New file.
21957         * modules/unicase/u16-prefix-context: New file.
21958
21959         New module 'unicase/u8-prefix-context'.
21960         * lib/unicase/u8-prefix-context.c: New file.
21961         * lib/unicase/u-prefix-context.h: New file.
21962         * lib/unicase/context.h: New file.
21963         * modules/unicase/u8-prefix-context: New file.
21964
21965         New module 'unicase/empty-prefix-context'.
21966         * lib/unicase/empty-prefix-context.c: New file.
21967         * modules/unicase/empty-prefix-context: New file.
21968
21969         New module 'unicase/ignorable'.
21970         * lib/unicase/ignorable.c: New file.
21971         * modules/unicase/ignorable: New file.
21972
21973         New module 'unicase/cased'.
21974         * lib/unicase/caseprop.h: New file.
21975         * lib/unicase/cased.c: New file.
21976         * modules/unicase/cased: New file.
21977
21978         New functions for case mapping of substrings.
21979         * lib/unicase.h (casing_prefix_context_t): New type.
21980         (unicase_empty_prefix_context): New variable.
21981         (u8_casing_prefix_context, u16_casing_prefix_context,
21982         u32_casing_prefix_context, u8_casing_prefixes_context,
21983         u16_casing_prefixes_context, u32_casing_prefixes_context): New
21984         declarations.
21985         (casing_suffix_context_t): New type.
21986         (unicase_empty_suffix_context): New variable.
21987         (u8_casing_suffix_context, u16_casing_suffix_context,
21988         u32_casing_suffix_context, u8_casing_suffixes_context,
21989         u16_casing_suffixes_context, u32_casing_suffixes_context,
21990         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
21991         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
21992         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
21993         declarations.
21994
21995 2009-06-28  Jim Meyering  <meyering@redhat.com>
21996
21997         boostrap: indent only with spaces
21998         * build-aux/bootstrap: Indent only with spaces, never TABs.
21999
22000         bootstrap: split long lines
22001         * build-aux/bootstrap: Keep line length < 80.
22002
22003         bootstrap: sync from coreutils
22004         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22005         just as autoreconf does.  Verify a list of prerequisite
22006         package-name,version-number pairs if defined in bootstrap.conf.
22007         Refer to README-prereq, if prerequisites are not satisfied.
22008
22009 2009-06-27  Eric Blake  <ebb9@byu.net>
22010
22011         tests: add test for bogus NULL definition
22012         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22013         * tests/test-stdlib.c: Likewise.
22014         * tests/test-string.c: Likewise.
22015         * tests/test-locale.c: Likewise.
22016         * tests/test-unistd.c: Likewise.
22017         * modules/stdio-tests (Depends-on): Add verify.
22018         * modules/stdlib-tests (Depends-on): Likewise.
22019         * modules/string-tests (Depends-on): Likewise.
22020         * modules/locale-tests (Depends-on): Likewise.
22021         * modules/unistd-tests (Depends-on): Likewise.
22022
22023 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22024
22025         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22026         self-explaining comment.
22027         * m4/selinux-selinux-h: Update serial.
22028         (gl_LIBSELINUX): New macro, adding a warning for missing development
22029         packages to code extracted from...
22030         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22031         Add warning for missing development packages here, too.
22032
22033 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22034
22035         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22036
22037 2009-06-25  Eric Blake  <ebb9@byu.net>
22038
22039         version-etc: fix regression
22040         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22041         gcc.
22042         (version_etc): Use it, to catch bugs with trailing NULL.
22043         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22044         (version_etc_va): Fix logic bug.
22045         * modules/version-etc-tests: Add test.
22046         * tests/test-version-etc.c: New file.
22047         * tests/test-version-etc.sh: Likewise.
22048
22049 2009-06-25  Sam Steingold  <sds@gnu.org>
22050
22051         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22052         mbtowc declaration.
22053
22054 2009-06-25  Eric Blake  <ebb9@byu.net>
22055
22056         fpurge: migrate into <stdio.h>
22057         * lib/fpurge.h: Delete...
22058         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22059         * lib/fpurge.c (fpurge): Change declaring header.
22060         * modules/fpurge (Files): Drop deleted file.
22061         (Depends-on): Add stdio.
22062         (configure.ac): Set witness.
22063         * modules/stdio (Makefile.am): Support fpurge macros.
22064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22066         * lib/fflush.c: Update client.
22067         * tests/test-fpurge.c: Likewise.
22068         * NEWS: Mention the change.
22069
22070 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22071
22072         * lib/argp-version-etc.c (program_authors): Add const
22073         qualifier.
22074         * lib/version-etc.c: Fix typos in the comments.
22075         * modules/argp-version-etc: Depends on version-etc.
22076
22077 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22078
22079         argp-version-etc: new module.
22080
22081         * lib/argp-version-etc.c: New file.
22082         * lib/argp-version-etc.h: New file.
22083         * modules/argp-version-etc: New file.
22084         * modules/argp-version-etc-tests: New file.
22085         * tests/test-argp-version-etc.c: New test.
22086         * tests/test-argp-version-etc-1.sh: New test.
22087
22088 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22089
22090         Provide additional interfaces and documentation for version-etc
22091         module.
22092
22093         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22094         interfaces.
22095         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22096         prototypes.
22097
22098 2009-06-24  Bruno Haible  <bruno@clisp.org>
22099
22100         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22101         HAVE_LIB${NAME} macro.
22102         Reported by Sam Steingold <sds@gnu.org>.
22103
22104 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22105
22106         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22107         needed.
22108
22109 2009-06-21  Bruno Haible  <bruno@clisp.org>
22110
22111         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22112         work.
22113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22114         together with LIB${NAME}, LTLIB${NAME}.
22115         Reported by Sam Steingold <sds@gnu.org>.
22116
22117 2009-06-20  Jim Meyering  <meyering@redhat.com>
22118
22119         tests: make sc_require_test_exit_idiom more generic
22120         * top/maint.mk (Exit_witness_file): New overridable variable.
22121         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22122         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22123
22124 2009-06-19  Jim Meyering  <meyering@redhat.com>
22125
22126         hash: reverse order of src/dst parameters in an internal interface
22127         * lib/hash.c (transfer_entries): Reverse order of parameters to
22128         put DST before SRC.  Adjust callers.
22129
22130         tests: test-hash: avoid wholesale duplication
22131         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22132         Instead, use a loop and add a single conditional.
22133
22134         tests: test-hash: allow seed selection via a command line argument
22135         * tests/test-hash.c (get_seed): New function.
22136         (main): Use it.
22137
22138 2009-06-19  Eric Blake  <ebb9@byu.net>
22139
22140         hash: avoid memory leak on allocation failure
22141         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22142         failure.  Factor repeated algorithm...
22143         (transfer_entries): ...into new helper routine.
22144         (hash_delete): React to hash_rehash return value.
22145
22146         hash: reduce memory pressure in hash_rehash no-op case
22147         * lib/hash.c (next_prime): Avoid overflow.
22148         (hash_initialize): Factor bucket size computation...
22149         (compute_bucket_size): ...into new helper function.
22150         (hash_rehash): Use new function and open coding to reduce memory
22151         pressure, and avoid a memory leak in USE_OBSTACK code.
22152         Reported by Jim Meyering.
22153
22154 2009-06-18  Eric Blake  <ebb9@byu.net>
22155
22156         hash: make rotation more obvious
22157         * modules/hash (Depends-on): Add bitrotate and stdint.
22158         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22159         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22160         (SIZE_MAX): Rely on headers for definition.
22161         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22162         (raw_hasher): Use rotr_sz.
22163         Suggested by Jim Meyering.
22164
22165         hash: fix memory leak in last patch
22166         * lib/hash.c (hash_rehash): Avoid memory leak.
22167
22168         hash: avoid no-op rehashing
22169         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22170
22171         hash: provide default callback functions
22172         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22173         (hash_initialize): Use them as defaults.
22174         * tests/test-hash.c (main): Test this.
22175
22176         hash: minor optimization
22177         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22178         when possible.
22179         (hash_initialize): Document this promise.
22180         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22181         * tests/test-hash.c (hash_compare_strings): Test this.
22182
22183 2009-06-18  Bruno Haible  <bruno@clisp.org>
22184
22185         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22186         going to be replaced anyway.
22187
22188 2009-06-18  Bruno Haible  <bruno@clisp.org>
22189
22190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22191         in one place.
22192         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22193         be replaced anyway.
22194
22195 2009-06-18  Eric Blake  <ebb9@byu.net>
22196
22197         hash: check for resize before insertion
22198         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22199         threshold before insertion, so that a pathological hash_rehash
22200         that fills every bucket can still trigger another rehash.
22201
22202 2009-06-18  Jim Meyering  <meyering@redhat.com>
22203
22204         hash-tests: add a loop around the small tests
22205         * tests/test-hash.c (main): Repeat small tests with selected
22206         small initial table sizes.
22207
22208 2009-06-17  Eric Blake  <ebb9@byu.net>
22209
22210         hash: minor cleanups
22211         * lib/hash.h (hash_entry): Make opaque, by moving...
22212         * lib/hash.c (hash_entry): ...here.
22213         (hash_insert): Clarify restrictions on what can be inserted.
22214         (hash_get_next): Clarify when it is safe to remove an element
22215         during traversal.
22216         (check_tuning): Skip verification when tuning is known safe.
22217         (hash_initialize): Clarify restrictions on tuning.
22218
22219 2009-06-17  Jim Meyering  <jim@meyering.net>
22220         and Eric Blake  <ebb9@byu.net>
22221
22222         hash-tests: new module
22223         * modules/hash-tests: New file.
22224         * tests/test-hash.c: New file.
22225
22226 2009-06-17  Eric Blake  <ebb9@byu.net>
22227
22228         strstr-simple: document new module
22229         * MODULES.html.sh: Document new module.
22230
22231         strstr, strcasestr: replace on platforms with broken memchr
22232         * modules/strstr: Split into...
22233         * modules/strstr-simple: ...new module that does not care about
22234         performance, but does care about glibc bug.
22235         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22236         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22237         if platform memchr is broken, per Debian bug 521737.
22238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22239         memchr.
22240         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22241         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22242         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22243         * modules/mountlist (Depends-on): Add strstr-simple.
22244         * modules/gen-uni-tables (Depends-on): Likewise.
22245         * modules/argz (Depends-on): Add strstr.
22246
22247 2009-06-17  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/posix_spawn-internal (Depends-on): Add errno.
22250
22251 2009-06-17  Bruno Haible  <bruno@clisp.org>
22252
22253         Define missing ESTALE on Interix 3.5.
22254         * lib/errno.in.h (ESTALE): Assign a value if missing.
22255         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22256         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22257         missing.
22258         * doc/posix-headers/errno.texi: Mention the Interix bug.
22259         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22260
22261 2009-06-15  Eric Blake  <ebb9@byu.net>
22262
22263         memchr, memchr2: add valgrind exception
22264         * lib/memchr.valgrind: New file.
22265         * lib/memchr2.valgrind: New file.
22266         * modules/memchr (Files): Distribute valgrind file.
22267         * modules/memchr2 (Files): Likewise.
22268
22269         docs: memchr is no longer obsolete
22270         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22271         * lib/string.in.h (memchr): Simplify logic.
22272
22273 2009-06-14  Jim Meyering  <meyering@redhat.com>
22274
22275         link-follow: fix the "checking..." message to not mention trailing slash
22276         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22277         never considered trailing slashes.
22278
22279 2009-06-14  Bruno Haible  <bruno@clisp.org>
22280
22281         * m4/memchr.m4: Mention also the bug on IA-64.
22282         * doc/posix-functions/memchr.texi: Likewise.
22283
22284 2009-06-12  Eric Blake  <ebb9@byu.net>
22285
22286         memchr: detect broken x86_64 and alpha implementations
22287         * modules/memchr-tests (Depends-on): Move mmap detection...
22288         * modules/memchr (Depends-on): ...here.
22289         (configure.ac): Set indicator.
22290         * lib/string.in.h (memchr): Declare replacement.
22291         * modules/string (Makefile.am): Trigger replacement.
22292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22294         bugs.
22295         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22296         * modules/getpagesize (License): Relax license.
22297
22298 2009-06-11  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/idpriv.h: Add more references.
22301
22302 2009-06-08  Bruno Haible  <bruno@clisp.org>
22303
22304         Tests for module 'idpriv-droptemp'.
22305         * modules/idpriv-droptemp-tests: New file.
22306         * tests/test-idpriv-droptemp.sh: New file.
22307         * tests/test-idpriv-droptemp.su.sh: New file.
22308         * tests/test-idpriv-droptemp.c: New file.
22309
22310         New module 'idpriv-droptemp'.
22311         * lib/idpriv-droptemp.c: New file.
22312         * modules/idpriv-droptemp: New file.
22313
22314 2009-06-08  Bruno Haible  <bruno@clisp.org>
22315
22316         Tests for module 'idpriv-drop'.
22317         * modules/idpriv-drop-tests: New file.
22318         * tests/test-idpriv-drop.sh: New file.
22319         * tests/test-idpriv-drop.su.sh: New file.
22320         * tests/test-idpriv-drop.c: New file.
22321
22322         New module 'idpriv-drop'.
22323         * lib/idpriv.h: New file.
22324         * lib-idpriv-drop.c: New file.
22325         * m4/idpriv.m4: New file.
22326         * modules/idpriv-drop: New file.
22327
22328 2009-06-08  Bruno Haible  <bruno@clisp.org>
22329
22330         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22331         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22332         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22333         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22334         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22336         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22337
22338 2009-06-08  Eric Blake  <ebb9@byu.net>
22339
22340         test-strstr: use memory fence, when possible
22341         * tests/test-strstr.c (main): Use memory fence, in order to be
22342         more likely to trigger Debian bug 521737.
22343         * modules/strstr-tests (Files): Pull in additional files.
22344
22345         memchr: no longer obsolete, for wider field testing
22346         * modules/memchr (Status, Notice): Delete, this module is no
22347         longer obsolete.
22348         * modules/vasnprintf (Depends-on): Add memchr.
22349
22350 2009-06-07  Jim Meyering  <meyering@redhat.com>
22351
22352         hash: declare some functions with the warn_unused_result attribute
22353         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22354
22355 2009-06-07  Bruno Haible  <bruno@clisp.org>
22356
22357         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22358         Reported by Eric Blake.
22359
22360 2009-06-06  Eric Blake  <ebb9@byu.net>
22361
22362         test-alignof: fix typo with long double
22363         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22364         compiler error.
22365
22366 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22367
22368         Escape non-texinfo { and }s.
22369         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22370         markup error.
22371
22372 2009-06-04  Jim Meyering  <meyering@redhat.com>
22373
22374         gitlog-to-changelog: don't infloop on an empty commit log
22375         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22376         Reported by Boris Petersen <transacid@centerim.org>.
22377
22378 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22379
22380         version-etc: extend for packagers
22381         Add three new configure options, intended for packagers:
22382           --with-packager="packager name"
22383           --with-packager-version="packager-specific version"
22384           --with-packager-bug-reports="packager bug reporting"
22385         An example with coreutils:
22386           $ ./configure \
22387             --with-packager=Gentoo \
22388             --with-packager-bug-report=http://bugs.gentoo.org/ \
22389             --with-packager-version="patchset 1.6"
22390           $ ./src/ls --version | head -n2
22391           ls (GNU coreutils) 7.1-dirty
22392           Packaged by Gentoo (patchset 1.6)
22393         Note that the bug reporting info via --help doesn't show up because
22394         coreutils uses its own custom emit_bug_reporting_address() implementation
22395         in src/system.h.  If it didn't, it'd look like:
22396           $ ./src/ls --help | tail -n4
22397           Report bugs to <bug-coreutils@gnu.org>.
22398           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22399           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22400           General help using GNU software: <http://www.gnu.org/gethelp/>.
22401         * lib/version-etc.c: Print new information, if provided.
22402         * m4/version-etc.m4: New file.
22403         * modules/version-etc (Files): Add m4/version-etc.m4.
22404         (configure.ac): Add gl_VERSION_ETC.
22405
22406 2009-05-31  Bruno Haible  <bruno@clisp.org>
22407
22408         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22409         and 'int64_t'.
22410         * modules/alignof-tests (Dependencies): Add stdint.
22411         Reported by Eric Blake.
22412
22413 2009-05-31  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22416         restriction due to compiler bugs.
22417         Reported by Eric Blake.
22418
22419 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22420             Bruno Haible  <bruno@clisp.org>
22421
22422         Fix test-alignof failure.
22423         * lib/alignof.h (alignof_slot): New macro.
22424         (alignof_type): New macro, with the same semantics as the previous
22425         'alignof'.
22426         (alignof): Alias to alignof_slot.
22427         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22428         check that the results are usable as constant expressions.
22429
22430 2009-05-31  Bruno Haible  <bruno@clisp.org>
22431
22432         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22433         * tests/test-memchr.c (main): Check that memchr does not read past the
22434         first occurrence of the byte.
22435         * tests/test-strstr.c (main): Update comment.
22436         Suggested by Eric Blake.
22437
22438 2009-05-30  Bruno Haible  <bruno@clisp.org>
22439
22440         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22441         detail how to use dumpbin.
22442         Reported by David Byron <dbyron@dbyron.com>.
22443
22444 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22445
22446         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22447
22448 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22449
22450         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22451
22452 2009-05-28  Bruno Haible  <bruno@clisp.org>
22453
22454         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22455         build-aux/ files.
22456
22457 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22458
22459         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22460
22461 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22462
22463         * gnulib-tool (sed_transform_main_lib_file)
22464         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
22465         regexps.
22466
22467 2009-05-26  Simon Josefsson  <simon@josefsson.org>
22468
22469         * tests/test-strstr.c: Add another self-test.
22470         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
22471         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
22472
22473 2009-05-23  Bruno Haible  <bruno@clisp.org>
22474
22475         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
22476         change.
22477
22478 2009-05-21  Bruno Haible  <bruno@clisp.org>
22479
22480         Simplify use of mode_t varargs.
22481         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
22482         uses 'mode_t' or 'int'.
22483         * lib/openat.c (openat): Likewise.
22484         * lib/open-safer.c (open_safer): Likewise.
22485         * m4/mode_t.m4: New file.
22486         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
22487         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
22488         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
22489         * modules/open (Files): Add m4/mode_t.m4.
22490         * modules/openat (Files): Likewise.
22491         * modules/fcntl-safer (Files): Likewise.
22492         Suggested by Eric Blake.
22493
22494 2009-05-21  Pádraig Brady  <P@draigbrady.com>
22495
22496         * doc/glibc-functions/fallocate.texi: New file.
22497         * doc/gnulib.texi: Include it.
22498
22499 2009-05-21  Eric Blake  <ebb9@byu.net>
22500             Bruno Haible  <bruno@clisp.org>
22501
22502         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
22503         invocations.
22504         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22505
22506 2009-05-21  Eric Blake  <ebb9@byu.net>
22507             Bruno Haible  <bruno@clisp.org>
22508
22509         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
22510         include_next. Fix of 2008-11-20 commit.
22511         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
22512         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
22513         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
22514         NEXT_MATH_H.
22515         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
22516         instead of NEXT_MATH_H.
22517
22518 2009-05-21  Bruno Haible  <bruno@clisp.org>
22519
22520         Avoid redefinition warnings for SIZE_MAX.
22521         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
22522         Reported by Simon Josefsson.
22523
22524 2009-05-21  Bruno Haible  <bruno@clisp.org>
22525
22526         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
22527         AC_CACHE_VAL.
22528
22529 2009-05-20  Bruno Haible  <bruno@clisp.org>
22530
22531         Make zeroptr.h work on mingw.
22532         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
22533         mprotect.
22534         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
22535         * modules/memchr2-tests (configure.ac): Likewise.
22536         * modules/memcmp-tests (configure.ac): Likewise.
22537         * modules/memmem-tests (configure.ac): Likewise.
22538         * modules/memrchr-tests (configure.ac): Likewise.
22539         Reported by Simon Josefsson.
22540
22541 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22542
22543         * tests/test-glob.c: Include string.h for strcmp prototype.
22544
22545 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22546
22547         * modules/getdelim (Depends-on): Add explicit stdint, although it
22548         was implicitly already pulled in via realloc-posix.
22549         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
22550
22551 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22552
22553         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
22554         G. Christensen" <tgc@jupiterrise.com>.
22555         * m4/sys_socket_h.m4: Check for sa_family_t.
22556         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
22557         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
22558         * tests/test-sys_socket.c: Check that sa_family_t works.
22559
22560 2009-05-18  Eric Blake  <ebb9@byu.net>
22561
22562         maint.mk: allow gnulib_dir in VPATH build
22563         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
22564
22565 2009-05-15  Jim Meyering  <meyering@redhat.com>
22566
22567         maint.mk: Give gnulib_dir a default definition.
22568         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
22569         Thus, most packages no longer need to specify this variable in cfg.mk
22570
22571 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
22572
22573         rename.m4: fix typos that would make non-mingw cross-configure fail
22574         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
22575
22576 2009-05-13  Eric Blake  <ebb9@byu.net>
22577
22578         mmap-anon: avoid out-of-order autoconf expansion
22579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
22580         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
22581         * modules/memchr-tests (Depends-on): Add extensions.
22582         * modules/memchr2-tests (Depends-on): Add extensions.
22583         * modules/memcmp-tests (Depends-on): Add extensions.
22584         * modules/memmem-tests (Depends-on): Add extensions.
22585         * modules/memrchr-tests (Depends-on): Add extensions.
22586
22587 2009-05-13  Bruno Haible  <bruno@clisp.org>
22588
22589         Make some tests ISO C 99 compliant.
22590         * tests/zerosize-ptr.h: New file.
22591         * tests/test-memchr.c: Include zerosize-ptr.h.
22592         (main): Use a zero-size object pointer instead of NULL.
22593         * tests/test-memchr2.c: Include zerosize-ptr.h.
22594         (main): Use a zero-size object pointer instead of NULL.
22595         * tests/test-memcmp.c: Include zerosize-ptr.h.
22596         (main): Use a zero-size object pointer instead of NULL.
22597         * tests/test-memmem.c: Include zerosize-ptr.h.
22598         (main): Use a zero-size object pointer instead of NULL.
22599         * tests/test-memrchr.c: Include zerosize-ptr.h.
22600         (main): Use a zero-size object pointer instead of NULL.
22601         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
22602         m4/mmap-anon.m4.
22603         (Depends-on): Add getpagesize.
22604         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22605         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
22606         m4/mmap-anon.m4.
22607         (Depends-on): Add getpagesize.
22608         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22609         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
22610         m4/mmap-anon.m4.
22611         (Depends-on): Add getpagesize.
22612         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22613         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
22614         m4/mmap-anon.m4.
22615         (Depends-on): Add getpagesize.
22616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22617         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
22618         m4/mmap-anon.m4.
22619         (Depends-on): Add getpagesize.
22620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22621
22622 2009-05-12  Bruno Haible  <bruno@clisp.org>
22623
22624         Tests for module 'alignof'.
22625         * modules/alignof-tests: New file.
22626         * tests/test-alignof.c: New file.
22627
22628 2009-05-12  Bruno Haible  <bruno@clisp.org>
22629
22630         Fix alignof macro.
22631         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
22632         vendor compilers that are always correct.
22633
22634 2009-05-12  Bruno Haible  <bruno@clisp.org>
22635
22636         Make the MAP_ANONYMOUS detection work on HP-UX 11.
22637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
22638         not whether its fully works.
22639
22640 2009-05-12  Bruno Haible  <bruno@clisp.org>
22641
22642         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
22643
22644 2009-05-12  Jim Meyering  <meyering@redhat.com>
22645
22646         * top/maint.mk: Adjust backslash alignment.
22647
22648 2009-05-11  Simon Josefsson  <simon@josefsson.org>
22649
22650         * top/maint.mk: Make $(srcdir)/build-aux configurable.
22651
22652 2009-05-11  Eric Blake  <ebb9@byu.net>
22653
22654         argp: avoid undefined behavior
22655         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
22656         macros.
22657
22658 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22659
22660         * tests/test-vc-list-files-git.sh: Do git config of user.email and
22661         user.name to prevent git commit from complaining.
22662
22663 2009-05-10  Bruno Haible  <bruno@clisp.org>
22664
22665         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
22666         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
22667         it rewrites every file name only once.
22668         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
22669
22670 2009-05-08  Bruno Haible  <bruno@clisp.org>
22671
22672         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
22673         instead of 'max'.
22674
22675 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22676
22677         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
22678         sockaddr_storage test.
22679
22680 2009-05-07  Simon Josefsson  <simon@josefsson.org>
22681
22682         * modules/sys_socket (Makefile.am): Substitute
22683         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
22684         * m4/sys_socket_h.m4: Check for sockaddr_storage.
22685         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
22686         * tests/test-sys_socket.c: Check sockaddr_storage.
22687
22688 2009-05-08  Bruno Haible  <bruno@clisp.org>
22689
22690         New module 'alignof'.
22691         * lib/alignof.h: New file.
22692         * modules/alignof: New file.
22693
22694 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22695             Bruno Haible  <bruno@clisp.org>
22696
22697         Fix test-file-has-acl on FreeBSD.
22698         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
22699         mask is implicitly added.
22700         * tests/test-file-has-acl.c: Include <signal.h>.
22701         (main): Terminate the test after 5 seconds.
22702         * modules/acl-tests (configure.ac): Check for alarm function.
22703
22704 2009-05-04  Bruno Haible  <bruno@clisp.org>
22705
22706         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
22707         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
22708         * modules/errno (configure.ac): Drop AC_REQUIRE.
22709         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
22710         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
22711
22712 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22713
22714         * modules/glob-tests: New module.
22715         * tests/test-glob.c: Add.
22716
22717 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22718
22719         * modules/fnmatch-tests: New module.
22720         * tests/test-fnmatch.c: Add.
22721
22722 2009-05-04  Eric Blake  <ebb9@byu.net>
22723
22724         maint: make the new no-submodule-changes rule VPATH-safe
22725         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
22726
22727 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22728             Bruno Haible  <bruno@clisp.org>
22729
22730         acl: Fix infinite loop on FreeBSD.
22731         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
22732         of return value from acl_get_entry.
22733         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
22734         Likewise.
22735
22736 2009-05-03  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/acl-internal.h (acl_entries): Clarify return value.
22739         * lib/acl_entries.c (acl_entries): Likewise.
22740
22741 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22742
22743         Bug fix in acl module.
22744         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
22745
22746 2009-05-03  Bruno Haible  <bruno@clisp.org>
22747
22748         Create gperf-generated file in the source dir, not in the build dir.
22749         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
22750         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
22751         * modules/unicase/locale-language (unicase/locale-languages.h):
22752         Likewise.
22753         * modules/unicase/special-casing (unicase/special-casing-table.h):
22754         Likewise.
22755         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
22756         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
22757         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
22758         Reported by Ralf Wildenhues.
22759
22760 2009-05-03  Bruno Haible  <bruno@clisp.org>
22761
22762         * modules/fnmatch (Description, configure.ac): Taken from
22763         fnmatch-posix.
22764         * modules/fnmatch-posix: Turn into a symbolic reference to the
22765         'fnmatch' module, and deprecate.
22766         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
22767
22768 2009-05-03  Bruno Haible  <bruno@clisp.org>
22769
22770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
22771         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
22772         Reported by Ralf Wildenhues.
22773
22774 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22775
22776         * m4/fnmatch.m4: Fix fnmatch re-define.
22777
22778 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22779
22780         priv-set: new module and tests; adapt write-any-file
22781         * lib/priv-set.c: New file.
22782         * lib/priv-set.h: New file.
22783         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
22784         * lib/write-any-file.c: Simplify by using priv-set module.
22785         * m4/priv-set.m4: New file.
22786         * modules/priv-set: New file.
22787         * modules/unlinkdir: Add dependency on priv-set module.
22788         * modules/write-any-file: Likewise.
22789
22790         Tests for module 'priv-set'.
22791         * modules/priv-set-tests: New file.
22792         * tests/test-priv-set.c: New file.
22793
22794 2009-05-03  Jim Meyering  <meyering@redhat.com>
22795             Bruno Haible  <bruno@clisp.org>
22796
22797         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
22798         use the converted UTF-8 variant of the name instead.
22799
22800 2009-05-03  Jim Meyering  <meyering@redhat.com>
22801
22802         tests: tighten some getdate tests
22803         * tests/test-getdate.c (main): Tighten tests: require equality,
22804         not just greater than.  Set TZ envvar to UTC0.
22805
22806 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22807
22808         getdate: correctly interpret "next monday" when run on a Monday
22809         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
22810         that e.g., "next tues" (when run on a tuesday) results in a date
22811         that is one week in the future, and not today's date.
22812         I.e., add a week when the wday is the same as the current one.
22813         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
22814         and earlier by Martin Bernreuther and Jan Minář.
22815         * tests/test-getdate.c (main): Check that "next DAY" is always in
22816         the future and that "last DAY" is always in the past.
22817
22818 2009-05-02  Jim Meyering  <meyering@redhat.com>
22819
22820         build: ensure that a release build fails when a submodule is unclean
22821         * top/maint.mk (no-submodule-changes): New rule.
22822         (alpha beta major): Depend on it.
22823
22824 2009-05-02  Bruno Haible  <bruno@clisp.org>
22825
22826         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
22827         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
22828         shell variable gl_fnmatch_required to detect which variant is
22829         requested.
22830         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
22831         gl_FUNC_FNMATCH_POSIX.
22832         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
22833         exclude fnmatch-posix.
22834
22835 2009-05-02  Bruno Haible  <bruno@clisp.org>
22836
22837         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
22838         * modules/mbsrtowcs (License): Change to LGPLv2+.
22839         * modules/strnlen1 (License): Likewise.
22840         Reported by Simon Josefsson.
22841
22842 2009-05-02  Bruno Haible  <bruno@clisp.org>
22843
22844         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
22845         "cross".
22846         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
22847         gnulib-tool was called with option --source-base=lib.
22848
22849 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22850
22851         Use automake *-local hooks without commands, for extensibility.
22852         * modules/localcharset (Makefile.am): Rename install-exec-local
22853         rule to install-exec-localcharset, and make it a prerequisite of
22854         install-exec-local.  Likewise, rename the uninstall-local rule to
22855         uninstall-localcharset, and make it a prerequisite of the former.
22856
22857 2009-05-01  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
22860         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22861         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
22862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
22863         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
22864         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22865         m4/locale-zh.m4, m4/codeset.m4.
22866
22867         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22868         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
22869         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22870         m4/locale-zh.m4.
22871
22872         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
22873         REPLACE_WCRTOMB if mbstate_t must be replaced.
22874         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
22875         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
22876
22877 2009-05-01  Bruno Haible  <bruno@clisp.org>
22878
22879         Avoid compiler warnings when redefining macros defined by <libintl.h>.
22880         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
22881         dngettext, dcngettext, textdomain, bindtextdomain,
22882         bind_textdomain_codeset): Undefine before redefining.
22883
22884 2009-04-30  Bruno Haible  <bruno@clisp.org>
22885
22886         Fix bug introduced on 2009-04-25.
22887         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
22888         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
22889         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
22890         is defined.
22891         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
22892         is defined.
22893         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
22894         is defined.
22895         Reported by Elbert_Pol <elbert.pol@gmail.com>.
22896
22897 2009-04-28  Bruno Haible  <bruno@clisp.org>
22898
22899         Comment tweaks.
22900         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
22901         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
22902         * lib/unicase.h (u*_casexfrm): Likewise.
22903         Reported by Paolo Bonzini.
22904
22905 2009-04-28  Bruno Haible  <bruno@clisp.org>
22906
22907         Fix a compilation error.
22908         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
22909         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22910         Reported by Jim Meyering.
22911
22912 2009-04-27  Bruno Haible  <bruno@clisp.org>
22913
22914         New module 'libunistring'.
22915         * modules/libunistring: New file.
22916         * m4/libunistring.m4: New file.
22917         * MODULES.html.sh (Unicode string functions): Add it.
22918
22919 2009-04-27  Eric Blake  <ebb9@byu.net>
22920
22921         maint.mk: allow package-specific header to provide <config.h>
22922         * top/maint.mk (sc_require_config_h): New variable.
22923         (sc_require_config_h, sc_require_config_h_first): Use it.
22924
22925 2009-04-27  Simon Josefsson  <simon@josefsson.org>
22926
22927         * top/maint.mk (sc_avoid_if_before_free): Except
22928         useless-if-before-free script.
22929
22930 2009-04-27  Eric Blake  <ebb9@byu.net>
22931
22932         maintainer-makefile: depend on all required helper scripts
22933         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
22934         useless-if-before-free.
22935         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
22936         version, rather than assuming gnulib checkout is available.
22937         Reported by Simen Josefsson.
22938
22939 2009-04-26  Bruno Haible  <bruno@clisp.org>
22940
22941         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
22942         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
22943         "../" or "..".
22944
22945 2009-04-26  Bruno Haible  <bruno@clisp.org>
22946
22947         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
22948         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
22949         AC_LIB_HAVE_LINKFLAGS.
22950
22951 2009-04-26  Bruno Haible  <bruno@clisp.org>
22952
22953         Simplify calling convention of u*_conv_from_encoding.
22954         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
22955         u32_conv_from_encoding): Expect a resultbuf argument and return the
22956         result directly as a pointer.
22957         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
22958         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
22959         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
22960         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
22961         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
22962         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22963         Update.
22964         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
22965         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
22966         * lib/vasnprintf.c (VASNPRINTF): Update.
22967         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
22968         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
22969         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
22970         * NEWS: Mention the change.
22971
22972 2009-04-26  Bruno Haible  <bruno@clisp.org>
22973
22974         Simplify calling convention of u*_conv_to_encoding.
22975         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22976         u32_conv_to_encoding): Expect a resultbuf argument and return the
22977         result directly as a pointer.
22978         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22979         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
22980         freeing scaled_offsets if mem_iconveha failed.
22981         * lib/unicase/u-casexfrm.h (FUNC): Update.
22982         * lib/uninorm/u-normxfrm.h (FUNC): Update.
22983         * lib/vasnprintf.c (VASNPRINTF): Update.
22984         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
22985         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
22986         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
22987         * NEWS: Mention the change.
22988
22989 2009-04-26  Bruno Haible  <bruno@clisp.org>
22990
22991         Avoid test failures on AIX and OSF/1.
22992         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
22993         malloc(0).
22994         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22995         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22996         Likewise.
22997         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
22998         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
22999         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23000         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23001         * doc/posix-functions/malloc.texi: Document the portability problem
23002         related to malloc(0).
23003
23004 2009-04-26  Bruno Haible  <bruno@clisp.org>
23005
23006         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23007         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23008         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23009
23010 2009-04-25  Bruno Haible  <bruno@clisp.org>
23011
23012         Avoid link error when creating a namespace clean library.
23013         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23014         as macro with arguments if already defined as an alias.
23015         * lib/signbitf.c (gl_signbitf): Don't undefine.
23016         * lib/signbitd.c (gl_signbitd): Don't undefine.
23017         * lib/signbitl.c (gl_signbitl): Don't undefine.
23018
23019 2009-04-25  Jim Meyering  <meyering@redhat.com>
23020
23021         vc-list-files: fix another quoting bug
23022         * build-aux/vc-list-files: Avoid sed backslash expansion
23023         of pathological directory names.
23024
23025 2009-04-25  Eric Blake  <ebb9@byu.net>
23026
23027         vc-list-files: fix shell quoting error
23028         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23029         timestamp.
23030
23031 2009-04-25  Jim Meyering  <meyering@redhat.com>
23032
23033         vc-list-files: restore lost functionality with subdir argument
23034         * build-aux/vc-list-files: When given a non-"." sub-directory
23035         argument, substitute the $dir/ prefix back onto each resulting name.
23036         Otherwise, coreutils' root_tests check would fail.
23037
23038 2009-04-24  Eric Blake  <ebb9@byu.net>
23039
23040         vc-list-files: ignore git symlinks
23041         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23042         than ls-files, to ignore git symlinks.
23043
23044         maint.mk: import improvements from m4
23045         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23046         (move_if_change): Delete unused macro.
23047         (news-date-check, vc-diff-check): Support VPATH builds.
23048         (announcement): Likewise.  Split --bootstrap-tools list...
23049         (boostrap-tools): ...into separate list, which can be overridden
23050         in cfg.mk.
23051         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23052         requiring dependency on useless-if-before-free module.
23053         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23054         Support VPATH builds.
23055
23056 2009-04-24  Jim Meyering  <meyering@redhat.com>
23057
23058         maint.mk: remove coreutils-specific rules and variables
23059         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23060         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23061         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23062
23063         maint.mk: remove obsolete rule
23064         * top/maint.mk (rel-check): Remove rule.
23065         (WGET, WGETFLAGS): Remove now-unused variables.
23066
23067 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23068
23069         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23070         consistency.
23071
23072         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23073         '$(PATH_SEPARATOR)' instead of ':'.
23074
23075 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23076
23077         * lib/getopt1.c (main): Use 'const' for static array.
23078
23079 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23080
23081         * top/maint.mk: Sync with coreutils.
23082         * NEWS: Explain incompatibilities.
23083
23084 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23085             Bruno Haible  <bruno@clisp.org>
23086
23087         Fix cross-compilation results.
23088         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23089         statement, as third argument of AC_TRY_RUN.
23090         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23091         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23092         Likewise.
23093         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23094         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23095         Likewise.
23096         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23097         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23098         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23099
23100 2009-04-20  Bruno Haible  <bruno@clisp.org>
23101
23102         Avoid test failure on mingw.
23103         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23104
23105 2009-04-20  Bruno Haible  <bruno@clisp.org>
23106
23107         Avoid compilation error on mingw.
23108         * modules/localename-tests (Depends-on): Add locale.
23109
23110 2009-04-19  Bruno Haible  <bruno@clisp.org>
23111
23112         Support for building a shared library on Windows platforms.
23113         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23114         (main): Test the presence of UNINORM_NFC here.
23115         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23116         (main): Test the presence of UNINORM_NFD here.
23117         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23118         (main): Test the presence of UNINORM_NFKC here.
23119         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23120         (main): Test the presence of UNINORM_NFKD here.
23121
23122 2009-04-19  Bruno Haible  <bruno@clisp.org>
23123
23124         Avoid a compiler warning.
23125         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23126         Change type of variable 'sequence'.
23127
23128 2009-04-19  Bruno Haible  <bruno@clisp.org>
23129
23130         * modules/configmake (Makefile.am): When the contents of configmake.h
23131         does not change, arrange to preserve its modification time.
23132
23133 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23134
23135         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23136         gettext domain.
23137
23138 2009-04-16  Jim Meyering  <meyering@redhat.com>
23139
23140         useless-if-before-free: improve conversion code
23141         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23142         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23143
23144 2009-04-14  Bruno Haible  <bruno@clisp.org>
23145
23146         * modules/fcntl (Depends-on): Add extensions.
23147         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23148
23149 2009-04-12  Ben Pfaff  <blp@gnu.org>
23150
23151         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23152         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23153
23154 2009-03-20  Ben Pfaff  <blp@gnu.org>
23155
23156         Make rename replace existing destinations on Windows.
23157         * m4/rename.m4: Add test for Mingw.
23158         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23159         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23160         * doc/posix-functions/rename.texi: Document.
23161
23162 2009-04-10  Bruno Haible  <bruno@clisp.org>
23163
23164         New include file "iconveh.h".
23165         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23166         * lib/striconveh.h: Include it.
23167         (enum iconv_ilseq_handler): Remove definition.
23168         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23169         striconveh.h.
23170         * lib/striconveha.c: Include striconveh.h.
23171         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23172         * modules/striconveh (Files): Add lib/iconveh.h.
23173         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23174         lib/striconveh.h.
23175
23176 2009-04-10  Bruno Haible  <bruno@clisp.org>
23177
23178         * lib/uniconv.h: Update comment.
23179
23180 2009-04-10  Bruno Haible  <bruno@clisp.org>
23181
23182         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23183         always.
23184         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23185         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23186         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23187         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23188         "unistring-notinline.h", so that the function gets defined always.
23189         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23190         * lib/unistr/u8-uctomb.c: Likewise.
23191         * lib/unistr/u16-mbtouc.c: Likewise.
23192         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23193         * lib/unistr/u16-uctomb.c: Likewise.
23194         * lib/unistr/u32-mbtouc.c: Likewise.
23195         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23196         * lib/unistr/u32-uctomb.c: Likewise.
23197
23198 2009-04-10  Bruno Haible  <bruno@clisp.org>
23199
23200         Mark 'utime' obsolete.
23201         * modules/utime (Status, Notice): New sections.
23202         Suggested by Jim Meyering.
23203
23204         Fix cross-compile guess for utime test.
23205         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23206         autoconf.
23207         * doc/posix-functions/utime.texi: Give more precisions.
23208         Reported by Jan <ipif@ymail.com>.
23209
23210 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23211
23212         filevercmp: correct today's change
23213         * lib/filevercmp.c: Also handle coreutils' test inputs.
23214         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23215
23216         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23217         for reporting it.
23218         * lib/filevercmp.c: Special handle for "", "." and "..".
23219         * tests/test-filevercmp.c: Enlarge the set suite.
23220
23221 2009-04-07  Jim Meyering  <meyering@redhat.com>
23222
23223         useless-if-before-free: show how to remove braced useless free, too
23224         * build-aux/useless-if-before-free: still only in a comment, though.
23225
23226 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23227
23228         maint.mk: import changes to syntax-check macros from coreutils
23229         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23230         Use them in the relevant macros.
23231
23232 2009-04-06  Bruno Haible  <bruno@clisp.org>
23233
23234         Fix unportable use of bit-fields.
23235         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23236         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23237         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23238
23239 2009-04-06  Bruno Haible  <bruno@clisp.org>
23240
23241         Avoid test failures on AIX and OSF/1.
23242         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23243         that malloc(0) = NULL.
23244         * tests/unicase/test-u8-tolower.c (check): Likewise.
23245         * tests/unicase/test-u8-totitle.c (check): Likewise.
23246         * tests/unicase/test-u8-toupper.c (check): Likewise.
23247         * tests/unicase/test-u16-casefold.c (check): Likewise.
23248         * tests/unicase/test-u16-tolower.c (check): Likewise.
23249         * tests/unicase/test-u16-totitle.c (check): Likewise.
23250         * tests/unicase/test-u16-toupper.c (check): Likewise.
23251         * tests/unicase/test-u32-casefold.c (check): Likewise.
23252         * tests/unicase/test-u32-tolower.c (check): Likewise.
23253         * tests/unicase/test-u32-totitle.c (check): Likewise.
23254         * tests/unicase/test-u32-toupper.c (check): Likewise.
23255         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23256         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23257         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23258         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23259         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23260         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23261         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23262         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23263         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23264         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23265         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23266         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23267
23268 2009-04-05  Bruno Haible  <bruno@clisp.org>
23269
23270         Work around an autoconf limitation.
23271         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23272         comment line if it would be longer than 3 KB.
23273
23274 2009-04-05  Bruno Haible  <bruno@clisp.org>
23275
23276         Avoid test failure with libiconv-1.13.
23277         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23278         of the expected test results.
23279
23280 2009-04-05  Bruno Haible  <bruno@clisp.org>
23281
23282         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23283         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23284         that it should be installed.
23285
23286 2009-04-05  Bruno Haible  <bruno@clisp.org>
23287
23288         * gnulib-tool: New option --copy-file.
23289         (func_usage): Document it.
23290         (func_dest_tmpfilename): Moved out of func_import.
23291         (func_add_file, func_update_file): New functions, extracted from
23292         func_import.
23293         (func_import): Update.
23294
23295 2009-04-05  Karl Berry  <karl@gnu.org>
23296
23297         * README: prominently mention gnulib-tool.
23298         Rearrange sections so getting the code is near the top.
23299
23300 2009-04-05  Bruno Haible  <bruno@clisp.org>
23301
23302         * lib/unicase.h: Mention u*_cmp2.
23303         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23304         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23305         * lib/unicase/ulc-casecmp.c: Likewise.
23306         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23307         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23308         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23309         unistr/u8-cmp.
23310         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23311         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23312         unistr/u16-cmp.
23313         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23314         unistr/u32-cmp.
23315
23316         * lib/uninorm.h: Mention u*_cmp2.
23317         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23318         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23319         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23320         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23321         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23322         unistr/u8-cmp.
23323         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23324         unistr/u16-cmp.
23325         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23326         unistr/u32-cmp.
23327
23328         New module 'unistr/u32-cmp2'.
23329         * lib/unistr/u32-cmp2.c: New file.
23330         * modules/unistr/u32-cmp2: New file.
23331
23332         New module 'unistr/u16-cmp2'.
23333         * lib/unistr/u16-cmp2.c: New file.
23334         * modules/unistr/u16-cmp2: New file.
23335
23336         New module 'unistr/u8-cmp2'.
23337         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23338         * lib/unistr/u8-cmp2.c: New file.
23339         * lib/unistr/u-cmp2.h: New file.
23340         * modules/unistr/u8-cmp2: New file.
23341
23342 2009-04-05  Bruno Haible  <bruno@clisp.org>
23343
23344         * lib/unictype.h (uc_property_is_valid): New macro.
23345         * tests/unictype/test-pr_byname.c (main): Use it.
23346
23347         * lib/unistr.h: Doc fixes.
23348         * lib/uniconv.h: Doc fixes.
23349         * lib/unictype.h: Doc fixes.
23350
23351 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23352
23353         Port coreutils 7.2 to Solaris 8.
23354
23355         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23356         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23357         for Solaris 8.  This is a bit of a hack, as it means it's the
23358         caller's responsibility to add -lnsl if needed, but most likely it
23359         won't be needed since only getaddrinfo uses this and getaddrinfo
23360         isn't needed on Solaris 8.
23361
23362         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23363         problem to Solaris 8 encountered with coreutils 7.2, which
23364         resulted in a message "fnmatch.c:292: warning: passing argument 4
23365         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23366         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23367
23368 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23369
23370         * m4/ld-version-script.m4: Add FIXME comment.
23371
23372 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23373
23374         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23375         SOVERSION variable.
23376
23377 2009-04-02  Bruno Haible  <bruno@clisp.org>
23378
23379         * Makefile (info, html, dvi, pdf): Combine the rules.
23380         Suggested by Jim Meyering.
23381
23382 2009-04-01  Bruno Haible  <bruno@clisp.org>
23383
23384         * Makefile (info, html, dvi, pdf): New targets.
23385         Reported by Reuben Thomas <rrt@sc3d.org>.
23386
23387 2009-04-01  Bruno Haible  <bruno@clisp.org>
23388
23389         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23390         can be put into PATH.
23391         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23392
23393 2009-04-01  Bruno Haible  <bruno@clisp.org>
23394
23395         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23396
23397 2009-04-01  Bruno Haible  <bruno@clisp.org>
23398
23399         Rename module 'visibility'.
23400         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23401         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23402         * doc/gnulib.texi: Update.
23403         * MODULES.html.sh (Misc): Update.
23404         * NEWS: Mention the change.
23405
23406 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23407
23408         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23409         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23410         Eric Blake <ebb9@byu.net> for review.
23411         * MODULES.html.sh: Add lib-msvc-compat.
23412         * doc/gnulib.texi: Link to new section.
23413         * m4/ld-output-def.m4: New file.
23414         * doc/ld-output-def.texi: New file.
23415
23416 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23417
23418         Rename ld-version-script to lib-symbol-versions.  Suggested by
23419         Bruno Haible <bruno@clisp.org>.
23420         * modules/ld-version-script: Renamed to lib-symbol-versions.
23421         * doc/ld-version-script.texi: Fix module name.
23422         * MODULES.html.sh: Add lib-symbol-versions.
23423
23424 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23425
23426         * modules/u64-tests: New file.
23427         * tests/test-u64.c: New file.
23428
23429 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23430
23431         * MODULES.html.sh: Mention u64.
23432         * modules/u64: New module.
23433         * modules/crypto/sha512: Depend on u64 module instead of providing
23434         u64.h.
23435
23436 2009-03-27  Eric Blake  <ebb9@byu.net>
23437
23438         test-strerror: make debugging EAI_SYSTEM easier
23439         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23440         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23441         failure was EAI_SYSTEM.
23442
23443 2009-03-25  Bruno Haible  <bruno@clisp.org>
23444
23445         Fix a problem with --enable-relocatable on Solaris 7.
23446         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23447         since 2008-02-24.
23448
23449 2009-03-25  Eric Blake  <ebb9@byu.net>
23450
23451         test-sockets: avoid gcc warning
23452         * tests/test-sockets.c (main): Silence compiler warning.
23453
23454 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23455
23456         New modules nproc, pthread, contributed by Glen Lenker.
23457
23458         * MODULES.html.sh: Add pthread, nproc.
23459         * lib/nproc.c: New file.
23460         * lib/nproc.h: New file.
23461         * lib/pthread.in.h: New file.
23462         * m4/pthread.m4: New file.
23463         * modules/nproc: New file.
23464         * modules/pthread: New file.
23465
23466 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23467
23468         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
23469         New variable.
23470
23471 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
23472
23473         filevercmp: handle simple~ and numbered.~3~ backup suffixes
23474         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
23475         * tests/test-filevercmp.c: Add tests for backup suffixes.
23476
23477 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23478
23479         * modules/stdlib (Depends-on): Add stdint, needed when defining
23480         struct random_data on, for example, HP-UX 10.20.  Reported by
23481         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23482
23483 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23484
23485         * lib/readline.c (readline): Call fflush on stdout after printing
23486         prompt.
23487
23488 2009-03-20  Bruno Haible  <bruno@clisp.org>
23489
23490         Remove dependency from 'close' module to -lws2_32 on native Windows.
23491         * lib/close-hook.h: New file.
23492         * lib/close-hook.c: New file.
23493         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
23494         w32sock.h.
23495         (_gl_close_fd_maybe_socket): Remove function.
23496         (rpl_close): Invoke execute_all_close_hooks instead of
23497         _gl_close_fd_maybe_socket.
23498         * lib/sockets.c: Include close-hook.h, w32sock.h.
23499         (close_fd_maybe_socket): New function, essentially from lib/close.c.
23500         (close_sockets_hook): New variable.
23501         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
23502         (gl_sockets_cleanup): Unregister it.
23503         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
23504         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
23505         * modules/close-hook: New file.
23506         * modules/close (Files): Remove lib/w32sock.h.
23507         (Depends-on): Add close-hook.
23508         (Link): Remove section.
23509         * modules/sockets (Files): Add lib/w32sock.h.
23510         (Depends-on): Add close-hook.
23511         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
23512         invocation.
23513         * NEWS: Mention that LIB_CLOSE is gone.
23514
23515 2009-03-23  Eric Blake  <ebb9@byu.net>
23516
23517         signal-tests: test previous patch
23518         * tests/test-signal.c: New file.
23519         * modules/signal-tests: Likewise.
23520
23521         signal.h: always support 'volatile sig_atomic_t'
23522         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
23523         (gl_SIGNAL_H_DEFAULTS): Add a default.
23524         * modules/signal (Makefile.am): Substitute if needed.
23525         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
23526         users can blindly add volatile.
23527         * doc/posix-headers/signal.texi (signal.h): Document it.
23528         Reported by Matthew Woehlke.
23529
23530 2009-03-23  Jim Meyering  <meyering@redhat.com>
23531
23532         pathmax: PATH_MAX: use pathconf only when available
23533         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
23534         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
23535         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
23536         This avoids a link failure in a PSP cross-compilation environment
23537         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
23538
23539         * lib/vasnprintf.c (divide): Fix typo in comment.
23540
23541 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23542
23543         * gnulib-tool (func_filter_filelist): Fix comment.
23544
23545 2009-03-20  Bruno Haible  <bruno@clisp.org>
23546
23547         Make sockets.h self-contained.
23548         * lib/sockets.c: Include sockets.h first.
23549         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
23550
23551 2009-03-19  Eric Blake  <ebb9@byu.net>
23552
23553         doc: mention more functions added in cygwin 1.7.0
23554         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
23555         addition.
23556         * doc/posix-functions/log2f.texi: Likewise.
23557
23558 2009-03-19  Jim Meyering  <meyering@redhat.com>
23559
23560         fsusage: avoid syntax error due to statement-before-declaration
23561         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
23562         after all declarations.  Reported by Matthew Woehlke in
23563         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
23564
23565 2009-03-18  Eric Blake  <ebb9@byu.net>
23566
23567         build-aux/compile: sync from automake
23568         * build-aux/compile: New file, from automake.
23569         * config/srclist.txt: Mention build-aux/compile.
23570
23571 2009-03-17  Bruno Haible  <bruno@clisp.org>
23572
23573         * lib/git-merge-changelog.c: Fix typo in comment.
23574         Reported by Reuben Thomas <rrt@sc3d.org>.
23575
23576 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
23577
23578         * m4/regex.m4: update and improve help for
23579         --without-included-regex.
23580
23581 2009-03-17  Simon Josefsson  <simon@josefsson.org>
23582
23583         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
23584         failure on missing include files.
23585
23586 2009-03-17  Eric Blake  <ebb9@byu.net>
23587
23588         doc: mention more functions added in cygwin 1.7.0
23589         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
23590         addition.
23591         * doc/posix-functions/fwscanf.texi: Likewise.
23592         * doc/posix-functions/swprintf.texi: Likewise.
23593         * doc/posix-functions/swscanf.texi: Likewise.
23594         * doc/posix-functions/vfwprintf.texi: Likewise.
23595         * doc/posix-functions/vfwscanf.texi: Likewise.
23596         * doc/posix-functions/vswprintf.texi: Likewise.
23597         * doc/posix-functions/vswscanf.texi: Likewise.
23598         * doc/posix-functions/vwprintf.texi: Likewise.
23599         * doc/posix-functions/vwscanf.texi: Likewise.
23600         * doc/posix-functions/wcscasecmp.texi: Likewise.
23601         * doc/posix-functions/wcsdup.texi: Likewise.
23602         * doc/posix-functions/wcsftime.texi: Likewise.
23603         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23604         * doc/posix-functions/wprintf.texi: Likewise.
23605         * doc/posix-functions/wscanf.texi: Likewise.
23606         * doc/glibc-functions/gethostbyname2.texi: Likewise.
23607
23608 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23609
23610         maint.mk: really add $(AM_MAKEFLAGS)
23611         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
23612         was inadvertently omitted in the last commit.
23613         Spotted by Bruno Haible.
23614
23615         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
23616         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
23617         $(AM_MAKEFLAGS)' rather than plain `make'.
23618
23619         gnulib-tool: execute $MAKE not make
23620         * gnulib-tool: Default $MAKE to 'make'.
23621         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
23622         than make.  Initialize $MAKE in the do-autobuild script.
23623
23624         gnulib-tool: use $MAKE not make in generated files
23625         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
23626         make, in generated files.  Initialize $MAKE in the do-autobuild
23627         script.
23628
23629         * top/GNUmakefile (_have-git-version-gen): Fix typo.
23630
23631         GNUmakefile: disable parallelism only for multiple, recursive targets
23632         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
23633         additions in the Makefile.
23634         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
23635         by Automake.
23636         (.NOTPARALLEL): Only disable parallel builds if multiple targets
23637         are listed on the command line and at least one of them is
23638         listed in $(ALL_RECURSIVE_TARGETS).
23639
23640 2009-03-14  Bruno Haible  <bruno@clisp.org>
23641
23642         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
23643         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
23644         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
23645         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
23646         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
23647         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
23648         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
23649         unistr/u8-uctomb.
23650         * modules/unistr/u8-strchr (Depends-on): Likewise.
23651         * modules/unistr/u8-strrchr (Depends-on): Likewise.
23652         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
23653         unistr/u16-uctomb.
23654         * modules/unistr/u16-strchr (Depends-on): Likewise.
23655         * modules/unistr/u16-strrchr (Depends-on): Likewise.
23656
23657 2009-03-12  Bruno Haible  <bruno@clisp.org>
23658
23659         Work around select() bug on Interix 3.5.
23660         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
23661         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
23662         * m4/select.m4: New file.
23663         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
23664         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
23665         * modules/select (Files): Add m4/select.m4.
23666         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
23667         * modules/nanosleep (Depends-on): Add select.
23668         * modules/poll (Depends-on): Likewise.
23669         * doc/posix-functions/select.texi: Mention the Interix bug.
23670         Reported by Markus Duft <mduft@gentoo.org>.
23671
23672         * lib/select.c: Renamed from lib/winsock-select.c.
23673         * modules/select (Files): Add lib/select.c, remove
23674         lib/winsock-select.c.
23675         (configure.ac): Update.
23676
23677 2009-03-12  Jim Meyering  <meyering@redhat.com>
23678
23679         avoid gcc warnings about unused macro definitions
23680         * lib/readtokens.c (STREQ): Remove unused definition.
23681         * lib/xmalloc.c (SIZE_MAX): Likewise.
23682         * lib/openat-die.c (N_): Likewise.
23683         * lib/mountlist.c (SIZE_MAX): Remove definition.
23684         Instead, include <stdint.h>.
23685         * lib/readutmp.c: Likewise.
23686         * modules/readutmp (Depends-on): Add stdint.
23687         * modules/mountlist (Depends-on): Add stdint.
23688         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
23689
23690 2009-03-10  Bruno Haible  <bruno@clisp.org>
23691
23692         Tests for module 'mbmemcasecoll'.
23693         * modules/mbmemcasecoll-tests: New file.
23694         * tests/test-mbmemcasecoll1.sh: New file.
23695         * tests/test-mbmemcasecoll2.sh: New file.
23696         * tests/test-mbmemcasecoll3.sh: New file.
23697         * tests/test-mbmemcasecoll.c: New file.
23698
23699         New module 'mbmemcasecoll'.
23700         * lib/mbmemcasecoll.h: New file.
23701         * lib/mbmemcasecoll.c: New file.
23702         * modules/mbmemcasecoll: New file.
23703
23704         * tests/test-mbmemcasecmp.h: New file, extracted from
23705         tests/test-mbmemcasecmp.c.
23706         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
23707         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
23708         (main): Update.
23709         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
23710
23711 2009-03-09  Bruno Haible  <bruno@clisp.org>
23712
23713         Tests for module 'mbmemcasecmp'.
23714         * modules/mbmemcasecmp-tests: New file.
23715         * tests/test-mbmemcasecmp1.sh: New file.
23716         * tests/test-mbmemcasecmp2.sh: New file.
23717         * tests/test-mbmemcasecmp3.sh: New file.
23718         * tests/test-mbmemcasecmp.c: New file.
23719
23720         New module 'mbmemcasecmp'.
23721         * lib/mbmemcasecmp.h: New file.
23722         * lib/mbmemcasecmp.c: New file.
23723         * modules/mbmemcasecmp: New file.
23724
23725 2009-03-09  Bruno Haible  <bruno@clisp.org>
23726
23727         Tests for module 'unicase/ulc-casecoll'.
23728         * modules/unicase/ulc-casecoll-tests: New file.
23729         * tests/unicase/test-ulc-casecoll1.sh: New file.
23730         * tests/unicase/test-ulc-casecoll2.sh: New file.
23731         * tests/unicase/test-ulc-casecoll.c: New file.
23732
23733         New module 'unicase/ulc-casecoll'.
23734         * lib/unicase.h (ulc_casecoll): New declaration.
23735         * lib/unicase/ulc-casecoll.c: New file.
23736         * modules/unicase/ulc-casecoll: New file.
23737
23738         New module 'unicase/ulc-casexfrm'.
23739         * lib/unicase.h (ulc_casexfrm): New declaration.
23740         * lib/unicase/ulc-casexfrm.c: New file.
23741         * modules/unicase/ulc-casexfrm: New file.
23742
23743 2009-03-09  Bruno Haible  <bruno@clisp.org>
23744
23745         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
23746         invocations.
23747
23748         * m4/mbscasecmp.m4: Remove file.
23749         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
23750         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
23751
23752         * m4/mbscasestr.m4: Remove file.
23753         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
23754         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
23755
23756         * m4/mbschr.m4: Remove file.
23757         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
23758         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
23759
23760         * m4/mbscspn.m4: Remove file.
23761         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
23762         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
23763
23764         * m4/mbslen.m4: Remove file.
23765         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
23766         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
23767
23768         * m4/mbsncasecmp.m4: Remove file.
23769         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
23770         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
23771
23772         * m4/mbsnlen.m4: Remove file.
23773         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
23774         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
23775
23776         * m4/mbspbrk.m4: Remove file.
23777         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
23778         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
23779
23780         * m4/mbspcasecmp.m4: Remove file.
23781         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
23782         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
23783
23784         * m4/mbsrchr.m4: Remove file.
23785         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
23786         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
23787
23788         * m4/mbssep.m4: Remove file.
23789         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
23790         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
23791
23792         * m4/mbsspn.m4: Remove file.
23793         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
23794         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
23795
23796         * m4/mbsstr.m4: Remove file.
23797         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
23798         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
23799
23800         * m4/mbstok_r.m4: Remove file.
23801         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
23802         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
23803
23804         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
23805
23806         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
23807         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
23808
23809         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
23810
23811 2009-03-08  Bruno Haible  <bruno@clisp.org>
23812
23813         Tests for module 'unicase/ulc-casecmp'.
23814         * modules/unicase/ulc-casecmp-tests: New file.
23815         * tests/unicase/test-ulc-casecmp1.sh: New file.
23816         * tests/unicase/test-ulc-casecmp2.sh: New file.
23817         * tests/unicase/test-ulc-casecmp.c: New file.
23818
23819         New module 'unicase/ulc-casecmp'.
23820         * lib/unicase.h (ulc_casecmp): New declaration.
23821         * lib/unicase/ulc-casecmp.c: New file.
23822         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
23823         'const SRC_UNIT *'.
23824         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
23825         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
23826         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
23827         * modules/unicase/ulc-casecmp: New file.
23828
23829         Tests for module 'unicase/u32-is-cased'.
23830         * modules/unicase/u32-is-cased-tests: New file.
23831         * tests/unicase/test-u32-is-cased.c: New file.
23832
23833         Tests for module 'unicase/u16-is-cased'.
23834         * modules/unicase/u16-is-cased-tests: New file.
23835         * tests/unicase/test-u16-is-cased.c: New file.
23836
23837         Tests for module 'unicase/u8-is-cased'.
23838         * modules/unicase/u8-is-cased-tests: New file.
23839         * tests/unicase/test-u8-is-cased.c: New file.
23840         * tests/unicase/test-is-cased.h: New file.
23841
23842         New module 'unicase/u32-is-cased'.
23843         * lib/unicase/u32-is-cased.c: New file.
23844         * modules/unicase/u32-is-cased: New file.
23845
23846         New module 'unicase/u16-is-cased'.
23847         * lib/unicase/u16-is-cased.c: New file.
23848         * modules/unicase/u16-is-cased: New file.
23849
23850         New module 'unicase/u8-is-cased'.
23851         * lib/unicase/u8-is-cased.c: New file.
23852         * lib/unicase/u-is-cased.h: New file.
23853         * modules/unicase/u8-is-cased: New file.
23854
23855         Tests for module 'unicase/u32-is-casefolded'.
23856         * modules/unicase/u32-is-casefolded-tests: New file.
23857         * tests/unicase/test-u32-is-casefolded.c: New file.
23858
23859         Tests for module 'unicase/u16-is-casefolded'.
23860         * modules/unicase/u16-is-casefolded-tests: New file.
23861         * tests/unicase/test-u16-is-casefolded.c: New file.
23862
23863         Tests for module 'unicase/u8-is-casefolded'.
23864         * modules/unicase/u8-is-casefolded-tests: New file.
23865         * tests/unicase/test-u8-is-casefolded.c: New file.
23866         * tests/unicase/test-is-casefolded.h: New file.
23867
23868         New module 'unicase/u32-is-casefolded'.
23869         * lib/unicase/u32-is-casefolded.c: New file.
23870         * modules/unicase/u32-is-casefolded: New file.
23871
23872         New module 'unicase/u16-is-casefolded'.
23873         * lib/unicase/u16-is-casefolded.c: New file.
23874         * modules/unicase/u16-is-casefolded: New file.
23875
23876         New module 'unicase/u8-is-casefolded'.
23877         * lib/unicase/u8-is-casefolded.c: New file.
23878         * modules/unicase/u8-is-casefolded: New file.
23879
23880         Tests for module 'unicase/u32-is-titlecase'.
23881         * modules/unicase/u32-is-titlecase-tests: New file.
23882         * tests/unicase/test-u32-is-titlecase.c: New file.
23883
23884         Tests for module 'unicase/u16-is-titlecase'.
23885         * modules/unicase/u16-is-titlecase-tests: New file.
23886         * tests/unicase/test-u16-is-titlecase.c: New file.
23887
23888         Tests for module 'unicase/u8-is-titlecase'.
23889         * modules/unicase/u8-is-titlecase-tests: New file.
23890         * tests/unicase/test-u8-is-titlecase.c: New file.
23891         * tests/unicase/test-is-titlecase.h: New file.
23892
23893         New module 'unicase/u32-is-titlecase'.
23894         * lib/unicase/u32-is-titlecase.c: New file.
23895         * modules/unicase/u32-is-titlecase: New file.
23896
23897         New module 'unicase/u16-is-titlecase'.
23898         * lib/unicase/u16-is-titlecase.c: New file.
23899         * modules/unicase/u16-is-titlecase: New file.
23900
23901         New module 'unicase/u8-is-titlecase'.
23902         * lib/unicase/u8-is-titlecase.c: New file.
23903         * modules/unicase/u8-is-titlecase: New file.
23904
23905         Tests for module 'unicase/u32-is-lowercase'.
23906         * modules/unicase/u32-is-lowercase-tests: New file.
23907         * tests/unicase/test-u32-is-lowercase.c: New file.
23908
23909         Tests for module 'unicase/u16-is-lowercase'.
23910         * modules/unicase/u16-is-lowercase-tests: New file.
23911         * tests/unicase/test-u16-is-lowercase.c: New file.
23912
23913         Tests for module 'unicase/u8-is-lowercase'.
23914         * modules/unicase/u8-is-lowercase-tests: New file.
23915         * tests/unicase/test-u8-is-lowercase.c: New file.
23916         * tests/unicase/test-is-lowercase.h: New file.
23917
23918         New module 'unicase/u32-is-lowercase'.
23919         * lib/unicase/u32-is-lowercase.c: New file.
23920         * modules/unicase/u32-is-lowercase: New file.
23921
23922         New module 'unicase/u16-is-lowercase'.
23923         * lib/unicase/u16-is-lowercase.c: New file.
23924         * modules/unicase/u16-is-lowercase: New file.
23925
23926         New module 'unicase/u8-is-lowercase'.
23927         * lib/unicase/u8-is-lowercase.c: New file.
23928         * modules/unicase/u8-is-lowercase: New file.
23929
23930         Tests for module 'unicase/u32-is-uppercase'.
23931         * modules/unicase/u32-is-uppercase-tests: New file.
23932         * tests/unicase/test-u32-is-uppercase.c: New file.
23933
23934         Tests for module 'unicase/u16-is-uppercase'.
23935         * modules/unicase/u16-is-uppercase-tests: New file.
23936         * tests/unicase/test-u16-is-uppercase.c: New file.
23937
23938         Tests for module 'unicase/u8-is-uppercase'.
23939         * modules/unicase/u8-is-uppercase-tests: New file.
23940         * tests/unicase/test-u8-is-uppercase.c: New file.
23941         * tests/unicase/test-is-uppercase.h: New file.
23942
23943         New module 'unicase/u32-is-uppercase'.
23944         * lib/unicase/u32-is-uppercase.c: New file.
23945         * modules/unicase/u32-is-uppercase: New file.
23946
23947         New module 'unicase/u16-is-uppercase'.
23948         * lib/unicase/u16-is-uppercase.c: New file.
23949         * modules/unicase/u16-is-uppercase: New file.
23950
23951         New module 'unicase/u8-is-uppercase'.
23952         * lib/unicase/u8-is-uppercase.c: New file.
23953         * modules/unicase/u8-is-uppercase: New file.
23954
23955         New module 'unicase/u32-is-invariant'.
23956         * lib/unicase/u32-is-invariant.c: New file.
23957         * modules/unicase/u32-is-invariant: New file.
23958
23959         New module 'unicase/u16-is-invariant'.
23960         * lib/unicase/u16-is-invariant.c: New file.
23961         * modules/unicase/u16-is-invariant: New file.
23962
23963         New module 'unicase/u8-is-invariant'.
23964         * lib/unicase/u8-is-invariant.c: New file.
23965         * lib/unicase/invariant.h: New file.
23966         * lib/unicase/u-is-invariant.h: New file.
23967         * modules/unicase/u8-is-invariant: New file.
23968
23969         Tests for module 'unicase/u32-casecoll'.
23970         * modules/unicase/u32-casecoll-tests: New file.
23971         * tests/unicase/test-u32-casecoll.c: New file.
23972
23973         Tests for module 'unicase/u16-casecoll'.
23974         * modules/unicase/u16-casecoll-tests: New file.
23975         * tests/unicase/test-u16-casecoll.c: New file.
23976
23977         Tests for module 'unicase/u8-casecoll'.
23978         * modules/unicase/u8-casecoll-tests: New file.
23979         * tests/unicase/test-u8-casecoll.c: New file.
23980
23981         New module 'unicase/u32-casecoll'.
23982         * lib/unicase/u32-casecoll.c: New file.
23983         * modules/unicase/u32-casecoll: New file.
23984
23985         New module 'unicase/u16-casecoll'.
23986         * lib/unicase/u16-casecoll.c: New file.
23987         * modules/unicase/u16-casecoll: New file.
23988
23989         New module 'unicase/u8-casecoll'.
23990         * lib/unicase/u8-casecoll.c: New file.
23991         * lib/unicase/u-casecoll.h: New file.
23992         * modules/unicase/u8-casecoll: New file.
23993
23994         New module 'unicase/u32-casexfrm'.
23995         * lib/unicase/u32-casexfrm.c: New file.
23996         * modules/unicase/u32-casexfrm: New file.
23997
23998         New module 'unicase/u16-casexfrm'.
23999         * lib/unicase/u16-casexfrm.c: New file.
24000         * modules/unicase/u16-casexfrm: New file.
24001
24002         New module 'unicase/u8-casexfrm'.
24003         * lib/unicase/u8-casexfrm.c: New file.
24004         * lib/unicase/u-casexfrm.h: New file.
24005         * modules/unicase/u8-casexfrm: New file.
24006
24007         Tests for module 'unicase/u32-casecmp'.
24008         * modules/unicase/u32-casecmp-tests: New file.
24009         * tests/unicase/test-u32-casecmp.c: New file.
24010
24011         Tests for module 'unicase/u16-casecmp'.
24012         * modules/unicase/u16-casecmp-tests: New file.
24013         * tests/unicase/test-u16-casecmp.c: New file.
24014
24015         Tests for module 'unicase/u8-casecmp'.
24016         * modules/unicase/u8-casecmp-tests: New file.
24017         * tests/unicase/test-u8-casecmp.c: New file.
24018         * tests/unicase/test-casecmp.h: New file.
24019
24020         New module 'unicase/u32-casecmp'.
24021         * lib/unicase/u32-casecmp.c: New file.
24022         * modules/unicase/u32-casecmp: New file.
24023
24024         New module 'unicase/u16-casecmp'.
24025         * lib/unicase/u16-casecmp.c: New file.
24026         * modules/unicase/u16-casecmp: New file.
24027
24028         New module 'unicase/u8-casecmp'.
24029         * lib/unicase/u8-casecmp.c: New file.
24030         * lib/unicase/u-casecmp.h: New file.
24031         * modules/unicase/u8-casecmp: New file.
24032
24033         Tests for module 'unicase/u32-casefold'.
24034         * modules/unicase/u32-casefold-tests: New file.
24035         * tests/unicase/test-u32-casefold.c: New file.
24036
24037         Tests for module 'unicase/u16-casefold'.
24038         * modules/unicase/u16-casefold-tests: New file.
24039         * tests/unicase/test-u16-casefold.c: New file.
24040
24041         Tests for module 'unicase/u8-casefold'.
24042         * modules/unicase/u8-casefold-tests: New file.
24043         * tests/unicase/test-u8-casefold.c: New file.
24044
24045         New module 'unicase/u32-casefold'.
24046         * lib/unicase/u32-casefold.c: New file.
24047         * modules/unicase/u32-casefold: New file.
24048
24049         New module 'unicase/u16-casefold'.
24050         * lib/unicase/u16-casefold.c: New file.
24051         * modules/unicase/u16-casefold: New file.
24052
24053         New module 'unicase/u8-casefold'.
24054         * lib/unicase/u8-casefold.c: New file.
24055         * lib/unicase/u-casefold.h: New file.
24056         * modules/unicase/u8-casefold: New file.
24057
24058         New module 'unicase/tocasefold'.
24059         * lib/unicase/casefold.h: New file.
24060         * lib/unicase/tocasefold.c: New file.
24061         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24062         * modules/unicase/tocasefold: New file.
24063
24064         Tests for module 'unicase/u32-totitle'.
24065         * modules/unicase/u32-totitle-tests: New file.
24066         * tests/unicase/test-u32-totitle.c: New file.
24067
24068         Tests for module 'unicase/u16-totitle'.
24069         * modules/unicase/u16-totitle-tests: New file.
24070         * tests/unicase/test-u16-totitle.c: New file.
24071
24072         Tests for module 'unicase/u8-totitle'.
24073         * modules/unicase/u8-totitle-tests: New file.
24074         * tests/unicase/test-u8-totitle.c: New file.
24075
24076         New module 'unicase/u32-totitle'.
24077         * lib/unicase/u32-totitle.c: New file.
24078         * modules/unicase/u32-totitle: New file.
24079
24080         New module 'unicase/u16-totitle'.
24081         * lib/unicase/u16-totitle.c: New file.
24082         * modules/unicase/u16-totitle: New file.
24083
24084         New module 'unicase/u8-totitle'.
24085         * lib/unicase/u8-totitle.c: New file.
24086         * lib/unicase/u-totitle.h: New file.
24087         * modules/unicase/u8-totitle: New file.
24088
24089         Tests for module 'unicase/u32-tolower'.
24090         * modules/unicase/u32-tolower-tests: New file.
24091         * tests/unicase/test-u32-tolower.c: New file.
24092
24093         Tests for module 'unicase/u16-tolower'.
24094         * modules/unicase/u16-tolower-tests: New file.
24095         * tests/unicase/test-u16-tolower.c: New file.
24096
24097         Tests for module 'unicase/u8-tolower'.
24098         * modules/unicase/u8-tolower-tests: New file.
24099         * tests/unicase/test-u8-tolower.c: New file.
24100
24101         New module 'unicase/u32-tolower'.
24102         * lib/unicase/u32-tolower.c: New file.
24103         * modules/unicase/u32-tolower: New file.
24104
24105         New module 'unicase/u16-tolower'.
24106         * lib/unicase/u16-tolower.c: New file.
24107         * modules/unicase/u16-tolower: New file.
24108
24109         New module 'unicase/u8-tolower'.
24110         * lib/unicase/u8-tolower.c: New file.
24111         * modules/unicase/u8-tolower: New file.
24112
24113         Tests for module 'unicase/u32-toupper'.
24114         * modules/unicase/u32-toupper-tests: New file.
24115         * tests/unicase/test-u32-toupper.c: New file.
24116
24117         Tests for module 'unicase/u16-toupper'.
24118         * modules/unicase/u16-toupper-tests: New file.
24119         * tests/unicase/test-u16-toupper.c: New file.
24120
24121         Tests for module 'unicase/u8-toupper'.
24122         * modules/unicase/u8-toupper-tests: New file.
24123         * tests/unicase/test-u8-toupper.c: New file.
24124
24125         New module 'unicase/u32-toupper'.
24126         * lib/unicase/u32-toupper.c: New file.
24127         * modules/unicase/u32-toupper: New file.
24128
24129         New module 'unicase/u16-toupper'.
24130         * lib/unicase/u16-toupper.c: New file.
24131         * modules/unicase/u16-toupper: New file.
24132
24133         New module 'unicase/u8-toupper'.
24134         * lib/unicase/u8-toupper.c: New file.
24135         * modules/unicase/u8-toupper: New file.
24136
24137         New module 'unicase/u32-casemap'.
24138         * lib/unicase/u32-casemap.c: New file.
24139         * modules/unicase/u32-casemap: New file.
24140
24141         New module 'unicase/u16-casemap'.
24142         * lib/unicase/u16-casemap.c: New file.
24143         * modules/unicase/u16-casemap: New file.
24144
24145         New module 'unicase/u8-casemap'.
24146         * lib/unicase/unicasemap.h: New file.
24147         * lib/unicase/u8-casemap.c: New file.
24148         * lib/unicase/u-casemap.h: New file.
24149         * modules/unicase/u8-casemap: New file.
24150
24151         New module 'unicase/special-casing'.
24152         * lib/unicase/special-casing.h: New file.
24153         * lib/unicase/special-casing.c: New file.
24154         * lib/unicase/special-casing-table.gperf: New file, generated by
24155         gen-uni-tables.c.
24156         * modules/unicase/special-casing: New file.
24157
24158         Tests for module 'unicase/locale-language'.
24159         * modules/unicase/locale-language-tests: New file.
24160         * tests/unicase/test-locale-language.sh: New file.
24161         * tests/unicase/test-locale-language.c: New file.
24162
24163         New module 'unicase/locale-language'.
24164         * lib/unicase/locale-language.c: New file.
24165         * lib/unicase/locale-languages.gperf: New file.
24166         * modules/unicase/locale-language: New file.
24167
24168         Generate more tables for case conversion and case folding.
24169         * lib/gen-uni-tables.c (SCC_*): New enum items.
24170         (struct special_casing_rule): New type.
24171         (casing_rules, num_casing_rules, allocated_casing_rules): New
24172         variables.
24173         (add_casing_rule, fill_casing_rules): New functions.
24174         (struct casefold_rule): New type.
24175         (casefolding_rules, num_casefolding_rules,
24176         allocated_casefolding_rules): New variables.
24177         (fill_casefolding_rules): New function.
24178         (unicode_casefold): New variable.
24179         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24180         sort_casing_rules, output_casing_rules): New functions.
24181         (main): Accept to more arguments: SpecialCasing.txt and
24182         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24183         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24184         Output mapping for casefolding.
24185
24186         * lib/unicase.h: Include stdbool.h, uninorm.h.
24187         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24188         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24189         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24190         arguments.
24191         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24192         resultp arguments.
24193         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24194         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24195         resultp arguments.
24196         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24197         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24198         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24199         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24200         declarations.
24201         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24202
24203 2009-03-08  Bruno Haible  <bruno@clisp.org>
24204
24205         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24206         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24207         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24208         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24209
24210 2009-03-07  Bruno Haible  <bruno@clisp.org>
24211
24212         Adjust u*_normcmp, u*_normcoll API.
24213         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24214         u16_normcoll, u32_normcoll): Change failure conventions.
24215         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24216         errno and return -1.
24217         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24218
24219 2009-03-07  Bruno Haible  <bruno@clisp.org>
24220
24221         Tests for module 'uninorm/u32-normcoll'.
24222         * modules/uninorm/u32-normcoll-tests: New file.
24223         * tests/uninorm/test-u32-normcoll.c: New file.
24224
24225         Tests for module 'uninorm/u16-normcoll'.
24226         * modules/uninorm/u16-normcoll-tests: New file.
24227         * tests/uninorm/test-u16-normcoll.c: New file.
24228
24229         Tests for module 'uninorm/u8-normcoll'.
24230         * modules/uninorm/u8-normcoll-tests: New file.
24231         * tests/uninorm/test-u8-normcoll.c: New file.
24232
24233 2009-03-07  Bruno Haible  <bruno@clisp.org>
24234
24235         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24236         tests/uninorm/test-u32-normcmp.c.
24237         * tests/uninorm/test-u32-normcmp.c: Include it.
24238         (test_nonascii): New function, extracted from main. Add some more
24239         tests.
24240         (main): Invoke test_ascii and test_nonascii.
24241         * modules/uninorm/u32-normcmp-tests (Files): Add
24242         tests/uninorm/test-u32-normcmp.h.
24243         (Depends-on): Remove uninorm/u32-normcmp.
24244
24245         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24246         tests/uninorm/test-u16-normcmp.c.
24247         * tests/uninorm/test-u16-normcmp.c: Include it.
24248         (test_nonascii): New function, extracted from main. Add some more
24249         tests.
24250         (main): Invoke test_ascii and test_nonascii.
24251         * modules/uninorm/u16-normcmp-tests (Files): Add
24252         tests/uninorm/test-u16-normcmp.h.
24253         (Depends-on): Remove uninorm/u16-normcmp.
24254
24255         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24256         tests/uninorm/test-u8-normcmp.c.
24257         * tests/uninorm/test-u8-normcmp.c: Include it.
24258         (test_nonascii): New function, extracted from main. Add some more
24259         tests.
24260         (main): Invoke test_ascii and test_nonascii.
24261         * modules/uninorm/u8-normcmp-tests (Files): Add
24262         tests/uninorm/test-u8-normcmp.h.
24263         (Depends-on): Remove uninorm/u8-normcmp.
24264
24265 2009-03-07  Bruno Haible  <bruno@clisp.org>
24266
24267         New module 'uninorm/u32-normcoll'.
24268         * lib/uninorm/u32-normcoll.c: New file.
24269         * modules/uninorm/u32-normcoll: New file.
24270
24271         New module 'uninorm/u16-normcoll'.
24272         * lib/uninorm/u16-normcoll.c: New file.
24273         * modules/uninorm/u16-normcoll: New file.
24274
24275         New module 'uninorm/u8-normcoll'.
24276         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24277         declarations.
24278         * lib/uninorm/u8-normcoll.c: New file.
24279         * lib/uninorm/u-normcoll.h: New file.
24280         * modules/uninorm/u8-normcoll: New file.
24281
24282         New module 'uninorm/u32-normxfrm'.
24283         * lib/uninorm/u32-normxfrm.c: New file.
24284         * modules/uninorm/u32-normxfrm: New file.
24285
24286         New module 'uninorm/u16-normxfrm'.
24287         * lib/uninorm/u16-normxfrm.c: New file.
24288         * modules/uninorm/u16-normxfrm: New file.
24289
24290         New module 'uninorm/u8-normxfrm'.
24291         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24292         declarations.
24293         * lib/uninorm/u8-normxfrm.c: New file.
24294         * lib/uninorm/u-normxfrm.h: New file.
24295         * modules/uninorm/u8-normxfrm: New file.
24296
24297 2009-03-07  Bruno Haible  <bruno@clisp.org>
24298
24299         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24300         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24301         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24302
24303 2009-03-07  Bruno Haible  <bruno@clisp.org>
24304
24305         New module 'memxfrm'.
24306         * lib/memxfrm.h: New file.
24307         * lib/memxfrm.c: New file.
24308         * modules/memxfrm: New file.
24309
24310 2009-03-07  Bruno Haible  <bruno@clisp.org>
24311
24312         New module 'memcmp2'.
24313         * lib/memcmp2.h: New file.
24314         * lib/memcmp2.c: New file.
24315         * modules/memcmp2: New file.
24316
24317 2009-03-07  Bruno Haible  <bruno@clisp.org>
24318
24319         Tests for module 'uninorm/decomposing-form'.
24320         * modules/uninorm/decomposing-form-tests: New file.
24321         * tests/uninorm/test-decomposing-form.c: New file.
24322
24323         New module 'uninorm/decomposing-form'.
24324         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24325         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24326         Add 'decomposing_variant' field.
24327         * lib/uninorm/decomposing-form.c: New file.
24328         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24329         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24330         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24331         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24332         * modules/uninorm/decomposing-form: New file.
24333         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24334         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24335
24336 2009-03-07  Bruno Haible  <bruno@clisp.org>
24337
24338         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24339         strings.
24340
24341 2009-03-06  Bruno Haible  <bruno@clisp.org>
24342
24343         Tests for module 'uninorm/u32-normcmp'.
24344         * tests/uninorm/test-u32-normcmp.c: New file.
24345         * modules/uninorm/u32-normcmp-tests: New file.
24346
24347         Tests for module 'uninorm/u16-normcmp'.
24348         * tests/uninorm/test-u16-normcmp.c: New file.
24349         * modules/uninorm/u16-normcmp-tests: New file.
24350
24351         Tests for module 'uninorm/u8-normcmp'.
24352         * tests/uninorm/test-u8-normcmp.c: New file.
24353         * modules/uninorm/u8-normcmp-tests: New file.
24354
24355         New module 'uninorm/u32-normcmp'.
24356         * lib/uninorm/u32-normcmp.c: New file.
24357         * modules/uninorm/u32-normcmp: New file.
24358
24359         New module 'uninorm/u16-normcmp'.
24360         * lib/uninorm/u16-normcmp.c: New file.
24361         * modules/uninorm/u16-normcmp: New file.
24362
24363         New module 'uninorm/u8-normcmp'.
24364         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24365         declarations.
24366         * lib/uninorm/u8-normcmp.c: New file.
24367         * lib/uninorm/u-normcmp.h: New file.
24368         * modules/uninorm/u8-normcmp: New file.
24369
24370 2009-03-06  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24373         Reported by Eric Blake.
24374
24375 2009-03-06  Eric Blake  <ebb9@byu.net>
24376             Bruno Haible  <bruno@clisp.org>
24377
24378         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24379         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24380         condition.
24381         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24382         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24383         condition.
24384         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24385
24386 2009-03-06  Eric Blake  <ebb9@byu.net>
24387
24388         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24389         to avoid compiler warnings.
24390         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24391
24392 2009-03-05  Bruno Haible  <bruno@clisp.org>
24393
24394         * tests/test-ftell.c (main): Disable test beyond end of file on
24395         FreeMiNT.
24396         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24397
24398 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24399
24400         * lib/filevercmp.c: Move hidden files up in ordering.
24401         * tests/test-filevercmp.c: Add tests for hidden files.
24402
24403 2009-03-04  Bruno Haible  <bruno@clisp.org>
24404
24405         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24406         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24407         AM_CFLAGS.
24408         Reported by Simon Josefsson.
24409
24410 2009-03-03  Bruno Haible  <bruno@clisp.org>
24411
24412         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24413         Reported by Simon Josefsson.
24414
24415         * doc/ld-version-script.texi: Update node reference.
24416
24417 2009-03-03  Bruno Haible  <bruno@clisp.org>
24418
24419         * modules/visibility (License): Change to 'unlimited'.
24420         Suggested by Simon Josefsson.
24421
24422 2009-03-03  Jim Meyering  <meyering@redhat.com>
24423
24424         unlinkdir: cannot_unlink_dir may modify process state
24425         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24426         it's neither thread-safe nor appropriate for use in a library.
24427
24428 2009-03-03  Eric Blake  <ebb9@byu.net>
24429
24430         test-closein: silence test under Darwin
24431         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24432         care if it dies from EPIPE or EBADF.
24433
24434 2009-03-03  Bruno Haible  <bruno@clisp.org>
24435
24436         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24437         earlier.
24438         * doc/visibility.texi: Fix @node and @section.
24439
24440 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24441
24442         * doc/gnulib.texi: Link to sections for ld version script and
24443         visibility.
24444         * doc/visibility.texi: Add @node and @section.
24445         * modules/ld-version-script: New module.
24446         * m4/ld-version-script.m4: New file.
24447         * doc/ld-version-script.texi: New file.
24448
24449 2009-03-02  David Lutterkort  <lutter@redhat.com>
24450
24451         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24453
24454 2009-03-02  Bruno Haible  <bruno@clisp.org>
24455
24456         * doc/visibility.texi: Mention libtool's -export-symbols option.
24457
24458 2009-03-02  Jim Meyering  <meyering@redhat.com>
24459
24460         announce-gen: new option: --no-print-checksums
24461         * build-aux/announce-gen (usage): Describe it.
24462         (print_checksums): Print a newline here, not in the [*] footnote.
24463         (main): Honor it.
24464
24465 2009-03-01  Bruno Haible  <bruno@clisp.org>
24466
24467         Use socklen_t in the native Windows replacements prototypes.
24468         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
24469         instead of 'int'.
24470         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24471         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24472         * modules/getsockopt (Depends-on): Add socklen.
24473         * modules/setsockopt (Depends-on): Add socklen.
24474
24475 2009-03-01  Bruno Haible  <bruno@clisp.org>
24476
24477         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
24478         least 4.2.
24479
24480 2009-03-01  Eric Blake  <ebb9@byu.net>
24481             Bruno Haible  <bruno@clisp.org>
24482
24483         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
24484         error messages.
24485         * lib/wait-process.c (wait_subprocess): Omit error message about
24486         deadly signal sent to the child of termsigp != NULL.
24487
24488 2009-03-01  Eric Blake  <ebb9@byu.net>
24489
24490         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
24491
24492 2009-03-01  Bruno Haible  <bruno@clisp.org>
24493
24494         Avoid a gcc warning.
24495         * tests/test-sched.c (b): Make global.
24496         Reported by Eric Blake.
24497
24498 2009-01-19  Martin Lambers  <marlam@marlam.de>
24499
24500         Provide POSIX semantics for socket timeout options on W32.
24501         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
24502         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
24503         * modules/setsockopt: Depend on sys_time module for struct timeval.
24504         * modules/getsockopt: Depend on sys_time module for struct timeval.
24505
24506 2009-03-01  Simon Josefsson  <simon@josefsson.org>
24507
24508         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
24509         __USE_GNU, for consistency with netdb.in.h.
24510         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24511
24512 2009-03-01  Bruno Haible  <bruno@clisp.org>
24513
24514         More support for FreeMiNT.
24515         * lib/fseeko.c (rpl_fseeko): Complete last commit.
24516         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24517
24518 2009-03-01  Bruno Haible  <bruno@clisp.org>
24519
24520         More support for FreeMiNT.
24521         * lib/fpurge.c (fpurge): Correct last commit.
24522         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24523
24524 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24525
24526         Fix unportable awk script in vc-list-files.
24527         * build-aux/vc-list-files: In the replacement awk script, use
24528         substr with a second argument of 1, not zero.
24529         Report by Simon Josefsson.
24530
24531 2009-02-28  Bruno Haible  <bruno@clisp.org>
24532
24533         More support for FreeMiNT.
24534         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
24535         to FreeMiNT today.
24536         * lib/fwriting.c (fwriting): Likewise.
24537         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
24538
24539 2009-02-28  Bruno Haible  <bruno@clisp.org>
24540
24541         * tests/test-freadseek.c (main): Disable test beyond end of file on
24542         FreeMiNT.
24543         * tests/test-ftello.c (main): Likewise.
24544         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24545
24546 2009-02-28  Bruno Haible  <bruno@clisp.org>
24547
24548         Add tentative support for FreeMiNT.
24549         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
24550         * lib/fpurge.c (fpurge): Likewise.
24551         * lib/freadable.c (freadable): Likewise.
24552         * lib/freading.c (freading): Likewise.
24553         * lib/freadptr.c (freadptr): Likewise.
24554         * lib/freadseek.c (freadptrinc): Likewise.
24555         * lib/fseeko.c (rpl_fseeko): Likewise.
24556         * lib/fseterr.c (fseterr): Likewise.
24557         * lib/fwritable.c (fwritable): Likewise.
24558         * lib/fwriting.c (fwriting): Likewise.
24559         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
24560         Hourihane.
24561         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24562
24563 2009-02-28  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
24566         SIGCHLD.
24567         Reported by Jim Meyering.
24568
24569 2009-02-28  Bruno Haible  <bruno@clisp.org>
24570
24571         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
24572         Mention the results of these tests on various platforms.
24573         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
24574         order.
24575         * doc/posix-functions/printf.texi: Likewise.
24576         * doc/posix-functions/snprintf.texi: Likewise.
24577         * doc/posix-functions/sprintf.texi: Likewise.
24578         * doc/posix-functions/vfprintf.texi: Likewise.
24579         * doc/posix-functions/vprintf.texi: Likewise.
24580         * doc/posix-functions/vsnprintf.texi: Likewise.
24581         * doc/posix-functions/vsprintf.texi: Likewise.
24582         * doc/glibc-functions/obstack_printf.texi: Likewise.
24583         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24584
24585 2009-02-28  Bruno Haible  <bruno@clisp.org>
24586
24587         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
24588         Reported by Loïc Minier <lool@dooz.org>.
24589
24590 2009-02-27  Bruno Haible  <bruno@clisp.org>
24591
24592         * gnulib-tool (func_import): Make the sed expression used to create the
24593         sed script for updating the .gitignore file POSIX compliant.
24594         Reported by Eric Blake.
24595
24596 2009-02-27  Bruno Haible  <bruno@clisp.org>
24597
24598         * gnulib-tool (sed): Don't alias as "sed --posix".
24599         Reported by Eric Blake.
24600
24601 2009-02-27  Bruno Haible  <bruno@clisp.org>
24602
24603         Avoid test link errors.
24604         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
24605         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
24606         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
24607         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
24608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24609
24610 2009-02-27  Bruno Haible  <bruno@clisp.org>
24611
24612         Avoid spurious "(cached)" in configure output.
24613         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
24614         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
24615         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24616         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24617         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24618         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24619         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24620         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24621         Reported by Eric Blake.
24622
24623 2009-02-27  Eric Blake  <ebb9@byu.net>
24624
24625         printf: fix regression in previous patch
24626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
24627
24628 2009-02-27  Bruno Haible  <bruno@clisp.org>
24629
24630         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
24631         value.
24632         * lib/stdint.in.h: Likewise.
24633         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
24634
24635 2009-02-27  Eric Blake  <ebb9@byu.net>
24636
24637         doc: mention more functions added in cygwin 1.7.0
24638         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
24639         addition.
24640         * doc/posix-functions/open_wmemstream.texi: Likewise.
24641         * doc/posix-functions/wcsnlen.texi: Likewise.
24642         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24643         * doc/posix-functions/wcstod.texi: Likewise.
24644         * doc/posix-functions/wcstof.texi: Likewise.
24645         * doc/posix-functions/wcstoimax.texi: Likewise.
24646         * doc/posix-functions/wcstok.texi: Likewise.
24647         * doc/posix-functions/wcstoumax.texi: Likewise.
24648
24649         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
24650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
24651         * doc/posix-functions/fprintf.texi: Update.
24652         * doc/posix-functions/printf.texi: Update.
24653         * doc/posix-functions/snprintf.texi: Update.
24654         * doc/posix-functions/sprintf.texi: Update.
24655         * doc/posix-functions/vfprintf.texi: Update.
24656         * doc/posix-functions/vprintf.texi: Update.
24657         * doc/posix-functions/vsnprintf.texi: Update.
24658         * doc/posix-functions/vsprintf.texi: Update.
24659         * doc/glibc-functions/obstack_printf.texi: Update.
24660         * doc/glibc-functions/obstack_vprintf.texi: Update.
24661
24662 2009-02-26  Eric Blake  <ebb9@byu.net>
24663
24664         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
24665         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
24666         compilation bug by using runtime conversion.
24667         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24668         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
24669         * modules/ceill-tests (Files): Use nan.h.
24670         * modules/floorl-tests (Files): Likewise.
24671         * modules/frexpl-tests (Files): Likewise.
24672         * modules/isnanl-tests (Files): Likewise.
24673         * modules/ldexpl-tests (Files): Likewise.
24674         * modules/roundl-tests (Files): Likewise.
24675         * modules/truncl-tests (Files): Likewise.
24676         * tests/test-ceill.c (main): Use a working NaN.
24677         * tests/test-floorl.c (main): Likewise.
24678         * tests/test-frexpl.c (main): Likewise.
24679         * tests/test-isnan.c (test_long_double): Likewise.
24680         * tests/test-isnanl.h (main): Likewise.
24681         * tests/test-ldexpl.h (main): Likewise.
24682         * tests/test-roundl.h (main): Likewise.
24683         * tests/test-truncl.h (main): Likewise.
24684         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
24685
24686 2009-02-26  Eric Blake  <ebb9@byu.net>
24687             Bruno Haible  <bruno@clisp.org>
24688
24689         Work around a *printf bug with %ls on Solaris.
24690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
24691         precision is specified, sprintf stops converting the wide string
24692         argument when the number of bytes that have been produced by this
24693         conversion equals or exceeds the precision.
24694         * doc/posix-functions/fprintf.texi: Update.
24695         * doc/posix-functions/printf.texi: Update.
24696         * doc/posix-functions/snprintf.texi: Update.
24697         * doc/posix-functions/sprintf.texi: Update.
24698         * doc/posix-functions/vfprintf.texi: Update.
24699         * doc/posix-functions/vprintf.texi: Update.
24700         * doc/posix-functions/vsnprintf.texi: Update.
24701         * doc/posix-functions/vsprintf.texi: Update.
24702         * doc/glibc-functions/obstack_printf.texi: Update.
24703         * doc/glibc-functions/obstack_vprintf.texi: Update.
24704
24705 2009-02-26  Eric Blake  <ebb9@byu.net>
24706
24707         stdlib: favor compiler check of random.h
24708         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
24709         to avoid an ObjC random.h installed by Swarm.
24710
24711 2009-02-26  Bruno Haible  <bruno@clisp.org>
24712
24713         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
24714         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
24715         Reported by Gary V. Vaughan <gary@gnu.org>.
24716
24717 2009-02-26  Bruno Haible  <bruno@clisp.org>
24718
24719         Fix *printf behaviour regarding the %ls directive.
24720         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
24721         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
24722         NEED_PRINTF_DIRECTIVE_LS.
24723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
24724         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24726         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
24727         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
24728         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
24729         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24734         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
24735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24738         * doc/posix-functions/fprintf.texi: Update.
24739         * doc/posix-functions/printf.texi: Update.
24740         * doc/posix-functions/snprintf.texi: Update.
24741         * doc/posix-functions/sprintf.texi: Update.
24742         * doc/posix-functions/vfprintf.texi: Update.
24743         * doc/posix-functions/vprintf.texi: Update.
24744         * doc/posix-functions/vsnprintf.texi: Update.
24745         * doc/posix-functions/vsprintf.texi: Update.
24746         * doc/glibc-functions/obstack_printf.texi: Update.
24747         * doc/glibc-functions/obstack_vprintf.texi: Update.
24748         Reported by Eric Blake.
24749
24750 2009-02-25  Bruno Haible  <bruno@clisp.org>
24751
24752         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
24753         with known value.
24754         Reported by Gary V. Vaughan <gary@gnu.org>.
24755
24756 2009-02-25  Bruno Haible  <bruno@clisp.org>
24757
24758         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
24759         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
24760         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
24761         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
24762         Reported by Gary V. Vaughan <gary@gnu.org>.
24763
24764 2009-02-25  Bruno Haible  <bruno@clisp.org>
24765
24766         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
24767         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
24768         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
24769         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
24770         Reported by Gary V. Vaughan <gary@gnu.org>.
24771
24772 2009-02-25  Eric Blake  <ebb9@byu.net>
24773
24774         tests: skip fseek/ftell tests if ungetc is broken
24775         * m4/ungetc.m4: New file.
24776         * modules/fseek-tests: Split test, so ungetc dependency is
24777         separate from rest of test.
24778         * modules/fseeko-tests: Likewise.
24779         * modules/ftell-tests: Likewise.
24780         * modules/ftello-tests: Likewise.
24781         * tests/test-fseek.c (main): Isolate ungetc dependency.
24782         * tests/test-fseeko.c (main): Likewise.
24783         * tests/test-ftell.c (main): Likewise.
24784         * tests/test-ftello.c (main): Likewise.
24785         * tests/test-fseek2.sh: New file.
24786         * tests/test-fseeko2.sh: Likewise.
24787         * tests/test-ftell2.sh: Likewise.
24788         * tests/test-ftello2.sh: Likewise.
24789
24790 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
24791
24792         test-getaddrinfo: fix usage of skip return code 77
24793         * tests/test-gettaddrinfo.c: Return skip code 77 only
24794         for first occurance of skip (4x77 is not 77)
24795
24796 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
24797
24798         strtod: avoid C99 decl-after-statement
24799         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
24800
24801 2009-02-24  Eric Blake  <ebb9@byu.net>
24802
24803         strtod: detect HP-UX 11.31 bug
24804         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
24805         Reported by Gary V. Vaughan.
24806
24807 2009-02-23  Bruno Haible  <bruno@clisp.org>
24808
24809         Fix invalid read past end of memory block.
24810         * lib/vasnprintf.c (DCHAR_SET): Define.
24811         (local_wcslen): Define only when needed.
24812         (local_strnlen, local_wcsnlen): New functions.
24813         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
24814         directives that involve a conversion ourselves.
24815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
24816         wcsnlen, mbrtowc, wcrtomb.
24817         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
24818         * tests/test-vasprintf-posix.c (test_function): Likewise.
24819         * tests/test-snprintf-posix.h (test_function): Likewise.
24820         * tests/test-sprintf-posix.h (test_function): Likewise.
24821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24822
24823 2009-02-22  Bruno Haible  <bruno@clisp.org>
24824
24825         Implement new clarified decomposition of Hangul syllables.
24826         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
24827         of type LTV, return only a pairwise decomposition.
24828         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
24829         Likewise.
24830         * tests/uninorm/test-decomposition.c (main): Updated expected result.
24831         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
24832         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
24833
24834 2009-02-22  Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
24837         zero-length results and shrink excess allocated memory.
24838         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
24839         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
24840         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
24841         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
24842         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
24843         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
24844         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
24845         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
24846         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
24847         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
24848         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
24849         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
24850
24851 2009-02-21  Bruno Haible  <bruno@clisp.org>
24852
24853         * doc/gnulib.texi: Include safe-alloc.texi earlier.
24854         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
24855         spaces after a period. Put a space between a macro name and its
24856         argument list. Trivial rewordings.
24857         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
24858         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
24859         (main): Return 0 explicitly.
24860
24861 2009-02-21  Bruno Haible  <bruno@clisp.org>
24862
24863         Tests for module 'uninorm/filter'.
24864         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
24865         * modules/uninorm/filter-tests: New file.
24866
24867         New module 'uninorm/filter'.
24868         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
24869         uninorm_filter_flush, uninorm_filter_free): New declarations.
24870         * lib/uninorm/uninorm-filter.c: New file.
24871         * modules/uninorm/filter: New file.
24872
24873 2009-02-21  Bruno Haible  <bruno@clisp.org>
24874
24875         Tests for module 'uninorm/nfkc'.
24876         * tests/uninorm/test-nfkc.c: New file.
24877         * tests/uninorm/test-u8-nfkc.c: New file.
24878         * tests/uninorm/test-u16-nfkc.c: New file.
24879         * tests/uninorm/test-u32-nfkc.c: New file.
24880         * tests/uninorm/test-u32-nfkc-big.sh: New file.
24881         * tests/uninorm/test-u32-nfkc-big.c: New file.
24882         * modules/uninorm/nfkc-tests: New file.
24883
24884         New module 'uninorm/nfkc'.
24885         * lib/uninorm/nfkc.c: New file.
24886         * modules/uninorm/nfkc: New file.
24887
24888         Tests for module 'uninorm/nfkd'.
24889         * tests/uninorm/test-nfkd.c: New file.
24890         * tests/uninorm/test-u8-nfkd.c: New file.
24891         * tests/uninorm/test-u16-nfkd.c: New file.
24892         * tests/uninorm/test-u32-nfkd.c: New file.
24893         * tests/uninorm/test-u32-nfkd-big.sh: New file.
24894         * tests/uninorm/test-u32-nfkd-big.c: New file.
24895         * modules/uninorm/nfkd-tests: New file.
24896
24897         New module 'uninorm/nfkd'.
24898         * lib/uninorm/nfkd.c: New file.
24899         * modules/uninorm/nfkd: New file.
24900
24901         Tests for module 'uninorm/nfc'.
24902         * tests/uninorm/test-nfc.c: New file.
24903         * tests/uninorm/test-u8-nfc.c: New file.
24904         * tests/uninorm/test-u16-nfc.c: New file.
24905         * tests/uninorm/test-u32-nfc.c: New file.
24906         * tests/uninorm/test-u32-nfc-big.sh: New file.
24907         * tests/uninorm/test-u32-nfc-big.c: New file.
24908         * modules/uninorm/nfc-tests: New file.
24909
24910         New module 'uninorm/nfc'.
24911         * lib/uninorm/nfc.c: New file.
24912         * modules/uninorm/nfc: New file.
24913
24914         Tests for module 'uninorm/nfd'.
24915         * tests/uninorm/test-nfd.c: New file.
24916         * tests/uninorm/test-u8-nfd.c: New file.
24917         * tests/uninorm/test-u16-nfd.c: New file.
24918         * tests/uninorm/test-u32-nfd.c: New file.
24919         * tests/uninorm/test-u32-nfd-big.sh: New file.
24920         * tests/uninorm/test-u32-nfd-big.c: New file.
24921         * tests/uninorm/test-u32-normalize-big.h: New file.
24922         * tests/uninorm/test-u32-normalize-big.c: New file.
24923         * tests/uninorm/NormalizationTest.txt: New file, created from
24924         Unicode 5.1.0 NormalizationTest.txt.
24925         * modules/uninorm/nfd-tests: New file.
24926
24927         New module 'uninorm/nfd'.
24928         * lib/uninorm/nfd.c: New file.
24929         * modules/uninorm/nfd: New file.
24930
24931         New module 'uninorm/u32-normalize'.
24932         * lib/uninorm/u32-normalize.c: New file.
24933         * modules/uninorm/u32-normalize: New file.
24934
24935         New module 'uninorm/u16-normalize'.
24936         * lib/uninorm/u16-normalize.c: New file.
24937         * modules/uninorm/u16-normalize: New file.
24938
24939         New module 'uninorm/u8-normalize'.
24940         * lib/uninorm/u8-normalize.c: New file.
24941         * lib/uninorm/normalize-internal.h: New file.
24942         * lib/uninorm/u-normalize-internal.h: New file.
24943         * modules/uninorm/u8-normalize: New file.
24944
24945         New module 'uninorm/decompose-internal'.
24946         * lib/uninorm/decompose-internal.c: New file.
24947         * modules/uninorm/decompose-internal: New file.
24948
24949         Tests for module 'uninorm/composition'.
24950         * tests/uninorm/test-composition.c: New file.
24951         * modules/uninorm/composition-tests: New file.
24952
24953         New module 'uninorm/composition'.
24954         * lib/uninorm/composition.c: New file.
24955         * lib/uninorm/composition-table.gperf: New file, generated by
24956         gen-uni-tables.
24957         * modules/uninorm/composition: New file.
24958
24959         Tests for module 'uninorm/compat-decomposition'.
24960         * tests/uninorm/test-compat-decomposition.c: New file.
24961         * modules/uninorm/compat-decomposition-tests: New file.
24962
24963         New module 'uninorm/compat-decomposition'.
24964         * lib/uninorm/decompose-internal.h: New file.
24965         * lib/uninorm/compat-decomposition.c: New file.
24966         * modules/uninorm/compat-decomposition: New file.
24967
24968         Tests for module 'uninorm/canonical-decomposition'.
24969         * tests/uninorm/test-canonical-decomposition.c: New file.
24970         * modules/uninorm/canonical-decomposition-tests: New file.
24971
24972         New module 'uninorm/canonical-decomposition'.
24973         * lib/uninorm/canonical-decomposition.c: New file.
24974         * modules/uninorm/canonical-decomposition: New file.
24975
24976         Tests for module 'uninorm/decomposition'.
24977         * tests/uninorm/test-decomposition.c: New file.
24978         * modules/uninorm/decomposition-tests: New file.
24979
24980         New module 'uninorm/decomposition'.
24981         * lib/uninorm/decomposition.c: New file.
24982         * modules/uninorm/decomposition: New file.
24983
24984         New module 'uninorm/decomposition-table'.
24985         * lib/uninorm/decomposition-table.h: New file.
24986         * lib/uninorm/decomposition-table.c: New file.
24987         * lib/uninorm/decomposition-table1.h: New file, generated by
24988         gen-uni-tables.
24989         * lib/uninorm/decomposition-table2.h: New file, generated by
24990         gen-uni-tables.
24991         * modules/uninorm/decomposition-table: New file.
24992
24993         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
24994         (UC_DECOMP_*): New enumeration items.
24995         (get_decomposition): New function.
24996         (struct decomp_table): New type.
24997         (output_decomposition, output_decomposition_tables): New functions.
24998         (unicode_composition_exclusions): New variable.
24999         (fill_composition_exclusions, debug_output_composition_tables): New
25000         functions.
25001         (main): Accept one more argument. Invoke fill_composition_exclusions.
25002         Output decomposition and composition tables.
25003
25004         New module 'uninorm/base'.
25005         * lib/uninorm.h: New file.
25006         * lib/unictype.h: Update comment.
25007         * modules/uninorm/base: New file.
25008
25009 2009-02-21  David Lutterkort  <lutter@redhat.com>
25010
25011         Tests for module 'safe-alloc'.
25012         * tests/test-safe-alloc.c: New file.
25013         * modules/safe-alloc-tests: New file.
25014
25015         New module 'safe-alloc'.
25016         * lib/safe-alloc.h: New file.
25017         * lib/safe-alloc.c: New file.
25018         * m4/safe-alloc.m4: New file.
25019         * modules/safe-alloc: New file.
25020         * doc/safe-alloc.texi: New file.
25021         * doc/gnulib.texi: Include it.
25022         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25023         safe-alloc.
25024
25025 2009-02-18  Bruno Haible  <bruno@clisp.org>
25026
25027         Fix link error on non-glibc systems.
25028         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25029         variable.
25030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25031
25032 2009-02-18  Jim Meyering  <meyering@redhat.com>
25033
25034         fts: avoid used-uninitialized error due to recent change
25035         * lib/fts.c (fts_read): Guard uses of the new member,
25036         parent->fts_n_dirs_remaining, since it's not relevant for
25037         the parent of a directory specified on the command-line.
25038
25039 2009-02-17  James Youngman  <jay@gnu.org>
25040             Bruno Haible  <bruno@clisp.org>
25041
25042         * m4/include_next.m4: Reformulate comment.
25043
25044 2009-02-16  Jim Meyering  <meyering@redhat.com>
25045
25046         fts: add #if guards so that the fts_lgpl module still builds
25047         * lib/fts.c: Guard just-added hash-table-using parts with
25048         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25049         Reported by Simon Josefsson.
25050
25051 2009-02-15  Bruno Haible  <bruno@clisp.org>
25052
25053         * modules/array-mergesort-tests: New file.
25054         * tests/test-array-mergesort.c: New file.
25055
25056         New module 'array-mergesort'.
25057         * modules/array-mergesort: New file.
25058         * lib/array-mergesort.h: New file.
25059
25060 2009-02-15  Bruno Haible  <bruno@clisp.org>
25061
25062         Fix 2009-02-07 commit.
25063         * lib/gen-uni-tables.c (output_predicate, output_category,
25064         output_combclass, output_bidi_category, output_decimal_digit,
25065         output_digit, output_numeric, output_mirror, output_scripts,
25066         output_ident_category, output_simple_mapping): Fix format directives.
25067         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25068
25069 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25070
25071         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25072         fixes are available from IBM.
25073
25074 2009-02-13  Jim Meyering  <meyering@redhat.com>
25075
25076         fts: arrange not to stat non-directories in more cases
25077         This makes GNU find (when it doesn't need to stat each file)
25078         *much* more efficient at traversing reiserfs file systems.
25079         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25080         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25081         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25082         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25083         (leaf_optimization_applies): New function.
25084         (LCO_hash, LCO_compare): New helper functions.
25085         (link_count_optimize_ok): New function.
25086         (fts_stat): Initialize new member (if dir).
25087         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25088         we've just stat'ed a directory.  Skip the stat call when possible.
25089         ---
25090         Note this AFS-related exchange:
25091         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25092         and note find's pioctl call in find/fstype.c.
25093         But that is necessary only if you want to enable the
25094         optimization for AFS, and for now, I don't.
25095
25096         fts: move a function definition "up" (no semantic change)
25097         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25098         "up" to precede upcoming use of a related function.
25099
25100 2009-02-11  Jim Meyering  <meyering@redhat.com>
25101
25102         fts: correct internal computation of nlinks (optimization-related)
25103         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25104         whether the current entry is a directory, so don't test it.
25105
25106 2009-02-10  Bruno Haible  <bruno@clisp.org>
25107
25108         Tests for module 'uniwbrk/ulc-wordbreaks'.
25109         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25110         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25111         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25112
25113         Tests for module 'uniwbrk/u32-wordbreaks'.
25114         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25115         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25116
25117         Tests for module 'uniwbrk/u16-wordbreaks'.
25118         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25119         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25120
25121         Tests for module 'uniwbrk/u8-wordbreaks'.
25122         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25123         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25124
25125 2009-02-10  Bruno Haible  <bruno@clisp.org>
25126
25127         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25128         property.
25129         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25130         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25131         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25132
25133 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25134
25135         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25136         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25137
25138 2009-02-10  Bruno Haible  <bruno@clisp.org>
25139
25140         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25141         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25142         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25143         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25144         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25145         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25146
25147 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25148
25149         * lib/sockets.h (gl_fd_to_handle): New function.
25150
25151         * tests/test-sockets.c: Call gl_fd_to_handle.
25152
25153 2009-02-09  Bruno Haible  <bruno@clisp.org>
25154
25155         * doc/havelib.texi: Document the conventions on bi-arch systems.
25156
25157 2009-02-08  Bruno Haible  <bruno@clisp.org>
25158
25159         Document the AC_LIB_LINKFLAGS macro.
25160         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25161         * doc/gnulib.texi: Include it.
25162
25163 2009-02-08  Bruno Haible  <bruno@clisp.org>
25164
25165         Fix wrong order of sections, compared to TOC.
25166         * doc/gnulib.texi: Include relocatable-maint.texi after the
25167         "Regular expressions" node, not before.
25168
25169 2009-02-08  Bruno Haible  <bruno@clisp.org>
25170
25171         Tests for module 'unicase/totitle'.
25172         * modules/unicase/totitle-tests: New file.
25173
25174         Tests for module 'unicase/tolower'.
25175         * modules/unicase/tolower-tests: New file.
25176
25177         Tests for module 'unicase/toupper'.
25178         * modules/unicase/toupper-tests: New file.
25179         * tests/unicase/test-mapping-part1.h: New file.
25180         * tests/unicase/test-mapping-part2.h: New file.
25181
25182         New module 'unicase/totitle'.
25183         * modules/unicase/totitle: New file.
25184         * lib/unicase/totitle.c: New file.
25185
25186         New module 'unicase/tolower'.
25187         * modules/unicase/tolower: New file.
25188         * lib/unicase/tolower.c: New file.
25189
25190         New module 'unicase/toupper'.
25191         * modules/unicase/toupper: New file.
25192         * lib/unicase/toupper.c: New file.
25193         * lib/unicase/simple-mapping.h: New file.
25194
25195         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25196         (mapping_table): New structure.
25197         (output_simple_mapping): New function.
25198         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25199         * modules/gen-uni-tables (Description): Update.
25200         * lib/unicase/toupper.h: New file, automatically generated by
25201         gen-uni-tables.
25202         * lib/unicase/tolower.h: New file, automatically generated by
25203         gen-uni-tables.
25204         * lib/unicase/totitle.h: New file, automatically generated by
25205         gen-uni-tables.
25206         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25207         gen-uni-tables.
25208         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25209         gen-uni-tables.
25210         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25211         gen-uni-tables.
25212
25213         New module 'unicase/base'.
25214         * modules/unicase/base: New file.
25215         * lib/unicase.h: New file.
25216
25217 2009-02-08  Bruno Haible  <bruno@clisp.org>
25218
25219         New module 'uniwbrk/ulc-wordbreaks'.
25220         * modules/uniwbrk/ulc-wordbreaks: New file.
25221         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25222
25223         New module 'uniwbrk/u32-wordbreaks'.
25224         * modules/uniwbrk/u32-wordbreaks: New file.
25225         * lib/uniwbrk/u32-wordbreaks.c: New file.
25226
25227         New module 'uniwbrk/u16-wordbreaks'.
25228         * modules/uniwbrk/u16-wordbreaks: New file.
25229         * lib/uniwbrk/u16-wordbreaks.c: New file.
25230
25231         New module 'uniwbrk/u8-wordbreaks'.
25232         * modules/uniwbrk/u8-wordbreaks: New file.
25233         * lib/uniwbrk/u8-wordbreaks.c: New file.
25234         * lib/uniwbrk/u-wordbreaks.h: New file.
25235
25236         New module 'uniwbrk/table'.
25237         * modules/uniwbrk/table: New file.
25238         * lib/uniwbrk/wbrktable.h: New file.
25239         * lib/uniwbrk/wbrktable.c: New file.
25240
25241         New module 'uniwbrk/wordbreak-property'.
25242         * modules/uniwbrk/wordbreak-property: New file.
25243         * lib/uniwbrk/wordbreak-property.c: New file.
25244
25245         * lib/gen-uni-tables.c (WBP_*): New enum items.
25246         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25247         (unicode_org_wbp): New variable.
25248         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25249         New functions.
25250         (wbp_table): New structure.
25251         (output_wbp, output_wbrk_tables): New functions.
25252         (main): Accept additional argument. Invoke fill_org_wbp,
25253         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25254         output_wbrk_tables.
25255         * modules/gen-uni-tables (Description): Update.
25256         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25257         gen-uni-tables.
25258
25259         New module 'uniwbrk/base'.
25260         * modules/uniwbrk/base: New file.
25261         * lib/uniwbrk.h: New file.
25262
25263 2009-02-08  Bruno Haible  <bruno@clisp.org>
25264
25265         Update to Unicode 5.1.0.
25266         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25267         U+2185..U+2188.
25268         (is_property_default_ignorable_code_point): Don't include characters
25269         of category Cc or Cs and not-a-characters.
25270         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25271         U+0D79, U+109E, U+109F, U+A60C.
25272         * lib/unictype/bidi_of.h: Regenerated.
25273         * lib/unictype/blocks.h: Regenerated.
25274         * lib/unictype/categ_C.h: Regenerated.
25275         * lib/unictype/categ_Cf.h: Regenerated.
25276         * lib/unictype/categ_Cn.h: Regenerated.
25277         * lib/unictype/categ_L.h: Regenerated.
25278         * lib/unictype/categ_Ll.h: Regenerated.
25279         * lib/unictype/categ_Lm.h: Regenerated.
25280         * lib/unictype/categ_Lo.h: Regenerated.
25281         * lib/unictype/categ_Lu.h: Regenerated.
25282         * lib/unictype/categ_M.h: Regenerated.
25283         * lib/unictype/categ_Mc.h: Regenerated.
25284         * lib/unictype/categ_Me.h: Regenerated.
25285         * lib/unictype/categ_Mn.h: Regenerated.
25286         * lib/unictype/categ_N.h: Regenerated.
25287         * lib/unictype/categ_Nd.h: Regenerated.
25288         * lib/unictype/categ_Nl.h: Regenerated.
25289         * lib/unictype/categ_No.h: Regenerated.
25290         * lib/unictype/categ_P.h: Regenerated.
25291         * lib/unictype/categ_Pd.h: Regenerated.
25292         * lib/unictype/categ_Pe.h: Regenerated.
25293         * lib/unictype/categ_Pf.h: Regenerated.
25294         * lib/unictype/categ_Pi.h: Regenerated.
25295         * lib/unictype/categ_Po.h: Regenerated.
25296         * lib/unictype/categ_Ps.h: Regenerated.
25297         * lib/unictype/categ_S.h: Regenerated.
25298         * lib/unictype/categ_Sk.h: Regenerated.
25299         * lib/unictype/categ_Sm.h: Regenerated.
25300         * lib/unictype/categ_So.h: Regenerated.
25301         * lib/unictype/categ_of.h: Regenerated.
25302         * lib/unictype/combining.h: Regenerated.
25303         * lib/unictype/ctype_alnum.h: Regenerated.
25304         * lib/unictype/ctype_alpha.h: Regenerated.
25305         * lib/unictype/ctype_graph.h: Regenerated.
25306         * lib/unictype/ctype_lower.h: Regenerated.
25307         * lib/unictype/ctype_print.h: Regenerated.
25308         * lib/unictype/ctype_punct.h: Regenerated.
25309         * lib/unictype/ctype_upper.h: Regenerated.
25310         * lib/unictype/decdigit.h: Regenerated.
25311         * lib/unictype/digit.h: Regenerated.
25312         * lib/unictype/mirror.h: Regenerated.
25313         * lib/unictype/numeric.h: Regenerated.
25314         * lib/unictype/pr_alphabetic.h: Regenerated.
25315         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25316         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25317         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25318         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25319         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25320         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25321         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25322         * lib/unictype/pr_combining.h: Regenerated.
25323         * lib/unictype/pr_dash.h: Regenerated.
25324         * lib/unictype/pr_decimal_digit.h: Regenerated.
25325         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25326         * lib/unictype/pr_deprecated.h: Regenerated.
25327         * lib/unictype/pr_diacritic.h: Regenerated.
25328         * lib/unictype/pr_extender.h: Regenerated.
25329         * lib/unictype/pr_format_control.h: Regenerated.
25330         * lib/unictype/pr_grapheme_base.h: Regenerated.
25331         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25332         * lib/unictype/pr_grapheme_link.h: Regenerated.
25333         * lib/unictype/pr_id_continue.h: Regenerated.
25334         * lib/unictype/pr_id_start.h: Regenerated.
25335         * lib/unictype/pr_ideographic.h: Regenerated.
25336         * lib/unictype/pr_ignorable_control.h: Regenerated.
25337         * lib/unictype/pr_lowercase.h: Regenerated.
25338         * lib/unictype/pr_math.h: Regenerated.
25339         * lib/unictype/pr_numeric.h: Regenerated.
25340         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25341         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25342         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25343         * lib/unictype/pr_other_id_continue.h: Regenerated.
25344         * lib/unictype/pr_other_lowercase.h: Regenerated.
25345         * lib/unictype/pr_other_math.h: Regenerated.
25346         * lib/unictype/pr_punctuation.h: Regenerated.
25347         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25348         * lib/unictype/pr_soft_dotted.h: Regenerated.
25349         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25350         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25351         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25352         * lib/unictype/pr_uppercase.h: Regenerated.
25353         * lib/unictype/pr_xid_continue.h: Regenerated.
25354         * lib/unictype/pr_xid_start.h: Regenerated.
25355         * lib/unictype/pr_zero_width.h: Regenerated.
25356         * lib/unictype/scripts.h: Regenerated.
25357         * lib/unictype/scripts_byname.gperf: Regenerated.
25358         * lib/unictype/sy_java_ident.h: Regenerated.
25359         * lib/unilbrk/lbrkprop1.h: Regenerated.
25360         * lib/unilbrk/lbrkprop2.h: Regenerated.
25361         * tests/unictype/test-categ_C.c: Regenerated.
25362         * tests/unictype/test-categ_Cf.c: Regenerated.
25363         * tests/unictype/test-categ_Cn.c: Regenerated.
25364         * tests/unictype/test-categ_L.c: Regenerated.
25365         * tests/unictype/test-categ_Ll.c: Regenerated.
25366         * tests/unictype/test-categ_Lm.c: Regenerated.
25367         * tests/unictype/test-categ_Lo.c: Regenerated.
25368         * tests/unictype/test-categ_Lu.c: Regenerated.
25369         * tests/unictype/test-categ_M.c: Regenerated.
25370         * tests/unictype/test-categ_Mc.c: Regenerated.
25371         * tests/unictype/test-categ_Me.c: Regenerated.
25372         * tests/unictype/test-categ_Mn.c: Regenerated.
25373         * tests/unictype/test-categ_N.c: Regenerated.
25374         * tests/unictype/test-categ_Nd.c: Regenerated.
25375         * tests/unictype/test-categ_Nl.c: Regenerated.
25376         * tests/unictype/test-categ_No.c: Regenerated.
25377         * tests/unictype/test-categ_P.c: Regenerated.
25378         * tests/unictype/test-categ_Pd.c: Regenerated.
25379         * tests/unictype/test-categ_Pe.c: Regenerated.
25380         * tests/unictype/test-categ_Pf.c: Regenerated.
25381         * tests/unictype/test-categ_Pi.c: Regenerated.
25382         * tests/unictype/test-categ_Po.c: Regenerated.
25383         * tests/unictype/test-categ_Ps.c: Regenerated.
25384         * tests/unictype/test-categ_S.c: Regenerated.
25385         * tests/unictype/test-categ_Sk.c: Regenerated.
25386         * tests/unictype/test-categ_Sm.c: Regenerated.
25387         * tests/unictype/test-categ_So.c: Regenerated.
25388         * tests/unictype/test-ctype_alnum.c: Regenerated.
25389         * tests/unictype/test-ctype_alpha.c: Regenerated.
25390         * tests/unictype/test-ctype_graph.c: Regenerated.
25391         * tests/unictype/test-ctype_lower.c: Regenerated.
25392         * tests/unictype/test-ctype_print.c: Regenerated.
25393         * tests/unictype/test-ctype_punct.c: Regenerated.
25394         * tests/unictype/test-ctype_upper.c: Regenerated.
25395         * tests/unictype/test-decdigit.h: Regenerated.
25396         * tests/unictype/test-digit.h: Regenerated.
25397         * tests/unictype/test-numeric.h: Regenerated.
25398         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25399         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25400         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25401         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25402         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25403         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25404         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25405         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25406         * tests/unictype/test-pr_combining.c: Regenerated.
25407         * tests/unictype/test-pr_dash.c: Regenerated.
25408         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25409         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25410         * tests/unictype/test-pr_deprecated.c: Regenerated.
25411         * tests/unictype/test-pr_diacritic.c: Regenerated.
25412         * tests/unictype/test-pr_extender.c: Regenerated.
25413         * tests/unictype/test-pr_format_control.c: Regenerated.
25414         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25415         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25416         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25417         * tests/unictype/test-pr_id_continue.c: Regenerated.
25418         * tests/unictype/test-pr_id_start.c: Regenerated.
25419         * tests/unictype/test-pr_ideographic.c: Regenerated.
25420         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25421         * tests/unictype/test-pr_lowercase.c: Regenerated.
25422         * tests/unictype/test-pr_math.c: Regenerated.
25423         * tests/unictype/test-pr_numeric.c: Regenerated.
25424         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25425         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25426         Regenerated.
25427         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25428         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25429         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25430         * tests/unictype/test-pr_other_math.c: Regenerated.
25431         * tests/unictype/test-pr_punctuation.c: Regenerated.
25432         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25433         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25434         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25435         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25436         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25437         * tests/unictype/test-pr_uppercase.c: Regenerated.
25438         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25439         * tests/unictype/test-pr_xid_start.c: Regenerated.
25440         * tests/unictype/test-pr_zero_width.c: Regenerated.
25441
25442         Update to Unicode 5.1.0.
25443         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25444         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25445         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25446         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25447         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25448         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25449         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25450         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25451         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25452         (nonspacing_table_ind): Update.
25453         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25454
25455         Update to Unicode 5.1.0.
25456         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25457         code transform.
25458         * lib/uniname/uniname.c (unicode_character_name,
25459         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25460         * lib/uniname/uninames.h: Regenerated.
25461         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25462
25463 2009-02-07  Bruno Haible  <bruno@clisp.org>
25464
25465         Merge gen-ctype and gen-lbrk into a single program.
25466         * lib/gen-uni-tables.c: New file, incorporating
25467         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
25468         Add directory prefixes to the names of the generated files.
25469         * lib/unictype/gen-ctype.c: Remove file.
25470         * lib/unilbrk/gen-lbrk.c: Remove file.
25471         * modules/gen-uni-tables: New file.
25472         * modules/unictype/gen-ctype: Remove file.
25473         * modules/unilbrk/gen-lbrk: Remove file.
25474
25475 2009-02-07  Bruno Haible  <bruno@clisp.org>
25476
25477         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
25478
25479         New module 'unistr/u32-strcoll'.
25480         * modules/unistr/u32-strcoll: New file.
25481         * lib/unistr/u32-strcoll.c: New file.
25482
25483         New module 'unistr/u16-strcoll'.
25484         * modules/unistr/u16-strcoll: New file.
25485         * lib/unistr/u16-strcoll.c: New file.
25486
25487         New module 'unistr/u8-strcoll'.
25488         * modules/unistr/u8-strcoll: New file.
25489         * lib/unistr/u8-strcoll.c: New file.
25490         * lib/unistr/u-strcoll.h: New file.
25491
25492 2009-02-07  Bruno Haible  <bruno@clisp.org>
25493
25494         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
25495         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25496         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
25497         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
25498         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
25499         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
25500
25501 2009-02-07  Bruno Haible  <bruno@clisp.org>
25502
25503         Make 64-bit clean.
25504         * lib/unictype/gen-ctype.c (output_predicate, output_category,
25505         output_combclass, output_bidi_category, output_decimal_digit,
25506         output_digit, output_numeric, output_mirror, output_scripts,
25507         output_ident_category): Use proper width specifier in format strings.
25508
25509 2009-02-07  Bruno Haible  <bruno@clisp.org>
25510
25511         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
25512         failure behaviour.
25513
25514 2009-02-07  Jim Meyering  <meyering@redhat.com>
25515
25516         regex: avoid compilation failure with upcoming gcc-4.4
25517         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
25518         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
25519         "... error: integer overflow in preprocessor expression".
25520
25521 2009-02-05  Ben Pfaff  <blp@gnu.org>
25522
25523         Fix link errors on Windows when close module is used.
25524         * modules/close: Add $(LIB_CLOSE) to Link section.
25525         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
25526         $(LIB_CLOSE) on Windows.
25527
25528 2009-02-05  Jim Meyering  <meyering@redhat.com>
25529
25530         still avoid unused-parameter warnings, but do it cleanly
25531         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
25532         (get_fs_usage): Cast to void instead.
25533         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
25534         (dev_from_mount_options, read_file_system_list): Cast to void.
25535         Prompted by Bruno Haible.
25536
25537 2009-02-04  Jim Meyering  <meyering@redhat.com>
25538
25539         fsusage.c: correct copyright year
25540         * lib/fsusage.c: Reflect year in which the change is pushed into
25541
25542         avoid misc. warnings
25543         * lib/fsusage.c (UNUSED_PARAM): Define.
25544         (get_fs_usage): Mark parameter "disk" as unused.
25545         * lib/getugroups.c (getgrent): Use "void" in prototype.
25546         * lib/mountlist.c: Mark unused parameters.
25547         (read_file_system_list): Declare a local with "const".
25548         * lib/nanosleep.c (getnow): Declare static.
25549         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
25550
25551         dirfd: set errno upon failure
25552         * lib/dirfd.c: Include <errno.h>.
25553         Set errno to ENOTSUP when returning -1.
25554         * modules/dirfd (Depends-on): Add errno.
25555         Suggested by John Kodis <kodis@comcast.net>.
25556
25557 2009-02-01  Bruno Haible  <bruno@clisp.org>
25558
25559         Don't assume sizeof (long) >= sizeof (void *).
25560         * lib/memcmp.c: Include stdint.h.
25561         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
25562         srcp2 to 'const byte *'.
25563         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
25564         types to uintptr_t.
25565         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
25566         * modules/memcmp (Depends-on): Add stdint.
25567         Reported by Ozkan Sezer <sezeroz@gmail.com>.
25568
25569 2009-01-30  Eric Blake  <ebb9@byu.net>
25570
25571         fix more require-before-expand issues
25572         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
25573         expand, AC_PROG_AWK.
25574         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
25575
25576 2009-01-28  Eric Blake  <ebb9@byu.net>
25577
25578         version-etc: use consistent URL formatting
25579         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
25580         Improve formatting.  Use fputs for string without %.
25581
25582 2009-01-28  Jim Meyering  <meyering@redhat.com>
25583
25584         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
25585         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
25586         "underquoted definition of NAME" from autoconf-2.59.
25587
25588 2009-01-28  Bruno Haible  <bruno@clisp.org>
25589
25590         * doc/gnulib.texi: Add "Obsolete modules" to index.
25591
25592 2009-01-28  Jim Meyering  <meyering@redhat.com>
25593
25594         useless-if-before-free: recognize more variants
25595         * build-aux/useless-if-before-free: Also recognize e.g.,
25596         if (NULL != p) free (p);
25597
25598 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
25599
25600         test-getaddrinfo: skip (don't fail) this test when there's no network
25601         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
25602         on the presumption that it means you lack network access.
25603
25604 2009-01-26  Jim Meyering  <meyering@redhat.com>
25605
25606         fflush: avoid warnings on modern systems
25607         * lib/fflush.c (rpl_fflush): Move declarations of locals,
25608         pos and result, into scopes where they're used.
25609
25610 2009-01-26  Eric Blake  <ebb9@byu.net>
25611
25612         Silence warning reintroduced by recent extensions patch.
25613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
25614         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
25615         autoconf.
25616
25617         Backport improved autoconf semantics of AC_DEFUN_ONCE.
25618         * m4/00gnulib.m4: New file.
25619         * gnulib-tool (func_get_filelist): Always use it.
25620         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
25621         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
25622
25623 2009-01-25  Bruno Haible  <bruno@clisp.org>
25624
25625         Make test-quotearg work on MacOS X and AIX.
25626         * tests/test-quotearg.sh: New file.
25627         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
25628         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
25629         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
25630         include <libintl.h>.
25631         (fake_locale): Remove variable.
25632         (gettext, dgettext, dcgettext): Remove functions.
25633         (main): Instead of setting a fake locale, set a real locale. Call
25634         textdomain and bindtextdomain.
25635         * modules/quotearg-tests (Files): Add the new files.
25636         (Depends-on): Add gettext, setenv, unsetenv.
25637         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25638         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
25639         Augment TESTS_ENVIRONMENT.
25640
25641 2009-01-25  Bruno Haible  <bruno@clisp.org>
25642
25643         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
25644         fr_FR.ISO8859-1 locale on MacOS X.
25645         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
25646         ja_JP.eucJP locale on MacOS X.
25647         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
25648         zh_CN.GB18030 locale on MacOS X.
25649
25650 2009-01-25  Bruno Haible  <bruno@clisp.org>
25651
25652         Avoid link errors on MacOS X 10.3.
25653         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
25654         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25655
25656 2009-01-25  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25659         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
25660         * modules/pipe (Files): Remove m4/posix_spawn.m4.
25661         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25662         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
25663         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25664         posix_spawnattr_init, posix_spawnattr_setsigmask,
25665         posix_spawnattr_setflags, posix_spawnattr_destroy.
25666
25667         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25668         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
25669         * modules/execute (Files): Remove m4/posix_spawn.m4.
25670         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25671         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25672         posix_spawnattr_init, posix_spawnattr_setsigmask,
25673         posix_spawnattr_setflags, posix_spawnattr_destroy.
25674
25675 2009-01-25  Bruno Haible  <bruno@clisp.org>
25676
25677         * lib/glthread/threadlib.c: Include <stdlib.h>.
25678
25679 2009-01-25  Bruno Haible  <bruno@clisp.org>
25680
25681         * lib/glthread/threadlib.c (dummy): New declaration.
25682
25683 2009-01-25  Bruno Haible  <bruno@clisp.org>
25684
25685         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
25686         multibyte characters also for the GB18030 encoding. Don't crash when
25687         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
25688
25689 2009-01-25  Bruno Haible  <bruno@clisp.org>
25690
25691         Avoid redefining 'struct random_data' on OSF/1 5.1.
25692         * lib/stdlib.in.h: Include <random.h> if it exists.
25693         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
25694         HAVE_RANDOM_H. Include <random.h> when testing whether
25695         'struct random_data' exists.
25696         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
25697
25698 2009-01-25  Bruno Haible  <bruno@clisp.org>
25699
25700         Don't install charset.alias on MacOS X >= 10.3.
25701         * lib/localcharset.c (DARWIN7): New macro.
25702         (get_charset_aliases): Hardcode the result for Darwin7.
25703         * modules/localcharset (install-exec-local): Don't install
25704         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
25705
25706 2009-01-25  Bruno Haible  <bruno@clisp.org>
25707
25708         Don't install charset.alias on mingw and Cygwin.
25709         * modules/localcharset (install-exec-local): Don't install
25710         charset.alias on mingw and Cygwin, if the file does not yet exist.
25711         The result for these platforms is hardcoded in localcharset.c.
25712
25713 2009-01-25  Bruno Haible  <bruno@clisp.org>
25714
25715         Make it possible again to use AC_GNU_SOURCE together with gnulib.
25716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
25717         before requiring AC_USE_SYSTEM_EXTENSIONS.
25718
25719 2009-01-25  Jim Meyering  <meyering@redhat.com>
25720
25721         c-strtod: avoid warnings
25722         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
25723         "assignment discards qualifiers from pointer target type" warnings.
25724
25725 2009-01-24  Bruno Haible  <bruno@clisp.org>
25726
25727         Add support for non-UTF-8 locales on MacOS X.
25728         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
25729         canonical encodings. For Darwin 7 and newer, don't map traditional
25730         encodings to UTF-8.
25731         Reported by Vincent Lefevre <vincent@vinc17.org>
25732         at <http://savannah.gnu.org/bugs/?25235>.
25733
25734 2009-01-24  Bruno Haible  <bruno@clisp.org>
25735
25736         * doc/gnulib.texi (Obsolete modules): New section.
25737         Reported by Mike Frysinger <vapier@gentoo.org>.
25738
25739 2009-01-24  Bruno Haible  <bruno@clisp.org>
25740
25741         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
25742         (%.dvi): New rule.
25743
25744 2009-01-24  Bruno Haible  <bruno@clisp.org>
25745
25746         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
25747         Reported by Eric Blake.
25748
25749 2009-01-24  Bruno Haible  <bruno@clisp.org>
25750
25751         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
25752         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
25753         Reported by Gary V. Vaughan <gary@gnu.org>.
25754
25755 2009-01-24  Bruno Haible  <bruno@clisp.org>
25756
25757         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
25758
25759 2009-01-23  Bruno Haible  <bruno@clisp.org>
25760
25761         Make c-strtod, c-strtold usable in libraries.
25762         * lib/c-strtod.c: Include string.h instead of xalloc.h.
25763         (C_STRTOD): Call strdup instead of xstrdup.
25764         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
25765         * modules/c-strtold (Depends-on): Likewise.
25766         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
25767         * NEWS: Mention the change.
25768         Reported by Michael Gold <mgold@ncf.ca>.
25769
25770 2009-01-23  Jim Meyering  <meyering@redhat.com>
25771
25772         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
25773         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
25774         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
25775
25776 2009-01-23  Simon Josefsson  <simon@josefsson.org>
25777
25778         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
25779         GNU CoreUtils.
25780         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
25781         * modules/version-etc (Description): Update.
25782
25783 2009-01-22  Bruno Haible  <bruno@clisp.org>
25784
25785         Cache the C locale object.
25786         * lib/c-strtod.c (c_locale_cache): New variable.
25787         (c_locale): New function.
25788         (C_STRTOD): Use it, and don't call freelocale.
25789         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
25790         Suggested by Paolo Bonzini.
25791
25792 2009-01-21  Bruno Haible  <bruno@clisp.org>
25793
25794         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
25795         conditions other than overflow.
25796
25797 2009-01-21  Bruno Haible  <bruno@clisp.org>
25798
25799         * lib/c-strtod.c: Include errno.h.
25800         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
25801         value from STRTOD_L and STRTOD.
25802
25803 2009-01-21  Bruno Haible  <bruno@clisp.org>
25804         and Jim Meyering  <meyering@redhat.com>
25805
25806         nanosleep: skip configure test (fail it) for apple universal builds
25807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
25808         universal builds, assume that nanosleep does not work.
25809         * modules/nanosleep (Depends-on): Add multiarch.
25810
25811         mktime: skip configure test (fail it) for apple universal builds
25812         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
25813         universal builds, assume that mktime does not work.
25814         * modules/mktime (Depends-on): Add multiarch.
25815
25816 2009-01-21  Eric Blake  <ebb9@byu.net>
25817
25818         multiarch: avoid expand-before-require warning
25819         * modules/multiarch (configure.ac): Require, rather than expand,
25820         gl_MULTIARCH.
25821         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
25822         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
25823         enforce that all clients require it.  Partial reversion of
25824         2008-12-29 patch.
25825
25826         error: avoid expand-before-require warning
25827         * modules/errno (configure.ac): Require, rather than expand,
25828         gl_HEADER_ERRNO_H.
25829         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
25830         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
25831         enforce that all clients require it.
25832
25833         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
25834         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
25835         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
25836         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
25837
25838 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
25839
25840         Revert:
25841         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25842
25843         regex: do not depend on obsolete modules.
25844         * modules/regex: Remove memcmp and memmove.
25845
25846 2009-01-20  Bruno Haible  <bruno@clisp.org>
25847
25848         Make the 'link' module link on Windows NT 4.
25849         * lib/link.c (_WIN32_WINNT): Don't define.
25850         (CreateHardLinkFuncType): New type.
25851         (CreateHardLinkFunc, initialized): New variables.
25852         (initialize): New function.
25853         (link): Invoke CreateHardLink indirectly through the function pointer.
25854
25855 2009-01-20  Bruno Haible  <bruno@clisp.org>
25856
25857         Fix compilation failure on mingw.
25858         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
25859
25860 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
25861
25862         * doc/c-strtod.texi: Mention a couple of restrictions.
25863
25864 2009-01-20  Jim Meyering  <meyering@redhat.com>
25865
25866         gettimeofday: move more declarations out of functions
25867         * lib/gettimeofday.c: Move extern declarations of tzset and
25868         gmtime out of containing functions.  Prompted by Bruno Haible.
25869
25870 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25871
25872         regex: do not depend on obsolete modules.
25873         * modules/regex: Remove memcmp and memmove.
25874
25875 2009-01-19  Bruno Haible  <bruno@clisp.org>
25876
25877         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25878         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
25879         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25880         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
25881         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
25882
25883 2009-01-19  Bruno Haible  <bruno@clisp.org>
25884
25885         * tests/test-link.c: Include <errno.h>.
25886         (main): Exit with code 77 when a hard link cannot be created due to
25887         the file system.
25888         * tests/test-link.sh: Skip test when a hard link cannot be created due
25889         to the file system.
25890         Suggested by Eric Blake.
25891
25892 2009-01-19  Martin Lambers  <marlam@marlam.de>
25893
25894         * modules/link-tests: New file.
25895         * tests/test-link.sh: New file.
25896         * tests/test-link.c: New file.
25897
25898 2009-01-19  Eric Blake  <ebb9@byu.net>
25899
25900         doc: mention another function added in cygwin 1.7.0
25901         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
25902         Another new function in cygwin 1.7.
25903
25904 2009-01-19  Bruno Haible  <bruno@clisp.org>
25905
25906         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25907         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
25908         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
25909         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25911         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25913         * m4/md4.m4 (gl_MD4): Likewise.
25914         * m4/md5.m4 (gl_MD5): Likewise.
25915         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
25916         * m4/sha1.m4 (gl_SHA1): Likewise.
25917         * m4/sha256.m4 (gl_SHA256): Likewise.
25918         * m4/sha512.m4 (gl_SHA512): Likewise.
25919
25920 2009-01-19  Bruno Haible  <bruno@clisp.org>
25921
25922         * modules/uniname/uniname-tests (Depends-on): Add progname.
25923         * tests/uniname/test-uninames.c: Include progname.h.
25924         (main): Call set_program_name.
25925
25926         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
25927         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
25928         (main): Call set_program_name.
25929
25930         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
25931         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
25932         (main): Call set_program_name.
25933
25934         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
25935         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
25936         (main): Call set_program_name.
25937
25938         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
25939         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
25940         (main): Call set_program_name.
25941
25942         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
25943         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
25944         (main): Call set_program_name.
25945
25946         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
25947         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
25948         (main): Call set_program_name.
25949
25950         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
25951         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
25952         (main): Call set_program_name.
25953
25954         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
25955         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
25956         (main): Call set_program_name.
25957
25958 2009-01-19  Eric Blake  <ebb9@byu.net>
25959
25960         test-unistd: test previous patch
25961         * tests/test-unistd.c: Test *_FILENO macros.
25962
25963         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
25964         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25965         Guarantee a definition.
25966         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
25967         * modules/unistd-safer (Depends-on): Add dependency on unistd.
25968         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
25969         * lib/dup-safer.c (STDERR_FILENO): Likewise.
25970         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25971         Likewise.
25972         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
25973         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
25974         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25975         Likewise.
25976         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
25977         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
25978         (STDERR_FILENO): Likewise.
25979         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
25980         (STDERR_FILENO): Likewise.
25981         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
25982         (STDERR_FILENO): Likewise.
25983         Reported by Elbert Pol.
25984
25985 2009-01-19  Eric Blake  <ebb9@byu.net>
25986
25987         doc: mention more functions added in cygwin 1.7.0
25988         * doc/posix-functions/abort.texi (abort): Update wording related
25989         to cygwin.
25990         * doc/posix-functions/daylight.texi (daylight): Likewise.
25991         * doc/posix-functions/optarg.texi (optarg): Likewise.
25992         * doc/posix-functions/optarg.texi (opterr): Likewise.
25993         * doc/posix-functions/optarg.texi (optind): Likewise.
25994         * doc/posix-functions/optarg.texi (optopt): Likewise.
25995         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
25996         worked in 1.5.x, and was withdrawn in 1.7.
25997         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
25998         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
25999         cygwin versions.
26000         * doc/posix-functions/perror.texi (perror): Likewise.
26001         * doc/posix-functions/printf.texi (printf): Likewise.
26002         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26003         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26004         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26005         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26006         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26007         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26008         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26009         Likewise.
26010         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26011         Likewise.
26012         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26013         this function.
26014         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26015         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26016         Likewise.
26017         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26018         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26019         * doc/posix-functions/confstr.texi (confstr): Likewise.
26020         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26021         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26022         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26023         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26024         * doc/posix-functions/fputws.texi (fputws): Likewise.
26025         * doc/posix-functions/fwide.texi (fwide): Likewise.
26026         * doc/posix-functions/getwc.texi (getwc): Likewise.
26027         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26028         * doc/posix-functions/putwc.texi (putwc): Likewise.
26029         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26030         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26031         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26032         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26033         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26034         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26035         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26036         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26037         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26038         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26039         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26040
26041 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26042
26043         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26044         * lib/ioctl.c: Include <sys/ioctl.h>.
26045
26046 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26047
26048         * modules/getdate-tests (Depends-on): Add progname.
26049         * tests/test-getdate.c: Use progname module, to avoid link errors
26050         on non-glibc systems.
26051
26052 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26053
26054         * modules/filenamecat-tests (Depends-on): Add progname.
26055         * modules/fstrcmp-tests (Depends-on): Likewise.
26056
26057         * tests/test-filenamecat.c: Use progname module, to avoid link
26058         errors on non-glibc systems.
26059         * tests/test-fstrcmp.c: Likewise.
26060
26061 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26062
26063         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26064         * lib/gettimeofday.c: Move extern declaration out of function.
26065
26066 2009-01-18  Bruno Haible  <bruno@clisp.org>
26067
26068         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26069         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26070         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26071
26072 2009-01-18  Bruno Haible  <bruno@clisp.org>
26073
26074         * lib/strftime.c (MEMPCPY): Remove unused macro.
26075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26076
26077 2009-01-18  Martin Lambers  <marlam@marlam.de>
26078
26079         New module 'link'.
26080         * lib/unistd.in.h (link): New declaration.
26081         * lib/link.c: New file.
26082         * m4/link.m4: New file.
26083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26084         HAVE_LINK.
26085         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26086         * modules/link: New file.
26087         * doc/posix-functions/link.texi: Mention the new module.
26088
26089 2009-01-18  Bruno Haible  <bruno@clisp.org>
26090
26091         * tests/test-avltree_list.c (main): Call set_program_name.
26092         * tests/test-avltree_oset.c (main): Likewise.
26093         * tests/test-obstack-printf.c: Include progname.h.
26094         (main): Call set_program_name.
26095         * tests/test-quotearg.c: Include progname.h.
26096         (main): Call set_program_name.
26097         * tests/test-xmemdup0.c: Include progname.h.
26098         (main): Call set_program_name.
26099
26100 2009-01-18  Bruno Haible  <bruno@clisp.org>
26101
26102         New module 'alphasort'.
26103         * lib/dirent.in.h (alphasort): New declaration.
26104         * lib/alphasort.c: New file, from glibc with modifications.
26105         * m4/alphasort.m4: New file.
26106         * modules/alphasort: New file.
26107         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26108         HAVE_ALPHASORT.
26109         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26110         HAVE_ALPHASORT.
26111         * doc/posix-functions/alphasort.texi: Mention the new module and the
26112         portability problems.
26113
26114 2009-01-18  Bruno Haible  <bruno@clisp.org>
26115
26116         New module 'scandir'.
26117         * lib/dirent.in.h (scandir): New declaration.
26118         * lib/scandir.c: New file, from glibc with modifications.
26119         * m4/scandir.m4: New file.
26120         * modules/scandir: New file.
26121         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26122         HAVE_SCANDIR.
26123         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26124         HAVE_SCANDIR.
26125         * doc/posix-functions/scandir.texi: Mention the new module and the
26126         portability problems.
26127
26128 2009-01-17  Bruno Haible  <bruno@clisp.org>
26129
26130         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26131         Update documentation.
26132         (func_remove_suffix): Escape all dots in the suffix. Update
26133         documentation.
26134         (func_filter_filelist): Update documentation.
26135         Reported by Ralf Wildenhues.
26136
26137 2009-01-17  Bruno Haible  <bruno@clisp.org>
26138
26139         * modules/dprintf-posix-tests: New file.
26140         * tests/test-dprintf-posix.sh: New file.
26141         * tests/test-dprintf-posix.c: New file.
26142
26143         New modules 'dprintf', 'dprintf-posix'.
26144         * lib/stdio.in.h (dprintf): New declaration.
26145         * lib/dprintf.c: New file.
26146         * m4/dprintf.m4: New file.
26147         * m4/dprintf-posix.m4: New file.
26148         * modules/dprintf: New file.
26149         * modules/dprintf-posix: New file.
26150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26151         HAVE_DPRINTF, REPLACE_DPRINTF.
26152         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26153         HAVE_DPRINTF, REPLACE_DPRINTF.
26154         * doc/posix-functions/dprintf.texi: Mention the new modules.
26155
26156 2009-01-17  Bruno Haible  <bruno@clisp.org>
26157
26158         * modules/vdprintf-posix-tests: New file.
26159         * tests/test-vdprintf-posix.sh: New file.
26160         * tests/test-vdprintf-posix.c: New file.
26161
26162         New modules 'vdprintf', 'vdprintf-posix'.
26163         * lib/stdio.in.h (vdprintf): New declaration.
26164         * lib/vdprintf.c: New file.
26165         * m4/vdprintf.m4: New file.
26166         * m4/vdprintf-posix.m4: New file.
26167         * modules/vdprintf: New file.
26168         * modules/vdprintf-posix: New file.
26169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26170         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26171         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26172         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26173         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26174
26175 2009-01-17  Bruno Haible  <bruno@clisp.org>
26176
26177         Fix replacement of fopen on mingw.
26178         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26179         mingw.
26180
26181 2009-01-17  Bruno Haible  <bruno@clisp.org>
26182
26183         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26184         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26185
26186 2009-01-17  Bruno Haible  <bruno@clisp.org>
26187
26188         Avoid test-fflush2.sh failure on mingw.
26189         * tests/test-fflush2.c: Include binary-io.h.
26190         (main): Put standard input into binary mode.
26191         * modules/fflush-tests (Depends-on): Add binary-io.
26192
26193 2009-01-17  Bruno Haible  <bruno@clisp.org>
26194
26195         * lib/wchar.in.h: In another particular situation, include only the
26196         system's <wchar.h> file.
26197         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26198         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26199         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26200
26201 2009-01-17  Bruno Haible  <bruno@clisp.org>
26202
26203         Support for stripping executables in --enable-relocatable.
26204         * build-aux/install-reloc: Expect one more argument, or an environment
26205         variable RELOC_STRIP_PROG. If set, strip the destination program and
26206         its wrapper.
26207         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26208         RELOC_STRIP_PROG.
26209         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26210         to set RELOCATABLE_STRIP.
26211         * NEWS: Mention the new Makefile requirement.
26212
26213 2009-01-17  Bruno Haible  <bruno@clisp.org>
26214
26215         * build-aux/install-reloc: Remove debugging information left over by
26216         C compiler on MacOS X.
26217
26218 2009-01-17  Bruno Haible  <bruno@clisp.org>
26219
26220         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26221         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26222         _NSGetExecutablePath.
26223
26224 2009-01-16  Jim Meyering  <meyering@redhat.com>
26225
26226         strerror: avoid warnings about discarding "const"
26227         * lib/strerror.c (rpl_strerror): Instead of returning a const
26228         string from each and every "case", use a variable, and add a single
26229         cast after the switch.
26230
26231 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26232
26233         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26234
26235 2009-01-16  Bruno Haible  <bruno@clisp.org>
26236
26237         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26238         array initializer syntax that also works in C++ mode.
26239         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26240
26241 2009-01-16  Jim Meyering  <meyering@redhat.com>
26242
26243         poll: suppress a warning
26244         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26245         to ignore "...unsigned expression < 0 is always false" warnings.
26246
26247 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26248
26249         poll: remove declarations of unused variables
26250         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26251         sockbuf and optlen.
26252
26253 2009-01-15  Bruno Haible  <bruno@clisp.org>
26254
26255         Make fflush-after-ungetc POSIX compliant on BSD systems.
26256         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26257         (clear_ungetc_buffer): Implement also for other systems.
26258         (rpl_fflush): On glibc systems, invoke
26259         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26260         clear_ungetc_buffer after fetching the stream's position, not before.
26261
26262 2009-01-15  Bruno Haible  <bruno@clisp.org>
26263
26264         Make fflush-after-ungetc POSIX compliant on glibc systems.
26265         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26266         after ungetc.
26267         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26268         (rpl_fflush): On glibc systems, simply call the system's fflush
26269         function after clearing the ungetc buffer.
26270         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26271         Instead, lseek only to the end of file, then use the system's fseeko
26272         for the rest. On glibc systems, reset the EOF indicator bit.
26273
26274 2009-01-15  Jim Meyering  <meyering@redhat.com>
26275
26276         openmp.m4: revert quote-adding change, for portability to older autoconf
26277         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26278         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26279         Simon Josefsson noticed the problem when using autoconf-2.61.
26280
26281 2009-01-15  Bruno Haible  <bruno@clisp.org>
26282
26283         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26284         * tests/test-fflush2.c (ASSERT): Always fail.
26285         (main): Add two tests for fflush() after ungetc(), taking into account
26286         the Austin Group's clarification.
26287         Suggested by Eric Blake.
26288
26289 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26290
26291         mktime.m4: remove K&R-style function prototypes
26292         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26293         for the Sun C++ compiler.
26294
26295 2009-01-14  Bruno Haible  <bruno@clisp.org>
26296
26297         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26298         while including <wchar.h>.
26299         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26300         the system's <wchar.h> file.
26301         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26302
26303 2009-01-14  Bruno Haible  <bruno@clisp.org>
26304
26305         * m4/csharp.m4: Don't mention gettext on the serial number line.
26306         * m4/csharpexec.m4: Likewise.
26307         * m4/eaccess.m4: Likewise.
26308         * m4/javaexec.m4: Likewise.
26309         * m4/sig_atomic_t.m4: Likewise.
26310         * m4/tmpdir.m4: Likewise.
26311         * m4/intldir.m4: Bump gettext version.
26312         * m4/lib-ld.m4: Likewise.
26313
26314 2009-01-14  Bruno Haible  <bruno@clisp.org>
26315
26316         * lib/progname.c (set_program_name): Add more comments.
26317         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26318
26319 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26320
26321         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26322         were sys/stat.h does not define it.
26323
26324 2009-01-14  Jim Meyering  <meyering@redhat.com>
26325
26326         many *.m4 files: improve m4 quoting
26327         99% of this change was performed by running the following commands:
26328         git ls-files | grep '\.m4$' | xargs perl -pi \
26329           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26330           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26331           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26332           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26333         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26334         The remainder were to add Copyright dates, increment serial numbers,
26335         undo some changes in comments, exclude m4/intl.m4, and add quotes
26336         around the "1" in ",1" where the unusual spacing prohibited the
26337         above regexps from doing the job.  For more details, see
26338         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26339         * m4/acl.m4: Modified.
26340         * m4/afs.m4: Likewise.
26341         * m4/alloca.m4: Likewise.
26342         * m4/argp.m4: Likewise.
26343         * m4/argz.m4: Likewise.
26344         * m4/atexit.m4: Likewise.
26345         * m4/bison-i18n.m4: Likewise.
26346         * m4/bison.m4: Likewise.
26347         * m4/byteswap.m4: Likewise.
26348         * m4/c-stack.m4: Likewise.
26349         * m4/c-strtod.m4: Likewise.
26350         * m4/calloc.m4: Likewise.
26351         * m4/canonicalize-lgpl.m4: Likewise.
26352         * m4/chown.m4: Likewise.
26353         * m4/clock_time.m4: Likewise.
26354         * m4/codeset.m4: Likewise.
26355         * m4/copy-file.m4: Likewise.
26356         * m4/csharp.m4: Likewise.
26357         * m4/csharpcomp.m4: Likewise.
26358         * m4/csharpexec.m4: Likewise.
26359         * m4/d-ino.m4: Likewise.
26360         * m4/d-type.m4: Likewise.
26361         * m4/dirfd.m4: Likewise.
26362         * m4/double-slash-root.m4: Likewise.
26363         * m4/eaccess.m4: Likewise.
26364         * m4/eealloc.m4: Likewise.
26365         * m4/environ.m4: Likewise.
26366         * m4/errno_h.m4: Likewise.
26367         * m4/euidaccess.m4: Likewise.
26368         * m4/execute.m4: Likewise.
26369         * m4/fatal-signal.m4: Likewise.
26370         * m4/fchdir.m4: Likewise.
26371         * m4/fcntl_h.m4: Likewise.
26372         * m4/fileblocks.m4: Likewise.
26373         * m4/filenamecat.m4: Likewise.
26374         * m4/findprog.m4: Likewise.
26375         * m4/flexmember.m4: Likewise.
26376         * m4/fnmatch.m4: Likewise.
26377         * m4/fopen.m4: Likewise.
26378         * m4/fpending.m4: Likewise.
26379         * m4/fprintf-posix.m4: Likewise.
26380         * m4/free.m4: Likewise.
26381         * m4/frexp.m4: Likewise.
26382         * m4/frexpl.m4: Likewise.
26383         * m4/fsusage.m4: Likewise.
26384         * m4/ftruncate.m4: Likewise.
26385         * m4/gc-camellia.m4: Likewise.
26386         * m4/gc-random.m4: Likewise.
26387         * m4/gc.m4: Likewise.
26388         * m4/getaddrinfo.m4: Likewise.
26389         * m4/getcwd-abort-bug.m4: Likewise.
26390         * m4/getcwd-path-max.m4: Likewise.
26391         * m4/getdate.m4: Likewise.
26392         * m4/getdomainname.m4: Likewise.
26393         * m4/getgroups.m4: Likewise.
26394         * m4/gethostname.m4: Likewise.
26395         * m4/gethrxtime.m4: Likewise.
26396         * m4/getline.m4: Likewise.
26397         * m4/getloadavg.m4: Likewise.
26398         * m4/getndelim2.m4: Likewise.
26399         * m4/getpass.m4: Likewise.
26400         * m4/gettext.m4: Likewise.
26401         * m4/gettime.m4: Likewise.
26402         * m4/gettimeofday.m4: Likewise.
26403         * m4/gnulib-common.m4: Likewise.
26404         * m4/group-member.m4: Likewise.
26405         * m4/host-os.m4: Likewise.
26406         * m4/iconv.m4: Likewise.
26407         * m4/iconv_open.m4: Likewise.
26408         * m4/inet_ntop.m4: Likewise.
26409         * m4/inet_pton.m4: Likewise.
26410         * m4/inline.m4: Likewise.
26411         * m4/intldir.m4: Likewise.
26412         * m4/intlmacosx.m4: Likewise.
26413         * m4/intmax.m4: Likewise.
26414         * m4/intmax_t.m4: Likewise.
26415         * m4/inttypes.m4: Likewise.
26416         * m4/inttypes_h.m4: Likewise.
26417         * m4/inttypes-pri.m4: Likewise.
26418         * m4/isapipe.m4: Likewise.
26419         * m4/isnand.m4: Likewise.
26420         * m4/isnanf.m4: Likewise.
26421         * m4/isnanl.m4: Likewise.
26422         * m4/javacomp.m4: Likewise.
26423         * m4/javaexec.m4: Likewise.
26424         * m4/jm-winsz1.m4: Likewise.
26425         * m4/jm-winsz2.m4: Likewise.
26426         * m4/lchown.m4: Likewise.
26427         * m4/lcmessage.m4: Likewise.
26428         * m4/ldexpl.m4: Likewise.
26429         * m4/lib-ld.m4: Likewise.
26430         * m4/lib-link.m4: Likewise.
26431         * m4/libsigsegv.m4: Likewise.
26432         * m4/link-follow.m4: Likewise.
26433         * m4/localcharset.m4: Likewise.
26434         * m4/locale-fr.m4: Likewise.
26435         * m4/locale-ja.m4: Likewise.
26436         * m4/locale-tr.m4: Likewise.
26437         * m4/locale-zh.m4: Likewise.
26438         * m4/lock.m4: Likewise.
26439         * m4/longlong.m4: Likewise.
26440         * m4/ls-mntd-fs.m4: Likewise.
26441         * m4/lstat.m4: Likewise.
26442         * m4/malloc.m4: Likewise.
26443         * m4/mathl.m4: Likewise.
26444         * m4/mbrtowc.m4: Likewise.
26445         * m4/mbstate_t.m4: Likewise.
26446         * m4/mbswidth.m4: Likewise.
26447         * m4/memchr.m4: Likewise.
26448         * m4/memcmp.m4: Likewise.
26449         * m4/memcpy.m4: Likewise.
26450         * m4/memmem.m4: Likewise.
26451         * m4/memmove.m4: Likewise.
26452         * m4/mempcpy.m4: Likewise.
26453         * m4/memrchr.m4: Likewise.
26454         * m4/memset.m4: Likewise.
26455         * m4/minmax.m4: Likewise.
26456         * m4/mkdir-slash.m4: Likewise.
26457         * m4/mkdtemp.m4: Likewise.
26458         * m4/mktime.m4: Likewise.
26459         * m4/mmap-anon.m4: Likewise.
26460         * m4/mountlist.m4: Likewise.
26461         * m4/nanosleep.m4: Likewise.
26462         * m4/nls.m4: Likewise.
26463         * m4/nocrash.m4: Likewise.
26464         * m4/open.m4: Likewise.
26465         * m4/openat.m4: Likewise.
26466         * m4/openmp.m4: Likewise.
26467         * m4/pathmax.m4: Likewise.
26468         * m4/perl.m4: Likewise.
26469         * m4/physmem.m4: Likewise.
26470         * m4/pipe.m4: Likewise.
26471         * m4/po.m4: Likewise.
26472         * m4/poll.m4: Likewise.
26473         * m4/posixtm.m4: Likewise.
26474         * m4/posixver.m4: Likewise.
26475         * m4/printf-frexp.m4: Likewise.
26476         * m4/printf-frexpl.m4: Likewise.
26477         * m4/printf-posix.m4: Likewise.
26478         * m4/printf-posix-rpl.m4: Likewise.
26479         * m4/printf.m4: Likewise.
26480         * m4/progtest.m4: Likewise.
26481         * m4/putenv.m4: Likewise.
26482         * m4/readline.m4: Likewise.
26483         * m4/readlink.m4: Likewise.
26484         * m4/readutmp.m4: Likewise.
26485         * m4/realloc.m4: Likewise.
26486         * m4/regex.m4: Likewise.
26487         * m4/relocatable.m4: Likewise.
26488         * m4/relocatable-lib.m4: Likewise.
26489         * m4/rename-dest-slash.m4: Likewise.
26490         * m4/rename.m4: Likewise.
26491         * m4/rmdir-errno.m4: Likewise.
26492         * m4/rmdir.m4: Likewise.
26493         * m4/roundf.m4: Likewise.
26494         * m4/roundl.m4: Likewise.
26495         * m4/rpmatch.m4: Likewise.
26496         * m4/save-cwd.m4: Likewise.
26497         * m4/selinux-selinux-h.m4: Likewise.
26498         * m4/setenv.m4: Likewise.
26499         * m4/settime.m4: Likewise.
26500         * m4/sig2str.m4: Likewise.
26501         * m4/sig_atomic_t.m4: Likewise.
26502         * m4/signalblocking.m4: Likewise.
26503         * m4/signbit.m4: Likewise.
26504         * m4/sigpipe.m4: Likewise.
26505         * m4/sockets.m4: Likewise.
26506         * m4/sockpfaf.m4: Likewise.
26507         * m4/st_dm_mode.m4: Likewise.
26508         * m4/stat-time.m4: Likewise.
26509         * m4/stdbool.m4: Likewise.
26510         * m4/stdint.m4: Likewise.
26511         * m4/stdint_h.m4: Likewise.
26512         * m4/stpcpy.m4: Likewise.
26513         * m4/stpncpy.m4: Likewise.
26514         * m4/strcase.m4: Likewise.
26515         * m4/strchrnul.m4: Likewise.
26516         * m4/strcspn.m4: Likewise.
26517         * m4/strdup.m4: Likewise.
26518         * m4/strftime.m4: Likewise.
26519         * m4/strndup.m4: Likewise.
26520         * m4/strnlen.m4: Likewise.
26521         * m4/strpbrk.m4: Likewise.
26522         * m4/strptime.m4: Likewise.
26523         * m4/strsep.m4: Likewise.
26524         * m4/strtod.m4: Likewise.
26525         * m4/strtoimax.m4: Likewise.
26526         * m4/strtok_r.m4: Likewise.
26527         * m4/strtol.m4: Likewise.
26528         * m4/strtoll.m4: Likewise.
26529         * m4/strtoul.m4: Likewise.
26530         * m4/strtoull.m4: Likewise.
26531         * m4/strtoumax.m4: Likewise.
26532         * m4/strverscmp.m4: Likewise.
26533         * m4/threadlib.m4: Likewise.
26534         * m4/timegm.m4: Likewise.
26535         * m4/tm_gmtoff.m4: Likewise.
26536         * m4/tmpdir.m4: Likewise.
26537         * m4/tmpfile.m4: Likewise.
26538         * m4/tzset.m4: Likewise.
26539         * m4/uintmax_t.m4: Likewise.
26540         * m4/unlinkdir.m4: Likewise.
26541         * m4/unlocked-io.m4: Likewise.
26542         * m4/uptime.m4: Likewise.
26543         * m4/userspec.m4: Likewise.
26544         * m4/utimbuf.m4: Likewise.
26545         * m4/utime.m4: Likewise.
26546         * m4/utimes-null.m4: Likewise.
26547         * m4/utimes.m4: Likewise.
26548         * m4/vararrays.m4: Likewise.
26549         * m4/vasnprintf.m4: Likewise.
26550         * m4/vfprintf-posix.m4: Likewise.
26551         * m4/vprintf-posix.m4: Likewise.
26552         * m4/wait-process.m4: Likewise.
26553         * m4/wchar_t.m4: Likewise.
26554         * m4/wint_t.m4: Likewise.
26555         * m4/write-any-file.m4: Likewise.
26556         * m4/yield.m4: Likewise.
26557
26558 2009-01-13  Bruno Haible  <bruno@clisp.org>
26559
26560         Avoid test-copy-file.sh failures when ACL support insufficient.
26561         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
26562         TESTS_ENVIRONMENT.
26563         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
26564         Reported by Jim Meyering.
26565
26566 2009-01-13  Bruno Haible  <bruno@clisp.org>
26567
26568         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
26569         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
26570         * modules/unistdio/u8-printf-parse (Files): Likewise.
26571         * modules/unistdio/u32-printf-parse (Files): Likewise.
26572         * modules/unistdio/ulc-printf-parse (Files): Likewise.
26573
26574 2009-01-13  Simon Josefsson  <simon@josefsson.org>
26575
26576         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
26577         and m4/inttypes_h.m4 too.
26578
26579 2009-01-12  Eric Blake  <ebb9@byu.net>
26580
26581         tests: IRIX 6.2 cc can't compile -0.0 into .data
26582         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
26583         rather than at compile-time.
26584         * tests/test-floorl.c (minus_zero): Likewise.
26585         * tests/test-frexpl.c (minus_zero): Likewise.
26586         * tests/test-isnan.c (minus_zerol): Likewise.
26587         * tests/test-isnanl.h (minus_zero): Likewise.
26588         * tests/test-ldexpl.c (minus_zero): Likewise.
26589         * tests/test-roundl.c (minus_zero): Likewise.
26590         * tests/test-signbit.c (minus_zerol): Likewise.
26591         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26592         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26593         * tests/test-truncl.c (minus_zero): Likewise.
26594         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26595         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26596         Reported by Tom G. Christensen and Nelson H. F. Beebe.
26597
26598 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26599
26600         regex: fix glibc bug 9697
26601         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
26602         handling.
26603
26604 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26605
26606         regex: fix glibc bug 697
26607         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
26608         being NULL also if there are no backreferences.
26609
26610 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26611
26612         regex: merge glibc changes
26613         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
26614         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
26615         re_string_skip_chars, re_string_reconstruct): Likewise.
26616         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
26617
26618 2009-01-07  Jim Meyering  <meyering@redhat.com>
26619
26620         poll: filter through cppi
26621         * lib/poll.c: Indent cpp directives to reflect nesting.
26622
26623 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
26624
26625         poll: don't return uninitialized
26626         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
26627
26628 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
26629
26630         avoid compile failure on AIX 6.1
26631         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
26632         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
26633
26634 2009-01-04  Jim Meyering  <meyering@redhat.com>
26635
26636         remove duplicate inclusion of <stdio.h>
26637         * tests/test-fprintf-posix.c: Likewise.
26638         * tests/test-printf-posix.c: Likewise.
26639         * tests/test-snprintf-posix.c: Likewise.
26640         * tests/test-sprintf-posix.c: Likewise.
26641         * tests/test-vasprintf-posix.c: Likewise.
26642         * tests/test-vfprintf-posix.c: Likewise.
26643         * tests/test-vprintf-posix.c: Likewise.
26644         * tests/test-vsnprintf-posix.c: Likewise.
26645         * tests/test-vsprintf-posix.c: Likewise.
26646
26647 2009-01-03  Jim Meyering  <meyering@redhat.com>
26648
26649         gnulib-tool: fix sed-based filtering
26650         * gnulib-tool (func_filter_filelist): Remove extra backslash
26651         in sed_fff_filter definition.
26652
26653 2009-01-02  Jim Meyering  <meyering@redhat.com>
26654
26655         strftime: avoid compilation failure on Solaris 2.6
26656         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
26657         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
26658         Don't #define mbrlen or mbsinit, since now they're guaranteed to
26659         be available.  Reported by Tom G. Christensen.  Details in
26660         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
26661
26662 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26663             Bruno Haible  <bruno@clisp.org>
26664
26665         Speed up gnulib-tool by doing more string processing through shell
26666         built-ins.
26667         * gnulib-tool (fast_func_append): New variable.
26668         (func_remove_prefix, func_remove_suffix): New functions.
26669         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
26670         (func_filter_filelist): New function.
26671         (func_get_dependencies): Use func_remove_suffix instead of sed.
26672         (func_get_automake_snippet): Use func_filter_filelist instead of a
26673         subshell and sed invocation.
26674
26675 2009-01-01  Bruno Haible  <bruno@clisp.org>
26676
26677         Fix a security bug.
26678         * gnulib-tool (func_import, import, update): Don't allow the characters
26679         '"', '$', '`', '\' in macro arguments that become part of commands that
26680         are evaluated.
26681
26682 2009-01-01  Bruno Haible  <bruno@clisp.org>
26683
26684         * gnulib-tool (func_reset_sigpipe): Add more comments.
26685
26686 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26687
26688         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
26689         func_emit_tests_Makefile_am, func_import): Abort loops early if we
26690         already know the answer.
26691
26692 2009-01-01  Jim Meyering  <meyering@redhat.com>
26693
26694         * lib/version-etc.c (version_etc_va): Update copyright year.
26695
26696 2008-12-30  Bruno Haible  <bruno@clisp.org>
26697
26698         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
26699         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
26700         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
26701
26702 2008-12-29  Eric Blake  <ebb9@byu.net>
26703
26704         multiarch: avoid autoconf AC_REQUIRE bug
26705         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
26706         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
26707         2.63 and older.
26708         Reported by Bruno Haible, and analyzed in
26709         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
26710
26711 2008-12-29  Bruno Haible  <bruno@clisp.org>
26712
26713         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
26714         files in subdirectories correctly.
26715         Reported by Ralf Wildenhues.
26716
26717 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26718
26719         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
26720         rather than 'join FILE -', for Solaris join.
26721
26722 2008-12-29  Bruno Haible  <bruno@clisp.org>
26723
26724         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
26725         quoting.
26726         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26727         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26728         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26729         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
26730         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26731         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26732         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26733         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26734         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26735         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26736         * m4/nls.m4 (AM_NLS): Likewise.
26737         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
26738         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26740         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26741         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26743         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
26744         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26745         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26746         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26747         * m4/xsize.m4 (gl_XSIZE): Likewise.
26748         Suggested by Jim Meyering.
26749
26750 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26751
26752         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
26753         * lib/parse-duration.c: use a switch instead of cascading if's.
26754
26755 2008-12-29  Eric Blake  <ebb9@byu.net>
26756
26757         wchar.h: supply WEOF on Irix 5.3
26758         * lib/wchar.in.h (wint_t): Also supply WEOF.
26759         * lib/wctype.in.h (wint_t): Likewise.
26760         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
26761         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
26762         Reported by Tom G. Christensen.
26763
26764 2008-12-26  Bruno Haible  <bruno@clisp.org>
26765
26766         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
26767         i486, i586, i686.
26768
26769 2008-12-26  Bruno Haible  <bruno@clisp.org>
26770
26771         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
26772
26773 2008-12-26  Bruno Haible  <bruno@clisp.org>
26774
26775         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
26776         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
26777         not __STDC_CONSTANT_MACROS.
26778         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26779
26780 2008-12-25  Bruno Haible  <bruno@clisp.org>
26781
26782         Add support for universal builds to vasnprintf.
26783         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
26784         universal builds, guess no.
26785         * modules/vasnprintf-posix (Depends-on): Add multiarch.
26786         * modules/vasprintf-posix (Depends-on): Likewise.
26787         * modules/fprintf-posix (Depends-on): Likewise.
26788         * modules/vfprintf-posix (Depends-on): Likewise.
26789         * modules/snprintf-posix (Depends-on): Likewise.
26790         * modules/vsnprintf-posix (Depends-on): Likewise.
26791         * modules/sprintf-posix (Depends-on): Likewise.
26792         * modules/vsprintf-posix (Depends-on): Likewise.
26793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26794         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26795         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26796         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26799         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26800
26801         Add support for universal builds to <inttypes.h>.
26802         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
26803         _SCNu64_PREFIX): In Apple
26804         universal builds, define directly, using _LP64.
26805         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
26806         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
26807         * modules/inttypes (Depends-on): Add multiarch.
26808         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26809
26810         Add support for universal builds to <stdint.h>.
26811         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
26812         universal builds, define directly, using _LP64.
26813         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
26814         Apple universal builds, don't test for the size and suffix of ptrdiff_t
26815         and size_t.
26816         * modules/stdint (Depends-on): Add multiarch.
26817         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26818
26819         New module 'multiarch'.
26820         * modules/multiarch: New file.
26821         * m4/multiarch.m4: New file.
26822
26823 2008-12-25  Bruno Haible  <bruno@clisp.org>
26824
26825         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
26826
26827 2008-12-25  Bruno Haible  <bruno@clisp.org>
26828
26829         * modules/btowc (License): Relicense under LGPLv2+.
26830         * modules/mbsinit (License): Likewise.
26831         * modules/mbrtowc (License): Likewise.
26832         * modules/wcrtomb (License): Likewise.
26833         * modules/streq (License): Likewise.
26834         Reported by David Lutterkort <lutter@redhat.com>.
26835
26836 2008-12-23  Bruno Haible  <bruno@clisp.org>
26837
26838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
26839
26840 2008-12-23  Bruno Haible  <bruno@clisp.org>
26841
26842         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
26843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
26844         GETADDRINFO_LIB, not in LIBS.
26845         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
26846         * modules/canon-host (Link): Likewise.
26847         * NEWS: Mention the change.
26848         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
26849         GETADDRINFO_LIB.
26850
26851 2008-12-22  Bruno Haible  <bruno@clisp.org>
26852
26853         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
26854         * doc/posix-functions/iswalpha_l.texi: Likewise.
26855         * doc/posix-functions/iswblank_l.texi: Likewise.
26856         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26857         * doc/posix-functions/iswctype_l.texi: Likewise.
26858         * doc/posix-functions/iswdigit_l.texi: Likewise.
26859         * doc/posix-functions/iswgraph_l.texi: Likewise.
26860         * doc/posix-functions/iswlower_l.texi: Likewise.
26861         * doc/posix-functions/iswprint_l.texi: Likewise.
26862         * doc/posix-functions/iswpunct_l.texi: Likewise.
26863         * doc/posix-functions/iswspace_l.texi: Likewise.
26864         * doc/posix-functions/iswupper_l.texi: Likewise.
26865         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26866         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
26867         * doc/posix-functions/open_wmemstream.texi: Likewise.
26868         * doc/posix-functions/swscanf.texi: Likewise.
26869         * doc/posix-functions/towctrans_l.texi: Likewise.
26870         * doc/posix-functions/towlower.texi: Likewise.
26871         * doc/posix-functions/towlower_l.texi: Likewise.
26872         * doc/posix-functions/towupper.texi: Likewise.
26873         * doc/posix-functions/towupper_l.texi: Likewise.
26874         * doc/posix-functions/vfwprintf.texi: Likewise.
26875         * doc/posix-functions/vfwscanf.texi: Likewise.
26876         * doc/posix-functions/vswscanf.texi: Likewise.
26877         * doc/posix-functions/vwprintf.texi: Likewise.
26878         * doc/posix-functions/vwscanf.texi: Likewise.
26879         * doc/posix-functions/wcpcpy.texi: Likewise.
26880         * doc/posix-functions/wcpncpy.texi: Likewise.
26881         * doc/posix-functions/wcscasecmp.texi: Likewise.
26882         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
26883         * doc/posix-functions/wcscoll_l.texi: Likewise.
26884         * doc/posix-functions/wcsdup.texi: Likewise.
26885         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26886         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
26887         * doc/posix-functions/wcsnlen.texi: Likewise.
26888         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26889         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26890         * doc/posix-functions/wctrans_l.texi: Likewise.
26891         * doc/posix-functions/wctype_l.texi: Likewise.
26892         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
26893         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
26894         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
26895         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
26896         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
26897         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
26898         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
26899         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
26900         * doc/glibc-functions/wcschrnul.texi: Likewise.
26901         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26902         * doc/glibc-functions/wcstod_l.texi: Likewise.
26903         * doc/glibc-functions/wcstof_l.texi: Likewise.
26904         * doc/glibc-functions/wcstol_l.texi: Likewise.
26905         * doc/glibc-functions/wcstold_l.texi: Likewise.
26906         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26907         * doc/glibc-functions/wcstoq.texi: Likewise.
26908         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26909         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26910         * doc/glibc-functions/wcstouq.texi: Likewise.
26911         * doc/glibc-functions/wmempcpy.texi: Likewise.
26912
26913 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
26914             Eric Blake  <ebb9@byu.net>
26915             Paolo Bonzini  <bonzini@gnu.org>
26916             Bruno Haible  <bruno@clisp.org>
26917
26918         Make c-stack work on Haiku.
26919         * lib/c-stack.c (SA_ONSTACK): Define fallback.
26920         (c_stack_action): Use SA_ONSTACK flag.
26921
26922 2008-12-22  Bruno Haible  <bruno@clisp.org>
26923
26924         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
26925
26926 2008-12-22  Bruno Haible  <bruno@clisp.org>
26927
26928         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
26929         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
26930         being overridden.
26931         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
26932         New macros.
26933         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
26934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
26935         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
26936         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
26937
26938 2008-12-22  Bruno Haible  <bruno@clisp.org>
26939
26940         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
26941         from test code.
26942
26943 2008-12-22  Eric Blake  <ebb9@byu.net>
26944
26945         Avoid gcc warnings on cygwin.
26946         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
26947         Avoid unused variable.
26948         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
26949         Likewise.
26950
26951 2008-12-22  Bruno Haible  <bruno@clisp.org>
26952
26953         Remove HAVE_MBRTOWC conditionals.
26954         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
26955         (mbscasecmp): Assume mbrtowc function.
26956         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
26957         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
26958         * lib/mbschr.c: Include mbuiter.h unconditionally.
26959         (mbschr): Assume mbrtowc function.
26960         * lib/mbscspn.c: Include mbuiter.h unconditionally.
26961         (mbscspn): Assume mbrtowc function.
26962         * lib/mbslen.c: Include mbuiter.h unconditionally.
26963         (mbslen): Assume mbrtowc function.
26964         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
26965         (mbsncasecmp): Assume mbrtowc function.
26966         * lib/mbsnlen.c: Include mbiter.h unconditionally.
26967         (mbsnlen): Assume mbrtowc function.
26968         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
26969         (mbspbrk): Assume mbrtowc function.
26970         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
26971         (mbspcasecmp): Assume mbrtowc function.
26972         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
26973         (mbsrchr): Assume mbrtowc function.
26974         * lib/mbssep.c: Include mbuiter.h unconditionally.
26975         (mbssep): Assume mbrtowc function.
26976         * lib/mbsspn.c: Include mbuiter.h unconditionally.
26977         (mbsspn): Assume mbrtowc function.
26978         * lib/mbsstr.c: Include mbuiter.h unconditionally.
26979         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
26980         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
26981         (mbstok_r): Assume mbrtowc function.
26982         * lib/propername.c: Include mbuiter.h unconditionally.
26983         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
26984         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
26985         (trim2): Assume mbrtowc function.
26986         * lib/mbswidth.c (mbsinit): Remove fallback definition.
26987         (mbsnwidth): Assume mbrtowc function.
26988         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
26989         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
26990         fallback definitions.
26991         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
26992
26993 2008-12-22  Bruno Haible  <bruno@clisp.org>
26994
26995         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
26996
26997 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
26998
26999         * modules/regex: Request emulations for the mb*/wc* functions we need.
27000         * m4/regex.m4: Don't look for those functions here.
27001         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27002
27003 2008-12-22  Bruno Haible  <bruno@clisp.org>
27004
27005         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27006
27007 2008-12-21  Bruno Haible  <bruno@clisp.org>
27008
27009         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27010         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27011         (Include): Remove conditionalization.
27012         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27013         (Include): Remove conditionalization.
27014         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27015         (Include): Remove conditionalization.
27016         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27017         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27018         * NEWS: Mention the change.
27019         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27020         via Sergey Poznyakoff <gray@gnu.org.ua>.
27021
27022 2008-12-21  Bruno Haible  <bruno@clisp.org>
27023
27024         * MODULES.html.sh (Extended multibyte and wide character utilities
27025         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27026         wcrtomb, wcsrtombs.
27027         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27028         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27029         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27030         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27031
27032 2008-12-21  Bruno Haible  <bruno@clisp.org>
27033
27034         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27035
27036 2008-12-21  Bruno Haible  <bruno@clisp.org>
27037
27038         * modules/wcsnrtombs-tests: New file.
27039         * tests/test-wcsnrtombs1.sh: New file.
27040         * tests/test-wcsnrtombs2.sh: New file.
27041         * tests/test-wcsnrtombs3.sh: New file.
27042         * tests/test-wcsnrtombs4.sh: New file.
27043         * tests/test-wcsnrtombs.c: New file.
27044
27045         New module 'wcsnrtombs'.
27046         * lib/wchar.in.h (wcsnrtombs): New declaration.
27047         * lib/wcsnrtombs.c: New file.
27048         * lib/wcsrtombs-state.c: New file.
27049         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27050         (internal_state): Remove variable.
27051         * m4/wcsnrtombs.m4: New file.
27052         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27053         compilation units.
27054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27055         HAVE_WCSNRTOMBS.
27056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27057         HAVE_WCSNRTOMBS.
27058         * modules/wcsnrtombs: New file.
27059         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27060         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27061
27062 2008-12-21  Bruno Haible  <bruno@clisp.org>
27063
27064         * modules/wcsrtombs-tests: New file.
27065         * tests/test-wcsrtombs1.sh: New file.
27066         * tests/test-wcsrtombs2.sh: New file.
27067         * tests/test-wcsrtombs3.sh: New file.
27068         * tests/test-wcsrtombs4.sh: New file.
27069         * tests/test-wcsrtombs.c: New file.
27070
27071         New module 'wcsrtombs'.
27072         * lib/wchar.in.h (wcsrtombs): New declaration.
27073         * lib/wcsrtombs.c: New file.
27074         * m4/wcsrtombs.m4: New file.
27075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27076         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27078         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27079         * modules/wcsrtombs: New file.
27080         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27081         bugs.
27082
27083 2008-12-21  Bruno Haible  <bruno@clisp.org>
27084
27085         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27086         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27087         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27088         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27089         if not correct.
27090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27091         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27092         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27093         m4/locale-zh.m4, m4/codeset.m4.
27094         * doc/posix-functions/wcrtomb.texi: Document the bug.
27095
27096 2008-12-21  Bruno Haible  <bruno@clisp.org>
27097
27098         Work around a btowc() bug on IRIX 6.5.
27099         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27100         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27101         REPLACE_WTOBC if not.
27102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27103         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27104         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27105
27106 2008-12-21  Bruno Haible  <bruno@clisp.org>
27107
27108         * modules/wcrtomb-tests: New file.
27109         * tests/test-wcrtomb.sh: New file.
27110         * tests/test-wcrtomb.c: New file.
27111
27112         New module 'wcrtomb'.
27113         * lib/wchar.in.h (wcrtomb): New declaration.
27114         * lib/wcrtomb.c: New file.
27115         * m4/wcrtomb.m4: New file.
27116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27117         HAVE_WCRTOMB.
27118         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27119         HAVE_WCRTOMB.
27120         * modules/wcrtomb: New file.
27121         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27122
27123 2008-12-21  Bruno Haible  <bruno@clisp.org>
27124
27125         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27126         * modules/mbsrtowcs (Files): Likewise.
27127         * modules/wctob (Files): Likewise.
27128         * modules/c-strcase-tests (Files): Likewise.
27129         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27130         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27131         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27132         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27133         * modules/vasnprintf-posix-tests (Files): Likewise.
27134
27135 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27136
27137         gitlog-to-changelog: pass all command-line arguments to git-log
27138         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27139         it is sometimes convenient to filter the commits in various ways.
27140         gitlog-to-changelog only allows --since to specify a start date,
27141         but git-log itself supports many other filtering mechanisms.
27142         At the moment, I want to filter by branch name.  Rather than
27143         adding a --branch option to gitlog-to-changelog, it seems more
27144         flexible to simply pass all options directly to git-log and let
27145         git do the work.  Notice that this effectively makes --since a
27146         redundant option for gitlog-to-changelog, but removing it would
27147         require current usage to change since calls would then require
27148         an additional '--'.
27149
27150 2008-12-21  Bruno Haible  <bruno@clisp.org>
27151
27152         * modules/mbsnrtowcs-tests: New file.
27153         * tests/test-mbsnrtowcs1.sh: New file.
27154         * tests/test-mbsnrtowcs2.sh: New file.
27155         * tests/test-mbsnrtowcs3.sh: New file.
27156         * tests/test-mbsnrtowcs4.sh: New file.
27157         * tests/test-mbsnrtowcs.c: New file.
27158
27159         New module 'mbsnrtowcs'.
27160         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27161         * lib/mbsnrtowcs.c: New file.
27162         * lib/mbsrtowcs-state.c: New file.
27163         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27164         (internal_state): Remove variable.
27165         * m4/mbsnrtowcs.m4: New file.
27166         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27167         compilation units.
27168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27169         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27170         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27171         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27172         * modules/mbsnrtowcs: New file.
27173         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27174         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27175         portability problem.
27176
27177 2008-12-21  Bruno Haible  <bruno@clisp.org>
27178
27179         Work around mbsrtowcs bug.
27180         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27181         (gl_FUNC_MBSRTOWCS): Invoke it.
27182         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27183         m4/locale-zh.m4.
27184         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27185
27186 2008-12-21  Bruno Haible  <bruno@clisp.org>
27187
27188         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27189
27190 2008-12-21  Bruno Haible  <bruno@clisp.org>
27191
27192         Update doc for AIX.
27193         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27194         16-bit wchar_t type.
27195         * doc/posix-functions/btowc.texi: Likewise.
27196         * doc/posix-functions/fgetwc.texi: Likewise.
27197         * doc/posix-functions/fgetws.texi: Likewise.
27198         * doc/posix-functions/fputwc.texi: Likewise.
27199         * doc/posix-functions/fputws.texi: Likewise.
27200         * doc/posix-functions/fwide.texi: Likewise.
27201         * doc/posix-functions/fwprintf.texi: Likewise.
27202         * doc/posix-functions/fwscanf.texi: Likewise.
27203         * doc/posix-functions/getwchar.texi: Likewise.
27204         * doc/posix-functions/getwc.texi: Likewise.
27205         * doc/posix-functions/iswalnum.texi: Likewise.
27206         * doc/posix-functions/iswalpha.texi: Likewise.
27207         * doc/posix-functions/iswblank.texi: Likewise.
27208         * doc/posix-functions/iswcntrl.texi: Likewise.
27209         * doc/posix-functions/iswctype.texi: Likewise.
27210         * doc/posix-functions/iswdigit.texi: Likewise.
27211         * doc/posix-functions/iswgraph.texi: Likewise.
27212         * doc/posix-functions/iswlower.texi: Likewise.
27213         * doc/posix-functions/iswprint.texi: Likewise.
27214         * doc/posix-functions/iswpunct.texi: Likewise.
27215         * doc/posix-functions/iswspace.texi: Likewise.
27216         * doc/posix-functions/iswupper.texi: Likewise.
27217         * doc/posix-functions/iswxdigit.texi: Likewise.
27218         * doc/posix-functions/mbrtowc.texi: Likewise.
27219         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27220         * doc/posix-functions/mbstowcs.texi: Likewise.
27221         * doc/posix-functions/mbtowc.texi: Likewise.
27222         * doc/posix-functions/putwchar.texi: Likewise.
27223         * doc/posix-functions/putwc.texi: Likewise.
27224         * doc/posix-functions/swprintf.texi: Likewise.
27225         * doc/posix-functions/tolower.texi: Likewise.
27226         * doc/posix-functions/toupper.texi: Likewise.
27227         * doc/posix-functions/towctrans.texi: Likewise.
27228         * doc/posix-functions/ungetwc.texi: Likewise.
27229         * doc/posix-functions/vswprintf.texi: Likewise.
27230         * doc/posix-functions/wcrtomb.texi: Likewise.
27231         * doc/posix-functions/wcscat.texi: Likewise.
27232         * doc/posix-functions/wcschr.texi: Likewise.
27233         * doc/posix-functions/wcscmp.texi: Likewise.
27234         * doc/posix-functions/wcscoll.texi: Likewise.
27235         * doc/posix-functions/wcscpy.texi: Likewise.
27236         * doc/posix-functions/wcscspn.texi: Likewise.
27237         * doc/posix-functions/wcsftime.texi: Likewise.
27238         * doc/posix-functions/wcslen.texi: Likewise.
27239         * doc/posix-functions/wcsncat.texi: Likewise.
27240         * doc/posix-functions/wcsncmp.texi: Likewise.
27241         * doc/posix-functions/wcsncpy.texi: Likewise.
27242         * doc/posix-functions/wcspbrk.texi: Likewise.
27243         * doc/posix-functions/wcsrchr.texi: Likewise.
27244         * doc/posix-functions/wcsrtombs.texi: Likewise.
27245         * doc/posix-functions/wcsspn.texi: Likewise.
27246         * doc/posix-functions/wcsstr.texi: Likewise.
27247         * doc/posix-functions/wcstod.texi: Likewise.
27248         * doc/posix-functions/wcstof.texi: Likewise.
27249         * doc/posix-functions/wcstoimax.texi: Likewise.
27250         * doc/posix-functions/wcstok.texi: Likewise.
27251         * doc/posix-functions/wcstold.texi: Likewise.
27252         * doc/posix-functions/wcstoll.texi: Likewise.
27253         * doc/posix-functions/wcstol.texi: Likewise.
27254         * doc/posix-functions/wcstombs.texi: Likewise.
27255         * doc/posix-functions/wcstoull.texi: Likewise.
27256         * doc/posix-functions/wcstoul.texi: Likewise.
27257         * doc/posix-functions/wcstoumax.texi: Likewise.
27258         * doc/posix-functions/wcswidth.texi: Likewise.
27259         * doc/posix-functions/wcsxfrm.texi: Likewise.
27260         * doc/posix-functions/wctob.texi: Likewise.
27261         * doc/posix-functions/wctomb.texi: Likewise.
27262         * doc/posix-functions/wctrans.texi: Likewise.
27263         * doc/posix-functions/wctype.texi: Likewise.
27264         * doc/posix-functions/wcwidth.texi: Likewise.
27265         * doc/posix-functions/wmemchr.texi: Likewise.
27266         * doc/posix-functions/wmemcmp.texi: Likewise.
27267         * doc/posix-functions/wmemcpy.texi: Likewise.
27268         * doc/posix-functions/wmemmove.texi: Likewise.
27269         * doc/posix-functions/wmemset.texi: Likewise.
27270         * doc/posix-functions/wprintf.texi: Likewise.
27271         * doc/posix-functions/wscanf.texi: Likewise.
27272
27273 2008-12-21  Bruno Haible  <bruno@clisp.org>
27274
27275         Update doc for HP-UX 11.11.
27276         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27277         in HP-UX version 11.00, not in all versions of HP-UX 11.
27278         * doc/posix-functions/fwide.texi: Likewise.
27279         * doc/posix-functions/fwprintf.texi: Likewise.
27280         * doc/posix-functions/fwscanf.texi: Likewise.
27281         * doc/posix-functions/inet_ntop.texi: Likewise.
27282         * doc/posix-functions/inet_pton.texi: Likewise.
27283         * doc/posix-functions/mbrlen.texi: Likewise.
27284         * doc/posix-functions/mbrtowc.texi: Likewise.
27285         * doc/posix-functions/mbsinit.texi: Likewise.
27286         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27287         * doc/posix-functions/swprintf.texi: Likewise.
27288         * doc/posix-functions/swscanf.texi: Likewise.
27289         * doc/posix-functions/towctrans.texi: Likewise.
27290         * doc/posix-functions/vfwprintf.texi: Likewise.
27291         * doc/posix-functions/vswprintf.texi: Likewise.
27292         * doc/posix-functions/vwprintf.texi: Likewise.
27293         * doc/posix-functions/wcrtomb.texi: Likewise.
27294         * doc/posix-functions/wcsrtombs.texi: Likewise.
27295         * doc/posix-functions/wcsstr.texi: Likewise.
27296         * doc/posix-functions/wctob.texi: Likewise.
27297         * doc/posix-functions/wctrans.texi: Likewise.
27298         * doc/posix-functions/wmemchr.texi: Likewise.
27299         * doc/posix-functions/wmemcmp.texi: Likewise.
27300         * doc/posix-functions/wmemcpy.texi: Likewise.
27301         * doc/posix-functions/wmemmove.texi: Likewise.
27302         * doc/posix-functions/wmemset.texi: Likewise.
27303         * doc/posix-functions/wprintf.texi: Likewise.
27304         * doc/posix-functions/wscanf.texi: Likewise.
27305
27306 2008-12-21  Bruno Haible  <bruno@clisp.org>
27307
27308         Work around a portability problem.
27309         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27310         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27311
27312 2008-12-20  Bruno Haible  <bruno@clisp.org>
27313
27314         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27315         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27316         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27318         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27319
27320         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27321         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27322         set.
27323         (GNULIB_defined_mbstate_t): New macro.
27324         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27325         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27326         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27327         reuses the system's mbrtowc function but works around the bugs.
27328         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27329         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27330         macros.
27331         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27332         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27333         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27334         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27335         REPLACE_MBSINIT if mbsinit needs to be overridden.
27336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27337         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27338         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27339         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27340         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27341         m4/locale-zh.m4.
27342         (Depends): Add mbsinit.
27343         * modules/mbsinit (Depends): Add mbrtowc.
27344         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27345
27346 2008-12-20  Bruno Haible  <bruno@clisp.org>
27347
27348         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27349         so that there are no conversion errors on AIX.
27350         * tests/test-mbsrtowcs.c (main): LIkewise.
27351
27352 2008-12-20  Bruno Haible  <bruno@clisp.org>
27353
27354         Work around wctob bug on Solaris <= 9.
27355         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27356         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27358         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27359         * modules/wctob (Files): Add m4/locale-fr.m4.
27360         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27361
27362 2008-12-20  Bruno Haible  <bruno@clisp.org>
27363
27364         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27365         /dev/null.
27366         * tests/test-select-in.sh: Likewise.
27367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27368
27369 2008-12-20  Bruno Haible  <bruno@clisp.org>
27370
27371         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27372         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27373         Cygwin 1.5.x.
27374
27375 2008-12-20  Bruno Haible  <bruno@clisp.org>
27376
27377         Ensure mbstate_t is defined on HP-UX 11.11.
27378         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27379         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27380         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27381         AC_USE_SYSTEM_EXTENSIONS.
27382         * modules/fnmatch (Depends-on): Add extensions.
27383         * modules/mbrlen (Depends-on): Likewise.
27384         * modules/mbrtowc (Depends-on): Likewise.
27385         * modules/mbsinit (Depends-on): Likewise.
27386         * modules/mbsrtowcs (Depends-on): Likewise.
27387         * modules/mbswidth (Depends-on): Likewise.
27388         * modules/quotearg (Depends-on): Likewise.
27389         * modules/strftime (Depends-on): Likewise.
27390
27391 2008-12-20  Bruno Haible  <bruno@clisp.org>
27392
27393         Ensure wctob is declared on IRIX 6.5.
27394         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27395         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27396         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27398         of HAVE_WCTOB.
27399         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27400         HAVE_WCTOB.
27401         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27402
27403 2008-12-19  Bruno Haible  <bruno@clisp.org>
27404
27405         * modules/mbsrtowcs-tests: New file.
27406         * tests/test-mbsrtowcs1.sh: New file.
27407         * tests/test-mbsrtowcs2.sh: New file.
27408         * tests/test-mbsrtowcs3.sh: New file.
27409         * tests/test-mbsrtowcs4.sh: New file.
27410         * tests/test-mbsrtowcs.c: New file.
27411
27412         New module 'mbsrtowcs'.
27413         * lib/wchar.in.h (mbsrtowcs): New declaration.
27414         * lib/mbsrtowcs.c: New file.
27415         * m4/mbsrtowcs.m4: New file.
27416         * modules/mbsrtowcs: New file.
27417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27418         HAVE_MBSRTOWCS.
27419         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27420         HAVE_MBSRTOWCS.
27421         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27422
27423 2008-12-19  Bruno Haible  <bruno@clisp.org>
27424
27425         New module 'mbrlen'.
27426         * lib/wchar.in.h (mbrlen): New declaration.
27427         * lib/mbrlen.c: New file.
27428         * m4/mbrlen.m4: New file.
27429         * modules/mbrlen: New file.
27430         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27431         HAVE_MBRLEN.
27432         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27433         HAVE_MBRLEN.
27434         * doc/posix-functions/mbrlen.texi: Document the new module.
27435
27436 2008-12-19  Bruno Haible  <bruno@clisp.org>
27437
27438         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27439         * modules/mbrtowc (Depends-on): Add verify.
27440         Suggested by Paul Eggert.
27441
27442 2008-12-18  Bruno Haible  <bruno@clisp.org>
27443
27444         * modules/mbsinit-tests: New file.
27445         * tests/test-mbsinit.sh: New file.
27446         * tests/test-mbsinit.c: New file.
27447
27448 2008-12-18  Bruno Haible  <bruno@clisp.org>
27449
27450         * modules/mbrtowc-tests: New file.
27451         * tests/test-mbrtowc1.sh: New file.
27452         * tests/test-mbrtowc2.sh: New file.
27453         * tests/test-mbrtowc3.sh: New file.
27454         * tests/test-mbrtowc4.sh: New file.
27455         * tests/test-mbrtowc.c: New file.
27456
27457         New module 'mbrtowc'.
27458         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27459         mbsinit and mbrtowc.
27460         (mbrtowc): New declaration.
27461         * lib/mbrtowc.c: New file.
27462         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27463         * modules/mbrtowc: New file.
27464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
27465         HAVE_MBRTOWC.
27466         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
27467         HAVE_MBRTOWC.
27468         * doc/posix-functions/mbrtowc.texi: Document the new module.
27469
27470 2008-12-18  Bruno Haible  <bruno@clisp.org>
27471
27472         New module 'wctob'.
27473         * lib/wchar.in.h (wctob): New declaration.
27474         * lib/wctob.c: New file.
27475         * m4/wctob.m4: New file.
27476         * modules/wctob: New file.
27477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
27478         HAVE_WCTOB.
27479         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
27480         * doc/posix-functions/wctob.texi: Document the new module.
27481
27482 2008-12-18  Bruno Haible  <bruno@clisp.org>
27483
27484         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
27485         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
27486
27487 2008-12-18  Simon Josefsson  <simon@josefsson.org>
27488
27489         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
27490         G. Christensen" <tgc@jupiterrise.com>.
27491
27492         * lib/flock.c: Need to include errno.h.  Reported by "Tom
27493         G. Christensen" <tgc@jupiterrise.com>.
27494
27495         * lib/flock.c: Need to include string.h.  Reported by "Tom
27496         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
27497         <ebb9@byu.net>.
27498
27499 2008-12-18  Bruno Haible  <bruno@clisp.org>
27500
27501         * m4/locale-ja.m4: New file, from GNU gettext.
27502
27503 2008-12-17  Bruno Haible  <bruno@clisp.org>
27504
27505         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
27506         Suggested by Eric Blake.
27507
27508 2008-12-17  Bruno Haible  <bruno@clisp.org>
27509
27510         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
27511
27512 2008-12-17  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/mbsinit.c: Include verify.h. Verify an assumption.
27515         * modules/mbsinit (Depends-on): Add verify.
27516         Suggested by Paul Eggert.
27517
27518 2008-12-17  Bruno Haible  <bruno@clisp.org>
27519
27520         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
27521         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
27522         gl_FUNC_MBRTOWC.
27523         * m4/mbiter.m4 (gl_MBITER): LIkewise.
27524         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
27525         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
27526         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
27527         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
27528         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
27529         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
27530         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
27531         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
27532         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
27533         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
27534         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
27535         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
27536         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
27537         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
27538         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27539         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
27540         * modules/trim (configure.ac): Likewise.
27541
27542 2008-12-17  Bruno Haible  <bruno@clisp.org>
27543
27544         * modules/btowc-tests: New file.
27545         * tests/test-btowc1.sh: New file.
27546         * tests/test-btowc2.sh: New file.
27547         * tests/test-btowc.c: New file.
27548
27549         New module 'btowc'.
27550         * lib/wchar.in.h (btowc): New declaration.
27551         * lib/btowc.c: New file.
27552         * m4/btowc.m4: New file.
27553         * modules/btowc: New file.
27554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
27555         HAVE_BTOWC.
27556         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
27557         * doc/posix-functions/btowc.texi: Document the new module.
27558
27559 2008-12-17  Bruno Haible  <bruno@clisp.org>
27560
27561         New module 'mbsinit'.
27562         * lib/wchar.in.h (mbsinit): New declaration.
27563         * lib/mbsinit.c: New file.
27564         * m4/mbsinit.m4: New file.
27565         * modules/mbsinit: New file.
27566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
27567         HAVE_MBSINIT.
27568         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
27569         HAVE_MBSINIT.
27570         * doc/posix-functions/mbsinit.texi: Document the new module.
27571
27572 2008-12-16  Bruno Haible  <bruno@clisp.org>
27573
27574         * lib/unistd.in.h: Add comment.
27575         * tests/test-environ.c: Don't include <stdlib.h>.
27576
27577 2008-12-16  Bruno Haible  <bruno@clisp.org>
27578
27579         * lib/parse-duration.h (parse_duration): Document return value
27580         convention.
27581         * lib/parse-duration.c: Include specification header first. Add
27582         comments.
27583         (_): Remove macro.
27584         (parse_year_month_day, parse_hour_minute_second): Move side effects
27585         outside of strchr call.
27586         (parse_non_iso8601): Move side effects outside of isspace call.
27587         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
27588         call.
27589
27590 2008-12-16  Bruno Haible  <bruno@clisp.org>
27591
27592         * tests/test-parse-duration.sh: Produce no output when the test
27593         succeeds.
27594
27595 2008-12-16  Bruno Haible  <bruno@clisp.org>
27596
27597         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
27598         expressions.
27599
27600 2008-12-15  Bruno Haible  <bruno@clisp.org>
27601
27602         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
27603         * doc/glibc-functions/flistxattr.texi: Likewise.
27604         * doc/glibc-functions/fopencookie.texi: Likewise.
27605         * doc/glibc-functions/fremovexattr.texi: Likewise.
27606         * doc/glibc-functions/fsetxattr.texi: Likewise.
27607         * doc/glibc-functions/getxattr.texi: Likewise.
27608         * doc/glibc-functions/lgetxattr.texi: Likewise.
27609         * doc/glibc-functions/listxattr.texi: Likewise.
27610         * doc/glibc-functions/llistxattr.texi: Likewise.
27611         * doc/glibc-functions/lremovexattr.texi: Likewise.
27612         * doc/glibc-functions/lsetxattr.texi: Likewise.
27613         * doc/glibc-functions/removexattr.texi: Likewise.
27614         * doc/glibc-functions/setxattr.texi: Likewise.
27615         * doc/posix-functions/open_memstream.texi: Likewise.
27616
27617 2008-12-15  Eric Blake  <ebb9@byu.net>
27618
27619         Update doc for cygwin 1.7.
27620         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
27621         functions.
27622         * doc/posix-functions/fchmodat.texi: Likewise.
27623         * doc/posix-functions/fchownat.texi: Likewise.
27624         * doc/posix-functions/fdopendir.texi: Likewise.
27625         * doc/posix-functions/fmemopen.texi: Likewise.
27626         * doc/posix-functions/freeaddrinfo.texi: Likewise.
27627         * doc/posix-functions/fstatat.texi: Likewise.
27628         * doc/posix-functions/futimens.texi: Likewise.
27629         * doc/posix-functions/gai_strerror.texi: Likewise.
27630         * doc/posix-functions/getaddrinfo.texi: Likewise.
27631         * doc/posix-functions/getnameinfo.texi: Likewise.
27632         * doc/posix-functions/if_freenameindex.texi: Likewise.
27633         * doc/posix-functions/if_indextoname.texi: Likewise.
27634         * doc/posix-functions/if_nameindex.texi: Likewise.
27635         * doc/posix-functions/if_nametoindex.texi: Likewise.
27636         * doc/posix-functions/insque.texi: Likewise.
27637         * doc/posix-functions/linkat.texi: Likewise.
27638         * doc/posix-functions/llrint.texi: Likewise.
27639         * doc/posix-functions/llrintf.texi: Likewise.
27640         * doc/posix-functions/llrintl.texi: Likewise.
27641         * doc/posix-functions/lockf.texi: Likewise.
27642         * doc/posix-functions/lrintl.texi: Likewise.
27643         * doc/posix-functions/mkdirat.texi: Likewise.
27644         * doc/posix-functions/mkfifoat.texi: Likewise.
27645         * doc/posix-functions/mknodat.texi: Likewise.
27646         * doc/posix-functions/mq_close.texi: Likewise.
27647         * doc/posix-functions/mq_getattr.texi: Likewise.
27648         * doc/posix-functions/mq_notify.texi: Likewise.
27649         * doc/posix-functions/mq_open.texi: Likewise.
27650         * doc/posix-functions/mq_receive.texi: Likewise.
27651         * doc/posix-functions/mq_send.texi: Likewise.
27652         * doc/posix-functions/mq_setattr.texi: Likewise.
27653         * doc/posix-functions/mq_timedreceive.texi: Likewise.
27654         * doc/posix-functions/mq_timedsend.texi: Likewise.
27655         * doc/posix-functions/mq_unlink.texi: Likewise.
27656         * doc/posix-functions/open_memstream.texi: Likewise.
27657         * doc/posix-functions/openat.texi: Likewise.
27658         * doc/posix-functions/posix_fadvise.texi: Likewise.
27659         * doc/posix-functions/posix_fallocate.texi: Likewise.
27660         * doc/posix-functions/posix_madvise.texi: Likewise.
27661         * doc/posix-functions/posix_memalign.texi: Likewise.
27662         * doc/posix-functions/posix_openpt.texi: Likewise.
27663         * doc/posix-functions/readlinkat.texi: Likewise.
27664         * doc/posix-functions/remque.texi: Likewise.
27665         * doc/posix-functions/renameat.texi: Likewise.
27666         * doc/posix-functions/rintl.texi: Likewise.
27667         * doc/posix-functions/sem_unlink.texi: Likewise.
27668         * doc/posix-functions/shm_open.texi: Likewise.
27669         * doc/posix-functions/shm_unlink.texi: Likewise.
27670         * doc/posix-functions/signgam.texi: Likewise.
27671         * doc/posix-functions/sigset.texi: Likewise.
27672         * doc/posix-functions/stpcpy.texi: Likewise.
27673         * doc/posix-functions/stpncpy.texi: Likewise.
27674         * doc/posix-functions/strerror.texi: Likewise.
27675         * doc/posix-functions/strtod.texi: Likewise.
27676         * doc/posix-functions/symlinkat.texi: Likewise.
27677         * doc/posix-functions/unlinkat.texi: Likewise.
27678         * doc/posix-functions/utimensat.texi: Likewise.
27679         * doc/glibc-functions/bindresvport.texi: Likewise.
27680         * doc/glibc-functions/dn_expand.texi: Likewise.
27681         * doc/glibc-functions/exp10.texi: Likewise.
27682         * doc/glibc-functions/exp10f.texi: Likewise.
27683         * doc/glibc-functions/fgetxattr.texi: Likewise.
27684         * doc/glibc-functions/flistxattr.texi: Likewise.
27685         * doc/glibc-functions/fopencookie.texi: Likewise.
27686         * doc/glibc-functions/freeifaddrs.texi: Likewise.
27687         * doc/glibc-functions/fremovexattr.texi: Likewise.
27688         * doc/glibc-functions/fsetxattr.texi: Likewise.
27689         * doc/glibc-functions/getifaddrs.texi: Likewise.
27690         * doc/glibc-functions/getxattr.texi: Likewise.
27691         * doc/glibc-functions/lgetxattr.texi: Likewise.
27692         * doc/glibc-functions/listxattr.texi: Likewise.
27693         * doc/glibc-functions/llistxattr.texi: Likewise.
27694         * doc/glibc-functions/lremovexattr.texi: Likewise.
27695         * doc/glibc-functions/lsetxattr.texi: Likewise.
27696         * doc/glibc-functions/pow10.texi: Likewise.
27697         * doc/glibc-functions/pow10f.texi: Likewise.
27698         * doc/glibc-functions/rcmd_af.texi: Likewise.
27699         * doc/glibc-functions/removexattr.texi: Likewise.
27700         * doc/glibc-functions/res_init.texi: Likewise.
27701         * doc/glibc-functions/res_mkquery.texi: Likewise.
27702         * doc/glibc-functions/res_query.texi: Likewise.
27703         * doc/glibc-functions/res_querydomain.texi: Likewise.
27704         * doc/glibc-functions/res_send.texi: Likewise.
27705         * doc/glibc-functions/rresvport_af.texi: Likewise.
27706         * doc/glibc-functions/setxattr.texi: Likewise.
27707         * doc/glibc-functions/strcasestr.texi: Likewise.
27708
27709 2008-12-15  Bruno Haible  <bruno@clisp.org>
27710
27711         Fix compilation error on OSF/1 4.0.
27712         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
27713         <sys/time.h>, simply delegate to the system header.
27714         Reported by Daniel Richard G. <oss@teragram.com>.
27715
27716 2008-12-15  Bruno Haible  <bruno@clisp.org>
27717
27718         * doc/posix-functions/openat.texi: Mention the 'openat' module.
27719         * doc/posix-functions/fchmodat.texi: Likewise.
27720         * doc/posix-functions/fchownat.texi: Likewise.
27721         * doc/posix-functions/fdopendir.texi: Likewise.
27722         * doc/posix-functions/fstatat.texi: Likewise.
27723         * doc/posix-functions/mkdirat.texi: Likewise.
27724         * doc/posix-functions/unlinkat.texi: Likewise.
27725
27726 2008-12-14  Bruno Haible  <bruno@clisp.org>
27727
27728         Update doc for POSIX:2008.
27729         * doc/posix-functions/faccessat.texi: New file.
27730         * doc/posix-functions/fchmodat.texi: New file.
27731         * doc/posix-functions/fchownat.texi: New file.
27732         * doc/posix-functions/fdopendir.texi: New file.
27733         * doc/posix-functions/fstatat.texi: New file.
27734         * doc/posix-functions/futimens.texi: New file.
27735         * doc/posix-functions/linkat.texi: New file.
27736         * doc/posix-functions/mkdirat.texi: New file.
27737         * doc/posix-functions/mkfifoat.texi: New file.
27738         * doc/posix-functions/mknodat.texi: New file.
27739         * doc/posix-functions/open_wmemstream.texi: New file.
27740         * doc/posix-functions/openat.texi: New file.
27741         * doc/posix-functions/psiginfo.texi: New file.
27742         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
27743         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
27744         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
27745         * doc/posix-functions/readlinkat.texi: New file.
27746         * doc/posix-functions/renameat.texi: New file.
27747         * doc/posix-functions/strerror_l.texi: New file.
27748         * doc/posix-functions/symlinkat.texi: New file.
27749         * doc/posix-functions/unlinkat.texi: New file.
27750         * doc/posix-functions/utimensat.texi: New file.
27751         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27752
27753 2008-12-14  Bruno Haible  <bruno@clisp.org>
27754
27755         Update doc for POSIX:2008.
27756         * doc/posix-functions/alphasort.texi: Renamed from
27757         doc/glibc-functions/alphasort.texi.
27758         * doc/posix-functions/dirfd.texi: Renamed from
27759         doc/glibc-functions/dirfd.texi.
27760         * doc/posix-functions/dprintf.texi: Renamed from
27761         doc/glibc-functions/dprintf.texi.
27762         * doc/posix-functions/duplocale.texi: Renamed from
27763         doc/glibc-functions/duplocale.texi.
27764         * doc/posix-functions/fexecve.texi: Renamed from
27765         doc/glibc-functions/fexecve.texi.
27766         * doc/posix-functions/fmemopen.texi: Renamed from
27767         doc/glibc-functions/fmemopen.texi.
27768         * doc/posix-functions/freelocale.texi: Renamed from
27769         doc/glibc-functions/freelocale.texi.
27770         * doc/posix-functions/getdate_err.texi: Renamed from
27771         doc/glibc-functions/getdate_err.texi.
27772         * doc/posix-functions/isalnum_l.texi: Renamed from
27773         doc/glibc-functions/isalnum_l.texi.
27774         * doc/posix-functions/isalpha_l.texi: Renamed from
27775         doc/glibc-functions/isalpha_l.texi.
27776         * doc/posix-functions/isblank_l.texi: Renamed from
27777         doc/glibc-functions/isblank_l.texi.
27778         * doc/posix-functions/iscntrl_l.texi: Renamed from
27779         doc/glibc-functions/iscntrl_l.texi.
27780         * doc/posix-functions/isdigit_l.texi: Renamed from
27781         doc/glibc-functions/isdigit_l.texi.
27782         * doc/posix-functions/isgraph_l.texi: Renamed from
27783         doc/glibc-functions/isgraph_l.texi.
27784         * doc/posix-functions/islower_l.texi: Renamed from
27785         doc/glibc-functions/islower_l.texi.
27786         * doc/posix-functions/isprint_l.texi: Renamed from
27787         doc/glibc-functions/isprint_l.texi.
27788         * doc/posix-functions/ispunct_l.texi: Renamed from
27789         doc/glibc-functions/ispunct_l.texi.
27790         * doc/posix-functions/isspace_l.texi: Renamed from
27791         doc/glibc-functions/isspace_l.texi.
27792         * doc/posix-functions/isupper_l.texi: Renamed from
27793         doc/glibc-functions/isupper_l.texi.
27794         * doc/posix-functions/iswalnum_l.texi: Renamed from
27795         doc/glibc-functions/iswalnum_l.texi.
27796         * doc/posix-functions/iswalpha_l.texi: Renamed from
27797         doc/glibc-functions/iswalpha_l.texi.
27798         * doc/posix-functions/iswblank_l.texi: Renamed from
27799         doc/glibc-functions/iswblank_l.texi.
27800         * doc/posix-functions/iswcntrl_l.texi: Renamed from
27801         doc/glibc-functions/iswcntrl_l.texi.
27802         * doc/posix-functions/iswctype_l.texi: Renamed from
27803         doc/glibc-functions/iswctype_l.texi.
27804         * doc/posix-functions/iswdigit_l.texi: Renamed from
27805         doc/glibc-functions/iswdigit_l.texi.
27806         * doc/posix-functions/iswgraph_l.texi: Renamed from
27807         doc/glibc-functions/iswgraph_l.texi.
27808         * doc/posix-functions/iswlower_l.texi: Renamed from
27809         doc/glibc-functions/iswlower_l.texi.
27810         * doc/posix-functions/iswprint_l.texi: Renamed from
27811         doc/glibc-functions/iswprint_l.texi.
27812         * doc/posix-functions/iswpunct_l.texi: Renamed from
27813         doc/glibc-functions/iswpunct_l.texi.
27814         * doc/posix-functions/iswspace_l.texi: Renamed from
27815         doc/glibc-functions/iswspace_l.texi.
27816         * doc/posix-functions/iswupper_l.texi: Renamed from
27817         doc/glibc-functions/iswupper_l.texi.
27818         * doc/posix-functions/iswxdigit_l.texi: Renamed from
27819         doc/glibc-functions/iswxdigit_l.texi.
27820         * doc/posix-functions/isxdigit_l.texi: Renamed from
27821         doc/glibc-functions/isxdigit_l.texi.
27822         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
27823         doc/glibc-functions/mbsnrtowcs.texi.
27824         * doc/posix-functions/mkdtemp.texi: Renamed from
27825         doc/glibc-functions/mkdtemp.texi.
27826         * doc/posix-functions/newlocale.texi: Renamed from
27827         doc/glibc-functions/newlocale.texi.
27828         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
27829         doc/glibc-functions/nl_langinfo_l.texi.
27830         * doc/posix-functions/open_memstream.texi: Renamed from
27831         doc/glibc-functions/open_memstream.texi.
27832         * doc/posix-functions/opterr.texi: Renamed from
27833         doc/glibc-functions/opterr.texi.
27834         * doc/posix-functions/optind.texi: Renamed from
27835         doc/glibc-functions/optind.texi.
27836         * doc/posix-functions/optopt.texi: Renamed from
27837         doc/glibc-functions/optopt.texi.
27838         * doc/posix-functions/psignal.texi: Renamed from
27839         doc/glibc-functions/psignal.texi.
27840         * doc/posix-functions/scandir.texi: Renamed from
27841         doc/glibc-functions/scandir.texi.
27842         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
27843         doc/glibc-functions/sched_get_priority_min.texi.
27844         * doc/posix-functions/signgam.texi: Renamed from
27845         doc/glibc-functions/signgam.texi.
27846         * doc/posix-functions/stpcpy.texi: Renamed from
27847         doc/glibc-functions/stpcpy.texi.
27848         * doc/posix-functions/stpncpy.texi: Renamed from
27849         doc/glibc-functions/stpncpy.texi.
27850         * doc/posix-functions/strcasecmp_l.texi: Renamed from
27851         doc/glibc-functions/strcasecmp_l.texi.
27852         * doc/posix-functions/strcoll_l.texi: Renamed from
27853         doc/glibc-functions/strcoll_l.texi.
27854         * doc/posix-functions/strfmon_l.texi: Renamed from
27855         doc/glibc-functions/strfmon_l.texi.
27856         * doc/posix-functions/strftime_l.texi: Renamed from
27857         doc/glibc-functions/strftime_l.texi.
27858         * doc/posix-functions/strncasecmp_l.texi: Renamed from
27859         doc/glibc-functions/strncasecmp_l.texi.
27860         * doc/posix-functions/strndup.texi: Renamed from
27861         doc/glibc-functions/strndup.texi.
27862         * doc/posix-functions/strnlen.texi: Renamed from
27863         doc/glibc-functions/strnlen.texi.
27864         * doc/posix-functions/strsignal.texi: Renamed from
27865         doc/glibc-functions/strsignal.texi.
27866         * doc/posix-functions/strxfrm_l.texi: Renamed from
27867         doc/glibc-functions/strxfrm_l.texi.
27868         * doc/posix-functions/timer_gettime.texi: Renamed from
27869         doc/glibc-functions/timer_gettime.texi.
27870         * doc/posix-functions/tolower_l.texi: Renamed from
27871         doc/glibc-functions/tolower_l.texi.
27872         * doc/posix-functions/toupper_l.texi: Renamed from
27873         doc/glibc-functions/toupper_l.texi.
27874         * doc/posix-functions/towctrans_l.texi: Renamed from
27875         doc/glibc-functions/towctrans_l.texi.
27876         * doc/posix-functions/towlower_l.texi: Renamed from
27877         doc/glibc-functions/towlower_l.texi.
27878         * doc/posix-functions/towupper_l.texi: Renamed from
27879         doc/glibc-functions/towupper_l.texi.
27880         * doc/posix-functions/uselocale.texi: Renamed from
27881         doc/glibc-functions/uselocale.texi.
27882         * doc/posix-functions/vdprintf.texi: Renamed from
27883         doc/glibc-functions/vdprintf.texi.
27884         * doc/posix-functions/wcpcpy.texi:
27885         Renamed from doc/glibc-functions/wcpcpy.texi.
27886         * doc/posix-functions/wcpncpy.texi: Renamed from
27887         doc/glibc-functions/wcpncpy.texi.
27888         * doc/posix-functions/wcscasecmp.texi: Renamed from
27889         doc/glibc-functions/wcscasecmp.texi.
27890         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
27891         doc/glibc-functions/wcscasecmp_l.texi.
27892         * doc/posix-functions/wcscoll_l.texi: Renamed from
27893         doc/glibc-functions/wcscoll_l.texi.
27894         * doc/posix-functions/wcsdup.texi: Renamed from
27895         doc/glibc-functions/wcsdup.texi.
27896         * doc/posix-functions/wcsncasecmp.texi: Renamed from
27897         doc/glibc-functions/wcsncasecmp.texi.
27898         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
27899         doc/glibc-functions/wcsncasecmp_l.texi.
27900         * doc/posix-functions/wcsnlen.texi: Renamed from
27901         doc/glibc-functions/wcsnlen.texi.
27902         * doc/posix-functions/wcsnrtombs.texi: Renamed from
27903         doc/glibc-functions/wcsnrtombs.texi.
27904         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
27905         doc/glibc-functions/wcsxfrm_l.texi.
27906         * doc/posix-functions/wctrans_l.texi: Renamed from
27907         doc/glibc-functions/wctrans_l.texi.
27908         * doc/posix-functions/wctype_l.texi: Renamed from
27909         doc/glibc-functions/wctype_l.texi.
27910         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27911         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
27912         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
27913         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
27914         these subsections.
27915         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
27916         Remove sections.
27917
27918 2008-12-14  Bruno Haible  <bruno@clisp.org>
27919
27920         Update doc for POSIX:2008.
27921         * doc/posix-functions/*.texi: Update URL of POSIX specification.
27922
27923 2008-12-14  Bruno Haible  <bruno@clisp.org>
27924
27925         Update doc for POSIX:2008.
27926         * doc/pastposix-functions/bcmp.texi: Renamed from
27927         doc/posix-functions/bcmp.texi.
27928         * doc/pastposix-functions/bcopy.texi: Renamed from
27929         doc/posix-functions/bcopy.texi.
27930         * doc/pastposix-functions/bsd_signal.texi: Renamed from
27931         doc/posix-functions/bsd_signal.texi.
27932         * doc/pastposix-functions/bzero.texi: Renamed from
27933         doc/posix-functions/bzero.texi.
27934         * doc/pastposix-functions/ecvt.texi: Renamed from
27935         doc/posix-functions/ecvt.texi.
27936         * doc/pastposix-functions/fcvt.texi: Renamed from
27937         doc/posix-functions/fcvt.texi.
27938         * doc/pastposix-functions/ftime.texi: Renamed from
27939         doc/posix-functions/ftime.texi.
27940         * doc/pastposix-functions/gcvt.texi: Renamed from
27941         doc/posix-functions/gcvt.texi.
27942         * doc/pastposix-functions/getcontext.texi: Renamed from
27943         doc/posix-functions/getcontext.texi.
27944         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
27945         doc/posix-functions/gethostbyaddr.texi.
27946         * doc/pastposix-functions/gethostbyname.texi: Renamed from
27947         doc/posix-functions/gethostbyname.texi.
27948         * doc/pastposix-functions/getwd.texi: Renamed from
27949         doc/posix-functions/getwd.texi.
27950         * doc/pastposix-functions/h_errno.texi: Renamed from
27951         doc/posix-functions/h_errno.texi.
27952         * doc/pastposix-functions/index.texi: Renamed from
27953         doc/posix-functions/index.texi.
27954         * doc/pastposix-functions/makecontext.texi: Renamed from
27955         doc/posix-functions/makecontext.texi.
27956         * doc/pastposix-functions/mktemp.texi: Renamed from
27957         doc/posix-functions/mktemp.texi.
27958         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
27959         doc/posix-functions/pthread_attr_getstackaddr.texi.
27960         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
27961         doc/posix-functions/pthread_attr_setstackaddr.texi.
27962         * doc/pastposix-functions/rindex.texi: Renamed from
27963         doc/posix-functions/rindex.texi.
27964         * doc/pastposix-functions/scalb.texi: Renamed from
27965         doc/posix-functions/scalb.texi.
27966         * doc/pastposix-functions/setcontext.texi: Renamed from
27967         doc/posix-functions/setcontext.texi.
27968         * doc/pastposix-functions/swapcontext.texi: Renamed from
27969         doc/posix-functions/swapcontext.texi.
27970         * doc/pastposix-functions/ualarm.texi: Renamed from
27971         doc/posix-functions/ualarm.texi.
27972         * doc/pastposix-functions/usleep.texi: Renamed from
27973         doc/posix-functions/usleep.texi.
27974         * doc/pastposix-functions/vfork.texi: Renamed from
27975         doc/posix-functions/vfork.texi.
27976         * doc/pastposix-functions/wcswcs.texi: Renamed from
27977         doc/posix-functions/wcswcs.texi.
27978         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
27979         (Function Substitutes): Update.
27980
27981 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27982
27983         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
27984         m4/strerror.m4.
27985
27986 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27987             Bruno Haible  <bruno@clisp.org>
27988
27989         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
27990
27991 2008-12-13  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/strtoull (Depends-on): Remove unistd.
27994
27995 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27996
27997         * modules/strtoull (Depends-on): Add stdlib.
27998
27999 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28000
28001         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28002
28003 2008-12-10  Jim Meyering  <meyering@redhat.com>
28004
28005         gl_ASSERT: don't say assertions are disabled when they're not
28006         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28007         "checking whether to enable assertions... no", when they are in
28008         fact enabled.  This is solely a bug in the output of configure.
28009         In spite of saying "no", NDEBUG was not defined in that case.
28010         Also, as noted by Eric Blake, leave assertions enabled upon
28011         --enable-assert=INVALID.
28012
28013 2008-12-10  Bruno Haible  <bruno@clisp.org>
28014
28015         Change MODULES.html to refer to POSIX:2008 where possible.
28016         * MODULES.html.sh (POSIX2008_URL): New variable.
28017         (posix_headers): Remove sys/timeb, ucontext.
28018         (posix2001_headers): New variable.
28019         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28020         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28021         index, makecontext, mktemp, pthread_attr_getstackaddr,
28022         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28023         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28024         (posix2001_functions): New variable.
28025         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28026         otherwise.
28027
28028 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28029
28030         add missing include to parse-duration.c
28031         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28032         * modules/parse-duration (Depends-on): Add xalloc.
28033
28034         fix sed script reading maint.mk
28035         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28036         (syntax-check-rules): Use it.
28037
28038 2008-12-09  Bruno Haible  <bruno@clisp.org>
28039
28040         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28041         MacOS X 10.4/PowerPC.
28042         Reported by Simon Josefsson.
28043
28044 2008-12-08  Jim Meyering  <meyering@redhat.com>
28045
28046         work around mingw's lack of some S_IF definitions
28047         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28048         Reported by Simon Josefsson.
28049
28050 2008-12-08  Bruno Haible  <bruno@clisp.org>
28051
28052         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28053         applied to variables. Needed on MacOS X 10.4/PowerPC.
28054         Reported by Simon Josefsson.
28055
28056 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28057         and Eric Blake  <ebb9@byu.net>
28058
28059         assert: honor --enable-assert
28060         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28061         order to honor --enable-assert, rather than treating it as a
28062         synonym for --disable-assert.
28063
28064 2008-12-08  Jim Meyering  <meyering@redhat.com>
28065
28066         * lib/posixtm.c: Remove now-useless declaration of mktime.
28067
28068         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28069
28070 2008-12-07  Bruno Haible  <bruno@clisp.org>
28071
28072         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28073         test_once): Mark functions as static.
28074         * tests/test-tls.c (test_tls): Likewise.
28075
28076 2008-12-07  Bruno Haible  <bruno@clisp.org>
28077
28078         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28079         iconv_register_autodetect.
28080
28081 2008-12-07  Jim Meyering  <meyering@redhat.com>
28082
28083         posixtm.c: avoid a warning
28084         * lib/posixtm.c (posixtime): Don't initialize tm0.
28085         It's no longer needed to placate gcc4's -Wuninitialized,
28086         and the attempt to placate would elicit a new warning.
28087
28088         unicodeio.c: mark unused parameters
28089         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28090         (fallback_failure_callback): Likewise.
28091
28092 2008-12-07  Bruno Haible  <bruno@clisp.org>
28093
28094         * gnulib-tool (func_create_testdir): When building the tests
28095         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28096         Reported by Simon Josefsson.
28097
28098 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28099
28100         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28101
28102 2008-12-06  Bruno Haible  <bruno@clisp.org>
28103
28104         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28105         Suggested by Eric Blake.
28106
28107 2008-12-06  Bruno Haible  <bruno@clisp.org>
28108
28109         Fix a c-stack test failure on MacOS X.
28110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28111         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28112         handler for SIGBUS as well.
28113         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28114         install a signal handler for SIGBUS as well.
28115         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28116
28117 2008-12-06  Bruno Haible  <bruno@clisp.org>
28118
28119         Advocacy documentation.
28120         * doc/gnulib-intro.texi (Benefits): New section.
28121         * doc/gnulib.texi: Update.
28122
28123 2008-12-06  Bruno Haible  <bruno@clisp.org>
28124
28125         Document the 'manywarnings' module.
28126         * doc/manywarnings.texi: New file.
28127         * doc/gnulib.texi: Include it.
28128
28129 2008-12-05  Eric Blake  <ebb9@byu.net>
28130
28131         tests: silence some gcc warnings
28132         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28133         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28134         type mismatches.
28135
28136 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28137             Bruno Haible  <bruno@clisp.org>
28138
28139         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28140
28141 2008-11-29  Jim Meyering  <meyering@redhat.com>
28142
28143         unicodeio.c: mark unused parameters
28144         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28145         (fallback_failure_callback): Likewise.
28146
28147         fts: fix a thinko
28148         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28149         (set_stat_type): Return S_IF*-valued "type" directly.
28150         Prompted by James Youngman's spotting a related bug.
28151         Confirmed by further testing through find.
28152
28153         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28154         * lib/fts.c (D_TYPE): Define.
28155         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28156         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28157         (s_ifmt_shift_bits): New function.
28158         (set_stat_type): New function.
28159         (fts_build): When not calling fts_stat, call set_stat_type
28160         to propagate dirent.d_type info to fts_read caller.
28161         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28162         fts_statp->st_mode type information may be valid.
28163
28164 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28165
28166         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28167         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28168         <sds@gnu.org>.
28169
28170 2008-11-20  Bruno Haible  <bruno@clisp.org>
28171
28172         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28173         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28174         INCLUDE_NEXT.
28175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28176         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28177         * modules/math (Makefile.am): Substitute
28178         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28179         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28180
28181 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28182             Bruno Haible  <bruno@clisp.org>
28183
28184         * lib/stdint.in.h: Define all type macros so that their expansion is
28185         a single typedef'ed token. Fixes a compilation failure in Boost which
28186         does "using ::int8_t;".
28187
28188 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28189
28190         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28191         gl_MANYWARN_ALL_GCC.
28192         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28193         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28194         * modules/manywarnings: New file.
28195         * MODULES.html.sh: Mention manywarnings module.
28196
28197 2008-11-18  Bruno Haible  <bruno@clisp.org>
28198
28199         * doc/gnulib-tool.texi (Unit tests): New section.
28200
28201 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28202
28203         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28204         paths like 'lib/po/foo.po'.
28205
28206 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28207
28208         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28209         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28210
28211 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28212
28213         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28214         parameter works.
28215
28216 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28217
28218         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28219
28220 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28221
28222         * modules/parse-duration-tests: New file.
28223         * tests/test-parse-duration.sh: New file.
28224         * tests/test-parse-duration.c: New file.
28225
28226         New module 'parse-duration'.
28227         * lib/parse-duration.h: New file.
28228         * lib/parse-duration.c: New file.
28229         * modules/parse-duration: New file.
28230
28231 2008-11-17  Bruno Haible  <bruno@clisp.org>
28232
28233         * tests/test-select-out.sh: Comment out the first pipe test.
28234         Reported by Simon Josefsson.
28235
28236 2008-11-17  Bruno Haible  <bruno@clisp.org>
28237
28238         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28239         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28240         gl_HOSTENT.
28241
28242 2008-11-17  Bruno Haible  <bruno@clisp.org>
28243
28244         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28245         -lnetwork and -lnet. Needed for Haiku and BeOS.
28246
28247 2008-11-16  Bruno Haible  <bruno@clisp.org>
28248
28249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28250
28251 2008-11-16  Bruno Haible  <bruno@clisp.org>
28252
28253         Avoid test failure on Haiku.
28254         * tests/test-fsync.c: Include <errno.h>.
28255         (main): Don't require that fsync (0) fails.
28256
28257 2008-11-15  Bruno Haible  <bruno@clisp.org>
28258
28259         New module 'hostent'.
28260         * modules/hostent: New file.
28261         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28262
28263 2008-11-15  Bruno Haible  <bruno@clisp.org>
28264
28265         New module 'servent'.
28266         * modules/servent: New file.
28267         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28268
28269 2008-11-15  Bruno Haible  <bruno@clisp.org>
28270
28271         Avoid generating same test program with two different rules.
28272         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28273         test-frexp to test-frexp-nolibm.
28274         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28275         test-frexpl to test-frexpl-nolibm.
28276
28277 2008-11-15  Bruno Haible  <bruno@clisp.org>
28278
28279         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28280         $(FREXPL_LIBM).
28281
28282 2008-11-15  Bruno Haible  <bruno@clisp.org>
28283
28284         * lib/netdb.in.h: Activate the definitions also when the system's
28285         <netdb.h> has 'struct addrinfo'.
28286         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28287         EAI_OVERFLOW or AI_NUMERICSERV.
28288         * doc/posix-headers/netdb.texi: Document the problem.
28289
28290 2008-11-15  Bruno Haible  <bruno@clisp.org>
28291
28292         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28293
28294         Make the 'sched' module work on platforms where <sched.h> exists but
28295         is incomplete (such as Haiku).
28296         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28297         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28298         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28299         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28300         HAVE_STRUCT_SCHED_PARAM.
28301         * modules/sched (Depends-on): Add include_next.
28302         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28303         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28304         * doc/posix-headers/sched.texi: Document the issue.
28305
28306 2008-11-13  Jim Meyering  <meyering@redhat.com>
28307
28308         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28309         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28310         test would fail due to the difference in the Report bugs to ...
28311         line.  The expected address is empty, "<>", while the actual
28312         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28313
28314 2008-11-12  Bruno Haible  <bruno@clisp.org>
28315
28316         lstat: don't compile lstat.c on systems lacking lstat
28317         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28318         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28319         Reported by Daniel P. Berrange via Jim Meyering.
28320
28321 2008-11-12  Jim Meyering  <meyering@redhat.com>
28322
28323         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28324
28325 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28326
28327         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28328         instead.
28329
28330 2008-11-12  Bruno Haible  <bruno@clisp.org>
28331
28332         * lib/unicodeio.c: Include unistr.h.
28333         (utf8_wctomb): Remove function.
28334         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28335
28336 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28337
28338         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28339         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28340         <bruno@clisp.org>.
28341         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28342
28343 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28344
28345         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28346         * doc/gnulib.texi: Add section for warnings.
28347
28348 2008-11-11  Bruno Haible  <bruno@clisp.org>
28349
28350         * lib/sockets.h: Add a comment.
28351
28352 2008-11-11  Karl Berry  <karl@gnu.org>
28353
28354         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28355
28356 2008-11-11  Eric Blake  <ebb9@byu.net>
28357
28358         fdl.texi: avoid git symlinks
28359         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28360
28361 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28362
28363         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28364
28365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28366
28367         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28368         (gl_WARN_ADD): Substitute $2 if literal.
28369
28370 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28371
28372         * m4/warning.m4: Remove.
28373
28374 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28375
28376         * m4/warnings.m4: Almost complete rewrite. :-)
28377
28378 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28379
28380         * modules/warnings: New module.
28381         * m4/warnings.m4: New file.
28382         * MODULES.html.sh: Mention warnings module.
28383         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28384         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28385
28386 2008-11-10  Eric Blake  <ebb9@byu.net>
28387
28388         fdl.texi: make a symlink to the latest version
28389         * doc/standards.texi: Revert today's earlier change.
28390         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28391         * doc/fdl.texi: ...and replace this with a symlink to the newer
28392         fdl-1.3.texi.
28393
28394 2008-11-10  Bruno Haible  <bruno@clisp.org>
28395
28396         * tests/test-select-fd.c (main): Accept the result file name as fourth
28397         argument.
28398         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28399         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28400
28401 2008-11-10  Bruno Haible  <bruno@clisp.org>
28402
28403         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28404         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28405         as autoconf-substituted macros.
28406         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28408         gl_NETDB_H_DEFAULTS. Set these variables.
28409         * modules/netdb (Makefile.am): Substitute these variables.
28410
28411 2008-11-10  Eric Blake  <ebb9@byu.net>
28412
28413         standards.texi: include correct file for FDL 1.3
28414         * doc/standards.texi (GNU Free Documentation License): Change
28415         include file to pull in FDL 1.3, not 1.2.
28416
28417         fdl.texi: revert accidental change to license
28418         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28419
28420 2008-11-10  Bruno Haible  <bruno@clisp.org>
28421
28422         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28423         cross-compiling guesses also when the native compile gives no result.
28424
28425 2008-11-10  Bruno Haible  <bruno@clisp.org>
28426
28427         * lib/spawni.c (__spawni): Force variable into the stack.
28428
28429 2008-11-10  Bruno Haible  <bruno@clisp.org>
28430
28431         Add support for Haiku.
28432         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28433         glibc and BeOS, but also on Haiku.
28434         * lib/fpurge.c (fpurge): Likewise.
28435         * lib/freadable.c (freadable): Likewise.
28436         * lib/freadahead.c (freadahead): Likewise.
28437         * lib/freading.c (freading): Likewise.
28438         * lib/freadptr.c (freadptr): Likewise.
28439         * lib/freadseek.c (freadptrinc): Likewise.
28440         * lib/fseeko.c (rpl_fseeko): Likewise.
28441         * lib/fseterr.c (fseterr): Likewise.
28442         * lib/fwritable.c (fwritable): Likewise.
28443         * lib/fwriting.c (fwriting): Likewise.
28444         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28445
28446 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28447
28448         * lib/config.charset: Treat Haiku like BeOS.
28449
28450 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28451
28452         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28453         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28454
28455 2008-11-08  Bruno Haible  <bruno@clisp.org>
28456
28457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28458         AC_CACHE_CHECK.
28459
28460 2008-11-08  Bruno Haible  <bruno@clisp.org>
28461
28462         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28463
28464 2008-11-08  Bruno Haible  <bruno@clisp.org>
28465
28466         * tests/test-select-fd.c: New file.
28467         * tests/test-select-in.sh: New file.
28468         * tests/test-select-out.sh: New file.
28469         * tests/test-select-stdin.c: New file.
28470         * modules/select-tests (Files): Add the new files.
28471         (Depends-on): Add gettimeofday.
28472         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
28473         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
28474         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
28475
28476 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
28477             Bruno Haible  <bruno@clisp.org>
28478
28479         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
28480
28481 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
28482
28483         * build-aux/pmccabe2html: Added support for C++ source files.
28484
28485 2008-11-05  Ben Pfaff  <blp@gnu.org>
28486
28487         Fix lib/close.c build on Windows.
28488         * modules/close (Files): Add lib/w32sock.h.
28489
28490 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
28491
28492         Accept Bison's NEWS format.
28493         * build-aux/announce-gen (print_news_deltas): Tweak
28494         $re_prefix.
28495
28496 2008-11-04  Bruno Haible  <bruno@clisp.org>
28497
28498         * modules/random_r (Maintainer): Add glibc.
28499
28500 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28501
28502         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
28503         by karl@freefriends.org (Karl Berry).
28504         * doc/alloca.texi: Likewise.
28505         * doc/c-ctype.texi: Likewise.
28506         * doc/c-strcase.texi: Likewise.
28507         * doc/c-strcaseeq.texi: Likewise.
28508         * doc/c-strcasestr.texi: Likewise.
28509         * doc/c-strstr.texi: Likewise.
28510         * doc/c-strtod.texi: Likewise.
28511         * doc/c-strtold.texi: Likewise.
28512         * doc/ctime.texi: Likewise.
28513         * doc/error.texi: Likewise.
28514         * doc/fdl.texi: Likewise.
28515         * doc/gcd.texi: Likewise.
28516         * doc/getdate.texi: Likewise.
28517         * doc/gnulib-intro.texi: Likewise.
28518         * doc/gnulib-tool.texi: Likewise.
28519         * doc/gnulib.texi: Likewise.
28520         * doc/inet_ntoa.texi: Likewise.
28521         * doc/maintain.texi: Likewise.
28522         * doc/make-stds.texi: Likewise.
28523         * doc/quote.texi: Likewise.
28524         * doc/regexprops-generic.texi: Likewise.
28525         * doc/standards.texi: Likewise.
28526         * doc/verify.texi: Likewise.
28527         * doc/visibility.texi: Likewise.
28528         * doc/gnulib.texi (GNU Free Documentation License): Include
28529         fdl-1.3.texi instead of fdl.texi.
28530
28531 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28532
28533         * doc/fdl-1.3.texi: New file, from
28534         <http://www.gnu.org/licenses/fdl-1.3.texi>.
28535         * modules/fdl-1.3: Add.
28536         * MODULES.html.sh: Add fdl-1.3.
28537
28538 2008-11-03  Bruno Haible  <bruno@clisp.org>
28539
28540         Make determination of absolute name of header file work with AIX xlc.
28541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
28542         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
28543         preprocessing.
28544         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28545         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28546
28547 2008-11-03  Simon Josefsson  <simon@josefsson.org>
28548
28549         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
28550         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
28551         <ludo@gnu.org>.
28552
28553 2008-11-02  Bruno Haible  <bruno@clisp.org>
28554
28555         Mark 'strpbrk' obsolete.
28556         * modules/strpbrk (Status, Notice): New sections.
28557         * modules/strtok_r (Depends-on): Add strpbrk.
28558
28559 2008-11-02  Bruno Haible  <bruno@clisp.org>
28560
28561         Mark 'strdup' obsolete.
28562         * modules/strdup (Status, Notice): New sections.
28563         * modules/findprog (Depends-on): Add strdup.
28564         * modules/getaddrinfo (Depends-on): Likewise.
28565         * modules/localename (Depends-on): Likewise.
28566         * modules/relocatable-lib (Depends-on): Likewise.
28567         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
28568         * modules/relocatable-prog (Depends-on): Likewise.
28569         * modules/trim (Depends-on): Likewise.
28570         * modules/unictype/gen-ctype (Depends-on): Likewise.
28571         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28572
28573 2008-11-02  Bruno Haible  <bruno@clisp.org>
28574
28575         Mark 'strcspn' obsolete.
28576         * modules/strcspn (Status, Notice): New sections.
28577
28578 2008-11-02  Bruno Haible  <bruno@clisp.org>
28579
28580         Mark 'rmdir' obsolete.
28581         * modules/rmdir (Status, Notice): New sections.
28582         * modules/clean-temp (Depends-on): Add rmdir.
28583         * modules/openat (Depends-on): Likewise.
28584
28585 2008-11-02  Bruno Haible  <bruno@clisp.org>
28586
28587         Mark 'raise' obsolete.
28588         * modules/raise (Status, Notice): New sections.
28589         (Include): Specify <signal.h>.
28590         * modules/stdio (Depends-on): Add raise.
28591         * modules/write (Depends-on): Likewise.
28592
28593 2008-11-02  Bruno Haible  <bruno@clisp.org>
28594
28595         Mark 'memset' obsolete.
28596         * modules/memset (Status, Notice): New sections.
28597
28598 2008-11-02  Bruno Haible  <bruno@clisp.org>
28599
28600         Mark 'memmove' obsolete.
28601         * modules/memmove (Status, Notice): New sections.
28602         * modules/argp (Depends-on): Add memmove.
28603         * modules/argz (Depends-on): Likewise.
28604         * modules/canonicalize (Depends-on): Likewise.
28605         * modules/canonicalize-lgpl (Depends-on): Likewise.
28606         * modules/fts (Depends-on): Likewise.
28607         * modules/getcwd (Depends-on): Likewise.
28608         * modules/human (Depends-on): Likewise.
28609         * modules/regex (Depends-on): Likewise.
28610         * modules/striconveh (Depends-on): Likewise.
28611         * modules/trim (Depends-on): Likewise.
28612         * modules/unistr/u8-move (Depends-on): Likewise.
28613         * modules/unistr/u16-move (Depends-on): Likewise.
28614         * modules/unistr/u32-move (Depends-on): Likewise.
28615
28616 2008-11-02  Bruno Haible  <bruno@clisp.org>
28617
28618         Mark 'memcpy' obsolete.
28619         * modules/memcpy (Status, Notice): New sections.
28620
28621 2008-11-02  Bruno Haible  <bruno@clisp.org>
28622
28623         Mark 'memcmp' obsolete.
28624         * modules/memcmp (Status, Notice): New sections.
28625         * modules/argmatch (Depends-on): Add memchr.
28626         * modules/backupfile (Depends-on): Likewise.
28627         * modules/c-strcasestr (Depends-on): Likewise.
28628         * modules/crypto/des (Depends-on): Likewise.
28629         * modules/csharpcomp (Depends-on): Likewise.
28630         * modules/fnmatch (Depends-on): Likewise.
28631         * modules/git-merge-changelog (Depends-on): Likewise.
28632         * modules/isnand (Depends-on): Likewise.
28633         * modules/isnand-nolibm (Depends-on): Likewise.
28634         * modules/isnanf (Depends-on): Likewise.
28635         * modules/isnanf-nolibm (Depends-on): Likewise.
28636         * modules/isnanl (Depends-on): Likewise.
28637         * modules/isnanl-nolibm (Depends-on): Likewise.
28638         * modules/mbchar (Depends-on): Likewise.
28639         * modules/memcoll (Depends-on): Likewise.
28640         * modules/quotearg (Depends-on): Likewise.
28641         * modules/regex (Depends-on): Likewise.
28642         * modules/relocatable-prog (Depends-on): Likewise.
28643         * modules/same (Depends-on): Likewise.
28644         * modules/signbit (Depends-on): Likewise.
28645         * modules/strcasestr-simple (Depends-on): Likewise.
28646         * modules/unictype/gen-ctype (Depends-on): Likewise.
28647         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28648         * modules/uniname/uniname (Depends-on): Likewise.
28649         * modules/unistr/u8-cmp (Depends-on): Likewise.
28650
28651 2008-11-02  Bruno Haible  <bruno@clisp.org>
28652
28653         Mark 'memchr' obsolete.
28654         * modules/memchr (Status, Notice): New sections.
28655         * modules/argp (Depends-on): Add memchr.
28656         * modules/base64 (Depends-on): Likewise.
28657         * modules/c-strcasestr (Depends-on): Likewise.
28658         * modules/chdir-long (Depends-on): Likewise.
28659         * modules/fnmatch (Depends-on): Likewise.
28660         * modules/getsubopt (Depends-on): Likewise.
28661         * modules/git-merge-changelog (Depends-on): Likewise.
28662         * modules/glob (Depends-on): Likewise.
28663         * modules/strcasestr-simple (Depends-on): Likewise.
28664         * modules/strnlen (Depends-on): Likewise.
28665
28666 2008-11-02  Bruno Haible  <bruno@clisp.org>
28667
28668         Mark 'atexit' obsolete.
28669         * modules/atexit (Status, Notice): New sections.
28670         * modules/chdir-long (Depends-on): Add atexit.
28671         * modules/wait-process (Depends-on): Likewise.
28672
28673 2008-11-02  Bruno Haible  <bruno@clisp.org>
28674
28675         * gnulib-tool: New option --with-obsolete.
28676         (func_usage): Document it.
28677         (func_modules_transitive_closure): Drop obsolete dependencies if
28678         incobsolete is not true.
28679         (func_import): Read and save the incobsolete variable to the cache.
28680
28681 2008-11-02  Bruno Haible  <bruno@clisp.org>
28682
28683         * modules/TEMPLATE-EXTENDED: New field 'Status'.
28684         * gnulib-tool: New option --extract-status.
28685         (func_usage): Document it.
28686         (sed_extract_prog): Recognize it.
28687         (func_get_status): New function.
28688
28689 2008-10-30  Simon Josefsson  <simon@josefsson.org>
28690
28691         * modules/sockets (License): Change from LGPL to LGPLv2+.
28692
28693 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28694
28695         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
28696
28697 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28698
28699         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28700         Mention times and sys_times.
28701         * modules/sys_times, modules/sys_times-tests: New modules.
28702         * modules/times, modules/times-tests: Likewise
28703         * m4/sys_times_h.m4: New file.
28704         * lib/sys_times.in.h: Likewise
28705         * lib/times.c: Likewise.
28706         * tests/test-sys_times.c: Likewise.
28707         * tests/test-times.c: Likewise.
28708         * doc/posix-headers/sys_times.texi: Update.
28709         * doc/posix-functions/times.texi: Update.
28710
28711 2008-10-28  Jim Meyering  <meyering@redhat.com>
28712
28713         * modules/tempname (Depends-on): Add lstat.
28714
28715         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
28716
28717 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28718
28719         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
28720         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
28721         using idiom used elsewhere in gnulib.
28722
28723 2008-10-27  Jim Meyering  <meyering@redhat.com>
28724
28725         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
28726
28727 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28728
28729         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
28730         TESTS_ENVIRONMENT, for shell scripts that needs to call built
28731         programs.
28732         * tests/test-argp-2.sh: Use $EXEEXT when needed.
28733
28734 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28735
28736         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
28737
28738 2008-10-27  Bruno Haible  <bruno@clisp.org>
28739
28740         * tests/test-lstat.c: Include <stdio.h>.
28741
28742 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28743
28744         * modules/lstat-tests: New module.
28745         * tests/test-lstat.c: New file.
28746
28747 2008-10-26  Jim Meyering  <meyering@redhat.com>
28748
28749         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
28750
28751 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28752             Bruno Haible  <bruno@clisp.org>
28753
28754         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
28755         * modules/configmake (Include): Add a note that the include must come
28756         after all system headers.
28757         * lib/javaversion.c: Include configmake.h after all other includes.
28758
28759 2008-10-26  Bruno Haible  <bruno@clisp.org>
28760
28761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
28762         HAVE_STRUCT_RANDOM_DATA to 1.
28763         (gl_STDLIB_H): Simplify.
28764
28765 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28766
28767         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
28768         substitute HAVE_STRUCT_RANDOM_DATA.
28769         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
28770         random_data.
28771         * modules/stdlib (Makefile.am): Substitute
28772         HAVE_STRUCT_RANDOM_DATA.
28773
28774 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28775
28776         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
28777         * doc/gnulib-intro.texi (Copyright): Likewise.
28778
28779 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28780
28781         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
28782         findings.
28783
28784 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
28785             Bruno Haible  <bruno@clisp.org>
28786
28787         * lib/unistd.in.h: Include <winsock2.h>.
28788         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
28789         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
28790         Provide dummy declarations.
28791         (gethostname): Override.
28792         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
28793         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
28794         gl_PREREQ_SYS_H_WINSOCK2.
28795         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
28796         * doc/posix-functions/gethostname.texi: More details.
28797
28798 2008-10-25  Bruno Haible  <bruno@clisp.org>
28799
28800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28801         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
28802         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
28803
28804         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
28805         here ...
28806         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
28807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
28808         gl_UNISTD_H_DEFAULTS.
28809
28810 2008-10-25  Eric Blake  <ebb9@byu.net>
28811
28812         signbit: avoid spurious compiler failure
28813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
28814         declarations inside function.
28815
28816 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28817             Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
28820         * modules/random_r (Depends-on): Add stdint.
28821
28822 2008-10-24  Bruno Haible  <bruno@clisp.org>
28823
28824         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
28825         Eggert.
28826         * modules/strerror (License): Likewise.
28827
28828 2008-10-24  Jim Meyering  <meyering@redhat.com>
28829
28830         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
28831         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
28832
28833 2008-10-24  Eric Blake  <ebb9@byu.net>
28834
28835         getgroups: fix compilation when getgroups is available
28836         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
28837         but with <config.h> override of getgroups disabled.
28838
28839 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28840
28841         * doc/gnulib.texi (Header files): Add note about C++ problems.
28842         Explained by Bruno Haible <bruno@clisp.org>.
28843
28844 2008-10-23  Bruno Haible  <bruno@clisp.org>
28845
28846         Define a dummy SA_NODEFER macro on Interix.
28847         * lib/signal.in.h (SA_NODEFER): Define fallback.
28848         Reported by Aleksey Cheusov <cheusov@tut.by> via
28849         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
28850
28851 2008-10-23  Bruno Haible  <bruno@clisp.org>
28852
28853         * modules/freadahead (License): Change to LGPLv2+.
28854         Suggested by Simon Josefsson.
28855
28856 2008-10-23  Jim Meyering  <meyering@redhat.com>
28857
28858         random_r: new module
28859         * modules/random_r: New file.
28860         * m4/random_r.m4: New file.
28861         * lib/random_r.c: New file, from glibc.
28862         * modules/random_r-tests: New file.
28863         * tests/test-random_r.c: New file.
28864         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
28865          Declare.
28866         (RAND_MAX): Define.
28867         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
28868         * modules/stdlib: Substitute them, too.
28869         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
28870         * doc/glibc-functions/initstate_r.texi: Mention the new module.
28871         * doc/glibc-functions/random_r.texi: Likewise.
28872         * doc/glibc-functions/setstate_r.texi: Likewise.
28873         * doc/glibc-functions/srandom_r.texi: Likewise.
28874         * config/srclist.txt: Mention it.
28875
28876 2008-10-23  David Lutterkort  <lutter@redhat.com>
28877
28878         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
28879         link requirement
28880
28881 2008-10-23  Jim Meyering  <meyering@redhat.com>
28882
28883         selinux-h: mark parameters of stub functions as intentionally unused
28884         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
28885         * lib/se-context.in.h: Likewise.
28886
28887 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28888
28889         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
28890
28891 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28892
28893         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
28894
28895 2008-10-22  Eric Blake  <ebb9@byu.net>
28896
28897         glthread/thread: avoid compiler warning
28898         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
28899         Add unreachable abort to silence compiler.
28900
28901 2008-10-22  Eric Blake  <ebb9@byu.net>
28902
28903         netdb: also supply struct addrinfo for cygwin 1.5.x
28904         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
28905         older cygwin.
28906         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
28907         cygwin.
28908         * doc/posix-headers/netdb.texi (netdb.h): Document this.
28909
28910 2008-10-22  Bruno Haible  <bruno@clisp.org>
28911
28912         * users.txt: Update entry about pspp.
28913
28914 2008-10-21  Bruno Haible  <bruno@clisp.org>
28915
28916         Simplification.
28917         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
28918         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
28919
28920         Simplification.
28921         * lib/ioctl.c (ioctl): Don't undefine.
28922         * lib/socket.c (socket): Don't undefine.
28923
28924         Remove unused module indicator macros.
28925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
28926         GNULIB_$1 as a C macro.
28927
28928         * doc/posix-functions/close.texi: Undo last change.
28929         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
28930         Windows platforms.
28931
28932 2008-10-21  Bruno Haible  <bruno@clisp.org>
28933
28934         Add gethostname() declaration to <unistd.h>.
28935         * lib/unistd.in.h (gethostname): New declaration.
28936         * lib/gethostname.c: Include <unistd.h>.
28937         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
28938         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
28939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
28940         and HAVE_GETHOSTNAME.
28941         * modules/gethostname (Depends-on): Add unistd.
28942         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28943         (Include): Specify <unistd.h>.
28944         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
28945         HAVE_GETHOSTNAME.
28946         * tests/test-gethostname.c: Include <unistd.h> first.
28947
28948 2008-10-21  Bruno Haible  <bruno@clisp.org>
28949
28950         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
28951         * modules/select-tests (Depends-on): Likewise.
28952         Reported by Simon Josefsson.
28953
28954 2008-10-21  Simon Josefsson  <simon@josefsson.org>
28955
28956         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
28957         * lib/accept.c: New file, based on winsock.c.
28958         * lib/bind.c: New file, based on winsock.c.
28959         * lib/connect.c: New file, based on winsock.c.
28960         * lib/getpeername.c: New file, based on winsock.c.
28961         * lib/getsockname.c: New file, based on winsock.c.
28962         * lib/getsockopt.c: New file, based on winsock.c.
28963         * lib/ioctl.c: New file, based on winsock.c.
28964         * lib/listen.c: New file, based on winsock.c.
28965         * lib/recv.c: New file, based on winsock.c.
28966         * lib/recvfrom.c: New file, based on winsock.c.
28967         * lib/send.c: New file, based on winsock.c.
28968         * lib/sendto.c: New file, based on winsock.c.
28969         * lib/setsockopt.c: New file, based on winsock.c.
28970         * lib/shutdown.c: New file, based on winsock.c.
28971         * lib/socket.c: New file, based on winsock.c.
28972         * lib/w32sock.h: New file, based on winsock.c.
28973         * lib/winsock.c: Remove file.
28974         * modules/accept: Likewise.
28975         * modules/bind: Likewise.
28976         * modules/connect: Likewise.
28977         * modules/getpeername: Likewise.
28978         * modules/getsockname: Likewise.
28979         * modules/getsockopt: Likewise.
28980         * modules/ioctl: Likewise.
28981         * modules/listen: Likewise.
28982         * modules/recv: Likewise.
28983         * modules/recvfrom: Likewise.
28984         * modules/send: Likewise.
28985         * modules/sendto: Likewise.
28986         * modules/setsockopt: Likewise.
28987         * modules/shutdown: Likewise.
28988         * modules/socket: Use socket.c instead of winsock.c.
28989         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
28990         * doc/posix-functions/accept.texi: Doc fix.
28991         * doc/posix-functions/bind.texi: Doc fix.
28992         * doc/posix-functions/close.texi: Doc fix.
28993         * doc/posix-functions/connect.texi: Doc fix.
28994         * doc/posix-functions/getpeername.texi: Doc fix.
28995         * doc/posix-functions/getsockname.texi: Doc fix.
28996         * doc/posix-functions/getsockopt.texi: Doc fix.
28997         * doc/posix-functions/ioctl.texi: Doc fix.
28998         * doc/posix-functions/listen.texi: Doc fix.
28999         * doc/posix-functions/recv.texi: Doc fix.
29000         * doc/posix-functions/recvfrom.texi: Doc fix.
29001         * doc/posix-functions/send.texi: Doc fix.
29002         * doc/posix-functions/sendto.texi: Doc fix.
29003         * doc/posix-functions/setsockopt.texi: Doc fix.
29004         * doc/posix-functions/shutdown.texi: Doc fix.
29005         * doc/posix-functions/socket.texi: Doc fix.
29006
29007 2008-10-20  Bruno Haible  <bruno@clisp.org>
29008
29009         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29010         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29011         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29012         as an alias for SIGABRT.
29013         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29014         (sigaction): Map it to SIGABRT.
29015         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29016
29017 2008-10-20  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/fts.c: Don't include lstat.h.
29020         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29021
29022         Move the lstat() declaration to <sys/stat.h>.
29023         * lib/lstat.h: Remove file.
29024         * lib/sys_stat.in.h: Add special invocation convention.
29025         (lstat): New declaration.
29026         * lib/lstat.c (orig_lstat): New function.
29027         (rpl_lstat): Use orig_lstat instead of lstat.
29028         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29029         AC_C_INLINE. Set REPLACE_LSTAT.
29030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29031         and REPLACE_LSTAT.
29032         * modules/lstat (Files): Remove lib/lstat.h.
29033         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29034         (Include): Specify <sys/stat.h> instead of lstat.h.
29035         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29036         REPLACE_LSTAT.
29037         * NEWS: Mention the change.
29038
29039 2008-10-20  Bruno Haible  <bruno@clisp.org>
29040
29041         * modules/posix_spawn-tests: New file.
29042         * tests/test-posix_spawn3.c: New file.
29043
29044 2008-10-20  Bruno Haible  <bruno@clisp.org>
29045
29046         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29047         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29048         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29049         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29050         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29051
29052 2008-10-20  Bruno Haible  <bruno@clisp.org>
29053
29054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29055         of posix_spawn on AIX 5.3.
29056
29057 2008-10-20  Bruno Haible  <bruno@clisp.org>
29058
29059         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29060
29061 2008-10-20  Bruno Haible  <bruno@clisp.org>
29062
29063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29064         of AC_LANG_PROGRAM.
29065
29066 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29067
29068         * lib/netdb.in.h: Don't define GNU specific constants until they
29069         are supported or needed.  Reported by Bruno Haible
29070         <bruno@clisp.org>.
29071
29072 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29073
29074         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29075
29076 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29077
29078         * lib/getaddrinfo.h: Remove file.
29079         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29080         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29081         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29082         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29083         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29084         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29085         * tests/test-getaddrinfo.c: Likewise.
29086         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29087         * NEWS: Mention change.
29088
29089 2008-10-19  Bruno Haible  <bruno@clisp.org>
29090
29091         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29092
29093 2008-10-19  Bruno Haible  <bruno@clisp.org>
29094
29095         * lib/wait-process.c: Include simply <sys/wait.h>.
29096         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29097         WIFSTOPPED): Remove fallback definitions.
29098         * modules/wait-process (Depends-on): Add sys_wait.
29099
29100         New module 'sys_wait'.
29101         * modules/sys_wait: New file.
29102         * lib/sys_wait.in.h: New file, partially copied from
29103         lib/wait-process.c.
29104         * m4/sys_wait_h.m4: New file.
29105         * doc/posix-headers/sys_wait.texi: Mention the new module.
29106
29107 2008-10-19  Bruno Haible  <bruno@clisp.org>
29108
29109         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29110
29111 2008-10-19  Bruno Haible  <bruno@clisp.org>
29112
29113         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29114         * lib/wait-process.c (WAIT_T): Remove type.
29115         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29116         (wait_subprocess): Update.
29117
29118 2008-10-19  Bruno Haible  <bruno@clisp.org>
29119
29120         New module 'atoll'.
29121         * modules/atoll: New file.
29122         * lib/stdlib.in.h (atoll): New declaration.
29123         * lib/atoll.c: New file, from glibc with modifications.
29124         * m4/atoll.m4: New file.
29125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29126         HAVE_ATOLL.
29127         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29128         * doc/posix-functions/atoll.texi: Mention the new module.
29129
29130 2008-10-19  Bruno Haible  <bruno@clisp.org>
29131
29132         Add strtoull() declaration to <stdlib.h>.
29133         * lib/stdlib.in.h (strtoull): New declaration.
29134         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29135         Set HAVE_STRTOULL.
29136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29137         HAVE_STRTOULL.
29138         * modules/strtoull (Depends-on): Add stdlib.
29139         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29140         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29141         HAVE_STRTOULL.
29142
29143 2008-10-19  Bruno Haible  <bruno@clisp.org>
29144
29145         Add strtoll() declaration to <stdlib.h>.
29146         * lib/stdlib.in.h (strtoll): New declaration.
29147         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29148         Set HAVE_STRTOLL.
29149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29150         HAVE_STRTOLL.
29151         * modules/strtoll (Depends-on): Add stdlib.
29152         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29153         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29154
29155 2008-10-19  Bruno Haible  <bruno@clisp.org>
29156
29157         * modules/bcopy (Depends-on): Add strings.
29158         (Include): Specify <strings.h>.
29159
29160 2008-10-19  Bruno Haible  <bruno@clisp.org>
29161
29162         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29163
29164 2008-10-19  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29167         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29168         mingw.
29169
29170 2008-10-19  Bruno Haible  <bruno@clisp.org>
29171
29172         * lib/atanl.c: Don't include isnanl.h.
29173         * lib/cosl.c: Likewise.
29174         * lib/ldexpl.c: Likewise.
29175         * lib/logl.c: Likewise.
29176         * lib/sinl.c: Likewise.
29177         * lib/sqrtl.c: Likewise.
29178         * lib/tanl.c: Likewise.
29179
29180         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29181         * lib/isnanf.h: Remove file.
29182         * lib/isnand.h: Remove file.
29183         * lib/isnanl.h: Remove file.
29184         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29185         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29186         macros.
29187         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29188         HAVE_ISNANF, don't define it as a C macro.
29189         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29190         HAVE_ISNAND, don't define it as a C macro.
29191         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29192         HAVE_ISNANL, don't define it as a C macro.
29193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29194         HAVE_ISNAN[FDL].
29195         * modules/isnanf (Files): Remove lib/isnanf.h.
29196         (Depends-on): Add math.
29197         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29198         (Include): Specify <math.h> instead of isnanf.h.
29199         * modules/isnand (Files): Remove lib/isnand.h.
29200         (Depends-on): Add math.
29201         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29202         (Include): Specify <math.h> instead of isnand.h.
29203         * modules/isnanl (Files): Remove lib/isnanl.h.
29204         (Depends-on): Add math.
29205         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29206         (Include): Specify <math.h> instead of isnanl.h.
29207         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29208         HAVE_ISNAN[FDL].
29209         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29210         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29211         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29212         * NEWS: Mention the change.
29213
29214 2008-10-18  Bruno Haible  <bruno@clisp.org>
29215
29216         Add getusershell(), setusershell(), endusershell() declarations to
29217         <unistd.h>.
29218         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29219         declarations.
29220         * lib/getusershell.c: Include unistd.h.
29221         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29222         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29223         HAVE_GETUSERSHELL.
29224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29225         and HAVE_GETUSERSHELL.
29226         * modules/getusershell (Depends-on): Add unistd, extensions.
29227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29228         (Include): Specify <unistd.h>.
29229         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29230         HAVE_GETUSERSHELL.
29231
29232 2008-10-18  Bruno Haible  <bruno@clisp.org>
29233
29234         Add a getloadavg() declaration to <stdlib.h>.
29235         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29236         getloadavg declaration.
29237         (getloadavg): New declaration.
29238         * lib/getloadavg.c: Include <stdlib.h> first.
29239         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29240         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29241         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29243         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29244         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29245         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29246         (Include): Specify <stdlib.h>.
29247         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29248         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29249
29250 2008-10-18  Bruno Haible  <bruno@clisp.org>
29251
29252         * lib/dirchownmod.c: Don't include lchmod.h.
29253
29254         Move the lchmod() declaration to <sys/stat.h>.
29255         * lib/lchmod.h: Remove file.
29256         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29257         (lchmod): New declaration, moved here from lib/lchown.h.
29258         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29259         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29261         and HAVE_LCHMOD.
29262         * modules/lchmod (Files): Remove lib/lchmod.h.
29263         (Depends-on): Add sys_stat, extensions.
29264         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29265         (Include): Specify <sys/stat.h> instead of lchmod.h.
29266         * modules/sys_stat (Depends-on): Add link-warning.
29267         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29268         definition of GL_LINK_WARNING.
29269         * NEWS: Mention the change.
29270
29271 2008-10-18  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/fchdir.c: Don't include dirfd.h.
29274         * lib/fts.c: Likewise.
29275         * lib/getcwd.c: Likewise.
29276         * lib/glob.c: Likewise.
29277
29278         Move the dirfd() declaration to <dirent.h>.
29279         * lib/dirfd.h: Remove file.
29280         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29281         (dirfd): New declaration.
29282         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29283         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29284         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29285         HAVE_DECL_DIRFD.
29286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29287         HAVE_DECL_DIRFD.
29288         * modules/dirfd (Files): Remove lib/dirfd.h.
29289         (Depends-on): Add dirent, extensions.
29290         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29291         (Include): Specify <dirent.h> instead of dirfd.h.
29292         * modules/dirent (Depends-on): Add link-warning.
29293         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29294         definition of GL_LINK_WARNING.
29295         * NEWS: Mention the change.
29296
29297 2008-10-18  Bruno Haible  <bruno@clisp.org>
29298
29299         Move the euidaccess() declaration to <unistd.h>.
29300         * lib/euidaccess.h: Remove file.
29301         * lib/unistd.in.h (euidaccess): New declaration.
29302         * lib/euidaccess.c: Don't include euidaccess.h.
29303         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29304         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29306         and HAVE_EUIDACCESS.
29307         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29308         (Depends-on): Add unistd.
29309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29310         (Include): Specify <unistd.h> instead of euidaccess.h.
29311         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29312         HAVE_EUIDACCESS.
29313         * NEWS: Mention the change.
29314
29315 2008-10-18  Bruno Haible  <bruno@clisp.org>
29316
29317         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29318
29319         Move the getdomainname() declaration to <unistd.h>.
29320         * lib/getdomainname.h: Remove file.
29321         * lib/unistd.in.h (getdomainname): New declaration.
29322         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29323         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29324         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29325         HAVE_GETDOMAINNAME.
29326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29327         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29328         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29329         (Depends-on): Add unistd, extensions.
29330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29331         (Includes): Specify <unistd.h> instead of getdomainname.h.
29332         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29333         HAVE_GETDOMAINNAME.
29334         * NEWS: Mention the change.
29335
29336 2008-10-18  Bruno Haible  <bruno@clisp.org>
29337
29338         * modules/dirent: New file.
29339         * m4/dirent_h.m4: New file.
29340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29341         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29342         * modules/fchdir (Files): Remove lib/dirent.in.h.
29343         (Depends-on): Add dirent.
29344         (Makefile.am): Move rules to modules/dirent.
29345         * doc/posix-headers/dirent.texi: Mention the new module.
29346
29347 2008-10-18  Bruno Haible  <bruno@clisp.org>
29348
29349         Avoid -Wunused-parameter warnings in public gnulib header files.
29350         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29351         macro.
29352         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29353
29354 2008-10-18  Bruno Haible  <bruno@clisp.org>
29355
29356         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29357         * doc/glibc-functions/error.texi: Mention the module 'error'.
29358         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29359         * doc/glibc-functions/getdomainname.texi: Mention the module
29360         'getdomainname'.
29361         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29362         * doc/glibc-functions/getpagesize.texi: Mention the module
29363         'getpagesize'.
29364         * doc/glibc-functions/getusershell.texi: Mention the module
29365         'getusershell'.
29366         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29367         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29368         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29369         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29370         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29371         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29372         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29373         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29374         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29375         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29376         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29377         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29378         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29379         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29380
29381 2008-10-17  Bruno Haible  <bruno@clisp.org>
29382
29383         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29384         HP-UX and IRIX, use -0.0L.
29385         * tests/test-ceill.c (minus_zero): Likewise.
29386         * tests/test-floorl.c (minus_zero): Likewise.
29387         * tests/test-frexpl.c (minus_zero): Likewise.
29388         * tests/test-isnan.c (minus_zerol): Likewise.
29389         * tests/test-isnanl.h (minus_zero): Likewise.
29390         * tests/test-ldexpl.c (minus_zero): Likewise.
29391         * tests/test-roundl.c (minus_zero): Likewise.
29392         * tests/test-signbit.c (minus_zerol): Likewise.
29393         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29394         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29395         * tests/test-truncl.c (minus_zero): Likewise.
29396         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29397         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29398         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29399         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29400
29401 2008-10-17  Bruno Haible  <bruno@clisp.org>
29402
29403         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29404         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29405         that it gets activated only for gcc >= 3.0.
29406         * lib/dirent.in.h: Likewise.
29407         * lib/errno.in.h: Likewise.
29408         * lib/fcntl.in.h: Likewise.
29409         * lib/float.in.h: Likewise.
29410         * lib/iconv.in.h: Likewise.
29411         * lib/inttypes.in.h: Likewise.
29412         * lib/locale.in.h: Likewise.
29413         * lib/math.in.h: Likewise.
29414         * lib/netdb.in.h: Likewise.
29415         * lib/netinet_in.in.h: Likewise.
29416         * lib/search.in.h: Likewise.
29417         * lib/signal.in.h: Likewise.
29418         * lib/spawn.in.h: Likewise.
29419         * lib/stdarg.in.h: Likewise.
29420         * lib/stdint.in.h: Likewise.
29421         * lib/stdio.in.h: Likewise.
29422         * lib/stdlib.in.h: Likewise.
29423         * lib/string.in.h: Likewise.
29424         * lib/strings.in.h: Likewise.
29425         * lib/sys_file.in.h: Likewise.
29426         * lib/sys_ioctl.in.h: Likewise.
29427         * lib/sys_select.in.h: Likewise.
29428         * lib/sys_socket.in.h: Likewise.
29429         * lib/sys_stat.in.h: Likewise.
29430         * lib/sys_time.in.h: Likewise.
29431         * lib/sysexits.in.h: Likewise.
29432         * lib/time.in.h: Likewise.
29433         * lib/unistd.in.h: Likewise.
29434         * lib/wchar.in.h: Likewise.
29435         * lib/wctype.in.h: Likewise.
29436         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29437
29438 2008-10-17  Jim Meyering  <meyering@redhat.com>
29439
29440         ignore-value: don't depend on inline module
29441         * modules/ignore-value (Depends-on): Remove 'inline'.
29442         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29443         Suggestion from Bruno Haible.
29444
29445 2008-10-17  Bruno Haible  <bruno@clisp.org>
29446
29447         New implementation of condition variables for Win32.
29448         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29449         (gl_linked_waitqueue_t): New type.
29450         (gl_cond_t): Use it.
29451         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29452         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29453         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29454         (glthread_cond_init_func, glthread_cond_wait_func,
29455         glthread_cond_timedwait_func, glthread_cond_signal_func,
29456         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29457         Reimplemented on the basis of gl_linked_waitqueue_t.
29458         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29459         gl_waitqueue_t.
29460         (gl_rwlock_t): Update.
29461         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29462
29463 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29464
29465         * modules/recvfrom (Depends-on): Add dependency on getpeername.
29466         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29467
29468 2008-10-17  Jim Meyering  <meyering@redhat.com>
29469
29470         ignore-value: new module
29471         * modules/ignore-value: New file.
29472         * lib/ignore-value.h: New file.
29473         * MODULES.html.sh (Compiler warning management): New section,
29474         just for this module.  More to come.
29475
29476 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         open-safer.c: avoid 'signed and unsigned in conditional...' warning
29479         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
29480         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
29481
29482 2008-10-16  Jim Meyering  <meyering@redhat.com>
29483
29484         openat-die.c: avoid 'no previous prototype' warning
29485         * lib/openat-die.c: Include "openat.h".
29486         Reported by Reuben Thomas <rrt@sc3d.org>.
29487
29488 2008-10-16  Simon Josefsson  <simon@josefsson.org>
29489
29490         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
29491         * lib/netdb.in.h: Fix typo.
29492         Reported by Bruno Haible  <bruno@clisp.org>
29493
29494         * lib/netdb.in.h: Include sys/socket.h for platforms without
29495         netdb.h, to get structures like hostent on MinGW.
29496         * modules/netdb (Depends-on): Add sys_socket.
29497
29498 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29499
29500         * modules/netdb, modules/netdb-tests: New file.
29501         * m4/netdb_h.m4: New file.
29502         * lib/netdb.in.h: Add, currently just an empty file pending
29503         definitions.
29504         * tests/test-netdb.c: New file.
29505         * doc/posix-headers/netdb.texi: Mention that we replace it if
29506         needed.
29507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29508         netdb.
29509
29510 2008-10-15  Simon Josefsson  <simon@josefsson.org>
29511
29512         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
29513         with code.
29514
29515 2008-10-13  Bruno Haible  <bruno@clisp.org>
29516
29517         * lib/glthread/cond.c (glthread_cond_wait_func,
29518         glthread_cond_timedwait_func): Add a comment.
29519
29520 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29521
29522         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
29523         * tests/test-select.c: Likewise,
29524
29525 2008-10-13  Bruno Haible  <bruno@clisp.org>
29526
29527         * lib/glthread/cond.c (glthread_cond_wait_func,
29528         glthread_cond_timedwait_func): Fix variable name.
29529         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29530
29531 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
29532
29533         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
29534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
29535         struct sockaddr.sa_len.
29536         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
29537
29538 2008-10-13  Simon Josefsson  <simon@josefsson.org>
29539
29540         * build-aux/pmccabe2html: Add css and css_url parameters.
29541
29542 2008-10-12  Bruno Haible  <bruno@clisp.org>
29543
29544         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
29545         calling aclx_get.
29546         Reported by Rainer Tammer <tammer@tammer.net>.
29547
29548 2008-10-12  Bruno Haible  <bruno@clisp.org>
29549
29550         Use msvcrt aware primitives for creation/termination of Win32 threads.
29551         * lib/glthread/thread.c: Include <process.h>.
29552         (glthread_create_func): Use _beginthreadex instead of CreateThread.
29553         (wrapper_func): Update signature.
29554         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
29555
29556 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29557             Bruno Haible  <bruno@clisp.org>
29558
29559         Provide a Win32 implementation of the 'cond' module.
29560         * lib/glthread/cond.h [USE_WIN32]: New implementation.
29561         * lib/glthread/cond.c (glthread_cond_init_func,
29562         glthread_cond_wait_func, glthread_cond_timedwait_func,
29563         glthread_cond_signal_func, glthread_cond_broadcast_func,
29564         glthread_cond_destroy_func) [USE_WIN32]: New functions.
29565         * modules/cond (Dependencies): Add gettimeofday.
29566
29567 2008-10-11  Bruno Haible  <bruno@clisp.org>
29568
29569         Make sleep work on older versions of mingw.
29570         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
29571         only whether it exists.
29572         * doc/posix-functions/sleep.texi: Mention the problem with older
29573         versions of mingw.
29574
29575 2008-10-11  Bruno Haible  <bruno@clisp.org>
29576
29577         New module 'shutdown'.
29578         * modules/shutdown: New file.
29579         * lib/sys_socket.in.h (shutdown): New declaration.
29580         * lib/winsock.c (shutdown): New function.
29581         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29582         GNULIB_SHUTDOWN.
29583         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
29584         * doc/posix-functions/shutdown.texi: Document the new module.
29585
29586 2008-10-11  Jim Meyering  <meyering@redhat.com>
29587
29588         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
29589
29590 2008-10-11  Bruno Haible  <bruno@clisp.org>
29591
29592         New module 'fclose'.
29593         * modules/fclose: New file.
29594         * lib/stdio.in.h (fclose): New declaration.
29595         * lib/fclose.c: New file.
29596         * m4/fclose.m4: New file.
29597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
29598         REPLACE_FCLOSE.
29599         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
29600         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
29601         REPLACE_FCLOSE.
29602         * modules/close (Depends-on): fclose.
29603         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
29604
29605 2008-10-11  Bruno Haible  <bruno@clisp.org>
29606
29607         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
29608         set errno and don't call _close.
29609
29610 2008-10-10  Bruno Haible  <bruno@clisp.org>
29611
29612         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
29613         ACL, not afterwards. Fixes test failure on Cygwin.
29614
29615 2008-10-09  Ben Pfaff  <blp@gnu.org>
29616
29617         * build-aux/announce-gen: Fix gnulib version related part of usage
29618         message.  Die with a useful error message if no tarballs are
29619         found.
29620
29621 2008-10-10  Jim Meyering  <meyering@redhat.com>
29622
29623         bootstrap: use git's --depth=N option only if it's supported
29624         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
29625         recognize the --depth option.  Reported by Pádraig Brady.
29626
29627 2008-10-09  Bruno Haible  <bruno@clisp.org>
29628
29629         New module 'ioctl'.
29630         * modules/ioctl: New file.
29631         * lib/sys_socket.in.h (ioctl): Remove declaration.
29632         * lib/winsock.c: Include <sys/ioctl.h>.
29633         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
29634         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29635         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
29636         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
29637         * doc/posix-functions/ioctl.texi: Mention the new module.
29638
29639 2008-10-09  Bruno Haible  <bruno@clisp.org>
29640
29641         New module 'sys_ioctl'.
29642         * lib/sys_ioctl.in.h: New file.
29643         * m4/sys_ioctl_h.m4: New file.
29644         * modules/sys_ioctl: New file.
29645         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
29646
29647 2008-10-09  Bruno Haible  <bruno@clisp.org>
29648
29649         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
29650         * lib/winsock.c: Include <stdarg.h>.
29651         (rpl_ioctl): Change to second argument 'int' and then varargs.
29652
29653 2008-10-09  Bruno Haible  <bruno@clisp.org>
29654
29655         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
29656         when the sys_socket module is present and the system has <winsock2.h>.
29657
29658 2008-10-09  Bruno Haible  <bruno@clisp.org>
29659
29660         * doc/posix-functions/close.texi: Mention module 'close' instead of
29661         module 'sys_socket'.
29662
29663 2008-10-09  Bruno Haible  <bruno@clisp.org>
29664
29665         * doc/glibc-headers/sys_ioctl.texi: New file.
29666         * doc/gnulib.texi: Include it.
29667
29668 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29669             Bruno Haible  <bruno@clisp.org>
29670
29671         Combine the two replacements of 'close'.
29672         * lib/sys_socket.in.h (close): Define to a reminder to include
29673         <unistd.h>.
29674         (_gl_close_fd_maybe_socket): New declaration.
29675         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
29676         * lib/winsock.c (close): Remove undefinition.
29677         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
29678         needed for the gnulib module 'close'.
29679         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
29680         define to an error symbol or to a warning, if suitable.
29681         * lib/close.c: Include <sys/socket.h>.
29682         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
29683         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
29684         UNISTD_H_HAVE_WINSOCK2_H.
29685         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
29686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29687         UNISTD_H_HAVE_WINSOCK2_H.
29688         * modules/sys_socket (Files): Add m4/unistd_h.m4.
29689         (configure.ac): Set a module indicator.
29690         (Makefile.am): Substitute GNULIB_CLOSE.
29691         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
29692         * modules/poll-tests (Depends-on): Add close.
29693         * modules/select-tests (Depends-on): Likewise.
29694
29695 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29696             Bruno Haible  <bruno@clisp.org>
29697
29698         New module 'close'.
29699         * modules/close: New file.
29700         * lib/unistd.in.h (close): Move declaration out of the
29701         FCHDIR_REPLACEMENT scope.
29702         (_gl_unregister_fd): New declaration.
29703         * lib/close.c: New file.
29704         * lib/fchdir.c (rpl_close): Remove function.
29705         * m4/close.m4: New file.
29706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29707         close.
29708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
29709         REPLACE_CLOSE.
29710         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
29711         REPLACE_CLOSE.
29712         * modules/fchdir (Depends-on): Add close.
29713
29714 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29715             Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/fcntl.in.h (open): Simplify conditionals.
29718         (_gl_register_fd): New declaration.
29719         * lib/fchdir.c (rpl_open): Remove function.
29720         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
29721         also.
29722         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
29723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29724         open.
29725
29726 2008-10-09  Jim Meyering  <meyering@redhat.com>
29727
29728         GNUmakefile: use the more name-space-friendly "_version"
29729         * top/GNUmakefile (_dummy): Update.
29730         (_version): Rename from "version".
29731
29732 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29733             Bruno Haible  <bruno@clisp.org>
29734
29735         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
29736         rpl_close.
29737         (_gl_register_fd): New function, extracted from rpl_open.
29738         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
29739         (rpl_open, rpl_opendir): Use _gl_register_fd.
29740
29741 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29742
29743         Fix organization of 'open' replacement.
29744         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
29745         (gl_FUNC_OPEN): Use it.
29746         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
29747
29748 2008-10-08  Bruno Haible  <bruno@clisp.org>
29749
29750         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
29751
29752 2008-10-08  Simon Josefsson  <simon@josefsson.org>
29753
29754         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
29755         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
29756         listen).
29757
29758 2008-10-08  Eric Blake  <ebb9@byu.net>
29759
29760         GNUmakefile: add 'make version' target
29761         * top/GNUmakefile (_curr-ver): Split version update rules...
29762         (version): ...into a target.
29763
29764 2008-10-07  Bruno Haible  <bruno@clisp.org>
29765
29766         Use a more portable replacement expression for -0.0L.
29767         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
29768         instead of -0.0L. Fix m4 quotation.
29769
29770         * tests/test-signbit.c: Include <float.h>.
29771         (minus_zero): New variable.
29772         (test_signbitl): Use minus_zero instead of -zero.
29773         * modules/signbit-tests (Depends-on): Add float.
29774
29775         * tests/test-ceill.c: Include <float.h>.
29776         (zero): Remove variable.
29777         (minus_zero): New variable.
29778         (main): Use minus_zero instead of -zero.
29779         * modules/ceill-tests (Depends-on): Add float.
29780
29781         * tests/test-floorl.c: Include <float.h>.
29782         (zero): Remove variable.
29783         (minus_zero): New variable.
29784         (main): Use minus_zero instead of -zero.
29785         * modules/floorl-tests (Depends-on): Add float.
29786
29787         * tests/test-roundl.c: Include <float.h>.
29788         (zero): Remove variable.
29789         (minus_zero): New variable.
29790         (main): Use minus_zero instead of -zero.
29791         * modules/roundl-tests (Depends-on): Add float.
29792
29793         * tests/test-truncl.c: Include <float.h>.
29794         (zero): Remove variable.
29795         (minus_zero): New variable.
29796         (main): Use minus_zero instead of -zero.
29797         * modules/truncl-tests (Depends-on): Add float.
29798
29799         * tests/test-frexpl.c (zero): Remove variable.
29800         (minus_zero): New variable.
29801         (main): Use minus_zero instead of -zero.
29802         * modules/frexpl-tests (Depends-on): Add float.
29803
29804         * tests/test-isnan.c (zerol): Remove variable.
29805         (minus_zerol): New variable.
29806         (test_long_double): Use minus_zerol instead of -zerol.
29807         * modules/isnan-tests (Depends-on): Add float.
29808
29809         * tests/test-isnanl.h (zero): Remove variable.
29810         (minus_zero): New variable.
29811         (main): Use minus_zero instead of -zero.
29812         * modules/isnanl-nolibm-tests (Depends-on): Add float.
29813         * modules/isnanl-tests (Depends-on): Add float.
29814
29815         * tests/test-ldexpl.c (zero): Remove variable.
29816         (minus_zero): New variable.
29817         (main): Use minus_zero instead of -zero.
29818         * modules/ldexpl-tests (Depends-on): Add float.
29819
29820         * tests/test-snprintf-posix.h (zerol): Remove variable.
29821         (minus_zerol): New variable.
29822         (test_function): Use minus_zerol instead of -zerol.
29823         * modules/snprintf-posix-tests (Depends-on): Add float.
29824         * modules/vsnprintf-posix-tests (Depends-on): Add float.
29825
29826         * tests/test-sprintf-posix.h (zerol): Remove variable.
29827         (minus_zerol): New variable.
29828         (test_function): Use minus_zerol instead of -zerol.
29829         * modules/sprintf-posix-tests (Depends-on): Add float.
29830         * modules/vsprintf-posix-tests (Depends-on): Add float.
29831
29832         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
29833         (minus_zerol): New variable.
29834         (test_function): Use minus_zerol instead of -zerol.
29835         * modules/vasnprintf-posix-tests (Depends-on): Add float.
29836
29837         * tests/test-vasprintf-posix.c (zerol): Remove variable.
29838         (minus_zerol): New variable.
29839         (test_function): Use minus_zerol instead of -zerol.
29840         * modules/vasprintf-posix-tests (Depends-on): Add float.
29841
29842 2008-10-07  Simon Josefsson  <simon@josefsson.org>
29843
29844         * MODULES.html.sh (Support for building documentation): Mention
29845         pmccabe2html.  Sort entries.
29846
29847         Add pmccabe2html module, from gnupdf.
29848         * build-aux/pmccabe.css: New file.
29849         * build-aux/pmccabe2html: New file.
29850         * m4/pmccabe2html.m4: New file.
29851         * modules/pmccabe2html: New file.
29852
29853 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
29854
29855         flock: new module
29856         * MODULES.html.sh: Add to list of modules.
29857         * lib/flock.c: flock implementation for Windows and Unix systems
29858         which have fcntl.
29859         * doc/glibc-functions/flock.texi: Update documentation.
29860         * lib/sys_file.in.h: <sys/file.h> header file.
29861         * m4/flock.m4: M4 macros.
29862         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
29863         * modules/flock: flock module.
29864         * modules/flock-tests: flock tests module.
29865         * modules/sys_file: sys/file.h module.
29866         * tests/test-flock.c: test suite for flock.
29867
29868 2008-10-06  Jim Meyering  <meyering@redhat.com>
29869
29870         bootstrap: check for LT_INIT more portably still ;-)
29871         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
29872         Spotted by Bruno Haible.
29873
29874 2008-10-06  Eric Blake  <ebb9@byu.net>
29875
29876         test-signbit: avoid tripping Irix cc bug on -0.0L
29877         * tests/test-signbit.c (minus_zerol): Delete, and replace with
29878         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
29879         entire testsuite consistent and avoids an Irix 6.2 bug.
29880
29881 2008-10-05  Bruno Haible  <bruno@clisp.org>
29882             Jim Meyering  <jim@meyering.net>
29883
29884         Add an option for ignoring EPIPE during close_stdout.
29885         * lib/closeout.h: Include <stdbool.h>.
29886         (close_stdout_set_ignore_EPIPE): New declaration.
29887         * lib/closeout.c: Include <stdbool.h>.
29888         (ignore_EPIPE): New variable.
29889         (close_stdout_set_ignore_EPIPE): New function.
29890         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
29891         * lib/close-stream.c (close_stream): Mention the possible EPIPE
29892         failure.
29893         * modules/closeout (Depends-on): Add stdbool.
29894
29895 2008-10-05  Bruno Haible  <bruno@clisp.org>
29896
29897         * modules/accept: New file.
29898         * modules/bind: New file.
29899         * modules/connect: New file.
29900         * modules/getpeername: New file.
29901         * modules/getsockname: New file.
29902         * modules/getsockopt: New file.
29903         * modules/listen: New file.
29904         * modules/recv: New file.
29905         * modules/recvfrom: New file.
29906         * modules/send: New file.
29907         * modules/sendto: New file.
29908         * modules/setsockopt: New file.
29909         * modules/socket: New file.
29910         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
29911         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29912         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
29913         the particular module is requested. Add a link warning when the
29914         particular module is not requested.
29915         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
29916         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
29917         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
29918         the particular module is requested.
29919         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
29920         gl_SYS_SOCKET_H_DEFAULTS): New macros.
29921         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
29922         * modules/sys_socket (Depends-on): Add link-warning.
29923         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
29924         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
29925         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
29926         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
29927         GL_LINK_WARNING.
29928         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
29929         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
29930         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
29931         * doc/posix-functions/getpeername.texi: Mention the new module
29932         'getpeername'.
29933         * doc/posix-functions/getsockname.texi: Mention the new module
29934         'getsockname'.
29935         * doc/posix-functions/getsockopt.texi: Mention the new module
29936         'getsockopt'.
29937         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
29938         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
29939         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
29940         * doc/posix-functions/send.texi: Mention the new module 'send'.
29941         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
29942         * doc/posix-functions/setsockopt.texi: Mention the new module
29943         'setsockopt'.
29944         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
29945         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
29946         listen, connect, accept.
29947         * modules/select-tests (Depends-on): Likewise.
29948
29949 2008-10-05  Bruno Haible  <bruno@clisp.org>
29950
29951         * lib/winsock.c (strerror): Remove unused #undef.
29952         (rpl_close): Remove unused local variable.
29953
29954         * modules/sys_socket (Depends-on); Add errno.
29955
29956 2008-10-05  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
29959         (select): Add a link warning when the 'select' module is not used.
29960         * modules/sys_select (Depends-on): Add link-warning.
29961         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
29962         Suggested by Paolo Bonzini.
29963
29964 2008-10-05  Jim Meyering  <meyering@redhat.com>
29965
29966         bootstrap: check for LT_INIT more portably
29967         * build-aux/bootstrap: Avoid using grep -E, since it's not
29968         portable enough.  Suggestion from Bruno Haible.
29969
29970 2008-10-05  Bruno Haible  <bruno@clisp.org>
29971
29972         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
29973         as being fixed by gnulib.
29974
29975 2008-10-05  Bruno Haible  <bruno@clisp.org>
29976
29977         * modules/select-tests: New file, mostly copied from
29978         modules/sys_select-tests.
29979         * tests/test-select.c: New file, mostly copied from
29980         tests/test-sys_select.c.
29981         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
29982         * modules/sys_select-tests (Depends-on): Remove all dependencies.
29983         (Makefile.am): Remove test_sys_select_LDADD.
29984
29985         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
29986         to an undefined symbol, for an error message.
29987         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
29988         (gl_SYS_SELECT_H_DEFAULTS): New macro.
29989         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
29990         winsock-select.c here.
29991         * modules/sys_select (Files): Remove lib/winsock-select.c.
29992         (Depends-on): Remove alloca.
29993         (Makefile.am): Substitute GNULIB_SELECT.
29994         * modules/select: New file.
29995         * doc/posix-functions/select.texi: Update.
29996
29997 2008-10-05  Bruno Haible  <bruno@clisp.org>
29998
29999         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30000         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30001         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30002         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30003         getdtablesize.
30004         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30005         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30006
30007 2008-10-05  Bruno Haible  <bruno@clisp.org>
30008
30009         * modules/getdtablesize-tests: New file.
30010         * tests/test-getdtablesize.c: New file.
30011
30012         New module 'getdtablesize'.
30013         * lib/unistd.in.h (getdtablesize): New declaration.
30014         * lib/getdtablesize.c: New file.
30015         * m4/getdtablesize.m4: New file.
30016         * modules/getdtablesize: New file.
30017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30018         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30019         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30020         HAVE_GETDTABLESIZE.
30021         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30022
30023 2008-10-05  Bruno Haible  <bruno@clisp.org>
30024
30025         * modules/sched (Makefile.am): Fix typo.
30026         Reported by Simon Josefsson.
30027
30028 2008-10-05  Jim Meyering  <meyering@redhat.com>
30029
30030         bootstrap: check for LT_INIT, too
30031         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30032         are deprecated.  Suggestion from Ralf Wildenhues.
30033
30034 2008-10-05  Bruno Haible  <bruno@clisp.org>
30035
30036         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30037         overriding them by ours.
30038         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30039
30040 2008-10-05  Jim Meyering  <meyering@redhat.com>
30041
30042         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30043         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30044         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30045
30046 2008-10-04  Bruno Haible  <bruno@clisp.org>
30047
30048         * modules/dup2 (License): Change to LGPLv2+.
30049         * modules/sleep (License): Likewise.
30050         * modules/perror (License): Likewise.
30051         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30052         Blake.
30053         * modules/signal (License): Likewise.
30054         * modules/sigprocmask (License): Likewise.
30055         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30056         Meyering.
30057
30058 2008-10-04  Bruno Haible  <bruno@clisp.org>
30059
30060         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30061         Reported by Rainer Tammer <tammer@tammer.net>.
30062
30063 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30064             Bruno Haible  <bruno@clisp.org>
30065
30066         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30067         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30068         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30069
30070 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30071
30072         filevercmp: new module
30073         * lib/filevercmp.h: New function filevercmp comparing version strings.
30074         * lib/filevercmp.c: Implementation of filevercmp function.
30075         * modules/filevercmp: Module metadata.
30076         * tests/test-filevercmp.c: Unit test for new module.
30077         * modules/filevercmp-tests: Unit test metadata.
30078         * MODULES.html.sh: Add filevercmp module.
30079
30080 2008-10-03  Bruno Haible  <bruno@clisp.org>
30081
30082         * lib/c-ctype.h: Add comment.
30083         Reported by Jim Meyering.
30084
30085 2008-10-02  Bruno Haible  <bruno@clisp.org>
30086
30087         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30088
30089 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30090
30091         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30092         name of bootstrap.conf accordingly.
30093
30094 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30095
30096         * build-aux/bootstrap: Install git-merge-changelog configuration
30097         items into .gitconfig if needed.
30098
30099 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30100
30101         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30102         git repository, and initialize/update it accordingly.
30103
30104 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30105
30106         * modules/fsync-tests: New file.
30107         * tests/test-fsync.c: New file.
30108
30109         New module 'fsync'.
30110         * lib/fsync.c: New file.
30111         * m4/fsync.m4: New file.
30112         * modules/fsync: New file.
30113         * lib/unistd.in.h (fsync): New declaration.
30114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30115         GNULIB_FSYNC and HAVE_FSYNC.
30116         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30117         * MODULES.html.sh (posix_functions): Add fsync.
30118         * doc/posix-functions/fsync.texi: Mention the new module.
30119
30120 2008-10-02  Jim Meyering  <meyering@redhat.com>
30121
30122         fts.c: sync with similar code from coreutils' remove.c
30123         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30124         Guard also with "#if defined __linux__", since for now at least,
30125         this code is Linux-kernel-specific.
30126
30127 2008-10-02  Jim Meyering  <meyering@redhat.com>
30128
30129         fts: bug fixes
30130         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30131         Include <sys/vfs.h>, not <sys/statfs.h>.
30132
30133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30134         Include <sys/vfs.h>, not <sys/statfs.h>.
30135
30136 2008-10-01  Bruno Haible  <bruno@clisp.org>
30137
30138         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30139         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30140         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30141         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30142         * doc/posix-functions/posix_spawnp.texi: Likewise.
30143         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30144         whether posix_spawn actually works.
30145         * m4/pipe.m4 (gl_PIPE): Likewise.
30146         * modules/execute (Files): Add m4/posix_spawn.m4.
30147         * modules/pipe (Files): Add m4/posix_spawn.m4.
30148         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30149
30150 2008-10-01  Jim Meyering  <meyering@redhat.com>
30151
30152         remove trailing spaces
30153         * NEWS: Likewise.
30154         * lib/poll.c (poll): Likewise.
30155         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30156         * lib/winsock.c (rpl_close): Likewise.
30157         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30158         * modules/yield: Likewise.
30159         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30160         * tests/test-sys_select.c (connect_to_socket): Likewise.
30161
30162         fts.c: adjust a new interface to be more generally useful
30163         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30164         (fts_build): Adjust caller.
30165
30166 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30167
30168         * modules/cond-tests: New file.
30169         * tests/test-cond.c: New file.
30170
30171 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30172             Bruno Haible  <bruno@clisp.org>
30173
30174         * modules/cond (Dependencies): Add errno, time.
30175         * lib/glthread/cond.h: Include <time.h>.
30176         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30177         across platforms.
30178
30179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30180             Bruno Haible  <bruno@clisp.org>
30181
30182         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30183
30184 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30185             Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/tls-tests (Depends-on): Add thread, yield.
30188         (configure.ac): Remove all checks.
30189         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30190         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30191         gl_thread_self): Remove definitions. Include glthread/thread.h and
30192         glthread/yield.h instead.
30193         (test_tls): Pass an additional NULL argument to gl_thread_join.
30194
30195 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30196             Bruno Haible  <bruno@clisp.org>
30197
30198         * modules/lock-tests (Depends-on): Add thread, yield.
30199         (configure.ac): Remove all checks.
30200         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30201         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30202         gl_thread_self): Remove definitions. Include glthread/thread.h and
30203         glthread/yield.h instead.
30204         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30205         additional NULL argument to gl_thread_join.
30206
30207 2008-09-30  Bruno Haible  <bruno@clisp.org>
30208
30209         Fix the Win32 implementation of the 'thread' module.
30210         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30211         pointer type.
30212         (gl_thread_self): Invoke gl_thread_self_func.
30213         (gl_thread_self_func): New declaration.
30214         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30215         (do_init_self_key, init_self_key): New functions.
30216         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30217         Remove some fields.
30218         (running_threads, running_lock): Remove variables.
30219         (get_current_thread_handle): New function.
30220         (gl_thread_self_func, wrapper_func, glthread_create_func,
30221         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30222         simplified.
30223
30224 2008-09-30  Bruno Haible  <bruno@clisp.org>
30225
30226         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30227         files.
30228
30229 2008-09-30  Jim Meyering  <meyering@redhat.com>
30230
30231         fts.m4: correct the test for statfs.f_type
30232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30233         when checking for statfs.f_type.
30234
30235 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30236
30237         tests: avoid some compiler warnings
30238         * tests/test-memchr.c (main): Pass NULL indirectly.
30239         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30240
30241 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30242
30243         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30244         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30245         exactly specified dayshifts.
30246         (dayshift): New rule.
30247         (rel): Add dayshift.
30248         (relative_time_table) [tomorrow, yesterday, today, now]:
30249         Use tDAY_SHIFT in place of tDAY_UNIT.
30250         * tests/test-getdate.c: Add tests for now-disallowed countable
30251         dayshifts, e.g., "4 yesterday ago".
30252
30253 2008-09-29  Bruno Haible  <bruno@clisp.org>
30254
30255         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30256         * tests/test-posix_spawn1.in.sh: Renamed from
30257         tests/test-posix_spawn.in.sh.
30258         * tests/test-posix_spawn2.c: New file.
30259         * tests/test-posix_spawn2.in.sh: New file.
30260         * modules/posix_spawnp-tests (Files): Update.
30261         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30262
30263 2008-09-29  Bruno Haible  <bruno@clisp.org>
30264
30265         Propagate effects of putenv/setenv/unsetenv to child processes.
30266         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30267         * lib/pipe.c (create_pipe): Likewise.
30268
30269 2008-09-29  Bruno Haible  <bruno@clisp.org>
30270
30271         Enable use of shell scripts as executables in mingw.
30272         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30273         run the program as a shell script.
30274         * lib/pipe.c (create_pipe): Likewise.
30275         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30276         resulting array.
30277
30278 2008-09-29  Eric Blake  <ebb9@byu.net>
30279
30280         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30281
30282 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30283
30284         * doc/posix-functions/accept.texi: Update mingw problems.
30285         * doc/posix-functions/bind.texi: Update mingw problems.
30286         * doc/posix-functions/close.texi: Update mingw problems.
30287         * doc/posix-functions/connect.texi: Update mingw problems.
30288         * doc/posix-functions/getpeername.texi: Update mingw problems.
30289         * doc/posix-functions/getsockname.texi: Update mingw problems.
30290         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30291         * doc/posix-functions/ioctl.texi: Update mingw problems.
30292         * doc/posix-functions/listen.texi: Update mingw problems.
30293         * doc/posix-functions/recv.texi: Update mingw problems.
30294         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30295         * doc/posix-functions/select.texi: Update mingw problems.
30296         * doc/posix-functions/send.texi: Update mingw problems.
30297         * doc/posix-functions/sendto.texi: Update mingw problems.
30298         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30299         * doc/posix-functions/socket.texi: Update mingw problems.
30300
30301 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30302             Bruno Haible  <bruno@clisp.org>
30303
30304         * lib/sys_select.in.h: Include sys/time.h.
30305         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30306         * modules/sys_select: Depend on sys_time.
30307         * tests/test-sys_select.c: Test that sys/select.h defines struct
30308         timeval fully.
30309
30310 2008-09-29  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30313         * lib/sys_select.in.h: Likewise.
30314
30315 2008-09-29  Bruno Haible  <bruno@clisp.org>
30316
30317         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30318
30319 2008-09-29  Bruno Haible  <bruno@clisp.org>
30320
30321         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30322         Set LIBSOCKET instead of augmenting LIBS.
30323         * modules/sockets (Link): New section.
30324         * modules/sockets-tests (test_sockets_LDADD): New variable.
30325         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30326         * modules/poll-tests (test_poll_LDADD): New variable.
30327         * NEWS: Document the change.
30328
30329 2008-09-29  Bruno Haible  <bruno@clisp.org>
30330
30331         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30332         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30333         ARPA_INET_H directly.
30334         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30335
30336 2008-09-28  Bruno Haible  <bruno@clisp.org>
30337
30338         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30339         from gl_HEADER_SYS_SOCKET.
30340         (gl_HEADER_SYS_SOCKET): Invoke it.
30341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30342
30343 2008-09-28  Bruno Haible  <bruno@clisp.org>
30344
30345         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30346         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30347         Needed on OSF/1 4.0.
30348
30349 2008-09-28  Bruno Haible  <bruno@clisp.org>
30350
30351         Override open more carefully.
30352         * lib/open.c (orig_open): New function.
30353         (rpl_open): Use orig_open instead of open.
30354         * lib/fcntl.in.h: Add special invocation convention.
30355         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30356         (gl_FUNC_OPEN): Invoke it.
30357
30358         Override freopen more carefully.
30359         * lib/freopen.c (orig_freopen): New function.
30360         (rpl_freopen): Use orig_freopen instead of freopen.
30361         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30362         (gl_FUNC_FREOPEN): Invoke it.
30363
30364         Override fopen more carefully.
30365         * lib/fopen.c (orig_fopen): New function.
30366         (rpl_fopen): Use orig_fopen instead of fopen.
30367         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30368         (gl_FUNC_FOPEN): Invoke it.
30369         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30370
30371 2008-09-28  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30374         SIGPIPE.
30375
30376 2008-09-28  Bruno Haible  <bruno@clisp.org>
30377
30378         * tests/test-sigaction.c (handler, main): Disable the check whether
30379         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30380         glibc systems with LinuxThreads.
30381
30382 2008-09-28  Bruno Haible  <bruno@clisp.org>
30383
30384         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30385
30386         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30387         with AIX xlc.
30388         * lib/fcntl.in.h (open): Likewise.
30389         Reported by Rainer Tammer <tammer@tammer.net>.
30390
30391 2008-09-28  Bruno Haible  <bruno@clisp.org>
30392
30393         * modules/posix_spawnp-tests: New file.
30394         * tests/test-posix_spawn.c: New file.
30395         * tests/test-posix_spawn.in.sh: New file.
30396
30397         New module 'posix_spawnp'.
30398         * modules/posix_spawnp: New file.
30399         * lib/spawnp.c: New file, from GNU libc with modifications.
30400         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30401
30402         New module 'posix_spawn'.
30403         * modules/posix_spawn: New file.
30404         * lib/spawn.c: New file, from GNU libc with modifications.
30405         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30406
30407         New module 'posix_spawnattr_destroy'.
30408         * modules/posix_spawnattr_destroy: New file.
30409         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30410         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30411         module.
30412
30413         New module 'posix_spawnattr_setsigmask'.
30414         * modules/posix_spawnattr_setsigmask: New file.
30415         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30416         modifications.
30417         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30418         new module.
30419
30420         New module 'posix_spawnattr_getsigmask'.
30421         * modules/posix_spawnattr_getsigmask: New file.
30422         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30423         modifications.
30424         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30425         new module.
30426
30427         New module 'posix_spawnattr_setsigdefault'.
30428         * modules/posix_spawnattr_setsigdefault: New file.
30429         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30430         modifications.
30431         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30432         new module.
30433
30434         New module 'posix_spawnattr_getsigdefault'.
30435         * modules/posix_spawnattr_getsigdefault: New file.
30436         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30437         modifications.
30438         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30439         new module.
30440
30441         New module 'posix_spawnattr_setschedpolicy'.
30442         * modules/posix_spawnattr_setschedpolicy: New file.
30443         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30444         modifications.
30445         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30446         new module.
30447
30448         New module 'posix_spawnattr_getschedpolicy'.
30449         * modules/posix_spawnattr_getschedpolicy: New file.
30450         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30451         modifications.
30452         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30453         new module.
30454
30455         New module 'posix_spawnattr_setschedparam'.
30456         * modules/posix_spawnattr_setschedparam: New file.
30457         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30458         modifications.
30459         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30460         new module.
30461
30462         New module 'posix_spawnattr_getschedparam'.
30463         * modules/posix_spawnattr_getschedparam: New file.
30464         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
30465         modifications.
30466         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
30467         new module.
30468
30469         New module 'posix_spawnattr_setpgroup'.
30470         * modules/posix_spawnattr_setpgroup: New file.
30471         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
30472         modifications.
30473         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
30474         module.
30475
30476         New module 'posix_spawnattr_getpgroup'.
30477         * modules/posix_spawnattr_getpgroup: New file.
30478         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
30479         modifications.
30480         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
30481         module.
30482
30483         New module 'posix_spawnattr_setflags'.
30484         * modules/posix_spawnattr_setflags: New file.
30485         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
30486         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
30487         module.
30488
30489         New module 'posix_spawnattr_getflags'.
30490         * modules/posix_spawnattr_getflags: New file.
30491         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
30492         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
30493         module.
30494
30495         New module 'posix_spawnattr_init'.
30496         * modules/posix_spawnattr_init: New file.
30497         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
30498         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
30499         module.
30500
30501         New module 'posix_spawn_file_actions_destroy'.
30502         * modules/posix_spawn_file_actions_destroy: New file.
30503         * lib/spawn_faction_destroy.c: New file, from GNU libc with
30504         modifications.
30505         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
30506         the new module.
30507
30508         New module 'posix_spawn_file_actions_addopen'.
30509         * modules/posix_spawn_file_actions_addopen: New file.
30510         * lib/spawn_faction_addopen.c: New file, from GNU libc with
30511         modifications.
30512         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
30513         the new module.
30514
30515         New module 'posix_spawn_file_actions_adddup2'.
30516         * modules/posix_spawn_file_actions_adddup2: New file.
30517         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
30518         modifications.
30519         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
30520         the new module.
30521
30522         New module 'posix_spawn_file_actions_addclose'.
30523         * modules/posix_spawn_file_actions_addclose: New file.
30524         * lib/spawn_faction_addclose.c: New file, from GNU libc with
30525         modifications.
30526         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
30527         the new module.
30528
30529         New module 'posix_spawn_file_actions_init'.
30530         * modules/posix_spawn_file_actions_init: New file.
30531         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
30532         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
30533         new module.
30534
30535         New module 'posix_spawn-internal'.
30536         * modules/posix_spawn-internal: New file.
30537         * lib/spawn_int.h: New file, from GNU libc with modifications.
30538         * lib/spawni.c: New file, from GNU libc with modifications.
30539         * m4/posix_spawn.m4: New file.
30540
30541         New module 'spawn'.
30542         * modules/spawn: New file.
30543         * lib/spawn.in.h: New file, from GNU libc with modifications.
30544         * m4/spawn_h.m4: New file.
30545         * doc/posix-headers/spawn.texi: Mention the new module.
30546
30547 2008-09-28  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/sched-tests: New file.
30550         * tests/test-sched.c: New file.
30551
30552         New module 'sched'.
30553         * modules/sched: New file.
30554         * lib/sched.in.h: New file.
30555         * m4/sched_h.m4: New file.
30556         * doc/posix-headers/sched.texi: Mention the new module.
30557
30558 2008-09-27  Eric Blake  <ebb9@byu.net>
30559
30560         Fix previous patch, and tweak references to $0.
30561         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
30562         (func_version, func_gnulib_dir): Don't call this program
30563         gnulib-tool.
30564         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
30565         with using $0 in function.
30566         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
30567         (func_fatal_error): Reuse the name the user invoked us with.
30568
30569 2008-09-27  Bruno Haible  <bruno@clisp.org>
30570
30571         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
30572         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
30573         (gl_ICONV_H): Not here.
30574         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30575         instead of assigning ICONV_H directly.
30576
30577         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
30578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
30579         WCHAR_H directly.
30580
30581 2008-09-27  Bruno Haible  <bruno@clisp.org>
30582
30583         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
30584         * modules/arpa_inet (Depends-on): Add link-warning.
30585         (Makefile.am): Insert the definition of GL_LINK-WARNING.
30586         * modules/unistd (Makefile.am): Likewise.
30587
30588 2008-09-26  Bruno Haible  <bruno@clisp.org>
30589
30590         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
30591         variables.
30592         (func_version): Essentially copied from gnulib-tool.
30593         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
30594         func_readlink): Copied from gnulib-tool.
30595
30596 2008-09-26  Bruno Haible  <bruno@clisp.org>
30597
30598         * gnulib-tool (func_version): Change directory to $gnulib_dir before
30599         invoking git-version-gen.
30600
30601 2008-09-26  Bruno Haible  <bruno@clisp.org>
30602
30603         * posix-modules: Update to directory names changed on 2008-01-19.
30604         Remove commas in output before splitting into words. No more need to
30605         avoid 'ftruncate' since 2007-02-19.
30606
30607 2008-09-26  Bruno Haible  <bruno@clisp.org>
30608
30609         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
30610
30611 2008-09-26  Bruno Haible  <bruno@clisp.org>
30612
30613         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
30614         * modules/fwriteerror (Depends-on): Add errno.
30615
30616 2008-09-26  Bruno Haible  <bruno@clisp.org>
30617
30618         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
30619         * tests/test-vc-list-files-cvs.sh: Likewise.
30620
30621 2008-09-26  Bruno Haible  <bruno@clisp.org>
30622
30623         * doc/posix-headers/sys_resource.texi: Reorder items.
30624
30625 2008-09-26  Jim Meyering  <meyering@redhat.com>
30626
30627         fts: tweak inode comparison function
30628         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
30629         inode numbers, as documented.
30630
30631         fts: sort dirent entries on inode number before traversing
30632         This avoids a quadratic, seek-related performance penalty when
30633         operating on a directory containing many entries (measurable at 10k;
30634         3.5 hours at 2 million entries with a cold cache) on certain types
30635         of file systems, including ext3 and ext4, but not tmpfs.
30636         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
30637         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
30638         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
30639         (fs_handles_readdir_ordered_dirents_efficiently): New function.
30640         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
30641         (fts_build): Set the stat.st_ino member from D_INO.
30642         If it is likely to be useful, sort dirent entries on inode number.
30643
30644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
30645         and the struct statfs.f_type member.
30646         * modules/fts (Depends-on): Add d-ino.
30647
30648 2008-09-26  Bruno Haible  <bruno@clisp.org>
30649
30650         * modules/sigpipe-die (Depends-on): Add sigpipe.
30651
30652         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
30653         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
30654         and GNULIB_STDIO_H_SIGPIPE are set.
30655         * lib/stdio-write.c: New file.
30656         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
30657         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30658         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30659         REPLACE_STDIO_WRITE_FUNCS.
30660         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
30661         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30662         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30663         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30664         * modules/stdio (Files): Add lib/stdio-write.c.
30665         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
30666         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30667         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30668         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30669         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
30670         REPLACE_FPRINTF_POSIX.
30671         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
30672         REPLACE_PRINTF_POSIX.
30673         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
30674         REPLACE_VFPRINTF_POSIX.
30675         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
30676         REPLACE_VPRINTF_POSIX.
30677         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
30678         SIGPIPE issue.
30679         * doc/posix-functions/fputc.texi: Likewise.
30680         * doc/posix-functions/fputs.texi: Likewise.
30681         * doc/posix-functions/fwrite.texi: Likewise.
30682         * doc/posix-functions/printf.texi: Likewise.
30683         * doc/posix-functions/putc.texi: Likewise.
30684         * doc/posix-functions/putchar.texi: Likewise.
30685         * doc/posix-functions/puts.texi: Likewise.
30686         * doc/posix-functions/vfprintf.texi: Likewise.
30687         * doc/posix-functions/vprintf.texi: Likewise.
30688
30689         * modules/safe-write (Depends-on): Add write.
30690
30691         * modules/sigpipe-tests: New file.
30692         * tests/test-sigpipe.c: New file.
30693         * tests/test-sigpipe.sh: New file.
30694
30695         * modules/write: New file.
30696         * lib/unistd.in.h: Include <sys/types.h>.
30697         (write): New declaration.
30698         * lib/write.c: New file.
30699         * m4/write.m4: New file.
30700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30701         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
30702         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
30703         GNULIB_WRITE, REPLACE_WRITE.
30704         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
30705         and the SIGPIPE issue.
30706
30707         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
30708         (raise): New declaration.
30709         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
30710         (ext_signal): New function.
30711         (rpl_raise): New function.
30712         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30713         GNULIB_SIGNAL_H_SIGPIPE.
30714         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
30715         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
30716
30717         * modules/sigpipe: New file.
30718         * m4/sigpipe.m4: New file.
30719
30720 2008-09-25  Derek Price  <derek@ximbiot.com>
30721             Bruno Haible  <bruno@clisp.org>
30722
30723         * gnulib-tool (func_import): Report all license incompatibilities, not
30724         just the first one.
30725
30726 2008-09-25  Bruno Haible  <bruno@clisp.org>
30727
30728         * gnulib-tool (func_import): When computing the edits, consider not
30729         only the Makefile.ams that exist but also those that will be generated.
30730
30731 2008-09-25  Simon Josefsson  <simon@josefsson.org>
30732
30733         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
30734         fixes gnulib-tool --test warning about duplicate dependency.
30735
30736 2008-09-25  Bruno Haible  <bruno@clisp.org>
30737
30738         * gnulib-tool: Don't ask the user to perform edits in the generated
30739         Makefile.ams.
30740         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
30741         apply to the Makefile.am being generated.
30742         (func_emit_tests_Makefile_am): Execute edits that apply to the
30743         Makefile.am being generated.
30744         (func_import): Setup list of Makefile.am edits before emitting the
30745         Makefile.ams, not at the end.
30746         (func_create_testdir): Update.
30747         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30748
30749 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30750
30751         * gnulib-tool (func_import): Store the --tests-base option in the
30752         comment in gnulib-cache.m4.
30753
30754 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
30755
30756         * NEWS: Document increased portability that sys_select now provides.
30757
30758         * lib/sys_select.in.h: Install select wrapper.
30759         * lib/sys_socket.in.h: Use more descriptive name when there is no
30760         select wrapper.
30761         * lib/winsock-select.c: New.
30762         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
30763         Require gl_HEADER_SYS_SOCKET.
30764         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
30765         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
30766         * tests/test-sys_select.c: Add functional tests.
30767
30768 2008-09-24  Eric Blake  <ebb9@byu.net>
30769
30770         open, fopen: close fd leak in last patch
30771         * lib/open.c (rpl_open): Close fd before returning error.
30772         * lib/fopen.c (rpl_fopen): Close fd before returning error.
30773         * doc/posix-functions/open.texi (open): Document that Irix also
30774         has the bug.
30775         * doc/posix-functions/fopen.texi (fopen): Likewise.
30776         Reported by Paolo Bonzini.
30777
30778 2008-09-24  Bruno Haible  <bruno@clisp.org>
30779
30780         Ensure that a filename ending in a slash cannot be used to access a
30781         non-directory.
30782         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
30783         to check whether it's really a directory.
30784         * lib/fopen.c: Include fcntl.h, unistd.h.
30785         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
30786         and fdopen().
30787         * modules/fopen (Depends-on): Add unistd.
30788         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
30789         * tests/test-fopen.c (main): Likewise.
30790         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
30791         * doc/posix-functions/fopen.texi: Likewise.
30792         Reported by Eric Blake.
30793
30794 2008-09-23  Eric Blake  <ebb9@byu.net>
30795
30796         c-stack: avoid compiler optimizations when provoking overflow
30797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
30798         recursion harder to optimize, to ensure a stack overflow occurs.
30799         * tests/test-c-stack.c (recurse): Likewise.
30800         Borrowed from libsigsegv.
30801
30802         c-stack: work around Irix sigaltstack bug
30803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
30804         whether sigaltstack uses wrong end of stack_t (copied in part from
30805         libsigsegv).
30806         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
30807         Irix bug, without requiring an over-allocation.
30808         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
30809         bug.
30810
30811         fopen: document mingw bug on directories
30812         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
30813         not allowing a stream visiting a directory, even though reading
30814         from such a stream is not portable.
30815
30816 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30817
30818         * lib/poll.c: Rewrite.
30819         * modules/poll: Depend on alloca.
30820
30821 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30822
30823         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
30824         instead define prototypes for a full set of wrappers.  Ensure
30825         that Cygwin does not use the compatibility code, which is only
30826         for MinGW.
30827         * lib/winsock.c: New.
30828         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
30829         * modules/sys_socket: Add lib/winsock.c.
30830
30831         * modules/poll-tests: Add errno and perror.
30832         * tests/test-poll.c: Use ioctl, not ioctlsocket.
30833
30834 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30835
30836         * tests/test-poll.c: Downgrade minimum needed Winsock version.
30837
30838 2008-09-23  Bruno Haible  <bruno@clisp.org>
30839
30840         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
30841         * doc/glibc-functions/*: Likewise.
30842
30843 2008-09-23  Simon Josefsson  <simon@josefsson.org>
30844
30845         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
30846         success.
30847
30848 2008-09-22  Eric Blake  <ebb9@byu.net>
30849             Bruno Haible  <bruno@clisp.org>
30850
30851         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
30852         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
30853         supply %A but mishandle pseudo-NaN.
30854         Reported by Simon Josefsson.
30855
30856 2008-09-21  Bruno Haible  <bruno@clisp.org>
30857
30858         * tests/test-lock.c (main): Tweak skip message.
30859         * tests/test-tls.c (main): Likewise.
30860
30861 2008-09-21  Bruno Haible  <bruno@clisp.org>
30862
30863         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
30864         whether 'struct sigaction' has sa_sigaction here...
30865         (gl_PREREQ_SIG_HANDLER_H): ... not here.
30866         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
30867
30868 2008-09-21  Bruno Haible  <bruno@clisp.org>
30869
30870         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
30871         section.
30872         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
30873         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
30874         the new section.
30875         (Support for obsolete systems lacking POSIX:2001): New section.
30876         (String handling <string.h>): Move strdup to the new section.
30877         Suggested by Simon Josefsson and Paolo Bonzini.
30878
30879 2008-09-21  Bruno Haible  <bruno@clisp.org>
30880
30881         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
30882         exponents in %e and %g results on 'long double'. Needed for mingw's
30883         improved *printf functions.
30884         * tests/test-vasprintf-posix.c (test_function): Likewise.
30885         * tests/test-snprintf-posix.h (test_function): Likewise.
30886         * tests/test-sprintf-posix.h (test_function): Likewise.
30887         Reported by Eric Blake.
30888
30889 2008-09-21  Bruno Haible  <bruno@clisp.org>
30890
30891         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
30892         * tests/test-sprintf-posix.h (test_function): Likewise.
30893
30894 2008-09-21  Bruno Haible  <bruno@clisp.org>
30895
30896         * modules/getpass (Depends-on): Add strdup-posix.
30897
30898         New module 'strdup-posix'.
30899         * modules/strdup-posix: New file.
30900         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
30901         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
30902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30903         REPLACE_STRDUP.
30904         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
30905         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
30906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30907         strdup-posix.
30908
30909         * modules/strdup (Depends-on): Remove malloc-posix.
30910
30911 2008-09-20  Bruno Haible  <bruno@clisp.org>
30912
30913         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
30914         Wildenhues.
30915
30916 2008-09-20  Bruno Haible  <bruno@clisp.org>
30917
30918         Ensure that wint_t gets defined on IRIX 5.3.
30919         * lib/wchar.in.h (wint_t): Define if not defined by the system.
30920         * lib/wctype.in.h (wint_t): Likewise.
30921         (__wctype_wint_t): Remove type.
30922         (isw*): Use wint_t instead of __wctype_wint_t.
30923         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
30924         * modules/wchar (Files): Add m4/wint_t.m4.
30925         (Makefile.am): Substitute HAVE_WINT_T.
30926         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
30927         * tests/test-wctype.c: Check that wint_t is defined.
30928         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
30929         * doc/posix-headers/wctype.texi: Likewise.
30930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30931
30932 2008-09-18  Bruno Haible  <bruno@clisp.org>
30933
30934         * gnulib-tool (func_exit): Update comment.
30935
30936 2008-09-18  Simon Josefsson  <simon@josefsson.org>
30937
30938         * modules/getaddrinfo (Depends-on): Remove strdup, this module
30939         assumes strdup exists and does not depend on strdup to return
30940         ENOMEM on out of memory conditions.
30941
30942 2008-09-18  Bruno Haible  <bruno@clisp.org>
30943
30944         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
30945         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
30946         digits for the exponent.
30947
30948 2008-09-18  Jim Meyering  <meyering@redhat.com>
30949             Bruno Haible  <bruno@clisp.org>
30950
30951         * lib/vasnprintf.c (decimal_point_char): Define also if
30952         NEED_PRINTF_INFINITE_LONG_DOUBLE.
30953
30954 2008-09-16  Bruno Haible  <bruno@clisp.org>
30955         and Eric Blake  <ebb9@byu.net>
30956
30957         vasnprintf: support Irix 5.3
30958         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
30959         that mishandle long double infinity.
30960         Reported by Tom G. Christensen.
30961
30962 2008-09-16  Bruno Haible  <bruno@clisp.org>
30963
30964         * doc/glibc-functions/scandir.texi: Mention the function is missing on
30965         Solaris 9.
30966         * doc/glibc-functions/alphasort.texi: Likewise.
30967         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
30968
30969 2008-09-16  Jim Meyering  <meyering@redhat.com>
30970
30971         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
30972         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
30973         a umask modification leak out of a subshell.  Otherwise, the
30974         opensolaris /bin/sh would be accepted and thus cause unwarranted
30975         failures in the coreutils test suite.
30976
30977 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
30978
30979         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
30980         to succeed.
30981
30982 2008-09-16  Jim Meyering  <meyering@redhat.com>
30983
30984         avoid spurious test failure when library is built without ACL support
30985         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
30986         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
30987         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
30988         * tests/test-copy-acl.sh: Likewise.
30989
30990 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30991
30992         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
30993         based on character occurrence counts.
30994
30995 2008-09-15  Eric Blake  <ebb9@byu.net>
30996
30997         tests: avoid some compiler warnings
30998         * tests/test-memchr.c (main): Pass NULL indirectly.
30999         * tests/test-closein.c (main): Avoid unused variable.
31000
31001 2008-09-15  Bruno Haible  <bruno@clisp.org>
31002
31003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31004         are missing on OpenBSD 4.0 individually.
31005         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31006
31007 2008-09-15  Bruno Haible  <bruno@clisp.org>
31008
31009         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31010         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31011         * doc/posix-functions/perror.texi: Likewise.
31012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31013         is missing.
31014         Reported by Eric Blake.
31015
31016         * lib/errno.in.h: Use replacement values >= 2000.
31017         Reported by Eric Blake.
31018
31019 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31020
31021         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31022         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31023         limit.
31024         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31025         compareseq was aborted.
31026
31027 2008-09-14  Bruno Haible  <bruno@clisp.org>
31028
31029         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31030         yvec_edit_count.
31031         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31032         (fstrcmp_bounded): Simplify result computation accordingly.
31033
31034 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31035
31036         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31037         (fstrcmp): Define in terms of fstrcmp_bounded.
31038         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31039         lower_bound argument.
31040         Return quickly if the result is certainly < lower_bound.
31041         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31042
31043 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31044
31045         * lib/diffseq.h (EARLY_ABORT): New macro.
31046         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31047         evaluates to true.
31048
31049 2008-09-14  Bruno Haible  <bruno@clisp.org>
31050
31051         * modules/perror-tests: New file.
31052         * tests/test-perror.sh: New file.
31053         * tests/test-perror.c: New file.
31054
31055         New module 'perror'.
31056         * lib/stdio.in.h (perror): New declaration.
31057         * lib/perror.c: New file.
31058         * m4/perror.m4: New file.
31059         * modules/perror: New file.
31060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31061         * doc/posix-functions/perror.texi: Mention the perror module.
31062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31063         REPLACE_PERROR.
31064         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31065         REPLACE_PERROR.
31066
31067 2008-09-14  Bruno Haible  <bruno@clisp.org>
31068
31069         * modules/stdio (Makefile.am): Reorder to match the order in
31070         lib/stdio.in.h.
31071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31072
31073 2008-09-13  Bruno Haible  <bruno@clisp.org>
31074
31075         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31076
31077 2008-09-13  Bruno Haible  <bruno@clisp.org>
31078
31079         Extend strerror to cover the added errno values.
31080         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31081         (rpl_strerror): Provide error messages for the added errno values and
31082         for the WSA* values.
31083         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31084         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31085         strerror.
31086         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31087         * modules/strerror (Depends-on): Add errno.
31088         * doc/posix-functions/strerror.texi: Document the change.
31089         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31090         and EOVERFLOW.
31091
31092 2008-09-13  Bruno Haible  <bruno@clisp.org>
31093
31094         * modules/EOVERFLOW: Remove file.
31095         * m4/eoverflow.m4: Remove file.
31096         * modules/EOVERFLOW-tests: Remove file.
31097         * tests/test-EOVERFLOW.c: Remove file.
31098         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31099         * modules/ftell (Depends-on): Likewise.
31100         * modules/getdelim (Depends-on): Likewise.
31101         * modules/getugroups (Depends-on): Likewise.
31102         * modules/poll (Depends-on): Likewise.
31103         * modules/snprintf (Depends-on): Likewise.
31104         * modules/sprintf-posix (Depends-on): Likewise.
31105         * modules/vasnprintf (Depends-on): Likewise.
31106         * modules/vasprintf (Depends-on): Likewise.
31107         * modules/vfprintf-posix (Depends-on): Likewise.
31108         * modules/vsnprintf (Depends-on): Likewise.
31109         * modules/vsprintf-posix (Depends-on): Likewise.
31110         * modules/xvasprintf (Depends-on): Likewise.
31111         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31112         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31113         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31114         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31115         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31116         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31117         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31118         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31120         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31121         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31122         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31123         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31124         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31125         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31126         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31127         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31128         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31129         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31130         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31131         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31132         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31133         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31134         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31135         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31137         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31138         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31139         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31140         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31141         * MODULES.html.sh: Remove EOVERFLOW.
31142         * NEWS: Mention the change.
31143
31144 2008-09-13  Bruno Haible  <bruno@clisp.org>
31145
31146         * modules/errno-tests: New file.
31147         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31148
31149         * lib/errno.in.h: New file.
31150         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31151         * modules/errno: New file.
31152         * doc/posix-headers/errno.texi: Update documentation.
31153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31154
31155 2008-09-13  Bruno Haible  <bruno@clisp.org>
31156
31157         * tests/test-poll.c: Use #if for native Windows, rather than testing
31158         __MSVCRT__.
31159
31160 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31161             Bruno Haible  <bruno@clisp.org>
31162
31163         * lib/glob.c: Don't include <pwd.h> on native Windows.
31164         (WINDOWS32): New macro.
31165         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31166
31167 2008-09-13  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31170         (ETIMEDOUT): Remove macro.
31171         (glthread_cond_timedwait_multithreaded): New declaration.
31172         (glthread_cond_timedwait): Use it.
31173         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31174         (glthread_cond_timedwait_multithreaded): New function.
31175
31176 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31177
31178         * modules/poll-tests: Do not check for io.h.
31179         * tests/test-poll.c: Check for __MSVCRT__ instead.
31180
31181 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31182
31183         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31184         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31185         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31186
31187 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31188
31189         * modules/poll-tests: New.
31190         * tests/test-poll.c: New.
31191
31192 2008-09-12  Eric Blake  <ebb9@byu.net>
31193
31194         frexp: test for NetBSD failure on -0.0
31195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31196         not all, bugs from NetBSD 3.0 have been fixed.
31197         * doc/posix-functions/frexp.texi (frexp): Document bug.
31198         Reported by Thomas Klausner.
31199
31200         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31201         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31202         literal -0.0.
31203         Reported by Jonathan C. Patschke <jp@centtech.com>.
31204
31205 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31206
31207         * lib/glthread/cond.h: Use dummy implementation also if
31208         USE_WIN32_THREADS.
31209
31210 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31211
31212         * modules/fnmatch-posix (License): Change to LGPLv2+.
31213         * modules/fnmatch-gnu (License): Likewise.
31214
31215 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31216
31217         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31218
31219 2008-09-11  Jim Meyering  <meyering@redhat.com>
31220
31221         * users.txt: Add gtk-vnc.
31222
31223 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31224
31225         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31226         rotate amounts.
31227
31228         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31229         required for 16-bit and 8-bit rotates.
31230         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31231         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31232         UINT8_MAX instead of hard-coded constants.
31233         Suggested by Paul Eggert.
31234
31235 2008-09-07  Bruno Haible  <bruno@clisp.org>
31236
31237         * tests/test-striconveh.c (main): Check behaviour when converting from
31238         UTF-7.
31239
31240         Make striconveh work better with stateful encodings.
31241         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31242         that iconv does not increment the inptr when returning -1/EINVAL.
31243
31244 2008-09-07  Bruno Haible  <bruno@clisp.org>
31245
31246         * build-aux/config.rpath: Update according to libtool-2.2.6.
31247         * build-aux/config.libpath: Likewise.
31248
31249 2008-09-06  Bruno Haible  <bruno@clisp.org>
31250
31251         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31252         * lib/freadptr.c (freadptr): Likewise.
31253         * lib/freadseek.c (freadptrinc): Likewise.
31254         Reported by Simon Josefsson.
31255
31256 2008-09-06  Bruno Haible  <bruno@clisp.org>
31257
31258         * modules/freadptr (License): Change to LGPLv2+.
31259         * modules/freadseek (License): Likewise.
31260         Suggested by Eric Blake.
31261
31262         * modules/memchr2 (License): Change to LGPLv2+.
31263         Approved by Eric Blake.
31264
31265 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31266             Bruno Haible  <bruno@clisp.org>
31267
31268         Make gnulib-tool work with native 'sed' on AIX.
31269         * gnulib-tool (sed_noop): New variable.
31270         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31271         func_add_or_update, func_create_testdir): Use it to initialize sed
31272         script variables.
31273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31274
31275 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31276             Bruno Haible  <bruno@clisp.org>
31277
31278         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31279         also works after #include directives.
31280
31281 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31282
31283         getdate.y: reject an out-of-range timezone value
31284         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31285         the range [-24...+24].  When specified with only one or two digits,
31286         * tests/test-getdate.c: Tests for the fix.
31287         * doc/getdate.texi: Document this change.
31288
31289 2008-09-03  Bruno Haible  <bruno@clisp.org>
31290
31291         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31292
31293 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31294
31295         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31296         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31297         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31298         Blake <ebb9@byu.net>.
31299
31300         * tests/test-bitrotate.c: Add more test vectors.
31301
31302 2008-09-02  Eric Blake  <ebb9@byu.net>
31303
31304         vasnprintf-posix: handle large precision via %.*d
31305         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31306         when handling it ourselves.
31307         * tests/test-vasnprintf-posix.c (test_function): Add test.
31308         * tests/test-snprintf-posix.h (test_function): Likewise.
31309         * tests/test-sprintf-posix.h (test_function): Likewise.
31310         * tests/test-vasprintf-posix.c (test_function): Likewise.
31311         Reported by Alain Guibert.
31312
31313 2008-09-01  Eric Blake  <ebb9@byu.net>
31314
31315         c-stack: make configure-time check more robust
31316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31317         successful sigaction call.
31318         Reported by Tom G. Christensen.
31319
31320 2008-09-01  Bruno Haible  <bruno@clisp.org>
31321
31322         New module 'findprog-lgpl'.
31323         * modules/findprog-lgpl: New file.
31324         * lib/findprog-lgpl.c: New file.
31325         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31326         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31327         to decide whether to use strdup or xstrdup, concatenated_filename or
31328         xconcatenated_filename.
31329
31330 2008-09-01  Bruno Haible  <bruno@clisp.org>
31331
31332         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31333         'xconcat-filename' (GPL).
31334         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31335         (License): Change to LGPLv2+.
31336         * modules/xconcat-filename: New file.
31337         * lib/concat-filename.h (concatenated_filename): Change specification.
31338         (xconcatenated_filename): New declaration.
31339         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31340         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31341         memory situations.
31342         * lib/xconcat-filename.c: New file.
31343         * NEWS: Mention the change.
31344         * lib/findprog.c: Include concat-filename.h, not filename.h.
31345         (find_in_path): Use xconcatenated_filename instead of
31346         concatenated_filename.
31347         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31348         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31349         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31350         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31351         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31352         instead of concatenated_filename.
31353         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31354         (execute_java_class): Use xconcatenated_filename instead of
31355         concatenated_filename.
31356         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31357         * modules/javacomp (Depends-on): Likewise.
31358         * modules/javaexec (Depends-on): Likewise.
31359
31360 2008-09-01  Bruno Haible  <bruno@clisp.org>
31361
31362         Split module 'filename' into 'filename' and 'concat-filename'.
31363         * modules/filename: Keep only lib/filename.h.
31364         (License): Change to LGPLv2+.
31365         * modules/concat-filename: New file, extracted from modules/filename.
31366         * lib/filename.h (concatenated_filename): Remove declaration.
31367         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31368         * lib/concat-filename.c: Include concat-filename.h.
31369         * NEWS: Mention the change.
31370
31371 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31372
31373         * lib/bitrotate.h (rotl8, rotr8): Add.
31374
31375         * modules/bitrotate (configure.ac): Need
31376         AC_REQUIRE([AC_C_INLINE]).
31377         (Description): Mention stdint.h.  Reported by Bruno Haible
31378         <bruno@clisp.org>.
31379
31380         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31381         Paolo Bonzini <bonzini@gnu.org>.
31382
31383 2008-08-31  Bruno Haible  <bruno@clisp.org>
31384
31385         Assume Solaris specific bi-arch conventions on Solaris systems.
31386         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31387         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31388         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31389         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31390         like acl_libdirstem.
31391         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31392         acl_libdirstem.
31393         * NEWS: Mention the change.
31394         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31395
31396 2008-08-31  Jim Meyering  <meyering@redhat.com>
31397
31398         * lib/strftime.h: Add comments describing the two added arguments.
31399
31400         remove duplicate #include directives
31401         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31402         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31403
31404 2008-08-31  Bruno Haible  <bruno@clisp.org>
31405
31406         New module 'sigpipe-die'.
31407         * modules/sigpipe-die: New file.
31408         * lib/sigpipe-die.h: New file.
31409         * lib/sigpipe-die.c: New file.
31410         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31411
31412 2008-08-31  Bruno Haible  <bruno@clisp.org>
31413
31414         Don't override previously installed signal handlers.
31415         * lib/fatal-signal.c (saved_sigactions): New variable.
31416         (uninstall_handlers): Reset the signal to the saved handler, not
31417         to SIG_DFL (except when ignored).
31418         (install_handlers): Save the previous handlers.
31419
31420 2008-08-30  Bruno Haible  <bruno@clisp.org>
31421
31422         * gnulib-tool (func_reset_sigpipe): New function.
31423         (func_get_automake_snippet, func_modules_transitive_closure,
31424         func_import): Invoke it before a join command that reads from stdin,
31425         to avoid "echo: write error: Broken pipe" error messages on stderr.
31426         Reported by Sam Steingold <sds@gnu.org>.
31427
31428 2008-08-30  Bruno Haible  <bruno@clisp.org>
31429
31430         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31431         Code copied from m4/open.m4.
31432         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31433         access and the filename ends in a slash. Code copied from lib/open.c.
31434         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31435         * tests/test-fopen.c (main): Check against bug with trailing slash.
31436
31437 2008-08-29  Bruno Haible  <bruno@clisp.org>
31438
31439         Avoid some "gcc -pedantic" warnings.
31440         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31441         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31442         * lib/dirent.in.h: Likewise.
31443         * lib/fcntl.in.h: Likewise.
31444         * lib/float.in.h: Likewise.
31445         * lib/iconv.in.h: Likewise.
31446         * lib/inttypes.in.h: Likewise.
31447         * lib/locale.in.h: Likewise.
31448         * lib/math.in.h: Likewise.
31449         * lib/netinet_in.in.h: Likewise.
31450         * lib/search.in.h: Likewise.
31451         * lib/signal.in.h: Likewise.
31452         * lib/stdarg.in.h: Likewise.
31453         * lib/stdint.in.h: Likewise.
31454         * lib/stdio.in.h: Likewise.
31455         * lib/stdlib.in.h: Likewise.
31456         * lib/string.in.h: Likewise.
31457         * lib/strings.in.h: Likewise.
31458         * lib/sys_select.in.h: Likewise.
31459         * lib/sys_socket.in.h: Likewise.
31460         * lib/sys_stat.in.h: Likewise.
31461         * lib/sys_time.in.h: Likewise.
31462         * lib/sysexits.in.h: Likewise.
31463         * lib/time.in.h: Likewise.
31464         * lib/unistd.in.h: Likewise.
31465         * lib/wchar.in.h: Likewise.
31466         * lib/wctype.in.h: Likewise.
31467         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
31468         * modules/fchdir (Makefile.am): Likewise.
31469         * modules/fcntl (Makefile.am): Likewise.
31470         * modules/float (Makefile.am): Likewise.
31471         * modules/iconv_open (Makefile.am): Likewise.
31472         * modules/inttypes (Makefile.am): Likewise.
31473         * modules/locale (Makefile.am): Likewise.
31474         * modules/math (Makefile.am): Likewise.
31475         * modules/netinet_in (Makefile.am): Likewise.
31476         * modules/search (Makefile.am): Likewise.
31477         * modules/signal (Makefile.am): Likewise.
31478         * modules/stdarg (Makefile.am): Likewise.
31479         * modules/stdint (Makefile.am): Likewise.
31480         * modules/stdio (Makefile.am): Likewise.
31481         * modules/stdlib (Makefile.am): Likewise.
31482         * modules/string (Makefile.am): Likewise.
31483         * modules/strings (Makefile.am): Likewise.
31484         * modules/sys_select (Makefile.am): Likewise.
31485         * modules/sys_socket (Makefile.am): Likewise.
31486         * modules/sys_stat (Makefile.am): Likewise.
31487         * modules/sys_time (Makefile.am): Likewise.
31488         * modules/sysexits (Makefile.am): Likewise.
31489         * modules/time (Makefile.am): Likewise.
31490         * modules/unistd (Makefile.am): Likewise.
31491         * modules/wchar (Makefile.am): Likewise.
31492         * modules/wctype (Makefile.am): Likewise.
31493         Reported by Reuben Thomas <rrt@sc3d.org>.
31494
31495 2008-08-29  Bruno Haible  <bruno@clisp.org>
31496
31497         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
31498         any more.
31499
31500 2008-08-29  Simon Josefsson  <simon@josefsson.org>
31501
31502         * MODULES.html.sh (Misc): Add bitrotate.
31503
31504         * modules/bitrotate: New file.
31505
31506         * lib/bitrotate.h: New file.
31507
31508         * modules/bitrotate-tests: New file.
31509
31510         * tests/test-bitrotate.c: New file.
31511
31512         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
31513         on the bitrotate module.
31514
31515         * lib/arctwo.c: Use new bitrotate module.
31516
31517 2008-08-29  Jim Meyering  <meyering@redhat.com>
31518
31519         bootstrap: merge changes from coreutils
31520         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
31521         of copied files.  Remove a kludge, now that this is fixed.
31522         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
31523         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
31524         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
31525
31526 2008-08-29  Bruno Haible  <bruno@clisp.org>
31527
31528         * MODULES.html.sh: Remove --cvs-urls option.
31529
31530 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
31531
31532         maint.mk: adjust to file name change
31533         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
31534
31535 2008-08-28  Jim Meyering  <meyering@redhat.com>
31536
31537         * modules/getndelim2 (License): Relicense to LGPLv2+.
31538         Approved by Richard Stallman for the version of 1995, and by
31539         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
31540
31541 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
31542
31543         * lib/getdelim.c (flockfile, funlockfile): Make all of them
31544         dummy if one is not available.  Do not touch them if
31545         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
31546         (getc_maybe_unlocked): New.
31547         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
31548
31549 2008-08-26  Eric Blake  <ebb9@byu.net>
31550
31551         doc/INSTALL: resync from autoconf
31552         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
31553         (INSTALL_PRELUDE): Delete; this is done more efficiently by
31554         moving...
31555         * install.texi [!autoconf]: ...here.  Resync from autoconf.
31556         * INSTALL: Regenerate.
31557         * INSTALL.ISO: New file.
31558         * INSTALL.UTF-8: Likewise.
31559
31560 2008-08-26  Jim Meyering  <meyering@redhat.com>
31561
31562         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
31563         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
31564         these definitions conditional, so that they may be overridden, too.
31565
31566 2008-08-26  Bruno Haible  <bruno@clisp.org>
31567
31568         Generate INSTALL file variants with prettier quotes.
31569         * doc/Makefile (INSTALL_PRELUDE): New macro.
31570         (INSTALL): Use it.
31571         (INSTALL.ISO, INSTALL.UTF-8): New rules.
31572
31573 2008-08-26  Bruno Haible  <bruno@clisp.org>
31574
31575         Run makeinfo in an English locale.
31576         * doc/Makefile (MAKEINFO): New variable.
31577
31578 2008-08-26  Bruno Haible  <bruno@clisp.org>
31579
31580         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
31581         Suggested by Eric Blake.
31582
31583 2008-08-25  Bruno Haible  <bruno@clisp.org>
31584
31585         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
31586
31587 2008-08-25  Eric Blake  <ebb9@byu.net>
31588
31589         c-stack: test that stack overflow can be caught
31590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
31591         that platform allows handling stack overflow; at least OS/2 EMX
31592         has sigaltstack, but crashes before transferring control to
31593         handler on stack overflow.
31594         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
31595         check for HAVE_STACK_OVERFLOW_HANDLING.
31596         Reported by Elbert Pol.
31597
31598 2008-08-25  Bruno Haible  <bruno@clisp.org>
31599
31600         * doc/posix-functions/strftime.texi: Fix description of strftime
31601         module.
31602
31603 2008-08-24  Bruno Haible  <bruno@clisp.org>
31604
31605         * tests/uniwidth/test-uc_width2.c: New file.
31606         * tests/uniwidth/test-uc_width2.sh: New file.
31607         * modules/uniwidth/width-tests (Files): Add the new files.
31608         (TESTS): Add uniwidth/test-uc_width2.sh.
31609         (TESTS_ENVIRONMENT): New variable.
31610         (check_PROGRAMS): Add test-uc_width2.
31611         (test_uc_width2_SOURCES): New variable.
31612
31613         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
31614         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
31615         not 0x00AB.
31616         Reported by Alexander V. Lukyanov <lav@netis.ru>.
31617
31618 2008-08-22  Eric Blake  <ebb9@byu.net>
31619
31620         test-lock, test-tls: mention why a test is skipped
31621         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
31622         skipped.
31623         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
31624
31625         count-one-bits: relax license
31626         * modules/count-one-bits (License): Relicense to LGPLv2+.
31627         Suggested by Ludovic Courtès, approved by Ben Pfaff.
31628
31629 2008-08-22  Andreas Schwab  <schwab@suse.de>
31630
31631         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31632         Remove spurious space in assignment.
31633
31634 2008-08-21  Simon Josefsson  <simon@josefsson.org>
31635
31636         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
31637         Paul Eggert <eggert@CS.UCLA.EDU>.
31638
31639 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
31640
31641         * modules/gettext: Add m4/threadlib.m4.
31642
31643 2008-08-19  Eric Blake  <ebb9@byu.net>
31644
31645         test-c-stack: fix compilation failure on FreeBSD 5.0
31646         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
31647         headers before <sys/resource.h>.
31648         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
31649         the bug.
31650         Reported by Nelson H. F. Beebe.
31651
31652         strverscmp: migrate from "strverscmp.h" to <string.h>
31653         * modules/string (Makefile.am): Add new hooks.
31654         * modules/strverscmp (Files): Remove strverscmp.h.
31655         (Depends-on): Add string.
31656         (configure.ac): Add indicator.
31657         (Include): Mention new header.
31658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
31659         defaults.
31660         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
31661         results.
31662         * lib/strverscmp.h: Delete.
31663         * lib/string.in.h (strverscmp): Provide declaration, when needed.
31664         * tests/test-strverscmp.c (includes): Adjust client.
31665         * lib/check-version.c (includes): Likewise.
31666         * NEWS: Document the change.
31667
31668         strverscmp: add unit test
31669         * modules/strverscmp-tests: New file.
31670         * tests/test-strverscmp.c: Likewise.
31671
31672 2008-08-19  Simon Josefsson  <simon@josefsson.org>
31673
31674         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
31675         regarding Windows crypto stuff, from Mono.
31676
31677 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
31678
31679         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
31680         if present, for intel RND.  Return error on failures.
31681
31682 2008-08-18  Ben Pfaff  <blp@gnu.org>
31683
31684         gitlog-to-changelog: give better diagnostic for failed pipe-open
31685         * build-aux/gitlog-to-changelog: Improve error message: suggest
31686         that the version of Git may be too old.
31687
31688 2008-08-18  Simon Josefsson  <simon@josefsson.org>
31689
31690         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
31691         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
31692
31693 2008-08-18  Bruno Haible  <bruno@clisp.org>
31694
31695         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
31696         pthread_in_use().
31697
31698 2008-08-18  Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/glthread/threadlib.c: Include <pthread.h>.
31701
31702 2008-08-18  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
31705         glthread_recursive_lock_* macros.
31706         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
31707         Fix syntax error.
31708
31709 2008-08-18  Bruno Haible  <bruno@clisp.org>
31710
31711         * lib/glthread/thread.c: Avoid forcing a context switch right after
31712         thread creation.
31713
31714 2008-08-17  Bruno Haible  <bruno@clisp.org>
31715
31716         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
31717         * lib/glthread/thread.h: Provide Win32 specific implementation.
31718         * modules/thread (Files): Add lib/glthread/thread.c.
31719         (Depends-on): Add lock.
31720         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
31721
31722 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31723
31724         New module 'yield'.
31725         * modules/yield: New file.
31726         * lib/glthread/yield.h: New file.
31727         * m4/yield.m4: New file.
31728         * MODULES.html.sh (Multithreading): Add yield.
31729
31730 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31731
31732         New module 'thread'.
31733         * modules/thread: New file.
31734         * lib/glthread/thread.h: New file.
31735         * m4/thread.m4: New file.
31736         * MODULES.html.sh (Multithreading): Add thread.
31737
31738 2008-08-17  Bruno Haible  <bruno@clisp.org>
31739
31740         * lib/glthread/lock.h: Include <stdlib.h> always.
31741         * lib/glthread/tls.h: Likewise.
31742         * lib/glthread/cond.h: Likewise.
31743
31744 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31745
31746         New module 'cond'.
31747         * modules/cond: New file.
31748         * lib/glthread/cond.h: New file.
31749         * lib/glthread/cond.c: New file.
31750         * m4/cond.m4: New file.
31751         * MODULES.html.sh (Multithreading): Add cond.
31752
31753 2008-08-16  Eric Blake  <ebb9@byu.net>
31754
31755         c-stack: fix regression on Irix 5.3 from 2008-06-21
31756         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
31757         sa_sigaction...
31758         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
31759         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
31760         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
31761         * modules/signal (Makefile.am): Use the value.
31762         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
31763         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
31764         * doc/posix-headers/signal.texi (signal.h): Document this
31765         portability issue.
31766         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
31767         Reported by Tom G. Christensen.
31768
31769 2008-08-17  Bruno Haible  <bruno@clisp.org>
31770
31771         New module 'threadlib'.
31772         * modules/threadlib: New file.
31773         * lib/glthread/threadlib.c: New file, extracted from
31774         lib/glthread/lock.c.
31775         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
31776         functions.
31777         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
31778         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
31779         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
31780         macros.
31781         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
31782         (gl_DISABLE_THREADS): Remove macro.
31783         * modules/lock (Files): Remove build-aux/config.rpath.
31784         (Depends-on): Remove havelib. Add threadlib.
31785         (configure.ac-early): Remove section.
31786         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
31787         * modules/tls (Depends-on): Remove lock. Add threadlib.
31788         (Link): New section, copied from threadlib.
31789         * MODULES.html.sh (Multithreading): Add threadlib.
31790
31791 2008-08-14  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
31794         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
31795         glthread_rwlock_unlock, glthread_rwlock_destroy,
31796         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
31797         glthread_recursive_lock_destroy): Define as macros always.
31798         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
31799         glthread_lock_lock.
31800         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
31801         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
31802         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
31803         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
31804         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
31805         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
31806         (glthread_recursive_lock_lock_func): Renamed from
31807         glthread_recursive_lock_lock.
31808         (glthread_recursive_lock_unlock_func): Renamed from
31809         glthread_recursive_lock_unlock.
31810         (glthread_recursive_lock_destroy_func): Renamed from
31811         glthread_recursive_lock_destroy.
31812
31813 2008-08-14  Bruno Haible  <bruno@clisp.org>
31814
31815         * lib/glthread/lock.h: Renamed from lib/lock.h.
31816         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
31817         * lib/glthread/tls.h: Renamed from lib/tls.h.
31818         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
31819         * lib/fstrcmp.c: Update includes.
31820         * lib/strsignal.c: Update includes.
31821         * modules/lock (Files, Makefile.am): Update.
31822         (Include): Change to "glthread/lock.h".
31823         * modules/tls (Files, Makefile.am): Update.
31824         (Include): Change to "glthread/tls.h".
31825         * tests/test-lock.c: Update includes.
31826         * tests/test-tls.c: Update includes.
31827         * NEWS: Mention the renamed header files.
31828
31829 2008-08-11  Jim Meyering  <meyering@redhat.com>
31830
31831         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
31832
31833 2008-08-11  Eric Blake  <ebb9@byu.net>
31834
31835         test-c-stack: avoid C99-ism
31836         * tests/test-c-stack.c (main): Fix whitespace, move declaration
31837         before statement.
31838         Reported by Alain Guibert.
31839
31840 2008-08-10  Jim Meyering  <meyering@redhat.com>
31841
31842         ensure that return value of uinttostr et al are not ignored
31843         * lib/inttostr.h (__GNUC_PREREQ): Define.
31844         (__attribute_warn_unused_result__): Define.
31845         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
31846
31847 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
31848
31849         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
31850         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
31851
31852 2008-08-07  Jim Meyering  <meyering@redhat.com>
31853
31854         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
31855
31856         * modules/mkstemp (License): Relicense under LGPLv2+.
31857         * modules/tempname (License): Likewise.
31858
31859 2008-08-06  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/poll.c (poll): Further micro-optimization.
31862
31863 2008-08-06  Jim Meyering  <meyering@redhat.com>
31864
31865         inet_pton.c: use locale-independent tolower
31866         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
31867         (inet_pton6): Use c_tolower rather than tolower.
31868         * modules/inet_pton (Depends-on): Add c-ctype.
31869
31870 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
31871
31872         * lib/poll.c (poll): Avoid division when timeout is 0, cache
31873         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
31874
31875 2008-08-06  Jim Meyering  <meyering@redhat.com>
31876
31877         * modules/inet_pton (License): Relicense under LGPLv2+.
31878
31879 2008-08-03  Bruno Haible  <bruno@clisp.org>
31880
31881         Additional non-aborting API for lock and tls.
31882         * lib/lock.h: Include <errno.h>.
31883         (glthread_lock_init): New macro/function.
31884         (gl_lock_init): Define as wrapper around glthread_lock_init.
31885         (glthread_lock_lock): New macro/function.
31886         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
31887         (glthread_lock_unlock): New macro/function.
31888         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
31889         (glthread_lock_destroy): New macro/function.
31890         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
31891         (glthread_rwlock_init): New macro/function.
31892         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
31893         (glthread_rwlock_rdlock): New macro/function.
31894         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
31895         (glthread_rwlock_wrlock): New macro/function.
31896         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
31897         (glthread_rwlock_unlock): New macro/function.
31898         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
31899         (glthread_rwlock_destroy): New macro/function.
31900         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
31901         (glthread_recursive_lock_init): New macro/function.
31902         (gl_recursive_lock_init): Define as wrapper around
31903         glthread_recursive_lock_init.
31904         (glthread_recursive_lock_lock): New macro/function.
31905         (gl_recursive_lock_lock): Define as wrapper around
31906         glthread_recursive_lock_lock.
31907         (glthread_recursive_lock_unlock): New macro/function.
31908         (gl_recursive_lock_unlock): Define as wrapper around
31909         glthread_recursive_lock_unlock.
31910         (glthread_recursive_lock_destroy): New macro/function.
31911         (gl_recursive_lock_destroy): Define as wrapper around
31912         glthread_recursive_lock_destroy.
31913         (glthread_once): New macro/function.
31914         (gl_once): Define as wrapper around glthread_once.
31915         Update function declarations.
31916         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
31917         glthread_rwlock_init. Return error code.
31918         (glthread_rwlock_rdlock_multithreaded): Renamed from
31919         glthread_rwlock_rdlock. Return error code.
31920         (glthread_rwlock_wrlock_multithreaded): Renamed from
31921         glthread_rwlock_wrlock. Return error code.
31922         (glthread_rwlock_unlock_multithreaded): Renamed from
31923         glthread_rwlock_unlock. Return error code.
31924         (glthread_rwlock_destroy_multithreaded): Renamed from
31925         glthread_rwlock_destroy. Return error code.
31926         (glthread_recursive_lock_init_multithreaded): Renamed from
31927         glthread_recursive_lock_init. Return error code.
31928         (glthread_recursive_lock_lock_multithreaded): Renamed from
31929         glthread_recursive_lock_lock. Return error code.
31930         (glthread_recursive_lock_unlock_multithreaded): Renamed from
31931         glthread_recursive_lock_unlock. Return error code.
31932         (glthread_recursive_lock_destroy_multithreaded): Renamed from
31933         glthread_recursive_lock_destroy. Return error code.
31934         (glthread_once_call): Make static.
31935         (glthread_once_multithreaded): Renamed from glthread_once.
31936         * lib/tls.h: Include <errno.h>.
31937         (glthread_tls_key_init): New macro/function.
31938         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
31939         (glthread_tls_set): New macro/function.
31940         (gl_tls_set): Define as wrapper around glthread_tls_set.
31941         (glthread_tls_key_destroy): New macro/function.
31942         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
31943         Update function declarations.
31944         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
31945         glthread_tls_get.
31946         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31947
31948 2008-08-04  Eric Blake  <ebb9@byu.net>
31949
31950         gnumakefile: use space, not TAB, outside of targets
31951         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
31952
31953 2008-08-02  Jim Meyering  <meyering@redhat.com>
31954
31955         getdate.y: avoid locale-dependent date parsing failure
31956         In Turkish locales, getdate would fail to recognize keywords
31957         containing a lowercase "i".  The solution is not to rely on
31958         locale-sensitive case-conversion.
31959         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
31960         (lookup_word): Use c_toupper in place of toupper.
31961         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
31962         Reported by Vefa Bicakci <bicave@superonline.com> in
31963         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
31964         * modules/getdate (Depends-on): Add c-ctype.
31965
31966 2008-08-02  Bruno Haible  <bruno@clisp.org>
31967
31968         * gnulib-tool (func_import): When updating or creating a .gitignore
31969         file, prepend each added line with a slash, and ignore leading slashes
31970         from the existing lines.
31971         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31972
31973 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31974
31975         Portability fix for GNU make 3.79.1.
31976         * top/GNUmakefile: Avoid 'else COND', which older GNU make
31977         versions do not understand.
31978
31979 2008-08-01  Bruno Haible  <bruno@clisp.org>
31980
31981         Work around bug of HP-UX 10.20 cc with -0.0 literal.
31982         * tests/test-isnanf.h (zero): New variable.
31983         (main): Avoid literal -0.0f.
31984         * tests/test-isnand.h (zero): New variable.
31985         (main): Avoid literal -0.0.
31986         * tests/test-isnanl.h (zero): New variable.
31987         (main): Avoid literal -0.0L.
31988         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
31989         (test_float, test_double, test_long_double): Avoid literals -0.0f,
31990         -0.0, -0.0L.
31991         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
31992         (test_signbitd): Avoid literal -0.0.
31993         (test_signbitl): Avoid literal -0.0L.
31994         * tests/test-ceilf1.c (zero): New variable.
31995         (main): Avoid literal -0.0f.
31996         * tests/test-ceill.c (zero): New variable.
31997         (main): Avoid literal -0.0L.
31998         * tests/test-floorf1.c (zero): New variable.
31999         (main): Avoid literal -0.0f.
32000         * tests/test-floorl.c (zero): New variable.
32001         (main): Avoid literal -0.0L.
32002         * tests/test-roundf1.c (zero): New variable.
32003         (main): Avoid literal -0.0f.
32004         * tests/test-round1.c (zero): New variable.
32005         (main): Avoid literal -0.0.
32006         * tests/test-roundl.c (zero): New variable.
32007         (main): Avoid literal -0.0L.
32008         * tests/test-truncf1.c (zero): New variable.
32009         (main): Avoid literal -0.0f.
32010         * tests/test-trunc1.c (zero): New variable.
32011         (main): Avoid literal -0.0.
32012         * tests/test-truncl.c (zero): New variable.
32013         (main): Avoid literal -0.0L.
32014         * tests/test-frexp.c (zero): New variable.
32015         (main): Avoid literal -0.0.
32016         * tests/test-frexpl.c (zero): New variable.
32017         (main): Avoid literal -0.0L.
32018         * tests/test-ldexpl.c (zero): New variable.
32019         (main): Avoid literal -0.0L.
32020         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32021         (zerod, zerol): New variables.
32022         (test_function): Avoid literals -0.0, -0.0L.
32023         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32024         (zerod, zerol): New variables.
32025         (test_function): Avoid literals -0.0, -0.0L.
32026         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32027         (zerod, zerol): New variables.
32028         (test_function): Avoid literals -0.0, -0.0L.
32029         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32030         (zerod, zerol): New variables.
32031         (test_function): Avoid literals -0.0, -0.0L.
32032         * tests/test-strtod.c (zero): New variable.
32033         (main): Avoid literal -0.0.
32034         Reported by Jonathan C. Patschke <jp@centtech.com>.
32035
32036 2008-07-31  Jim Meyering  <meyering@redhat.com>
32037
32038         sha256.h: correct definition of SHA224_DIGEST_SIZE
32039         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32040         Reported by Paulie Pena IV <paulie4@gmail.com>.
32041         Define as 224 / 8, rather than as a literal.
32042         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32043         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32044         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32045
32046 2008-07-31  Bruno Haible  <bruno@clisp.org>
32047
32048         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32049         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32050         Reported by Jonathan Patschke <jp@centtech.com>.
32051
32052 2008-07-31  Bruno Haible  <bruno@clisp.org>
32053
32054         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32055         Reported by Paolo Bonzini <bonzini@gnu.org>.
32056
32057 2008-07-30  Eric Blake  <ebb9@byu.net>
32058
32059         test-strtod: allow compilation without -lm
32060         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32061         Reported by Dennis Clarke <blastwave@gmail.com>.
32062
32063 2008-07-28  Jim Meyering  <meyering@redhat.com>
32064
32065         bootstrap: work also when there are no .po files in po/
32066         * build-aux/bootstrap (update_po_files): Complete the change
32067         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32068
32069 2008-07-27  Jim Meyering  <meyering@redhat.com>
32070
32071         * users.txt: Add zile.
32072
32073 2008-07-26  Ben Pfaff  <blp@gnu.org>
32074
32075         Add missing dependencies on new m4/exponent[fdl].m4 files.
32076         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32077         * modules/isnand-nolibm: Add m4/exponentd.m4.
32078         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32079         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32080         m4/isnan[fdl].m4, because the macros actually used moved.
32081         Reported by Jim Meyering.
32082
32083 2008-07-14  Ben Pfaff  <blp@gnu.org>
32084
32085         Add isinf module.
32086         * lib/isinf.c: New file.
32087         * lib/math.in.h: Define isinf macro if we have decided to replace
32088         it.
32089         * m4/isinf.m4: New file.
32090         * m4/math_h.m4: Initialize and substitute variables for isinf
32091         module.
32092         * modules/isinf: New file.
32093         * modules/isinf-tests: New file.
32094         * modules/math: Add substitutions for new module.
32095         * tests/test-isinf.c: New file.
32096         * doc/posix-functions/isinf.texi: Mention new module.
32097         * MODULES.html.sh: Mention new module.
32098
32099 2008-07-14  Ben Pfaff  <blp@gnu.org>
32100
32101         Factor out some macros for use by additional modules.
32102         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32103         exponentf.m4.
32104         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32105         exponentd.m4.
32106         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32107         file exponentl.m4.
32108         * m4/exponentf.m4: New file.
32109         * m4/exponentd.m4: New file.
32110         * m4/exponentl.m4: New file.
32111         * modules/isnanf: Use new file m4/exponentf.m4.
32112         * modules/isnand: Use new file m4/exponentd.m4.
32113         * modules/isnanl: Use new file m4/exponentl.m4.
32114
32115 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32116
32117         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32118         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32119         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32120         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32121
32122         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32123         readlink on platforms without PATH_MAX.
32124
32125 2008-07-21  Eric Blake  <ebb9@byu.net>
32126
32127         Warn, not fail, on stale version.
32128         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32129
32130         Don't allow installation with stale devel version number.
32131         * top/GNUmakefile (_is-install-target): New macro.
32132         (_curr-ver): Forbid installation with stale version number.
32133
32134 2008-07-20  Bruno Haible  <bruno@clisp.org>
32135
32136         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32137         TESTS_ENVIRONMENT.
32138         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32139
32140 2008-07-20  Bruno Haible  <bruno@clisp.org>
32141
32142         * lib/c-stack.h (c_stack_action): Add documentation.
32143         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32144
32145 2008-07-20  Bruno Haible  <bruno@clisp.org>
32146
32147         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32148         * modules/readlink (License): Likewise.
32149
32150 2008-07-17  Eric Blake  <ebb9@byu.net>
32151
32152         * modules/c-stack (Link): Fix typo.
32153
32154         Make c-stack use libsigsegv, when available.
32155         * modules/c-stack (Depends-on): Add libsigsegv.
32156         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32157         needed.
32158         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32159         (segv_handler, overflow_handler, c_stack_action)
32160         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32161         implementation when libsigsegv is available, but only when using
32162         the library is necessary.
32163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32164         comment, explaining why XSI check fails on Linux.
32165         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32166         * tests/test-c-stack2.sh: Tweak skip message.
32167         * NEWS: Document new link-time requirements.
32168
32169 2008-07-16  Eric Blake  <ebb9@byu.net>
32170
32171         c-stack: Expose false positives when not using libsigsegv.
32172         * modules/c-stack-tests (Files): Expand test.
32173         * tests/test-c-stack.c (main): Add means to conditionally trigger
32174         non-overflow SIGSEGV.
32175         * tests/test-c-stack2.sh: New file.
32176
32177 2008-07-14  Bruno Haible  <bruno@clisp.org>
32178
32179         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32180         Reported by Eric Blake.
32181
32182 2008-07-14  Sam Steingold  <sds@gnu.org>
32183             Bruno Haible  <bruno@clisp.org>
32184
32185         New module libsigsegv.
32186         * modules/libsigsegv: New file.
32187         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32188         modifications.
32189         * MODULES.html.sh (Signal handling): New section.
32190
32191 2008-07-14  Bruno Haible  <bruno@clisp.org>
32192
32193         * modules/unictype/ctype-* (Description): Add the word "function".
32194         Improves the resulting doc in MODULES.html.
32195
32196 2008-07-12  Ben Pfaff  <blp@gnu.org>
32197
32198         Add longlong module.
32199         * modules/longlong: New file.
32200
32201 2008-07-12  Bruno Haible  <bruno@clisp.org>
32202
32203         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32204         to empty.
32205
32206 2008-07-10  Ben Pfaff  <blp@gnu.org>
32207
32208         Add isnan module.
32209         * doc/posix-functions/isnan.texi: Mention new module.
32210         * lib/math.in.h: Define isnan macro if we have decided to replace
32211         it.
32212         * m4/isnan.m4: New file.
32213         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32214         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32215         also.
32216         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32217         redundancy.
32218         * m4/math_h.m4: Initialize and substitute variables for isnan
32219         module.
32220         * modules/isnan: New file.
32221         * modules/isnan-tests: New file.
32222         * modules/math: Add substitutions for new module.
32223         * tests/test-isnan.c: New file.
32224         * MODULES.html.sh: Mention new module.
32225
32226 2008-07-10  Ben Pfaff  <blp@gnu.org>
32227
32228         Add isnanf module.
32229         * lib/isnanf.m4: New file.
32230         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32231         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32232         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32233         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32234         * modules/isnanf: New file.
32235         * modules/isnanf-tests: New file.
32236         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32237         files.
32238         * tests/test-isnanf-nolibm.c: factored most of its contents into
32239         new file tests/test-isnanf.h.
32240         * tests/test-isnanf.h: New file.
32241         * tests/test-isnanf.c: New file.
32242         * MODULES.html.sh: Mention new module.
32243         * doc/glibc-functions/isnanf.texi: Mention new module.
32244
32245 2008-07-10  Ben Pfaff  <blp@gnu.org>
32246
32247         Add isnand module.
32248         * lib/isnand.h: New file.
32249         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32250         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32251         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32252         functionality also.
32253         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32254         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32255         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32256         * modules/isnand: New file.
32257         * modules/isnand-tests: New file.
32258         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32259         files.
32260         * tests/test-isnand-nolibm.c: factored most of its contents into
32261         new file tests/test-isnand.h.
32262         * tests/test-isnand.h: New file.
32263         * tests/test-isnand.c: New file.
32264         * MODULES.html.sh: Mention new module.
32265
32266 2008-07-10  Ben Pfaff  <blp@gnu.org>
32267
32268         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32269         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32270         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32271         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32272         * modules/isnanf-nolibm: Update references to renamed files.
32273         * modules/isnand-nolibm: Likewise.
32274         * modules/isnanf-nolibm-tests: Likewise.
32275         * modules/isnand-nolibm-tests: Likewise.
32276         * lib/frexp.c: Likewise.
32277         * lib/isfinite.c: Likewise.
32278         * lib/signbitd.c: Likewise.
32279         * lib/signbitf.c: Likewise.
32280         * lib/vasnprintf.c: Likewise.
32281         * tests/test-ceilf1.c: Likewise.
32282         * tests/test-ceilf2.c: Likewise.
32283         * tests/test-floorf1.c: Likewise.
32284         * tests/test-floorf2.c: Likewise.
32285         * tests/test-frexp.c: Likewise.
32286         * tests/test-round1.c: Likewise.
32287         * tests/test-round2.c: Likewise.
32288         * tests/test-roundf1.c: Likewise.
32289         * tests/test-strtod.c: Likewise.
32290         * tests/test-trunc1.c: Likewise.
32291         * tests/test-trunc2.c: Likewise.
32292         * tests/test-truncf1.c: Likewise.
32293         * tests/test-truncf2.c: Likewise.
32294         * NEWS: Mention the renamed header files.
32295
32296 2008-07-11  Jim Meyering  <meyering@redhat.com>
32297
32298         vc-list-files: make the last-resort awk code more portable
32299         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32300         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32301         does not support it.
32302
32303 2008-07-10  Eric Blake  <ebb9@byu.net>
32304
32305         Work with tar's bootstrap.
32306         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32307         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32308         an m4 comment.
32309
32310 2008-07-09  Jim Meyering  <meyering@redhat.com>
32311
32312         posix-shell.m4: fix typo that made this test malfunction
32313         * m4/posix-shell.m4: Remove capitalization in variable name.
32314
32315 2008-07-08  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/onceonly.m4: Update comments.
32318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32319
32320 2008-07-04  Jim Meyering  <meyering@redhat.com>
32321
32322         * users.txt: Add vc-dwim.
32323         (bison, coreutils): Use the gitweb URL.
32324
32325 2008-07-03  Jim Meyering  <meyering@redhat.com>
32326
32327         * users.txt: Add libffcall.  From Sam Steingold.
32328
32329 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32330
32331         getdate.y: do not ignore TZ with relative day, month or year offset
32332         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32333         relative-date-handling, since otherwise, the latter would clobber the
32334         sole output (an updated Start value) of the tz-handling block.
32335         * tests/test-getdate.c: Tests for the fix
32336
32337 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32338
32339         Recognize 'foo_LIBRARIES += libgnu.a'.
32340         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32341         makefile snippet has already specified an installation location,
32342         also using '+='.
32343
32344 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32345
32346         getdate.y: factor out common actions
32347         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32348         Use them in place of open-coded actions.
32349
32350 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32351
32352         Add self-test for getdate module.
32353         * modules/getdate-tests: New file.
32354         * tests/test-getdate.c: New file.
32355
32356 2008-06-29  Bruno Haible  <bruno@clisp.org>
32357
32358         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32359         .gitignore.
32360         Reported by Sylvain Beucler <beuc@beuc.net>.
32361
32362 2008-06-29  Bruno Haible  <bruno@clisp.org>
32363
32364         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32365         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32366
32367 2008-06-29  Bruno Haible  <bruno@clisp.org>
32368
32369         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32370         EXTRA_DIST.
32371         Reported by Sylvain Beucler <beuc@beuc.net>.
32372
32373 2008-06-26  Jim Meyering  <meyering@redhat.com>
32374
32375         make several modules depend on the "open" module
32376         This provides slightly increased consistency when opening-for-write
32377         the name of a non-directory spelled with a trailing slash.
32378         * modules/chdir-safer: Likewise.
32379         * modules/chown: Likewise.
32380         * modules/clean-temp: Likewise.
32381         * modules/copy-file: Likewise.
32382         * modules/fchdir: Likewise.
32383         * modules/fcntl-safer: Likewise.
32384         * modules/pipe: Likewise.
32385         * modules/utime: Likewise.
32386         Prompted by Eric Blake and Bruno Haible.
32387
32388 2008-06-24  Andreas Schwab  <schwab@suse.de>
32389
32390         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32391         literals can be used as initializers for global variables.
32392
32393 2008-06-23  Eric Blake  <ebb9@byu.net>
32394
32395         Make gnulib-cache.m4 easier to diff.
32396         * gnulib-tool (func_import): Allow newlines when reading cached
32397         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32398
32399 2008-06-23  Bruno Haible  <bruno@clisp.org>
32400
32401         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32402         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32403         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32404         m4/signalblocking.m4.
32405         (gl_PREREQ_SIGACTION): Don't invoke it.
32406         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32407         gl_PREREQ_SIG_HANDLER_H.
32408         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32409         Don't check for sigaction here.
32410
32411 2008-06-23  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32414         (install_handlers): Don't set the SA_RESETHAND flag.
32415
32416 2008-06-23  Bruno Haible  <bruno@clisp.org>
32417
32418         * m4/sigaction.m4: Comment fixes.
32419         * lib/signal.in.h: Likewise.
32420
32421 2008-06-23  Eric Blake  <ebb9@byu.net>
32422
32423         Fix typo.
32424         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32425
32426         Avoid SA_ namespace.
32427         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32428         Reported by Ralf Wildenhues.
32429
32430         Avoid test failure due to SA_RESTORER.
32431         * tests/test-sigaction.c (SA_MASK): New macro.
32432         (main): Avoid failing due to extension flags being set.
32433         Reported by Jim Meyering.
32434
32435         Revert use of sig-handler.h in sigprocmask.c.
32436         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32437         it requires the existence of struct sigaction.
32438         * lib/sigprocmask.c (handler_t): Restore typedef.
32439         (rpl_signal, old_handlers): Use local type.
32440
32441 2008-06-22  Bruno Haible  <bruno@clisp.org>
32442
32443         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32444         conditionally.
32445         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32446
32447 2008-06-22  Bruno Haible  <bruno@clisp.org>
32448
32449         * doc/posix-functions/siginterrupt.texi: Move note.
32450
32451         * lib/signal.in.h (SA_RESTART): New macro.
32452         * lib/sigaction.c: Update comment.
32453
32454         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32455
32456         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32457         (gl_PREREQ_SIGPROCMASK): Invoke it.
32458         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32459
32460         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32461
32462         * lib/sigprocmask.c: Update a comment.
32463
32464 2008-06-21  Eric Blake  <ebb9@byu.net>
32465
32466         Use sigaction module rather than signal().
32467         * modules/c-stack (Depends-on): Add sigaction.
32468         * modules/fatal-signal (Depends-on): Likewise.
32469         * modules/nanosleep (Depends-on): Likewise.
32470         * modules/sigprocmask (Files): Add sig-handler.h.
32471         * modules/sigaction (Files): Likewise.
32472         * lib/sig-handler.h (get_handler): New file, suggested by Paul
32473         Eggert.
32474         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
32475         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
32476         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
32477         (init_fatal_signals): Likewise.
32478         * lib/nanosleep.c (rpl_nanosleep): Likewise.
32479         (siginterrupt): Delete fallback.
32480         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
32481         instead.
32482         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
32483         siginterrupt.
32484
32485         New module sigaction, for mingw.
32486         * modules/sigaction: New module...
32487         * modules/sigaction-tests: ...and its test.
32488         * m4/sigaction.m4: New file.
32489         * lib/sigaction.c: Likewise.
32490         * tests/test-sigaction.c: Likewise.
32491         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
32492         * modules/signal (Makefile.am): Likewise.
32493         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
32494         needed.
32495         * doc/posix-headers/signal.texi (signal.h): Mention provided
32496         types.
32497         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
32498         that sigaction is preferable.
32499         * doc/posix-functions/sigaction.texi (sigaction): Mention new
32500         module.
32501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32502         sigaction.
32503
32504         Improve robustness of sigprocmask by overriding signal.
32505         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
32506         is in use.
32507         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
32508         (SIGKILL, SIGSTOP): Provide fallbacks.
32509         (rpl_signal): Implement.
32510         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
32511         signal can be called inside handlers.
32512
32513         Fix nanosleep module on mingw.
32514         * modules/nanosleep (Depends-on): Add sys_select.
32515         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
32516
32517         Fix licensing of sigprocmask.
32518         * modules/raise (License): Relicense as LGPL.
32519
32520 2008-06-21  Bruno Haible  <bruno@clisp.org>
32521
32522         * lib/propername.c (proper_name_utf8): Don't use the transliterated
32523         result if it contains question marks.
32524         Reported by Michael Geng <linux@michaelgeng.de>.
32525
32526 2008-06-19  Bruno Haible  <bruno@clisp.org>
32527
32528         Fix CVS-ism.
32529         * doc/gnulib.texi: Include updated-stamp.texi.
32530         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
32531         (updated-stamp.texi): New rule.
32532         (gnulib.info): Depend on it.
32533         * doc/.gitignore: Add updated-stamp.texi.
32534         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
32535
32536 2008-06-19  Bruno Haible  <bruno@clisp.org>
32537
32538         * doc/Makefile (gnulib.info): Update and simplify dependencies.
32539         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32540
32541 2008-06-19  Eric Blake  <ebb9@byu.net>
32542
32543         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
32544         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
32545         Reported by Stepan Kasal.
32546
32547 2008-06-18  Bruno Haible  <bruno@clisp.org>
32548
32549         * lib/fatal-signal.c (init_fatal_signals): Add comment.
32550         Reported by Eric Blake.
32551
32552 2008-06-18  Eric Blake  <ebb9@byu.net>
32553
32554         Work around cygwin 1.5.25 strsignal bug.
32555         * tests/test-strsignal.c: Allow for const char *.
32556         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
32557
32558 2008-06-18  Simon Josefsson  <simon@josefsson.org>
32559
32560         * users.txt: Update URL to article and add author/date
32561         information.
32562
32563 2008-06-17  Bruno Haible  <bruno@clisp.org>
32564
32565         New macro gl_DISABLE_THREADS.
32566         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
32567         if the user did not pass --enable-threads or --disable-threads option.
32568         (gl_DISABLE_THREADS): New macro.
32569         Reported by Eric Blake <ebb9@byu.net>.
32570
32571 2008-06-17  Bruno Haible  <bruno@clisp.org>
32572
32573         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
32574         when the macro ignores it.
32575         Based on a patch by Eric Blake <ebb9@byu.net>.
32576
32577 2008-06-17  Bruno Haible  <bruno@clisp.org>
32578
32579         * modules/tls (License): Change to LGPLv2+.
32580         Reported by Eric Blake.
32581
32582 2008-06-17  Eric Blake  <ebb9@byu.net>
32583
32584         Simplify c-stack prerequisites.
32585         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
32586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
32587         no longer requires <ucontext.h> to exist.  Optimize setrlimit
32588         check.
32589         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
32590         <sys/resource.h>.
32591
32592         Move c-stack test into testsuite.
32593         * modules/c-stack-tests: New file.
32594         * lib/c-stack.c [DEBUG]: Move test program...
32595         * tests/test-c-stack.c: ...into this new file.  Skip rather than
32596         fail test if sigaltstack is lacking.
32597         * tests/test-c-stack.sh: New driver file.
32598
32599 2008-06-16  Eric Blake  <ebb9@byu.net>
32600
32601         Use raise module consistently.
32602         * modules/fatal-signal (Depends-on): Add raise.
32603         * modules/sigprocmask (Depends-on): Likewise.
32604         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
32605         * lib/sigprocmask.c (sigprocmask): Likewise.
32606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32607         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
32608
32609         Fix compliance bug in sigpending.
32610         * lib/sigprocmask.c (sigpending): Return pending array via
32611         parameter, not return value.
32612
32613 2008-06-14  Eric Blake  <ebb9@byu.net>
32614
32615         Improve obstack-printf test code.
32616         * tests/test-obstack-printf.c (test_function): Fix comment, and
32617         simplify usage of obstack_* in macros.  Add a test for coverage.
32618         Reported by Bruno Haible.
32619
32620 2008-06-14  Bruno Haible  <bruno@clisp.org>
32621
32622         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
32623         array size as a constant, not as a const variable.
32624         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
32625         AC_USE_SYSTEM_EXTENSIONS.
32626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32627         Test whether the obstack_printf function actually exists.
32628         * modules/obstack-printf (Depends-on): Add extensions.
32629         (Include): Remove obstack.h.
32630         * modules/obstack-printf-posix (Depends-on): Add extensions.
32631         (Include): Remove obstack.h.
32632
32633 2008-06-13  Eric Blake  <ebb9@byu.net>
32634
32635         Add obstack-printf and obstack-printf-posix modules.
32636         * modules/obstack-printf: New file.
32637         * modules/obstack-printf-posix: Likewise.
32638         * MODULES.html.sh (Misc): Mention them.
32639         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32640         Likewise.
32641         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32642         Likewise.
32643         * modules/stdio (Makefile.am): Accomodate new modules.
32644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32645         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
32646         Declare.
32647         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
32648         functions.
32649         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
32650         (gl_REPLACE_OBSTACK_PRINTF): New macros
32651         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
32652         * tests/test-obstack-printf.c: New file.
32653         * modules/obstack-printf-tests: Likewise.
32654         * modules/obstack-printf-posix-tests: Likewise.
32655
32656 2008-06-11  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
32659         * lib/open.c: Include errno.h.
32660         (open): Fail when attempting to write to a file that has a trailing
32661         slash.
32662         * tests/test-open.c (main): Test against trailing slash bug.
32663         * doc/posix-functions/open.texi: Mention the trailing slash bug.
32664
32665 2008-06-10  Bruno Haible  <bruno@clisp.org>
32666
32667         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
32668         for $? to work inside the trap command, with various /bin/sh-s.
32669         * tests/test-vc-list-files-cvs.sh: Likewise.
32670
32671 2008-06-10  Bruno Haible  <bruno@clisp.org>
32672
32673         * lib/acl-internal.h: Don't include gettext.h here.
32674         * lib/set-mode-acl.c: Include gettext.h here.
32675         * lib/copy-acl.c: Likewise.
32676
32677 2008-06-10  Bruno Haible  <bruno@clisp.org>
32678
32679         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
32680         * lib/wait-process.c (wait_subprocess): Likewise.
32681         * lib/execute.h (execute): Add termsigp argument.
32682         * lib/execute.c (execute): Likewise.
32683         * lib/csharpcomp.c (compile_csharp_using_pnet,
32684         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
32685         * lib/csharpexec.c (execute_csharp_using_pnet,
32686         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
32687         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
32688         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
32689         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
32690         is_jikes_present): Update.
32691         * lib/javaexec.c (execute_java_class): Update.
32692         * lib/javaversion.c (execute_and_read_line): Update.
32693         * NEWS: Document the changes.
32694         Reported by Eric Blake.
32695
32696 2008-06-10  Eric Blake  <ebb9@byu.net>
32697
32698         Add missing include.
32699         * tests/test-strstr.c (includes): Add <signal.h>.
32700         * tests/test-strcasestr.c (includes): Likewise.
32701         * tests/test-memmem.c (includes): Likewise.
32702
32703 2008-06-10  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/wait-process.c (wait_subprocess): Add an assertion.
32706
32707 2008-06-10  Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
32710
32711 2008-06-10  Bruno Haible  <bruno@clisp.org>
32712
32713         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
32714         using alarm().
32715         * tests/test-strcasestr.c (main): Likewise.
32716         * tests/test-strstr.c (main): Likewise.
32717
32718 2008-06-09  Bruno Haible  <bruno@clisp.org>
32719
32720         Work around the Solaris 10 ACE ACLs ABI change.
32721         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
32722         declare if ACL_NO_TRIVIAL is present.
32723         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
32724         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
32725         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
32726         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
32727         define if ACL_NO_TRIVIAL is present.
32728         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
32729         and use the current ABI.
32730         (file_has_acl): Use same #if condition as elsewhere.
32731         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
32732         in use, and use the current ABI.
32733         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
32734         Reported by Jim Meyering.
32735
32736 2008-06-09  Eric Blake  <ebb9@byu.net>
32737
32738         Work around environments that (stupidly) ignore SIGALRM.
32739         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
32740         before using alarm().
32741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32743         Reported by Ian Beckwith <ianb@erislabs.net>.
32744
32745         Produce autobuild blurb earlier in log.
32746         * modules/autobuild (configure.ac-early): Move AB_INIT here.
32747
32748 2008-06-09  Jim Meyering  <meyering@redhat.com>
32749         and OndÅ™ej Vašík  <ovasik@redhat.com>
32750
32751         utimens.c: correct kernel bug work-around
32752         OndÅ™ej Vašík found that the invalid return value of 280 indicates
32753         failure, not success, and the kernel bug we're trying to work
32754         around affects not just the utimensat call, but also the fallback
32755         futimens call.
32756         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
32757         not success.
32758         [HAVE_FUTIMENS]: Use the same work-around, here.
32759
32760 2008-06-09  Jim Meyering  <meyering@redhat.com>
32761
32762         add more guards around definition of ACE_-related code
32763         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
32764         ALLOW and ACE_OWNER are also defined.
32765
32766 2008-06-08  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/acl-internal.h: Add me as co-author.
32769         * lib/file-has-acl.c: Likewise.
32770         * lib/set-mode-acl.c: Likewise.
32771         * lib/copy-acl.c: Likewise.
32772
32773 2008-06-08  Bruno Haible  <bruno@clisp.org>
32774
32775         Add support for AIX ACLs.
32776         * lib/acl-internal.h (acl_nontrivial): New declaration.
32777         * lib/file-has-acl.c (acl_nontrivial): New function.
32778         (file_has_acl): Add implementation using AIX 4 ACL API.
32779         * lib/set-mode-acl.c (qset_acl): Likewise.
32780         * lib/copy-acl.c (qcopy_acl): Likewise.
32781
32782 2008-06-08  Bruno Haible  <bruno@clisp.org>
32783
32784         Add support for HP-UX ACLs.
32785         * lib/acl-internal.h (acl_nontrivial): New declaration.
32786         * lib/file-has-acl.c (acl_nontrivial): New function.
32787         (file_has_acl): Add implementation using HP-UX 11 ACL API.
32788         * lib/set-mode-acl.c (qset_acl): Likewise.
32789         * lib/copy-acl.c (qcopy_acl): Likewise.
32790
32791 2008-06-08  Bruno Haible  <bruno@clisp.org>
32792
32793         Add support for Cygwin ACLs.
32794         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
32795         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
32796         the chmod_or_fchmod call.
32797         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
32798
32799 2008-06-08  Bruno Haible  <bruno@clisp.org>
32800
32801         Fix bug with setuid modes in Solaris 10+ code.
32802         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
32803         succeeded, when the mode contains some special bits.
32804
32805 2008-06-08  Bruno Haible  <bruno@clisp.org>
32806
32807         Add support for Solaris 7..10 ACLs.
32808         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
32809         declarations.
32810         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
32811         functions.
32812         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
32813         * lib/set-mode-acl.c (qset_acl): Likewise.
32814         * lib/copy-acl.c (qcopy_acl): Likewise.
32815
32816 2008-06-08  Bruno Haible  <bruno@clisp.org>
32817
32818         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
32819         declaration.
32820         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
32821         (acl_access_nontrivial): Remove MacOS X case.
32822         (file_has_acl): Use acl_extended_nontrivial.
32823         * lib/copy-acl.c (qcopy_acl): Likewise.
32824
32825 2008-06-08  Bruno Haible  <bruno@clisp.org>
32826
32827         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
32828
32829 2008-06-08  Jim Meyering  <meyering@redhat.com>
32830
32831         * modules/acl (Maintainer): Add Bruno Haible.
32832
32833 2008-06-07  Bruno Haible  <bruno@clisp.org>
32834
32835         Improve support for Tru64 ACLs.
32836         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
32837         ACL on OSF/1.
32838
32839 2008-06-07  Bruno Haible  <bruno@clisp.org>
32840
32841         Add support for MacOS X ACLs.
32842         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
32843         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
32844         * lib/set-mode-acl.c (qset_acl): Likewise.
32845         * lib/copy-acl.c (qcopy_acl): Likewise.
32846
32847 2008-06-07  Bruno Haible  <bruno@clisp.org>
32848
32849         Fix memory leak introduced on 2008-05-22.
32850         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
32851         use.
32852
32853 2008-06-07  Bruno Haible  <bruno@clisp.org>
32854
32855         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
32856         to construct an empty ACL.
32857
32858 2008-06-07  Bruno Haible  <bruno@clisp.org>
32859
32860         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
32861         precisely.
32862         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
32863
32864 2008-06-07  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
32867         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
32868
32869 2008-06-07  Bruno Haible  <bruno@clisp.org>
32870
32871         * doc/posix-functions/_setjmp.texi: Explain the use of this function
32872         regardless of POSIX.
32873         * doc/posix-functions/_longjmp.texi: Likewise.
32874         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
32875         SystemV platform in this case.
32876
32877 2008-06-06  Eric Blake  <ebb9@byu.net>
32878
32879         Document abort() bugs.
32880         * doc/posix-functions/abort.texi (abort): Mention anomalies.
32881
32882         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
32883         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
32884         sigsetjmp.
32885         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
32886         siglongjmp, but only as a macro.
32887         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
32888         is obsolete.
32889         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
32890
32891         Tweak documentation to cover cygwin argz bugs.
32892         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
32893         argz bug fix; no code change needed since no cygwin releases
32894         occurred between the last fix and the bug being tested.
32895         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
32896         module and recently fixed cygwin bugs.
32897         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
32898         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
32899         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32900         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
32901         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
32902         Likewise.
32903         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
32904         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
32905         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
32906         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
32907         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
32908         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
32909         Likewise.
32910
32911         Avoid gcc warning on cygwin.
32912         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
32913         !ACL_NO_TRIVIAL]: Avoid unused variable.
32914
32915 2008-06-05  Eric Blake  <ebb9@byu.net>
32916
32917         Be tolerant of UNKNOWN version in gnulib-tool test dir.
32918         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
32919         git-version-gen fails to come up with a version.
32920         Reported by Simon Josefsson.
32921
32922 2008-06-05  Jim Meyering  <meyering@redhat.com>
32923             Paul Eggert  <eggert@cs.ucla.edu>
32924
32925         utimens.c: work around a probable Linux kernel bug
32926         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
32927         appears to be a kernel bug that causes utimensat to return 280
32928         instead of 0, indicating success.
32929
32930 2008-06-04  Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
32933         2008-06-01 commit.
32934
32935 2008-06-04  Bruno Haible  <bruno@clisp.org>
32936
32937         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
32938         * lib/file-has-acl.c (acl_access_nontrivial): New function.
32939         (file_has_acl): Use it. Save errno afterwards.
32940         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
32941
32942 2008-06-03  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
32945         draft code. Simplify #ifs.
32946         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
32947         Put Solaris code after POSIX-draft code. Fix comments regarding
32948         Solaris 10, HP-UX. Mention Cygwin.
32949         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
32950
32951 2008-06-03  Eric Blake  <ebb9@byu.net>
32952
32953         Provide fallback for older kernels.
32954         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
32955         Provide runtime fallback if kernel lacks support.
32956         Reported by Mike Frysinger.
32957
32958 2008-06-02  Bruno Haible  <bruno@clisp.org>
32959
32960         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
32961         it exists.
32962
32963 2008-06-02  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
32966         * lib/copy-acl.c (qcopy_acl): Update comment.
32967
32968 2008-06-02  Bruno Haible  <bruno@clisp.org>
32969
32970         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
32971         like ACL APIs.
32972
32973 2008-06-02  Bruno Haible  <bruno@clisp.org>
32974
32975         * tests/test-file-has-acl.sh: Use different code for Cygwin.
32976         * tests/test-set-mode-acl.sh: Likewise.
32977         * tests/test-copy-acl.sh: Likewise.
32978         * tests/test-copy-file.sh: Likewise.
32979
32980 2008-06-02  Bruno Haible  <bruno@clisp.org>
32981
32982         * tests/test-file-has-acl.sh: Remove unused code.
32983
32984 2008-06-01  Bruno Haible  <bruno@clisp.org>
32985
32986         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
32987         (copy_acl): Just a wrapper around qcopy_acl that emits the error
32988         messages.
32989         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
32990
32991 2008-06-01  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
32994         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
32995         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
32996         APIs.
32997         * modules/acl-tests (configure.ac): Remove tests now contained in
32998         m4/acl.m4.
32999
33000 2008-06-02  Jim Meyering  <meyering@redhat.com>
33001
33002         announce-gen: use a better key-server host name
33003         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33004         it may be more consistently reliable.  Suggested by Werner Koch
33005         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33006
33007 2008-06-01  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33010         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33011
33012 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33013
33014         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33015
33016 2008-06-01  Bruno Haible  <bruno@clisp.org>
33017
33018         New ACL tests.
33019         * tests/test-file-has-acl.sh: New file.
33020         * tests/test-file-has-acl.c: New file.
33021         * tests/test-set-mode-acl.sh: New file.
33022         * tests/test-set-mode-acl.c: New file.
33023         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33024         * tests/test-copy-acl.c: New file.
33025         * modules/acl-tests: New file, based on modules/copy-file-tests.
33026         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33027         (Depends-on): Add acl-tests.
33028         (configure.ac): Remove checks.
33029         (Makefile.am): Don't create test-sameacls program here any more.
33030
33031 2008-06-01  Bruno Haible  <bruno@clisp.org>
33032
33033         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33034         * tests/test-sameacls.c: Include progname.h.
33035         (main): Invoke set_program_name. Portability fixes for MacOS X,
33036         Solaris, HP-UX.
33037
33038 2008-06-01  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33041         function.
33042         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33043
33044 2008-06-01  Bruno Haible  <bruno@clisp.org>
33045
33046         * modules/rpmatch (Depends-on): Add strdup.
33047
33048 2008-06-01  Bruno Haible  <bruno@clisp.org>
33049
33050         * lib/pipe.c: Include unistd-safer.h.
33051         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33052         * modules/pipe (Depends-on): Add unistd-safer.
33053
33054 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33055
33056         * modules/autobuild (configure.ac): Call AB_INIT.
33057
33058 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33059
33060         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33061         Suggested by Bruno Haible <bruno@clisp.org>.
33062
33063 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33064
33065         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33066         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33067         <bruno@clisp.org>.
33068
33069 2008-05-29  Eric Blake  <ebb9@byu.net>
33070
33071         Prefer new POSIX 200x interfaces over futimesat.
33072         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33073         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33074         when available.
33075         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33076
33077 2008-05-28  Bruno Haible  <bruno@clisp.org>
33078
33079         * modules/stpcpy (License): Change to LGPLv2+.
33080         Requested by David Lutterkort <dlutter@redhat.com>.
33081
33082 2008-05-27  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33085         current mingw.
33086         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33087
33088 2008-05-27  Bruno Haible  <bruno@clisp.org>
33089
33090         * modules/iconv_open (Link): New section, from module 'iconv'.
33091         * modules/striconv (Link): Likewise.
33092         * modules/striconveh (Link): Likewise.
33093         * modules/xstriconv (Link): Likewise.
33094         * modules/unicodeio (Link): Likewise.
33095         * modules/propername (Link): Likewise.
33096         Reported by Jim Meyering.
33097
33098 2008-05-26  Jim Meyering  <meyering@redhat.com>
33099
33100         sha256: do not artificially restrict buffer length to be < 2^32
33101         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33102         uint32_t to size_t.
33103         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33104         to match.
33105
33106         avoid unaligned access errors, e.g., on sparc
33107         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33108         direct access through a possibly-unaligned uint64* pointer.
33109         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33110         direct access through a possibly-unaligned uint32* pointer.
33111         Prompted by this patch from Tom "spot" Callaway:
33112         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33113
33114         sha512.c: fix typo in comment
33115         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33116
33117 2008-05-25  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33120         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33121         (Makefile.am): Update lib_SOURCES.
33122
33123 2008-05-25  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33126
33127 2008-05-25  Jim Meyering  <meyering@redhat.com>
33128
33129         useless-if-before-free: freed expr may have white-space differences
33130         * build-aux/useless-if-before-free: Recognize cases in which the
33131         freed expression differs from the tested one in embedded white
33132         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33133         $1 was used, so we can't make any regexp shy.  Improved tests now
33134         detect this.
33135
33136         useless-if-before-free: accept white space in the expression.
33137         * build-aux/useless-if-before-free: For now, any white space
33138         in the expression must be identical in the free argument.
33139
33140         useless-if-before-free: efficiency tweak
33141         * build-aux/useless-if-before-free: Make the expression-matching
33142         regexp "shy".
33143         Make the *outer* regexp shy, not the expr-matching one.
33144
33145         update code-in-comment to accept cast of free arg
33146         * build-aux/useless-if-before-free: Update regexp.
33147
33148 2008-05-25  Bruno Haible  <bruno@clisp.org>
33149
33150         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33151         * modules/copy-file-tests (Files, Makefile.am): Update.
33152         * tests/test-copy-file.c (func_test_copy): Update.
33153
33154 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33155
33156         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33157
33158 2008-05-23  Bruno Haible  <bruno@clisp.org>
33159
33160         Improve support for ACLs on OSF/1.
33161         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33162         Remove fallback for unknown flavors of ACLs.
33163
33164 2008-05-22  Bruno Haible  <bruno@clisp.org>
33165
33166         Add support for ACLs on OSF/1.
33167         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33168         replacements.
33169         (acl_free_text): New macro fallback.
33170         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33171         acl_free.
33172         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33173         acl_free_text function. Require AC_C_INLINE.
33174
33175 2008-05-22  Bruno Haible  <bruno@clisp.org>
33176
33177         Make copy_acl work on MacOS X 10.5.
33178         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33179         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33180         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33181         If MODE_INSIDE_ACL, don't assume that every system has the same text
33182         representation for ACLs as FreeBSD.
33183         * lib/copy-acl.c (copy_acl): Add support for platforms with
33184         !MODE_INSIDE_ACL.
33185         * lib/file-has-acl.c (file_has_acl): Likewise.
33186         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33187         FreeBSD, MacOS X, or IRIX, respectively.
33188
33189 2008-05-22  Bruno Haible  <bruno@clisp.org>
33190
33191         * lib/acl.h: Don't include <sys/acl.h>.
33192         (GETACLCNT): Move fallback to lib/acl-internal.h.
33193         * lib/acl-internal.h: Include <sys/acl.h> here.
33194         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33195
33196 2008-05-22  Bruno Haible  <bruno@clisp.org>
33197
33198         Split off copy_acl function to separate file.
33199         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33200         * lib/acl.c (copy_acl): Moved function to separate file.
33201         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33202         * modules/acl (Files): Add lib/copy-acl.c.
33203         (Makefiles.am): Augment lib_SOURCES.
33204
33205 2008-05-22  Bruno Haible  <bruno@clisp.org>
33206
33207         * modules/copy-file-tests: New file.
33208         * tests/test-copy-file.sh: New file.
33209         * tests/test-copy-file.c: New file.
33210         * tests/test-copy-file-sameacls.c: New file.
33211
33212 2008-05-22  Eric Blake  <ebb9@byu.net>
33213
33214         Avoid gcc warning.
33215         * tests/test-memcmp.c (main): Pass NULL indirectly.
33216
33217 2008-05-21  Bruno Haible  <bruno@clisp.org>
33218
33219         Add reference doc about ACLs.
33220         * doc/acl-resources.txt: New file.
33221         * doc/acl-cygwin.txt: New file.
33222
33223 2008-05-21  Bruno Haible  <bruno@clisp.org>
33224
33225         Avoid one more warning from gcc.
33226         * lib/vasnprintf.c (IF_LINT): Update comments.
33227         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33228
33229 2008-05-21  Jim Meyering  <meyering@redhat.com>
33230
33231         avoid a warning from gcc
33232         * lib/vasnprintf.c (IF_LINT): Define.
33233         (scale10_round_decimal_long_double):
33234         Use it to avoid a "may be used uninitialized" warning.
33235         (scale10_round_decimal_double): Likewise.
33236
33237 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33238
33239         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33240         declared.
33241
33242 2008-05-20  Bruno Haible  <bruno@clisp.org>
33243
33244         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33245         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33246
33247 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33248
33249         * modules/memcmp-tests: New file.
33250         * tests/test-memcmp.c: New file.
33251
33252 2008-05-19  Bruno Haible  <bruno@clisp.org>
33253
33254         * modules/propername (Notice, configure.ac): Put quoted "..." into
33255         --keyword option.
33256         * lib/propername.h: Update comments accordingly.
33257         Reported by Eric Blake.
33258
33259 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33260
33261         * modules/getpass-gnu (Depends-on): Add fseeko.
33262
33263 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33264
33265         * modules/base64-tests: New file.
33266
33267 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33268
33269         * lib/base64.c (base64_decode_ctx): If a decode context structure
33270         was passed in use it to ignore newlines.  If a context structure
33271         was _not_ passed in, continue to treat newlines as garbage (this
33272         is the historical behavior).  Formerly base64_decode.
33273         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33274         takes a decode context structure.
33275         * lib/base64.h (base64_decode): Macro for four-argument calls.
33276         (base64_decode_alloc): Likewise.
33277         * lib/base64.c (base64_decode_ctx): If a decode context structure
33278         was passed in use it to ignore newlines.  If a context structure
33279         was _not_ passed in, continue to treat newlines as garbage (this
33280         is the historical behavior).  Formerly base64_decode.
33281         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33282         takes a decode context structure.
33283         * lib/base64.h (base64_decode): Macro for four-argument calls.
33284         (base64_decode_alloc): Likewise.
33285
33286 2008-05-19  Jim Meyering  <meyering@redhat.com>
33287
33288         avoid a warning from gcc
33289         * lib/trim.c (IF_LINT): Define.
33290         (trim2): Use it to avoid a "may be used uninitialized" warning.
33291
33292         Fix doc typo.
33293         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33294
33295 2008-05-19  Bruno Haible  <bruno@clisp.org>
33296
33297         * doc/glibc-functions/getpass.texi: Document limits of other
33298         implementations.
33299
33300 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33301             Bruno Haible <bruno@clisp.org>
33302
33303         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33304
33305 2008-05-18  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/propername: New file, from GNU gettext.
33308         * lib/propername.h: New file, from GNU gettext.
33309         * lib/propername.c: New file, from GNU gettext.
33310         * MODULES.html.sh (Internationalization functions): Add propername.
33311
33312 2008-05-16  Jim Meyering  <meyering@redhat.com>
33313             Bruno Haible  <bruno@clisp.org>
33314
33315         Avoid some warnings from "gcc -Wshadow".
33316         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33317
33318 2008-05-15  Eric Blake  <ebb9@byu.net>
33319
33320         Extend previous patch to cygwin 1.7.0.
33321         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33322         fast implementation in cygwin >= 1.7.0.
33323         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33325
33326 2008-05-15  Bruno Haible  <bruno@clisp.org>
33327
33328         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33329         implementation in glibc >= 2.9.
33330         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33332
33333 2008-05-15  Bruno Haible  <bruno@clisp.org>
33334
33335         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33336         (Unicode string functions): Add unilbrk/*.
33337         Reported by Karl Berry.
33338
33339 2008-05-15  Eric Blake  <ebb9@byu.net>
33340
33341         Fix violation of <stdbool.h> replacement in regex.
33342         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33343         * lib/regexec.c (re_search_internal): Likewise.
33344         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33345
33346 2008-05-15  Jim Meyering  <meyering@redhat.com>
33347
33348         avoid distracting test output when git or cvs is not found
33349         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33350         * tests/test-vc-list-files-git.sh: Likewise.
33351
33352 2008-05-15  Eric Blake  <ebb9@byu.net>
33353
33354         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33355         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33356         glibc version.
33357         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33358         * doc/posix-functions/strstr.texi (strstr): Likewise.
33359         * lib/str-two-way.h (MAX): Sychronize with glibc.
33360
33361 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33362
33363         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33364         opr.ctx_type.
33365         (calc_first): Initialize constraint field.
33366         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33367         Fix grammar.
33368         (duplicate_node): Merge constraint field for all node types.
33369         (calc_eclosure_iter): Look at constraint field for all node types.
33370         * lib/regex_internal.c (create_cd_newstate): Don't look at
33371         opr.ctx_type.
33372
33373 2008-05-14  Bruno Haible  <bruno@clisp.org>
33374
33375         Help GCC to do better code generation.
33376         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33377         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33378         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33379         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33380         Declare with attribute 'malloc' if supported.
33381
33382 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33383
33384         use "echo STR|wc -c" rather than unportable "expr length STR"
33385         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33386         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33387
33388 2008-05-14  Jim Meyering  <meyering@redhat.com>
33389
33390         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33391         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33392         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33393         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33394         via Collin Lasse.
33395
33396 2008-05-14  Eric Blake  <ebb9@byu.net>
33397
33398         Avoid quadratic growth in gl_LIBSOURCES.
33399         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33400         Suggested by Bruno Haible.
33401
33402         Test xmemdup0.
33403         * modules/xmemdup0-tests: New file.
33404         * tests/test-xmemdup0.c: Likewise.
33405
33406 2008-05-13  Eric Blake  <ebb9@byu.net>
33407
33408         Split xmemdup0 into its own module.
33409         * modules/xmemdup0: New file.
33410         * lib/xmemdup0.h: Likewise.
33411         * lib/xmemdup0.c: Likewise.
33412         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33413         * lib/xalloc.h (xmemdup0): Remove.
33414         * lib/xmalloc.c (xmemdup0): Likewise.
33415
33416 2008-05-13  Eric Blake  <ebb9@byu.net>
33417             Bruno Haible  <bruno@clisp.org>
33418
33419         Reduce number of forks required during autoconf.
33420         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33421         and gl_LIBSOURCES_DIR.
33422         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33423         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33424         m4_syscmd per file.
33425         <m4_foreach_w>: Move...
33426         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33427
33428 2008-05-13  Eric Blake  <ebb9@byu.net>
33429
33430         * gnulib-tool: Fix various comment typos.
33431
33432 2008-05-12  Bruno Haible  <bruno@clisp.org>
33433
33434         Tailor the linebreaking algorithm.
33435         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33436
33437 2008-05-12  Bruno Haible  <bruno@clisp.org>
33438
33439         Update to Unicode 5.0.0.
33440         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33441         LBP_JV, LBP_JT. Redistribute values.
33442         (unilbrk_table): Change size.
33443         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33444         Unicode TR#14 rev. 22.
33445         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33446         LBP_JV, LBP_JT. Redistribute values.
33447         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33448         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33449         Update.
33450         * lib/unilbrk/lbrkprop1.h: Regenerated.
33451         * lib/unilbrk/lbrkprop2.h: Regenerated.
33452         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33453         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33454         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33455         Likewise.
33456         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33457         Likewise.
33458         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33459         result.
33460         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33461         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33462         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33463         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33464         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
33465         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
33466
33467 2008-05-11  Bruno Haible  <bruno@clisp.org>
33468
33469         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
33470
33471 2008-05-11  Bruno Haible  <bruno@clisp.org>
33472
33473         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
33474         * modules/unilbrk/gen-lbrk: New file.
33475
33476 2008-05-11  Bruno Haible  <bruno@clisp.org>
33477
33478         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
33479         * m4/sha512.m4 (gl_SHA512): Likewise.
33480
33481 2008-05-11  Jim Meyering  <meyering@redhat.com>
33482
33483         New modules: crypto/sha256, crypto/sha512 (from coreutils)
33484         * modules/crypto/sha256: New file.
33485         * modules/crypto/sha512: Likewise.
33486         * lib/sha256.c: Likewise.
33487         * lib/sha256.h: Likewise.
33488         * lib/sha512.c: Likewise.
33489         * lib/sha512.h: Likewise.
33490         * lib/u64.h: Likewise.
33491         * m4/sha256.m4: Likewise.
33492         * m4/sha512.m4: Likewise.
33493         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
33494
33495 2008-05-10  Bruno Haible  <bruno@clisp.org>
33496
33497         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
33498         (Input/Output <stdio.h>): Add xprintf.
33499         (Signal handling <signal.h>): Add strsignal.
33500         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
33501         (Core language properties): Add func.
33502         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
33503         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
33504         strings.
33505         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
33506         (Input/output): New section.
33507         (File system functions): Add openat-die, stat-macros.
33508         (Networking functions): Add sockets.
33509         (Unicode string functions): Add unictype/*.
33510         (Support for building libraries and executables): Add gperf.
33511         (Support for building documentation): Add agpl-3.0.
33512         (Misc): Add nocrash.
33513
33514 2008-05-10  Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/unictype/gen-ctype: New file.
33517
33518 2008-05-10  Jim Meyering  <meyering@redhat.com>
33519
33520         Make chdir-safer.c more efficient on a system with no symlinks.
33521         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
33522         also if ELOOP is zero.  Suggested by Bruno Haible.
33523
33524         Make chdir-safer.c slightly safer.
33525         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
33526         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
33527
33528         Avoid compile failure on systems without ELOOP (like mingw).
33529         * lib/chdir-safer.c (ELOOP): Define if not already defined.
33530         Reported by Bruno Haible.
33531
33532 2008-05-10  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
33535         (is_utf8_encoding): Use a case-insensitive comparison.
33536         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
33537         streq.
33538
33539 2008-05-10  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
33542         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
33543         * lib/unilbrk/ulc-common.h (iconv_string_length,
33544         iconv_string_keeping_offsets): Remove declarations.
33545         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
33546         Don't include <iconv.h>, streq.h, xsize.h.
33547         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
33548         conversion.
33549         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
33550         <iconv.h>, streq.h, xsize.h.
33551         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
33552         conversion.
33553         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
33554         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
33555         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
33556         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
33557
33558 2008-05-10  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
33561         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
33562
33563         * modules/unilbrk/u32-width-linebreaks-tests: New file.
33564         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
33565
33566         * modules/unilbrk/u16-width-linebreaks-tests: New file.
33567         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
33568
33569         * modules/unilbrk/u8-width-linebreaks-tests: New file.
33570         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
33571
33572         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
33573         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
33574
33575         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
33576         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
33577
33578         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
33579         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
33580
33581         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
33582         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
33583
33584 2008-05-10  Bruno Haible  <bruno@clisp.org>
33585
33586         Split up 'linebreak' module.
33587         * lib/unilbrk.h: New file, based on lib/linebreak.h.
33588         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
33589         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
33590         modifications.
33591         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
33592         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
33593         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
33594         lib/linebreak.c.
33595         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
33596         lib/linebreak.c.
33597         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
33598         lib/linebreak.c.
33599         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
33600         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
33601         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
33602         lib/linebreak.c.
33603         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
33604         lib/linebreak.c.
33605         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
33606         lib/linebreak.c.
33607         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
33608         lib/linebreak.c.
33609         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
33610         lib/linebreak.c.
33611         * modules/unilbrk/base: New file.
33612         * modules/unilbrk/tables: New file.
33613         * modules/unilbrk/u8-possible-linebreaks: New file.
33614         * modules/unilbrk/u16-possible-linebreaks: New file.
33615         * modules/unilbrk/u32-possible-linebreaks: New file.
33616         * modules/unilbrk/ulc-common: New file.
33617         * modules/unilbrk/ulc-possible-linebreaks: New file.
33618         * modules/unilbrk/u8-width-linebreaks: New file.
33619         * modules/unilbrk/u16-width-linebreaks: New file.
33620         * modules/unilbrk/u32-width-linebreaks: New file.
33621         * modules/unilbrk/ulc-width-linebreaks: New file.
33622         * lib/linebreak.h: Remove file.
33623         * lib/linebreak.c: Remove file.
33624         * m4/linebreak.m4: Remove file.
33625         * modules/linebreak: Remove file.
33626         * NEWS: Mention the changes.
33627
33628 2008-05-09  Eric Blake  <ebb9@byu.net>
33629
33630         Add xmemdup0.
33631         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
33632         implementation.
33633         * lib/xmalloc.c (xmemdup0): New C implementation.
33634
33635 2008-05-08  Bruno Haible  <bruno@clisp.org>
33636
33637         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
33638
33639 2008-05-07  Eric Blake  <ebb9@byu.net>
33640
33641         Support cross-compilation of <wctype.h>.
33642         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
33643         AC_CACHE_CHECK.
33644
33645 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
33646
33647         * build-aux/vc-list-files: Add support for bzr.
33648
33649 2008-05-03  Jim Meyering  <meyering@redhat.com>
33650
33651         avoid failed assertion with tight malloc
33652         * tests/test-getndelim2.c: Correct an off-by-one assertion.
33653
33654 2008-05-03  Simon Josefsson  <simon@josefsson.org>
33655
33656         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
33657         are needed from arpa/inet.h.
33658         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
33659         Reported by Bruno Haible.
33660
33661 2008-05-02  Jim Meyering  <meyering@redhat.com>
33662
33663         avoid compilation error on FreeBSD 6
33664         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
33665
33666 2008-05-01  Jim Meyering  <meyering@redhat.com>
33667
33668         useless-if-before-free: correct --help's exit status description
33669         * build-aux/useless-if-before-free (usage): Like grep, exit 0
33670         for one or more matches, etc.  Reported by Bruno Haible.
33671
33672         vc-list-files: make the stand-alone gnulib test work
33673         * modules/vc-list-files-tests (configure.ac):
33674         Define and AC_SUBST abs_aux_dir.
33675         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
33676         $(abs_top_srcdir) to each script and having each of them
33677         duplicate the work of setting PATH, set PATH here, using
33678         the new variable, abs_aux_dir instead.
33679         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
33680         * tests/test-vc-list-files-git.sh: Likewise.
33681         Reported by Bruno Haible.
33682
33683 2008-05-01  Bruno Haible  <bruno@clisp.org>
33684
33685         * lib/getndelim2.c (getndelim2): Fix newsize computation during
33686         reallocation. Rename 'done' to 'found_delimiter'.
33687
33688 2008-05-01  Jim Meyering  <meyering@redhat.com>
33689
33690         vc-list-files: accommodate /bin/sh like the one from Solaris 10
33691         * build-aux/vc-list-files: Use `...`, not $(...).
33692
33693 2008-04-30  Jim Meyering  <meyering@redhat.com>
33694
33695         add tests for vc-list-files
33696         * modules/vc-list-files-tests: New module.
33697         * tests/test-vc-list-files-cvs.sh: New file.
33698         * tests/test-vc-list-files-git.sh: New file.
33699
33700         avoid a warning from gcc
33701         * lib/getndelim2.c (IF_LINT): Define.
33702         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
33703
33704         vc-list-files: work properly with build-aux/cvsu, too
33705         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
33706         to all cvs-based clauses.
33707
33708         vc-list-files: work properly in the CVS+awk case, too
33709         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
33710
33711         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
33712         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
33713         take more than one file argument, so .  Add quotes, just in case $dir
33714         ever contains a shell meta-character.  Prompted by Soren Hansen in
33715         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
33716
33717 2008-04-29  Eric Blake  <ebb9@byu.net>
33718
33719         Optimize getndelim2 to use block operations when possible.
33720         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
33721         freadseek, and memchr2.
33722         * lib/getndelim2.c (getndelim2): Use them for block reads.
33723
33724 2008-04-29  Bruno Haible  <bruno@clisp.org>
33725
33726         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
33727         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33728         * modules/inet_ntop (Depends-on): Add extensions.
33729         * modules/inet_pton (Depends-on): Likewise.
33730         Reported by Simon Josefsson.
33731
33732 2008-04-29  Jim Meyering  <meyering@redhat.com>
33733
33734         When the is more than one match in a block, match all of them.
33735         * build-aux/useless-if-before-free: Iterate through each block
33736         until there are no more matches.
33737
33738         Fix broken useless-if-before-free script.
33739         * build-aux/useless-if-before-free: Fix typo: missing "?" after
33740         the expression to match cast of argument to free-like function.
33741
33742 2008-04-29  Eric Blake  <ebb9@byu.net>
33743
33744         Use new header.
33745         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
33746
33747 2008-04-29  Jim Meyering  <meyering@redhat.com>
33748
33749         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
33750         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
33751         by gnulib to exist and to declare e.g., inet_ntop.
33752         Don't include "inet_ntop.h", now removed.
33753
33754         * m4/arpa_inet_h.m4: Remove trailing blanks.
33755
33756 2008-04-29  Eric Blake  <ebb9@byu.net>
33757
33758         Silence valgrind on safe reads beyond potential array bounds.
33759         * lib/rawmemchr.valgrind: New file.
33760         * lib/strchrnul.valgrind: Likewise.
33761         * modules/rawmemchr (Files): Distribute new file.
33762         * modules/strchrnul (Files): Likewise.
33763         Suggested by Bruno Haible.
33764
33765 2008-04-29  Bruno Haible  <bruno@clisp.org>
33766
33767         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
33768         (inet_ntop, inet_pton): Change portability warning's wording.
33769         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
33770         Invoke gl_CHECK_NEXT_HEADERS.
33771         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
33772         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
33773         set ARPA_INET_H.
33774         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33775         * modules/arpa_inet (Description): No longer only for systems that
33776         lack it.
33777         (Depends-on): Add include_next.
33778         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
33779         HAVE_ARPA_INET_H.
33780
33781 2008-04-29  Jim Meyering  <meyering@redhat.com>
33782
33783         * modules/mkdir (License): Re-license as LGPLv2+.
33784
33785 2008-04-29  Bruno Haible  <bruno@clisp.org>
33786
33787         * modules/rawmemchr (Maintainer): Set to Eric.
33788         * modules/strchrnul (Maintainer): Likewise.
33789
33790 2008-04-29  Simon Josefsson  <simon@josefsson.org>
33791
33792         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
33793         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
33794
33795         * modules/arpa_inet (arpa/inet.h): Use them.
33796
33797 2008-04-28  Eric Blake  <ebb9@byu.net>
33798
33799         Test getndelim2.
33800         * modules/getndelim2-tests: New file.
33801         * tests/test-getndelim2.c: Likewise.
33802         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
33803         stream.
33804         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
33805
33806         * MODULES.html.sh: Document new module.
33807
33808 2008-04-20  Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/c-stack.c (die): Use raise.
33811         * modules/c-stack (Depends-on): Add raise.
33812
33813 2008-04-28  Bruno Haible  <bruno@clisp.org>
33814
33815         Expect rpmatch to be declared.
33816         * lib/yesno.c (rpmatch): Remove declaration.
33817
33818         Declare rpmatch.
33819         * lib/stdlib.in.h (rpmatch): New declaration.
33820         * lib/rpmatch.c: Include <stdlib.h> first.
33821         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
33822         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
33823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
33824         HAVE_RPMATCH.
33825         * modules/rpmatch (Depends-on): Add stdlib, extensions.
33826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33827         (Include): Set to <stdlib.h>.
33828         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
33829         HAVE_RPMATCH.
33830         * NEWS: Document the change.
33831
33832 2008-04-28  Bruno Haible  <bruno@clisp.org>
33833
33834         Change rpmatch to use nl_langinfo when appropriate.
33835         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
33836         (N_): New macro.
33837         (localized_pattern): New function/macro.
33838         (try): Remove match, nomatch arguments. Copy the pattern into safe
33839         memory before caching it.
33840         (rpmatch): Use localized_pattern. Add translator comments.
33841         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
33842         Suggested by Eric Blake.
33843         * modules/rpmatch (Depends-on): Add stdbool.
33844
33845 2008-04-28  Eric Blake  <ebb9@byu.net>
33846
33847         Add rawmemchr module, matching glibc.
33848         * modules/string (Makefile.am): New indicator.
33849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
33850         * lib/string.in.h (rawmemchr): Declare when appropriate.
33851         * modules/rawmemchr: New file.
33852         * m4/rawmemchr.m4: Likewise.
33853         * lib/rawmemchr.c: Likewise.
33854         * modules/rawmemchr-tests: Likewise.
33855         * tests/test-rawmemchr.c: Likewise.
33856         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
33857         module.
33858         * modules/strchrnul (Depends-on): Add rawmemchr.
33859         * lib/strchrnul.c (strchrnul): Optimize a corner case.
33860
33861         Whitespace cleanup.
33862         * tests/test-strchrnul.c: Reindent.
33863         * lib/strchrnul.c: Likewise.
33864
33865         Optimize and test strchrnul.
33866         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
33867         * modules/strchrnul-tests: New file.
33868         * tests/test-strchrnul.c: Likewise.
33869
33870         Remove intprops dependency.
33871         * modules/memchr (Depends-on): Remove intprops.
33872         * modules/memrchr (Depends-on): Likewise.
33873         * modules/memchr2 (Depends-on): Likewise.
33874         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
33875         * lib/memrchr.c (__memrchr): Likewise.
33876         * lib/memrchr2.c (memchr2): Likewise.
33877         Reported by Simon Josefsson.
33878
33879 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33880
33881         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
33882         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33883
33884 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33885
33886         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
33887
33888         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
33889
33890         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
33891
33892         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
33893         declarations.
33894         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
33895
33896         * m4/inet_pton.m4: Don't check for header files.
33897
33898         * m4/inet_ntop.m4: Don't check for header files.
33899
33900 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33901
33902         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
33903         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
33904         trigger for cygwin).
33905         Reported by Bruno Haible  <bruno@clisp.org>.
33906
33907 2008-04-28  Bruno Haible  <bruno@clisp.org>
33908
33909         * doc/posix-functions/strdup.texi: Mention mingw problem.
33910
33911 2008-04-27  Bruno Haible  <bruno@clisp.org>
33912
33913         * modules/stat-time-tests (Depends-on): Add sleep.
33914         * tests/test-stat-time.c (force_unlink): New function.
33915         (cleanup): Use it.
33916         (test_mtime): Remove the ctime related tests.
33917         (test_ctime): New function, containing the ctime related tests.
33918         (main): Call test_ctime, except on native Windows platforms.
33919
33920 2008-04-27  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/rpmatch.c (rpmatch): Add some comments.
33923         Reported by James Youngman <jay@gnu.org>.
33924
33925 2008-04-27  Bruno Haible  <bruno@clisp.org>
33926
33927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
33928         quiet NaNs.
33929
33930 2008-04-27  Bruno Haible  <bruno@clisp.org>
33931
33932         Make test-yesno.sh work on mingw.
33933         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
33934         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
33935         (main): Set stdin to binary mode.
33936         * modules/yesno-tests (Depends-on): Add binary-io.
33937
33938 2008-04-27  Bruno Haible  <bruno@clisp.org>
33939
33940         Fix 'isfinite' on x86, x86_64, ia64 platforms.
33941         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
33942         argument that lie outside the IEEE 854 domain.
33943         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
33944         (gl_ISFINITE): Use it.
33945         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
33946
33947 2008-04-27  Bruno Haible  <bruno@clisp.org>
33948
33949         Allow local renaming in config.h.
33950         * lib/memrchr.c (memrchr): Don't undefine outside libc.
33951
33952 2008-04-27  Bruno Haible  <bruno@clisp.org>
33953
33954         * lib/memchr.c (__memchr): Change type of 'i'.
33955         * lib/memchr2.c (memchr2): Likewise.
33956
33957 2008-04-26  Eric Blake  <ebb9@byu.net>
33958         and Bruno Haible  <bruno@clisp.org>
33959
33960         Optimize and test memrchr.
33961         * modules/memrchr (Depends-on): Add intprops.
33962         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
33963         * modules/memrchr-tests: New file.
33964         * tests/test-memrchr.c: New file.
33965
33966 2008-04-26  Bruno Haible  <bruno@clisp.org>
33967
33968         Add tentative support for DragonFly BSD.
33969         * lib/stdio-impl.h: Add macros for DragonFly BSD.
33970         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
33971         fp.
33972         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33973         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
33974         * lib/fpurge.c (fpurge): Likewise.
33975         * lib/freadable.c (freaadable): Likewise.
33976         * lib/freadahead.c (freadahead): Likewise.
33977         * lib/freading.c (freading): Likewise.
33978         * lib/freadptr.c (freadptr): Likewise.
33979         * lib/freadseek.c (freadptrinc): Likewise.
33980         * lib/fseeko.c (fseeko): Likewise.
33981         * lib/fseterr.c (fseterr): Likewise.
33982         * lib/fwritable.c (fwritable): Likewise.
33983         * lib/fwriting.c (fwriting): Likewise.
33984
33985 2008-04-26  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/stdio-impl.h: New file.
33988         * lib/fbufmode.c: Include stdio-impl.h.
33989         (fbufmode): Use fp_, remove redundant #defines.
33990         * lib/fflush.c: Include stdio-impl.h.
33991         (clear_ungetc_buffer): Remove redundant #defines.
33992         * lib/fpurge.c: Include stdio-impl.h.
33993         (fpurge): Remove redundant #defines.
33994         * lib/freadable.c: Include stdio-impl.h.
33995         (freadable): Remove redundant #defines.
33996         * lib/freadahead.c: Include stdio-impl.h.
33997         (freadahead): Remove redundant #defines.
33998         * lib/freading.c: Include stdio-impl.h.
33999         (freading): Remove redundant #defines.
34000         * lib/freadptr.c: Include stdio-impl.h.
34001         (freadptr): Remove redundant #defines.
34002         * lib/freadseek.c: Include stdio-impl.h.
34003         (freadptrinc): Remove redundant #defines.
34004         * lib/fseeko.c: Include stdio-impl.h.
34005         (rpl_fseeko): Remove redundant #defines.
34006         * lib/fseterr.c: Include stdio-impl.h.
34007         (fseterr): Remove redundant #defines.
34008         * lib/fwritable.c: Include stdio-impl.h.
34009         (fwritable: Remove redundant #defines.
34010         * lib/fwriting.c: Include stdio-impl.h.
34011         (fwriting): Remove redundant #defines.
34012         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34013         * modules/fflush (Files): Likewise.
34014         * modules/fpurge (Files): Likewise.
34015         * modules/freadable (Files): Likewise.
34016         * modules/freadahead (Files): Likewise.
34017         * modules/freading (Files): Likewise.
34018         * modules/freadptr (Files): Likewise.
34019         * modules/freadseek (Files): Likewise.
34020         * modules/fseeko (Files): Likewise.
34021         * modules/fseterr (Files): Likewise.
34022         * modules/fwritable (Files): Likewise.
34023         * modules/fwriting (Files): Likewise.
34024
34025 2008-04-26  Bruno Haible  <bruno@clisp.org>
34026
34027         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34028         restore_seek_optimization, update_fpos_cache): New functions, extracted
34029         from rpl_fflush.
34030         (rpl_fflush): Use them.
34031         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34032         (gl_REPLACE_FFLUSH): Use it.
34033
34034 2008-04-26  Bruno Haible  <bruno@clisp.org>
34035
34036         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34037         on Solaris.
34038         * tests/test-xstrtoimax.sh: Likewise.
34039         * tests/test-xstrtoumax.sh: Likewise.
34040         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34041
34042 2008-04-26  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/memchr-tests: New file.
34045         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34046
34047 2008-04-26  Eric Blake  <ebb9@byu.net>
34048             Bruno Haible  <bruno@clisp.org>
34049
34050         * lib/memchr.c: Include intprops.h.
34051         (__memchr): Optimize parallel detection of matching bytes. Rename local
34052         variables. Add explanatory comments.
34053
34054 2008-04-26  Bruno Haible  <bruno@clisp.org>
34055
34056         Fix module 'memchr', broken since 2000-10-28.
34057         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34058
34059 2008-04-26  Bruno Haible  <bruno@clisp.org>
34060
34061         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34062         comments.
34063
34064 2008-04-25  Eric Blake  <ebb9@byu.net>
34065
34066         Use native fstatat on cygwin 1.7.0.
34067         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34068         first.
34069
34070 2008-04-23  Eric Blake  <ebb9@byu.net>
34071
34072         Improve memchr2 performance.
34073         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34074         NUL bytes.
34075         * modules/memchr2 (Depends-on): Use intprops.h.
34076
34077 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34078
34079         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34080         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34081         <blp@cs.stanford.edu>.
34082
34083 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34084
34085         * lib/arpa_inet.in.h: New file.
34086
34087         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34088         (Makefile.am): Sed in substitute header file.
34089
34090         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34091         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34092
34093         * modules/inet_ntop (configure.ac): Use
34094         gl_ARPA_INET_MODULE_INDICATOR.
34095
34096         * modules/inet_pton (configure.ac): Use
34097         gl_ARPA_INET_MODULE_INDICATOR.
34098
34099 2008-04-22  Jim Meyering  <meyering@redhat.com>
34100
34101         * modules/verify (License): Re-license as LGPLv2+.
34102
34103 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34104
34105         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34106         parameter to void* as per POSIX standard (MinGW uses char*).
34107
34108 2008-04-21  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34111         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34112         Define to replacements if REPLACE_ISWCNTRL is 1.
34113         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34114         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34115         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34116         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34117         what it fixes.
34118         * doc/posix-functions/iswalpha.texi: Likewise.
34119         * doc/posix-functions/iswblank.texi: Likewise.
34120         * doc/posix-functions/iswcntrl.texi: Likewise.
34121         * doc/posix-functions/iswdigit.texi: Likewise.
34122         * doc/posix-functions/iswgraph.texi: Likewise.
34123         * doc/posix-functions/iswlower.texi: Likewise.
34124         * doc/posix-functions/iswprint.texi: Likewise.
34125         * doc/posix-functions/iswpunct.texi: Likewise.
34126         * doc/posix-functions/iswspace.texi: Likewise.
34127         * doc/posix-functions/iswupper.texi: Likewise.
34128         * doc/posix-functions/iswxdigit.texi: Likewise.
34129         Reported by Alain Guibert.
34130
34131 2008-04-21  Bruno Haible  <bruno@clisp.org>
34132
34133         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34134         Patch by Alain Guibert.
34135
34136 2008-04-21  Bruno Haible  <bruno@clisp.org>
34137
34138         Fix test failures on mingw.
34139         * tests/test-xstrtol.c (print_no_progname): New function.
34140         (main): Install it in error_print_progname hook.
34141         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34142         * tests/test-xstrtoimax.sh: Likewise.
34143         * tests/test-xstrtoumax.sh: Likewise.
34144
34145 2008-04-21  Bruno Haible  <bruno@clisp.org>
34146
34147         Fix test failure on mingw.
34148         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34149
34150 2008-04-21  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34153         Actually assign a value.
34154
34155 2008-04-20  Bruno Haible  <bruno@clisp.org>
34156
34157         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34158         take 2.
34159         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34160         'canonicalize-lgpl' module is also used.
34161         * lib/canonicalize-lgpl.c: Undo last change.
34162         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34163
34164 2008-04-20  Bruno Haible  <bruno@clisp.org>
34165
34166         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34167         config.h. Provide _mkdir based fallback for mingw.
34168         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34169         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34171         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34172         rather than defining mkdir in config.h.
34173         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34174         (gl_SYS_STAT_H_DEFAULTS): New macro.
34175         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34176         HAVE_IO_H any more.
34177         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34178         HAVE_DECL_MKDIR and HAVE_IO_H.
34179
34180 2008-04-20  Bruno Haible  <bruno@clisp.org>
34181
34182         * lib/isapipe.c: Port to native Windows platforms.
34183
34184 2008-04-20  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34187
34188 2008-04-21  Eric Blake  <ebb9@byu.net>
34189
34190         Work around preprocessors that don't handle UINTMAX_MAX.
34191         * lib/memchr2.c (memchr2): Avoid embedded #if.
34192         Reported by Alain Guibert, fix suggested by Bruno Haible.
34193
34194 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34195
34196         * doc/posix-functions/strftime.texi (strftime): Explain better
34197         Windows incompatibility.  Suggested by Micah Cowan
34198         <micah@cowan.name>.
34199
34200 2008-04-20  Bruno Haible  <bruno@clisp.org>
34201
34202         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34203         unistr/u8-mblen.
34204
34205 2008-04-20  Bruno Haible  <bruno@clisp.org>
34206
34207         Fix test failure on platforms with non-GNU iconv.
34208         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34209         (U_TO_U8): Use it, rather than u16_to_u8.
34210         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34211         units at the end of the input string.
34212         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34213
34214 2008-04-20  Bruno Haible  <bruno@clisp.org>
34215
34216         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34217         when the resulting length is 0.
34218         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34219
34220 2008-04-20  Bruno Haible  <bruno@clisp.org>
34221
34222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34223         works.
34224         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34225
34226 2008-04-20  Bruno Haible  <bruno@clisp.org>
34227
34228         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34229         * modules/tsearch-tests (configure.ac): Test for initstate function.
34230
34231 2008-04-20  Bruno Haible  <bruno@clisp.org>
34232
34233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34234         for nlink_t if missing.
34235         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34236
34237 2008-04-19  Bruno Haible  <bruno@clisp.org>
34238
34239         Work around snprintf bug on Linux libc5.
34240         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34242         gl_SNPRINTF_SIZE1.
34243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34244         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34245         that test failed.
34246         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34247         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34248         * modules/snprintf (Files): Add m4/printf.m4.
34249         * modules/vsnprintf (Files): Likewise.
34250         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34251         * doc/posix-functions/vsnprintf.texi: Likewise.
34252
34253 2008-04-19  Bruno Haible  <bruno@clisp.org>
34254
34255         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34256         from 0.0058 to less than 10^-7.
34257
34258 2008-04-19  Bruno Haible  <bruno@clisp.org>
34259
34260         Fix rounding when a precision is given.
34261         * lib/vasnprintf.c (is_borderline): New function.
34262         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34263         9...9x.
34264         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34265         %e, %g.
34266         * tests/test-vasprintf-posix.c (test_function): Likewise.
34267         * tests/test-snprintf-posix.h (test_function): Likewise.
34268         * tests/test-sprintf-posix.h (test_function): Likewise.
34269         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34270         * tests/test-printf-posix.h (test_function): Likewise.
34271         * tests/test-printf-posix.output: Update.
34272         Reported by John Darrington <john@darrington.wattle.id.au> via
34273         Ben Pfaff <blp@cs.stanford.edu>.
34274
34275 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34276
34277         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34278         Suggested by Bruno Haible <bruno@clisp.org>.
34279
34280 2008-04-17  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34283         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34284         implementation.
34285         Patch by Bruce Merry <bmerry@gmail.com>.
34286
34287 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34288
34289         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34290         doesn't work under Windows.
34291
34292 2008-04-16  Bruno Haible  <bruno@clisp.org>
34293
34294         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34295         New macros.
34296         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34297         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34298         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34299         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34300         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34301         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34302         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34303         macros.
34304         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34305         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34306         Northern Sotho, Uighur.
34307
34308 2008-04-16  Bruno Haible  <bruno@clisp.org>
34309
34310         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34311         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34312         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34313         Reported by Daniel Bergström <daniel@octocode.com>.
34314
34315 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34316             Bruno Haible  <bruno@clisp.org>
34317
34318         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34319         function.
34320         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34321         New functions, mostly extracted from gl_locale_name_default.
34322         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34323
34324 2008-04-16  Eric Blake  <ebb9@byu.net>
34325
34326         Adjust strtod detection to catch glibc 2.7 bug.
34327         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34328         Reported by John Gatewood Ham.
34329
34330 2008-04-16  Bruno Haible  <bruno@clisp.org>
34331
34332         Add tentative support for Linux libc5.
34333         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34334         * lib/fpurge.c (fpurge): Likewise.
34335         * lib/freadable.c (freadable): Likewise.
34336         * lib/freadahead.c (freadahead): Likewise.
34337         * lib/freading.c (freading): Likewise.
34338         * lib/freadptr.c (freadptr): Likewise.
34339         * lib/freadseek.c (freadptrinc): Likewise.
34340         * lib/fseeko.c (rpl_fseeko): Likewise.
34341         * lib/fseterr.c (fseterr): Likewise.
34342         * lib/fwritable.c (fwritable): Likewise.
34343         * lib/fwriting.c (fwriting): Likewise.
34344         Reported by Alain Guibert <alguibert+bts@free.fr>.
34345
34346 2008-04-15  Bruno Haible  <bruno@clisp.org>
34347
34348         * modules/mathl (configure.ac): Define module indicator.
34349
34350 2008-04-15  Bruno Haible  <bruno@clisp.org>
34351
34352         * lib/logl.c (logl): Remove unused variables.
34353
34354 2008-04-15  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34357         fails.
34358
34359 2008-04-15  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/trim.c (trim2): Fix argument of isspace() macro.
34362
34363 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34364
34365         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34366         to 0.
34367         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34368
34369 2008-04-14  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34372         AC_LANG_PROGRAM argument.
34373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34374         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34376         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34377         * m4/math_h.m4 (gl_MATH_H): Likewise.
34378         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34379         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34380         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34381         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34382         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34383         * m4/regex.m4 (gl_REGEX): Likewise.
34384         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34385         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34387         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34388         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34389         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34392
34393 2008-04-14  Jim Meyering  <meyering@redhat.com>
34394
34395         test-strtod: fix typos: s/abs/fabs/
34396         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34397
34398 2008-04-13  Bruno Haible  <bruno@clisp.org>
34399
34400         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34401         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34402         module is also used and while not building the reloc-wrapper.
34403
34404 2008-04-13  Bruno Haible  <bruno@clisp.org>
34405
34406         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34407
34408 2008-04-13  Bruno Haible  <bruno@clisp.org>
34409
34410         Fix AIX compilation failure introduced on 2008-04-02.
34411         * tests/test-frexp.c (exp): Undefine before redefining.
34412         * tests/test-frexpl.c (exp): Likewise.
34413
34414 2008-04-13  Bruno Haible  <bruno@clisp.org>
34415
34416         Work around a HP-UX stdio bug.
34417         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34418         * tests/test-ftello.c (main): Likewise.
34419         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34420         * doc/posix-functions/ftello.texi: Likewise.
34421
34422 2008-04-13  Bruno Haible  <bruno@clisp.org>
34423
34424         Make test-signbit pass on HP-UX/hppa.
34425         * tests/test-signbit.c (minus_zerol): New variable.
34426         (test_signbitl): Use it.
34427
34428 2008-04-13  Bruno Haible  <bruno@clisp.org>
34429
34430         Make truncl work on OSF/1 4.0.
34431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34432         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34433         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34435         HAVE_DECL_TRUNCL.
34436         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34437         HAVE_DECL_TRUNCL.
34438         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34439
34440 2008-04-13  Bruno Haible  <bruno@clisp.org>
34441
34442         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34443
34444 2008-04-13  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34447         expression, so as to avoid HP-UX 11 cc compiler bug.
34448
34449 2008-04-13  Bruno Haible  <bruno@clisp.org>
34450
34451         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34452
34453 2008-04-13  Bruno Haible  <bruno@clisp.org>
34454
34455         * lib/git-merge-changelog.c: Remove empty declaration outside of
34456         functions.
34457
34458 2008-04-13  Bruno Haible  <bruno@clisp.org>
34459
34460         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34461
34462 2008-04-13  Bruno Haible  <bruno@clisp.org>
34463
34464         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
34465         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
34466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
34467         also if it exists but lacks definitions of the SHUT_* macros.
34468         * modules/sys_socket (Description): Update.
34469         Reported by Elbert Pol <e.pol@chello.nl>.
34470
34471 2008-04-13  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/localcharset.c (OS2): Don't redefine if already defined.
34474         Reported by Elbert Pol <e.pol@chello.nl>.
34475
34476 2008-04-13  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/binary-io.h [__EMX__]: Include <io.h>.
34479         Reported by Elbert Pol <e.pol@chello.nl>.
34480
34481 2008-04-12  Bruno Haible  <bruno@clisp.org>
34482
34483         * lib/fpucw.h: Enable the definitions also for x86_64.
34484         Needed for NetBSD/x86_64.
34485         Reported by Thomas Klausner <tk@giga.or.at>.
34486
34487 2008-04-12  Bruno Haible  <bruno@clisp.org>
34488
34489         * tests/test-strtod.c: Include isnand.h.
34490         (main): Use isnand instead of isnan.
34491         Reported by Jim Meyering.
34492
34493 2008-04-12  Bruno Haible  <bruno@clisp.org>
34494
34495         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
34496         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34497
34498 2008-04-12  Jim Meyering  <meyering@redhat.com>
34499
34500         * m4/math_h.m4 (gl_MATH_H): Fix typos.
34501
34502 2008-04-12  Bruno Haible  <bruno@clisp.org>
34503
34504         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
34505         Reported by Elbert Pol <e.pol@chello.nl>.
34506
34507 2008-04-12  Eric Blake  <ebb9@byu.net>
34508
34509         Work around Solaris 10 math.h bug.
34510         * m4/math_h.m4 (gl_MATH_H): Check for bug.
34511         (gl_MATH_H_DEFAULTS): Set up default.
34512         * modules/math (Makefile.am): Replace new indicators.
34513         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
34514         * tests/test-math.c (main): Test this.
34515         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
34516         * doc/posix-headers/math.texi (math.h): Mention bug.
34517         Reported by Nelson H. F. Beebe and Jim Meyering.
34518
34519 2008-04-11  Bruno Haible  <bruno@clisp.org>
34520
34521         Adapt to future versions of Apple GCC.
34522         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
34523         Reported by Peter O'Gorman <peter@pogma.com>.
34524
34525 2008-04-11  Bruno Haible  <bruno@clisp.org>
34526
34527         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
34528
34529 2008-04-11  Bruno Haible  <bruno@clisp.org>
34530
34531         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
34532
34533         * modules/getaddrinfo-tests (Makefile.am): Define
34534         test_getaddrinfo_LDADD.
34535
34536 2008-04-11  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
34539         (init): Fix syntax error.
34540         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
34541         is declared.
34542
34543 2008-04-11  Bruno Haible  <bruno@clisp.org>
34544
34545         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
34546         * modules/glob (Depends-on): Add stdbool.
34547
34548 2008-04-11  Bruno Haible  <bruno@clisp.org>
34549
34550         * lib/trim.c: Include <string.h>.
34551
34552 2008-04-11  Eric Blake  <ebb9@byu.net>
34553
34554         Avoid compile failure on OS/2.
34555         * lib/regex_internal.h (internal_function): Disable optimization
34556         on OS/2 (__EMX__), where it caused compiler error.
34557         Reported by Elbert Pol.
34558
34559 2008-04-11  Bruno Haible  <bruno@clisp.org>
34560
34561         Flush the standard error stream before aborting. Needed on mingw.
34562         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
34563         * tests/test-array_list.c (ASSERT): Likewise.
34564         * tests/test-array_oset.c (ASSERT): Likewise.
34565         * tests/test-avltree_list.c (ASSERT): Likewise.
34566         * tests/test-avltree_oset.c (ASSERT): Likewise.
34567         * tests/test-avltreehash_list.c (ASSERT): Likewise.
34568         * tests/test-binary-io.c (ASSERT): Likewise.
34569         * tests/test-byteswap.c (ASSERT): Likewise.
34570         * tests/test-c-ctype.c (ASSERT): Likewise.
34571         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
34572         * tests/test-c-strcasestr.c (ASSERT): Likewise.
34573         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
34574         * tests/test-c-strstr.c (ASSERT): Likewise.
34575         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
34576         * tests/test-canonicalize.c (ASSERT): Likewise.
34577         * tests/test-carray_list.c (ASSERT): Likewise.
34578         * tests/test-ceilf1.c (ASSERT): Likewise.
34579         * tests/test-ceilf2.c (ASSERT): Likewise.
34580         * tests/test-ceill.c (ASSERT): Likewise.
34581         * tests/test-count-one-bits.c (ASSERT): Likewise.
34582         * tests/test-fbufmode.c (ASSERT): Likewise.
34583         * tests/test-fflush2.c (ASSERT): Likewise.
34584         * tests/test-floorf1.c (ASSERT): Likewise.
34585         * tests/test-floorf2.c (ASSERT): Likewise.
34586         * tests/test-floorl.c (ASSERT): Likewise.
34587         * tests/test-fopen.c (ASSERT): Likewise.
34588         * tests/test-fpending.c (ASSERT): Likewise.
34589         * tests/test-fprintf-posix.c (ASSERT): Likewise.
34590         * tests/test-fpurge.c (ASSERT): Likewise.
34591         * tests/test-freadable.c (ASSERT): Likewise.
34592         * tests/test-freadahead.c (ASSERT): Likewise.
34593         * tests/test-freading.c (ASSERT): Likewise.
34594         * tests/test-freadptr.c (ASSERT): Likewise.
34595         * tests/test-freadptr2.c (ASSERT): Likewise.
34596         * tests/test-freadseek.c (ASSERT): Likewise.
34597         * tests/test-freopen.c (ASSERT): Likewise.
34598         * tests/test-frexp.c (ASSERT): Likewise.
34599         * tests/test-frexpl.c (ASSERT): Likewise.
34600         * tests/test-fseek.c (ASSERT): Likewise.
34601         * tests/test-fseeko.c (ASSERT): Likewise.
34602         * tests/test-fstrcmp.c (ASSERT): Likewise.
34603         * tests/test-ftell.c (ASSERT): Likewise.
34604         * tests/test-ftello.c (ASSERT): Likewise.
34605         * tests/test-func.c (ASSERT): Likewise.
34606         * tests/test-fwritable.c (ASSERT): Likewise.
34607         * tests/test-fwriting.c (ASSERT): Likewise.
34608         * tests/test-getdelim.c (ASSERT): Likewise.
34609         * tests/test-getline.c (ASSERT): Likewise.
34610         * tests/test-i-ring.c (ASSERT): Likewise.
34611         * tests/test-iconv-utf.c (ASSERT): Likewise.
34612         * tests/test-iconv.c (ASSERT): Likewise.
34613         * tests/test-isfinite.c (ASSERT): Likewise.
34614         * tests/test-isnand.c (ASSERT): Likewise.
34615         * tests/test-isnanf.c (ASSERT): Likewise.
34616         * tests/test-isnanl.h (ASSERT): Likewise.
34617         * tests/test-ldexpl.c (ASSERT): Likewise.
34618         * tests/test-linked_list.c (ASSERT): Likewise.
34619         * tests/test-linkedhash_list.c (ASSERT): Likewise.
34620         * tests/test-localename.c (ASSERT): Likewise.
34621         * tests/test-lseek.c (ASSERT): Likewise.
34622         * tests/test-mbscasecmp.c (ASSERT): Likewise.
34623         * tests/test-mbscasestr1.c (ASSERT): Likewise.
34624         * tests/test-mbscasestr2.c (ASSERT): Likewise.
34625         * tests/test-mbscasestr3.c (ASSERT): Likewise.
34626         * tests/test-mbscasestr4.c (ASSERT): Likewise.
34627         * tests/test-mbschr.c (ASSERT): Likewise.
34628         * tests/test-mbscspn.c (ASSERT): Likewise.
34629         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
34630         * tests/test-mbspbrk.c (ASSERT): Likewise.
34631         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
34632         * tests/test-mbsrchr.c (ASSERT): Likewise.
34633         * tests/test-mbsspn.c (ASSERT): Likewise.
34634         * tests/test-mbsstr1.c (ASSERT): Likewise.
34635         * tests/test-mbsstr2.c (ASSERT): Likewise.
34636         * tests/test-mbsstr3.c (ASSERT): Likewise.
34637         * tests/test-memchr2.c (ASSERT): Likewise.
34638         * tests/test-memmem.c (ASSERT): Likewise.
34639         * tests/test-open.c (ASSERT): Likewise.
34640         * tests/test-printf-frexp.c (ASSERT): Likewise.
34641         * tests/test-printf-frexpl.c (ASSERT): Likewise.
34642         * tests/test-printf-posix.c (ASSERT): Likewise.
34643         * tests/test-quotearg.c (ASSERT): Likewise.
34644         * tests/test-rbtree_list.c (ASSERT): Likewise.
34645         * tests/test-rbtree_oset.c (ASSERT): Likewise.
34646         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
34647         * tests/test-round1.c (ASSERT): Likewise.
34648         * tests/test-roundf1.c (ASSERT): Likewise.
34649         * tests/test-roundl.c (ASSERT): Likewise.
34650         * tests/test-signbit.c (ASSERT): Likewise.
34651         * tests/test-sleep.c (ASSERT): Likewise.
34652         * tests/test-snprintf-posix.c (ASSERT): Likewise.
34653         * tests/test-snprintf.c (ASSERT): Likewise.
34654         * tests/test-sprintf-posix.c (ASSERT): Likewise.
34655         * tests/test-stat-time.c (ASSERT): Likewise.
34656         * tests/test-strcasestr.c (ASSERT): Likewise.
34657         * tests/test-strerror.c (ASSERT): Likewise.
34658         * tests/test-striconv.c (ASSERT): Likewise.
34659         * tests/test-striconveh.c (ASSERT): Likewise.
34660         * tests/test-striconveha.c (ASSERT): Likewise.
34661         * tests/test-strsignal.c (ASSERT): Likewise.
34662         * tests/test-strstr.c (ASSERT): Likewise.
34663         * tests/test-strtod.c (ASSERT): Likewise.
34664         * tests/test-trunc1.c (ASSERT): Likewise.
34665         * tests/test-trunc2.c (ASSERT): Likewise.
34666         * tests/test-truncf1.c (ASSERT): Likewise.
34667         * tests/test-truncf2.c (ASSERT): Likewise.
34668         * tests/test-truncl.c (ASSERT): Likewise.
34669         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
34670         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
34671         * tests/test-vasnprintf.c (ASSERT): Likewise.
34672         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
34673         * tests/test-vasprintf.c (ASSERT): Likewise.
34674         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
34675         * tests/test-vprintf-posix.c (ASSERT): Likewise.
34676         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
34677         * tests/test-vsnprintf.c (ASSERT): Likewise.
34678         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
34679         * tests/test-wcwidth.c (ASSERT): Likewise.
34680         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
34681         * tests/test-xprintf-posix.c (ASSERT): Likewise.
34682         * tests/test-xvasprintf.c (ASSERT): Likewise.
34683         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
34684         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
34685         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
34686         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
34687         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
34688         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
34689         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
34690         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
34691         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
34692         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
34693         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
34694         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
34695         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
34696         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
34697         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
34698         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
34699         * tests/unictype/test-block_list.c (ASSERT): Likewise.
34700         * tests/unictype/test-block_of.c (ASSERT): Likewise.
34701         * tests/unictype/test-block_test.c (ASSERT): Likewise.
34702         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
34703         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
34704         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
34705         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
34706         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
34707         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
34708         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
34709         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
34710         * tests/unictype/test-combining.c (ASSERT): Likewise.
34711         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
34712         * tests/unictype/test-digit.c (ASSERT): Likewise.
34713         * tests/unictype/test-mirror.c (ASSERT): Likewise.
34714         * tests/unictype/test-numeric.c (ASSERT): Likewise.
34715         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
34716         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
34717         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
34718         * tests/unictype/test-scripts.c (ASSERT): Likewise.
34719         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
34720         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
34721         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
34722         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
34723         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
34724         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
34725         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
34726         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
34727         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
34728         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
34729         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
34730         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
34731         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
34732         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
34733         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
34734         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
34735         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
34736         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
34737         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
34738         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
34739         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
34740         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
34741         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
34742         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
34743         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
34744         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
34745         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
34746         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
34747         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
34748         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
34749         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
34750         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
34751         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
34752         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
34753         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
34754         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
34755         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
34756         Reported by Eric Blake.
34757
34758 2008-04-11  Bruno Haible  <bruno@clisp.org>
34759
34760         * lib/wchar.in.h: Tweak comment.
34761
34762 2008-04-11  Bruno Haible  <bruno@clisp.org>
34763
34764         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
34765         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
34766         gl_COMMON.
34767         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
34768
34769 2008-04-11  Bruno Haible  <bruno@clisp.org>
34770
34771         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
34772
34773 2008-04-11  Simon Josefsson  <simon@josefsson.org>
34774
34775         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
34776         of attempting to use non-existing /dev/*random.  Based on patch
34777         from Adam Strzelecki <ono@java.pl> in
34778         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
34779
34780 2008-04-08  Bruno Haible  <bruno@clisp.org>
34781
34782         Add tentative support for emx+gcc.
34783         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
34784         * lib/fpurge.c (fpurge): Likewise.
34785         * lib/freadable.c (freadable): Likewise.
34786         * lib/freadahead.c (freadahead): Likewise.
34787         * lib/freading.c (freading): Likewise.
34788         * lib/freadptr.c (freadptr): Likewise.
34789         * lib/freadseek.c (freadptrinc): Likewise.
34790         * lib/fseeko.c (rpl_fseeko): Likewise.
34791         * lib/fseterr.c (fseterr): Likewise.
34792         * lib/fwritable.c (fwritable): Likewise.
34793         * lib/fwriting.c (fwriting): Likewise.
34794         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
34795
34796 2008-04-09  Eric Blake  <ebb9@byu.net>
34797
34798         Avoid some autoconf warnings.
34799         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
34800         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
34801         * m4/afs.m4 (gl_AFS): Likewise.
34802         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
34803         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
34804         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34805         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
34806         (gl_INTEGER_TYPE_SUFFIX): Likewise.
34807         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
34808         (AC_CHECK_DECLS_ONCE): Likewise.
34809         Rename file...
34810         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
34811         gnulib-tool requires autoconf 2.59 or better.
34812         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
34813
34814 2008-04-08  Eric Blake  <ebb9@byu.net>
34815
34816         Use 'git describe --match' if present (added in git 1.5.5).
34817         * build-aux/git-version-gen: Limit result to tags that match 'v*'
34818         if possible.
34819
34820 2008-04-08  Bruno Haible  <bruno@clisp.org>
34821
34822         Add tentative support for OpenServer.
34823         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
34824         _ptr, _cnt.
34825         * lib/fpurge.c (fpurge): Likewise.
34826         * lib/freadable.c (freadable): Likewise.
34827         * lib/freadahead.c (freadahead): Likewise.
34828         * lib/freading.c (freading): Likewise.
34829         * lib/freadptr.c (freadptr): Likewise.
34830         * lib/freadseek.c (freadptrinc): Likewise.
34831         * lib/fseeko.c (rpl_fseeko): Likewise.
34832         * lib/fseterr.c (fseterr): Likewise.
34833         * lib/fwritable.c (fwritable): Likewise.
34834         * lib/fwriting.c (fwriting): Likewise.
34835         Reported by Roger Cornelius <rac@tenzing.org> and
34836         Brian K. White <brian@aljex.com>.
34837
34838 2008-04-06  Jim Meyering  <meyering@redhat.com>
34839
34840         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
34841
34842 2008-04-06  Bruno Haible  <bruno@clisp.org>
34843
34844         Avoid possible error with non-ASCII bytes in UTF-8 locales.
34845         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
34846         * tests/test-printf-posix.sh: Likewise.
34847         * tests/test-vfprintf-posix.sh: Likewise.
34848         * tests/test-vprintf-posix.sh: Likewise.
34849         * tests/test-xprintf-posix.sh: Likewise.
34850
34851 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34852
34853         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
34854         hide error from 'ls', needed on OS/2.
34855         Report by Elbert Pol <elbert.pol@gmail.com>.
34856
34857 2008-04-04  Eric Blake  <ebb9@byu.net>
34858
34859         Make test-fseeko.c failures meaningful.
34860         * tests/test-fseeko.c: Print line number on failure.
34861         * tests/test-fseek.c: Likewise.
34862         Reported by Nelson H. F. Beebe.
34863
34864         Improve strtod bug detection check.
34865         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
34866         required for Solaris 10.
34867         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
34868
34869 2008-04-04  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
34872         by m4/setenv.m4.
34873
34874 2008-04-03  Eric Blake  <ebb9@byu.net>
34875
34876         Ensure sane .version contents.
34877         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
34878         version string.
34879         * build-aux/git-version-gen: Improve documentation.
34880
34881         Make GNU make output nicer.
34882         * top/GNUmakefile [!_have-Makefile]: Add dependency on
34883         MAKECMDGOALS to enforce message for all command line targets.  Set
34884         srcdir for use in maint.mk.
34885
34886         Another maintainer tweak.
34887         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
34888         a target that regenerates version.
34889
34890 2008-04-03  Jim Meyering  <meyering@redhat.com>
34891
34892         vc-list-files: don't cause coreutils "make po-check" failure
34893         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
34894
34895 2008-04-03  Eric Blake  <ebb9@byu.net>
34896
34897         Allow VPATH usage of vc-list-files.
34898         * build-aux/vc-list-files (scriptversion): Add timestamp.
34899         (options): Add --help, --version, -C.
34900         (CVS): Support installed cvsu.
34901
34902 2008-04-02  Bruno Haible  <bruno@clisp.org>
34903
34904         Avoid some "statement with no effect" warnings from gcc.
34905         * tests/test-wctype.c (main): Explicitly ignore unused values.
34906         Reported by Jim Meyering.
34907
34908 2008-04-02  Jim Meyering  <meyering@redhat.com>
34909
34910         Avoid some warnings from "gcc -Wshadow".
34911         * tests/test-frexp.c (exp): Define to a different identifier.
34912         * tests/test-frexpl.c (exp): Likewise.
34913
34914 2008-04-03  Jim Meyering  <meyering@redhat.com>
34915
34916         bootstrap: remove dangling *.[ch] symlinks from lib
34917         * build-aux/bootstrap [dangling symlink removal]: Move find's
34918         -depth option to precede all others, to avoid a warning.
34919         Remove *.[ch] files too, and from "$source_base" (usually lib/).
34920
34921 2008-04-02  Bruno Haible  <bruno@clisp.org>
34922
34923         Avoid some warnings from "gcc -Wshadow".
34924         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
34925         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
34926         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
34927         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
34928         Reported by Jim Meyering.
34929
34930 2008-04-01  Bruno Haible  <bruno@clisp.org>
34931
34932         Fix test to work on IRIX 6.5 with cc.
34933         * tests/test-math.c (numeric_equal): New function.
34934         (main): Use it.
34935
34936 2008-04-01  Bruno Haible  <bruno@clisp.org>
34937
34938         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
34939
34940 2008-04-01  Bruno Haible  <bruno@clisp.org>
34941
34942         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
34943         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34944         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
34945         (Depends-on): Remove math.
34946
34947         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
34948         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34949         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
34950         (Depends-on): Remove math.
34951
34952         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
34953         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34954         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
34955         (Depends-on): Remove math.
34956         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
34957         (Depends-on): Remove math.
34958
34959         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
34960         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34961         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
34962         (Depends-on): Remove math.
34963         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
34964         (Depends-on): Remove math.
34965
34966         * tests/test-round1.c: Include nan.h.
34967         (main): Use NaNd instead of NAN.
34968         * modules/round-tests (Files): Add tests/nan.h.
34969
34970         * tests/test-trunc1.c: Include nan.h.
34971         (main): Use NaNd instead of NAN.
34972         * modules/trunc-tests (Files): Add tests/nan.h.
34973
34974         * tests/test-roundf1.c: Include nan.h.
34975         (main): Use NaNf instead of NAN.
34976         * modules/roundf-tests (Files): Add tests/nan.h.
34977
34978         * tests/test-truncf1.c: Include nan.h.
34979         (main): Use NaNf instead of NAN.
34980         * modules/truncf-tests (Files): Add tests/nan.h.
34981
34982         * tests/test-ceilf1.c: Include nan.h.
34983         (main): Use NaNf instead of NAN.
34984         * modules/ceilf-tests (Files): Add tests/nan.h.
34985
34986         * tests/test-floorf1.c: Include nan.h.
34987         (main): Use NaNf instead of NAN.
34988         * modules/floorf-tests (Files): Add tests/nan.h.
34989
34990         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
34991         (main): Use NaNf instead of NAN.
34992         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
34993
34994         * tests/test-isnand.c: Include nan.h instead of <math.h>.
34995         (main): Use NaNd instead of NAN.
34996         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
34997
34998         * tests/test-frexp.c: Include nan.h.
34999         (main): Use NaNd instead of NAN.
35000         * modules/frexp-tests (Files): Add tests/nan.h.
35001
35002         * lib/isnan.c: Don't include <math.h>.
35003         (FUNC): Don't use NAN macro.
35004         * modules/isnand-nolibm (Depends-on): Remove math.
35005         * modules/isnanf-nolibm (Depends-on): Remove math.
35006         * modules/isnanl (Depends-on): Remove math.
35007         * modules/isnanl-nolibm (Depends-on): Remove math.
35008
35009         * tests/nan.h: New file.
35010
35011 2008-04-01  Eric Blake  <ebb9@byu.net>
35012
35013         Fix typos.
35014         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35015         values to be the right type.
35016
35017         For now, cater to gnulib strtod inaccuracies.
35018         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35019         fractional results.  While not as nice from a QoI perspective, it
35020         is a quicker patch than correctly implementing decimal to binary
35021         rounding.
35022
35023 2008-03-31  Eric Blake  <ebb9@byu.net>
35024
35025         Guarantee a definition of NAN.
35026         * lib/math.in.h (NAN): Define if missing.
35027         * tests/test-math.c (main): Test it.
35028         * doc/posix-headers/math.texi (math.h): Document this.
35029         * lib/isnan.c (rpl_isnand): Use it.
35030         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35031         * tests/test-floorf1.c (NaN): Likewise.
35032         * tests/test-frexp.c (NaN): Likewise.
35033         * tests/test-isnand.c (NaN): Likewise.
35034         * tests/test-isnanf.c (NaN): Likewise.
35035         * tests/test-round1.c (NaN): Likewise.
35036         * tests/test-roundf1.c (NaN): Likewise.
35037         * tests/test-snprintf-posix.h (NaN): Likewise.
35038         * tests/test-sprintf-posix.h (NaN): Likewise.
35039         * tests/test-trunc1.c (NaN): Likewise.
35040         * tests/test-truncf1.c (NaN): Likewise.
35041         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35042         * tests/test-vasprintf-posix.c (NaN): Likewise.
35043         * modules/isnand-nolibm (Depends-on): Add math.
35044         * modules/isnanf-nolibm (Depends-on): Likewise.
35045         * modules/isnanl (Depends-on): Likewise.
35046         * modules/isnanl-nolibm (Depends-on): Likewise.
35047         * modules/snprintf-posix-tests (Depends-on): Likewise.
35048         * modules/sprintf-posix-tests (Depends-on): Likewise.
35049         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35050         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35051         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35052         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35053
35054 2008-03-31  Bruno Haible  <bruno@clisp.org>
35055
35056         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35057         * doc/posix-functions/strtod.texi: Likewise.
35058
35059 2008-03-31  Bruno Haible  <bruno@clisp.org>
35060
35061         * tests/test-strtod.c (main): Don't use C99 syntax.
35062
35063 2008-03-31  Bruno Haible  <bruno@clisp.org>
35064
35065         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35066         Reported by Eric Blake.
35067
35068 2008-03-31  Jim Meyering  <meyering@redhat.com>
35069
35070         Don't compare actual signbit return values.
35071         * tests/test-strtod.c (main): Rather, compare only their
35072         zero/non-zero nature.
35073
35074 2008-03-31  Eric Blake  <ebb9@byu.net>
35075
35076         More strtod documentation.
35077         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35078         failures as distinct bugs.
35079
35080 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35081
35082         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35083         Problem reported by Erik Benada in
35084         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35085
35086 2008-03-30  Bruno Haible  <bruno@clisp.org>
35087
35088         * tests/test-strtod.c: Add comments about which assertion fails on which
35089         platform.
35090         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35091
35092 2008-03-30  Eric Blake  <ebb9@byu.net>
35093
35094         Test signbit behavior on zeros.
35095         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35096         (test_signbitd, test_signbitl): Likewise.
35097
35098         More strtod touchups.
35099         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35100         sign of negative underflow, for now.  Use .5, not .1.
35101         * doc/posix-functions/strtod.texi (strtod): Mention these
35102         limitations.
35103         Reported by Jim Meyering.
35104
35105 2008-03-30  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35108         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35109
35110 2008-03-30  Bruno Haible  <bruno@clisp.org>
35111
35112         Avoid failure when attempting to return empty iconv results on some
35113         platforms.
35114         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35115         allocation, don't report ENOMEM when the resulting string is empty.
35116
35117 2008-03-30  Bruno Haible  <bruno@clisp.org>
35118
35119         Fix buffer overrun.
35120         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35121         Don't consider the width for tmp_length. Check count against tmp_length
35122         before doing the padding. Ensure enough allocation during padding.
35123
35124 2008-03-30  Eric Blake  <ebb9@byu.net>
35125
35126         strtod touchups.
35127         * lib/strtod.c (strtod): Avoid compiler warnings.
35128         Reported by Jim Meyering.
35129
35130 2008-03-30  Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35133         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35134         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35135         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35136         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35137         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35138         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35139         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35140
35141         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35142         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35143         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35144         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35145         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35146         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35147         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35148         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35149
35150         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35151         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35152         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35153         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35154         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35155         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35156         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35157         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35158
35159         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35160         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35161
35162         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35163         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35164
35165         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35166         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35167
35168         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35170         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35171
35172         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35174         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35175
35176         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35178         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35179
35180         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35182         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35183
35184         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35185         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35187         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35188         (Depends-on): Add EOVERFLOW.
35189         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35190         (Depends-on): Add EOVERFLOW.
35191         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35192         (Depends-on): Add EOVERFLOW.
35193         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35194         (Depends-on): Add EOVERFLOW.
35195         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35196         (Depends-on): Add EOVERFLOW.
35197         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35198         (Depends-on): Add EOVERFLOW.
35199         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35200         (Depends-on): Add EOVERFLOW.
35201         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35202         (Depends-on): Add EOVERFLOW.
35203
35204         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35206         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35207
35208         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35210         * modules/snprintf (Depends-on): Add EOVERFLOW.
35211
35212         * lib/poll.c (EOVERFLOW): Remove fallback.
35213         * modules/poll (Depends-on): Add EOVERFLOW.
35214
35215         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35216         * modules/getugroups (Depends-on): Add EOVERFLOW.
35217
35218         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35219         * modules/getdelim (Depends-on): Add EOVERFLOW.
35220
35221         * lib/ftell.c (EOVERFLOW): Remove fallback.
35222         * modules/ftell (Depends-on): Add EOVERFLOW.
35223
35224         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35226         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35227
35228         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35229
35230         * modules/EOVERFLOW-tests: New file.
35231         * tests/test-EOVERFLOW.c: New file.
35232
35233         * modules/EOVERFLOW: New file.
35234         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35235
35236 2008-03-30  Bruno Haible  <bruno@clisp.org>
35237
35238         Fix bug introduced on 2007-06-10.
35239         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35240         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35241
35242 2008-03-30  Bruno Haible  <bruno@clisp.org>
35243
35244         Improve freadseek's efficiency after ungetc.
35245         * lib/freadseek.c: Include freadahead.h.
35246         (freadptrinc): New function, extracted from freadseek.
35247         (freadseek): Use it in a loop. Use freadahead to determine the number
35248         of loop iterations.
35249         * modules/freadseek (Depends-on): Add freadahead.
35250         (configure.ac): Require AC_C_INLINE.
35251
35252 2008-03-30  Bruno Haible  <bruno@clisp.org>
35253
35254         * lib/freadseek.c (freadseek): Don't ignore the return value of
35255         freadptr.
35256
35257 2008-03-29  Eric Blake  <ebb9@byu.net>
35258
35259         Add hex float support.
35260         * modules/strtod (Depends-on): Add c-ctype.
35261         (Link): Mention POW_LIB.
35262         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35263         whitespace between 'e' and exponent.
35264         * tests/test-strtod.c (main): Enable hex float tests.
35265         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35266         now provides.
35267
35268         Document various strtod bugs, with some fixes.
35269         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35270         "-0x", "inf", "nan", and hex constants.
35271         * doc/posix-functions/atof.texi (atof): Likewise.
35272         * modules/stdlib (Makefile.am): Support strtod.
35273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35274         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35275         detect additional strtod bugs.
35276         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35277         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35278         bool where appropriate.  Parse 'inf' and 'nan'.
35279         * tests/test-strtod.c: New file.
35280         * modules/strtod (Depends-on): Add stdbool, stdlib.
35281         (configure.ac): Turn on module indicator.
35282         * modules/strtod-tests: New module.
35283
35284 2008-03-29  Eric Blake  <ebb9@byu.net>
35285
35286         Fix ftell on mingw.
35287         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35288         * modules/ftell-tests (Depends-on): Add binary-io.
35289         * modules/ftello-tests (Depends-on): Likewise.
35290         * tests/test-ftell.c (main): Enhance test to cover behavior after
35291         ungetc.  Enforce binary mode.
35292         * tests/test-ftello.c (main): Likewise.
35293
35294         Pass test-freadseek on cygwin.
35295         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35296         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35297         ungetc buffer.
35298
35299         * tests/test-fflush2.c (main): Fix typo.
35300
35301 2008-03-29  Bruno Haible  <bruno@clisp.org>
35302
35303         * tests/test-fflush2.c (main): Temporarily disable the contents of
35304         this test.
35305         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35306         Reported by Eric Blake.
35307
35308 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35309
35310         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35311         (GC_SHA224_DIGEST_SIZE): Add.
35312
35313         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35314         (gc_hash_digest_length): Likewise.
35315         (gc_hash_buffer): Likewise.
35316
35317 2008-03-25  Bruno Haible  <bruno@clisp.org>
35318
35319         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35320         detail which gettext release to use.
35321         Reported by Simon Josefsson.
35322
35323 2008-03-26  Jim Meyering  <meyering@redhat.com>
35324
35325         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35326         * modules/gnumakefile (clean-GNUmakefile): Also, use
35327         test ... && ... || : syntax rather than if-then ... fi.
35328
35329         gnumakefile: Don't double-quote-expand $(VPATH) value.
35330         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35331
35332 2008-03-24  Eric Blake  <ebb9@byu.net>
35333
35334         Alter GNUmakefile to install into top directory.
35335         * modules/maintainer-makefile: Split, and add dependency...
35336         * modules/gnumakefile: to this new module.
35337         * build-aux/GNUmakefile: Move...
35338         * top/GNUmakefile: ...here.
35339         * build-aux/maint.mk: Move...
35340         * top/maint.mk: ...here.
35341         * MODULES.html.sh (Support for maintaining...): Document new
35342         module.
35343
35344 2008-03-23  Bruno Haible  <bruno@clisp.org>
35345
35346         * gnulib-tool: New options --vc-files, --no-vc-files.
35347         (func_usage): Document them.
35348         (vc_files): New variable.
35349         (func_import): Consider vc_files.
35350         (func_create_testdir): Set vc_files to empty.
35351         Suggested by Jim Meyering and Karl Berry.
35352
35353 2008-03-23  Bruno Haible  <bruno@clisp.org>
35354
35355         Fix regex compilation error on HP-UX 11.
35356         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35357         * modules/regex (Files): Add m4/mbstate_t.m4.
35358         Reported by Ton Voon <ton.voon@altinity.com>.
35359
35360 2008-03-23  Bruno Haible  <bruno@clisp.org>
35361
35362         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35363
35364 2008-03-23  Eric Blake  <ebb9@byu.net>
35365             Bruno Haible  <bruno@clisp.org>
35366
35367         Install files from top/ in the destination directory.
35368         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35369         augmentation also for the files from top/.
35370         (func_import, func_create_testdir): Rewrite file names:
35371         top/filename -> filename.
35372
35373 2008-03-23  Bruno Haible  <bruno@clisp.org>
35374
35375         Tweak "gnulib --version" output.
35376         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35377
35378 2008-03-23  Bruno Haible  <bruno@clisp.org>
35379
35380         Tweak "gnulib --version" output.
35381         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35382         rather than contents of ChangeLog, when possible.
35383
35384 2008-03-21  Eric Blake  <ebb9@byu.net>
35385
35386         More --version tweaks.
35387         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35388         date of last ChangeLog entry.
35389
35390 2008-03-21  Jim Meyering  <meyering@redhat.com>
35391
35392         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35393
35394 2008-03-20  Eric Blake  <ebb9@byu.net>
35395
35396         VPATH fix.
35397         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35398
35399 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35400
35401         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35402         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35403
35404 2008-03-20  Eric Blake  <ebb9@byu.net>
35405
35406         Sync GNUmakefile with coreutils.
35407         * build-aux/GNUmakefile (have-Makefile): Rename...
35408         (_have-Makefile): ...to this, for namespace consideration.
35409         (GNUmakefile.cfg): Include, if present.
35410         (_autoreconf): Define a default.
35411         (_is-dist-target): New rule for rebuilds to pick up intra-release
35412         version.
35413         (maint-cfg.mk): Rename...
35414         (cfg.mk): ...to this.
35415
35416 2008-03-18  Jim Meyering  <meyering@redhat.com>
35417
35418         New script and module: mktempd
35419         * MODULES.html.sh (maint+release support): Add mktempd.
35420         * build-aux/mktempd: New file.
35421         * modules/mktempd: New file.
35422
35423 2008-03-15  Jim Meyering  <meyering@redhat.com>
35424
35425         Undo last change.
35426         * lib/sha1.c, lib/md5.c: 63 != ~63.
35427         Reported by Andreas Schwab.
35428
35429         sha1.c, md5.c: Hoist a redundant expression.
35430         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35431         "ctx->buflen" only once, before calling *_process_block.
35432         * lib/md5.c (md5_process_bytes): Likewise.
35433
35434 2008-03-14  Eric Blake  <ebb9@byu.net>
35435
35436         Bump copyright year in files generated by gnulib-tool.
35437         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35438         gnulib-tool, rather than hard-coding it.
35439
35440         Fix 'gnulib-tool --version' output to work with git.
35441         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35442         (startup): ...here.
35443         (func_version): Use it to invoke git-version-gen, rather than
35444         relying on CVS keyword expansion.  Modernize wording.
35445         (cvsdatestamp, last_checkin_date, version): Kill unused
35446         variables.
35447
35448 2008-03-12  Jim Meyering  <meyering@redhat.com>
35449
35450         Recognize optional cast of the argument to free.
35451         * build-aux/useless-if-before-free: Update regexps.
35452
35453         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35454
35455 2008-03-11  Bruno Haible  <bruno@clisp.org>
35456
35457         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35458         by a single package.
35459         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35460         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35461         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35462         Reported by Sam Steingold <sds@gnu.org>.
35463
35464 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35465
35466         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
35467         repositories.
35468
35469 2008-03-11  Bruno Haible  <bruno@clisp.org>
35470
35471         Avoid conflicts between local macro definitions.
35472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35473         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
35474
35475 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
35476             Bruno Haible  <bruno@clisp.org>
35477
35478         Make va_copy work with some version of xlc on AIX 5.1.
35479         * lib/stdarg.in.h: New file.
35480         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
35481         On AIX, use a <stdarg.h> file substitute.
35482         * modules/stdarg (Files): Add lib/stdarg.in.h.
35483         (Depends-on): Add include_next.
35484         (Makefile.am): Build a stdarg.h substitute if requested.
35485         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
35486
35487 2008-03-10  Bruno Haible  <bruno@clisp.org>
35488
35489         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
35490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35491         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35492
35493 2008-03-10  Bruno Haible  <bruno@clisp.org>
35494
35495         * modules/stdlib (Depends-on): Add include_next, remove
35496         absolute-header.
35497
35498 2008-03-09  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/freadahead.h (freadahead): Document more precisely.
35501         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
35502         the sum of both buffer sizes.
35503         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
35504         * NEWS: Document the change.
35505
35506 2008-03-09  Bruno Haible  <bruno@clisp.org>
35507
35508         Extend freadptr to return also the buffer size.
35509         * lib/freadptr.h (freadptr): Add sizep argument.
35510         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
35511         (freadptr): Add sizep argument. Determine buffer size like freadahead
35512         does.
35513         * tests/test-freadptr.c: Don't include freadahead.h.
35514         (main): Adapt for new calling convention of freadptr.
35515         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
35516         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
35517         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
35518         tests/test-freadptr2.sh.
35519         (Depends): Remove freadahead.
35520         (TESTS): Add test-freadptr2.sh.
35521         (check_PROGRAMS): Add test-freadptr2.
35522
35523 2008-03-09  Bruno Haible  <bruno@clisp.org>
35524
35525         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
35526         Report and solution by Simon Josefsson.
35527
35528 2008-03-06  Bruno Haible  <bruno@clisp.org>
35529
35530         Make fflush after ungetc work on BSD platforms.
35531         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
35532         * tests/test-fflush2.c: New file.
35533         * tests/test-fflush2.sh: New file.
35534         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
35535         tests/test-fflush2.c.
35536         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
35537         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
35538
35539 2008-03-06  Eric Blake  <ebb9@byu.net>
35540
35541         Likewise for ftello.
35542         * modules/ftello (Dependencies): Add extensions.
35543         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
35544
35545 2008-03-06  Bruno Haible  <bruno@clisp.org>
35546
35547         * modules/fseeko (Dependencies): Add extensions.
35548         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
35549         Needed on glibc systems.
35550
35551 2008-03-06  Bruno Haible  <bruno@clisp.org>
35552
35553         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
35554         email address.
35555         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35556
35557 2008-03-06  Bruno Haible  <bruno@clisp.org>
35558
35559         * users.txt: Add libgnupdf.
35560
35561 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35562
35563         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
35564         (Header File Substitutes, Function Substitutes,
35565         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
35566         (Build robot for gnulib): Fix typo.
35567
35568 2008-03-06  Bruno Haible  <bruno@clisp.org>
35569
35570         * doc/gnulib-tool.texi (VCS Issues): Small updates.
35571         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35572
35573 2008-03-06  Bruno Haible  <bruno@clisp.org>
35574
35575         * doc/func.texi: New file, extracted from doc/gnulib.texi.
35576         * doc/gnulib.texi: Include it.
35577
35578 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35579
35580         * modules/func (License): Change license to unlimited; there was
35581         no LGPL parts in the module anyway.
35582
35583 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35584
35585         * modules/__func__: Renamed to modules/func.
35586         * modules/__func__-tests: Renamed to modules/func-tests.
35587         * tests/test-__func__.c: Renamed to tests/test-func.c.
35588         * m4/__func__.m4: Renamed to m4/func.m4.
35589         * doc/gnulib.texi (__func__): Section renamed to func.
35590         Suggested by Eric Blake <ebb9@byu.net>.
35591
35592 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35593
35594         * doc/gnulib.texi (__func__): Use C99 terminology when talking
35595         about __func__.  Make example self-contained.  Suggested by Eric
35596         Blake <ebb9@byu.net>.
35597
35598         * tests/test-__func__.c (main): Avoid extraneous () around __func.
35599         Suggested by Eric Blake <ebb9@byu.net>.
35600
35601 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35602
35603         * modules/__func__: New file.
35604         * modules/__func__-tests: New file.
35605         * tests/test-__func__.c: New file.
35606         * m4/__func__.m4: New file.
35607         * doc/gnulib.texi (__func__): Document __func__ module.
35608
35609 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35610
35611         * modules/byteswap (License): Re-license as LGPLv2+.
35612
35613 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35614
35615         * doc/Makefile: Add pdf target.
35616
35617 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35618
35619         * modules/inline (License): Use 'unlimited', since there are only
35620         *.m4 files in this module.
35621
35622 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35623             Bruno Haible  <bruno@clisp.org>
35624
35625         Add support for HP C 7.1 on OpenVMS 8.3.
35626         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
35627
35628 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35629
35630         Update VMS specifics.
35631         * lib/getopt.c [VMS]: Remove include of unixlib.h.
35632
35633 2008-03-02  Jim Meyering  <meyering@redhat.com>
35634
35635         Remove the last dependency on the "free" module.
35636         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
35637         Reported by Bob Proulx.
35638
35639         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
35640
35641         Remove useless "if" tests before free.  Deprecate "free" module.
35642         * doc/posix-functions/free.texi: Mention that this
35643         module is no longer useful.
35644         * modules/free (Notice): Say this module is obsolete.
35645         * modules/readutmp (Depends-on): Remove free.
35646         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
35647         * lib/putenv.c (putenv): Likewise.
35648         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
35649         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
35650         * tests/test-c-strcasestr.c (main): Likewise.
35651         * tests/test-c-strstr.c (main): Likewise.
35652         * tests/test-mbscasestr1.c (main): Likewise.
35653         * tests/test-mbscasestr2.c (main): Likewise.
35654         * tests/test-mbsstr1.c (main): Likewise.
35655         * tests/test-mbsstr2.c (main): Likewise.
35656         * tests/test-memmem.c (main): Likewise.
35657         * tests/test-strcasestr.c (main): Likewise.
35658         * tests/test-striconv.c (main): Likewise.
35659         * tests/test-striconveh.c (main): Likewise.
35660         * tests/test-striconveha.c (main): Likewise.
35661         * tests/test-strstr.c (main): Likewise.
35662
35663         * build-aux/git-version-gen: Adjust a comment and the Usage string.
35664
35665         bootstrap: sync from coreutils again
35666         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
35667
35668 2008-03-01  Jim Meyering  <meyering@redhat.com>
35669
35670         bootstrap: sync from coreutils
35671         * build-aux/bootstrap (update_po_files): Copy a .po file into place
35672         also when the target doesn't exist.
35673
35674 2008-03-01  Eric Blake  <ebb9@byu.net>
35675
35676         Fix bugs in last patch.
35677         * lib/memchr2.c (memchr2): Fix typo.
35678         * tests/test-memchr2.c: Test previous bug, and don't use GNU
35679         extension.
35680         Reported by Bruce Korb.
35681
35682         New module 'memchr2'.
35683         * modules/memchr2: New file.
35684         * modules/memchr2-tests: Likewise.
35685         * lib/memchr2.h: Likewise.
35686         * lib/memchr2.c: Likewise, based on memchr.c.
35687         * tests/test-memchr2.c: New test.
35688         * MODULES.html.sh (String handling): Add memchr2.
35689
35690 2008-02-29  Bruno Haible  <bruno@clisp.org>
35691
35692         * modules/freadseek-tests: New file.
35693         * tests/test-freadseek.sh: New file.
35694         * tests/test-freadseek.c: New file.
35695
35696         New module 'freadseek'.
35697         * modules/freadseek: New file.
35698         * lib/freadseek.h: New file.
35699         * lib/freadseek.c: New file.
35700         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
35701
35702 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35703
35704         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
35705         wydawca.
35706
35707         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
35708         program_invocation_name and program_invocation_short_name are
35709         present.
35710
35711 2008-02-28  Bruno Haible  <bruno@clisp.org>
35712
35713         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
35714         * tests/test-freadptr.sh: Also test non-seekable stdin.
35715
35716 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
35717
35718         * build-aux/bootstrap (source_base, m4_base)
35719         (doc_base, tests_base): New variables.
35720         (gnulib_tool_options): Do not hardcode base directories, use
35721         the above variables instead.
35722
35723 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
35724
35725         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
35726
35727 2008-02-28  Bruno Haible  <bruno@clisp.org>
35728
35729         * modules/freadptr-tests: New file.
35730         * tests/test-freadptr.sh: New file.
35731         * tests/test-freadptr.c: New file.
35732
35733         New module 'freadptr'.
35734         * modules/freadptr: New file.
35735         * lib/freadptr.h: New file.
35736         * lib/freadptr.c: New file.
35737         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
35738
35739 2008-02-26  Karl Berry  <karl@freefriends.org>
35740
35741         Sync from Libtool:
35742         * libltdl/argz.c (argz_add, argz_count): New functions.
35743         * libltdl/argz.in.h: Declare them.
35744         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
35745
35746 2008-02-22  Bruno Haible  <bruno@clisp.org>
35747
35748         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
35749         is a pointer type.  Needed for HP-UX 10.
35750         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
35751         * doc/posix-functions/gmtime_r.texi: Likewise.
35752         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35753
35754 2008-02-24  Bruno Haible  <bruno@clisp.org>
35755
35756         * modules/environ-tests: New file.
35757         * tests/test-environ.c: New file.
35758
35759         New module 'environ'.
35760         * modules/environ: New file.
35761         * lib/unistd.in.h (environ): New declaration.
35762         * m4/environ.m4: New file.
35763         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
35764         after use.
35765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
35766         HAVE_DECL_ENVIRON.
35767         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
35768         HAVE_DECL_ENVIRON.
35769         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
35770         wrong claim that 'environ' is missing on some systems.
35771         * modules/execute (Depends-on): Add environ.
35772         * lib/execute.c (environ): Remove fallback declaration.
35773         * modules/pipe (Depends-on): Add environ.
35774         * lib/pipe.c (environ): Remove fallback declaration.
35775         * modules/setenv (Depends-on): Add environ.
35776         * lib/setenv.c (environ): Remove fallback declaration.
35777         * modules/unsetenv (Depends-on): Add environ.
35778         * lib/unsetenv.c (environ): Remove fallback declaration.
35779         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
35780         m4/environ.m4.
35781         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
35782         (gl_PREREQ_UNSETENV): Likewise.
35783
35784 2008-02-24  Bruno Haible  <bruno@clisp.org>
35785
35786         * doc/posix-functions/environ.texi: Document the MacOS X problem.
35787
35788 2008-02-20  Bob Proulx  <bob@proulx.com>
35789
35790         Enable use of older two part flavor 'git describe'.
35791         * build-aux/git-version-gen: If using the older two part flavor of
35792         git version then recreate the third part now present in the
35793         newer three part flavor of git describe.
35794
35795 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
35796
35797         * lib/fts.c (fts_build): Typo correction to comment.
35798
35799 2008-02-17  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
35802         generating no-op conflicts.
35803
35804 2008-02-17  Bruno Haible  <bruno@clisp.org>
35805
35806         Speed up by 10%.
35807         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
35808         result_entries, rather than an index-based loop.
35809
35810 2008-02-17  Bruno Haible  <bruno@clisp.org>
35811
35812         Speed up by 25%.
35813         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
35814         'hashcode_cached'.
35815         (entry_create): New function.
35816         (entry_hashcode): Use the cached hashcode if possible.
35817         (read_changelog_file, try_split_merged_entry): Use entry_create.
35818
35819 2008-02-17  Bruno Haible  <bruno@clisp.org>
35820
35821         Speed up from O(n^2) to O(n) for long ChangeLog files.
35822         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
35823         (read_changelog_file): Change implementation of entries_reversed list
35824         to rbtreehash.
35825         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
35826
35827 2008-02-17  Bruno Haible  <bruno@clisp.org>
35828
35829         New option --split-merged-entry.
35830         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
35831         (find_paragraph_end, try_split_merged_entry): New functions.
35832         (long_options): Add option --split-merged-entry.
35833         (usage): Document option --split-merged-entry.
35834         (main): Implement option --split-merged-entry.
35835         Reported by Eric Blake.
35836
35837 2008-02-17  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/git-merge-changelog.c: Include c-strstr.h.
35840         (main): Support the "git pull --rebase" situation.
35841         * modules/git-merge-changelog (Depends-on): Add c-strstr.
35842         Reported by Eric Blake.
35843
35844 2008-02-16  Eric Blake  <ebb9@byu.net>
35845
35846         Avoid doubling \ in common case of "c-maybe" quoting style.
35847         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
35848         eliding outer quotes.
35849         * lib/quotearg.h: Document this.
35850         * tests/test-quotearg.c (result_strings, inputs, results_g)
35851         (flag_results, locale_results): Test it by adding a new string to
35852         each test group.
35853         (compare_strings): Test new string.
35854
35855 2008-02-13  Eric Blake  <ebb9@byu.net>
35856
35857         Avoid trigraph quoting in default output.
35858         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
35859         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
35860         unless explicitly requested.
35861         * tests/test-quotearg.c (flag_results, main): Add additional tests.
35862
35863 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
35864
35865         Don't rely on signed integer overflowing to negative value.
35866         * lib/getugroups.c (getugroups): Include <limits.h>.
35867         Instead, compare against INT_MAX, and increment only if the test passes.
35868
35869 2008-02-13  Jim Meyering  <meyering@redhat.com>
35870         and Eric Blake  <ebb9@byu.net>
35871
35872         Avoid shadowing warning and compile errors on Linux.
35873         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
35874         forwarding macros on Linux.
35875         (dcgettext): Define a stub, for Linux.
35876         (results_g, main): Avoid warnings.
35877
35878 2008-02-12  Eric Blake  <ebb9@byu.net>
35879
35880         Silence warning in last patch.
35881         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
35882
35883         Quotearg part 4: add tests, fix c-maybe colon quoting.
35884         * lib/quotearg.h: Improve documentation.
35885         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
35886         escapes when adding outer quotes.  When quoting trigraphs, use
35887         valid C notation.  When quoting NUL, omit extra characters if next
35888         character is not digit.  Alter prototype.
35889         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
35890         callers.
35891         * modules/quotearg-tests: New module.
35892         * tests/test-quotearg.c: New test.
35893
35894 2008-02-07  Eric Blake  <ebb9@byu.net>
35895
35896         Quotearg part 3: add flag to control outer quote elision.
35897         * lib/quotearg.h (c_maybe_quoting_style): New style.
35898         (enum quoting_flags): Better documentation of flags.
35899         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
35900         c-maybe style.
35901         (quotearg_buffer_restyled): Handle new flag to elide outer
35902         quotes.
35903
35904         Quotearg part 2: add flag that can control NUL elision.
35905         * lib/quotearg.h (set_quoting_flags): New prototype.
35906         * lib/quotearg.c (struct quoting_options): Add flag field.
35907         (set_quoting_flags): New function.
35908         (quotearg_buffer_restyled): Add flags parameter.
35909         (quotearg_alloc_mem): Set the flag if length cannot be returned.
35910         (quotearg_n_options): Set the flag, since length cannot be
35911         returned.
35912         (quoting_options_from_style): Default flags correctly.
35913
35914         Quotearg part 1: more wrappers, restore quotearg_char state.
35915         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
35916         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
35917         (quotearg_colon_mem): New wrappers.
35918         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
35919         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
35920         functions.
35921         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
35922         (quotearg_colon_mem): New functions.
35923
35924 2008-02-11  Bruno Haible  <bruno@clisp.org>
35925
35926         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
35927         library in the current directory: it does not work with parallel make.
35928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35929
35930 2008-02-11  Bruno Haible  <bruno@clisp.org>
35931
35932         * .gitattributes: New file.
35933
35934 2008-02-11  Jim Meyering  <meyering@redhat.com>
35935
35936         useless-if-before-free: Fix reversed exit values.
35937         * build-aux/useless-if-before-free: Use correct values
35938         for EXIT_MATCH and EXIT_NO_MATCH.
35939
35940         * build-aux/useless-if-before-free: Close stdout carefully.
35941
35942 2008-02-10  Bruno Haible  <bruno@clisp.org>
35943
35944         New module 'git-merge-changelog'.
35945         * modules/git-merge-changelog: New file.
35946         * lib/git-merge-changelog.c: New file.
35947
35948 2008-02-10  Jim Meyering  <meyering@redhat.com>
35949
35950         useless-if-before-free: New option: --list (-l).
35951
35952         useless-if-before-free: Don't exit immediately upon open failure.
35953         * build-aux/useless-if-before-free: Exit 2 for errors.
35954         Upon failure to open a file, don't exit immediately.
35955         Rather, just warn and continue with any remaining files.
35956
35957 2008-02-10  Bruno Haible  <bruno@clisp.org>
35958
35959         New abstract list operation 'node_set_value'.
35960         * lib/gl_list.h (gl_list_node_set_value): New function.
35961         (struct gl_list_implementation): New field node_set_value.
35962         * lib/gl_list.c (gl_list_node_set_value): New function.
35963         * lib/gl_array_list.c (gl_array_node_set_value): New function.
35964         (gl_array_list_implementation): Update.
35965         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
35966         (gl_carray_list_implementation): Update.
35967         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
35968         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35969         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35970         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
35971         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35972         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35973         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35974         Update.
35975         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35976         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
35977         (gl_sublist_list_implementation): Update.
35978
35979 2008-02-10  Bruno Haible  <bruno@clisp.org>
35980
35981         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
35982         Needed when ELEMENT is #defined to 'some_type *'.
35983
35984 2008-02-10  Jim Meyering  <meyering@redhat.com>
35985
35986         New script and module: useless-if-before-free
35987         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
35988         * build-aux/useless-if-before-free: New file.
35989         * modules/useless-if-before-free: New file.
35990
35991         * build-aux/gitlog-to-changelog: Use committer date, not author date.
35992
35993         xstrtol_error: Fix typo.
35994         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
35995         s/exit_failure/exit_status/.
35996
35997 2008-02-09  Jim Meyering  <meyering@redhat.com>
35998
35999         New script and module: gitlog-to-changelog
36000         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36001         * modules/gitlog-to-changelog: New file.
36002         * build-aux/gitlog-to-changelog: New file.
36003
36004 2008-02-08  Jim Meyering  <meyering@redhat.com>
36005
36006         Avoid two "parameter unused" warnings.
36007         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36008         Mark "st" as used.
36009
36010         Use "git COMMAND", not "git-COMMAND".
36011         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36012         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36013         * build-aux/git-version-gen: Use "git status", not "git-status".
36014
36015 2008-02-07  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36018         Avoids a crash on Windows Vista.
36019         Reported by Adam Strzelecki <ono@java.pl> via
36020         Simon Josefsson <simon@josefsson.org>.
36021
36022 2008-02-06  Bruno Haible  <bruno@clisp.org>
36023
36024         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36025         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36026         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36028         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36030         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36031         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36039         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36040         left-adjust flag.
36041         * tests/test-snprintf-posix.h (test_function): Likewise.
36042         * tests/test-sprintf-posix.h (test_function): Likewise.
36043         * tests/test-vasprintf-posix.c (test_function): Likewise.
36044         * doc/posix-functions/fprintf.texi: Update.
36045         * doc/posix-functions/printf.texi: Update.
36046         * doc/posix-functions/snprintf.texi: Update.
36047         * doc/posix-functions/sprintf.texi: Update.
36048         * doc/posix-functions/vfprintf.texi: Update.
36049         * doc/posix-functions/vprintf.texi: Update.
36050         * doc/posix-functions/vsnprintf.texi: Update.
36051         * doc/posix-functions/vsprintf.texi: Update.
36052         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36053
36054 2008-02-06  Bruno Haible  <bruno@clisp.org>
36055
36056         Fix bug introduced on 2008-01-26.
36057         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36058
36059 2008-02-06  Bruno Haible  <bruno@clisp.org>
36060
36061         Fix bug introduced on 2007-06-10.
36062         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36063         !NEED_PRINTF_FLAG_ZERO.
36064
36065 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36066
36067         getloadavg: use libperfstat on AIX5
36068         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36069
36070 2008-02-03  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/diffseq.h: Add comments about required #includes.
36073         Reported by Michael Biggs <gnulib@doubleplum.net>.
36074
36075 2008-02-01  Bruno Haible  <bruno@clisp.org>
36076
36077         * users.txt: Add gnuit.
36078
36079 2008-01-31  Bruno Haible  <bruno@clisp.org>
36080
36081         * lib/md4.c (set_uint32): Mark as inline.
36082         * lib/md5.c (set_uint32): Likewise.
36083         * lib/sha1.c (set_uint32): Likewise.
36084         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36085         * m4/md5.m4 (gl_MD5): Likewise.
36086         * m4/sha1.m4 (gl_SHA1): Likewise.
36087
36088 2008-01-31  Jim Meyering  <meyering@redhat.com>
36089
36090         Use "sizeof VAR", rather than a literal "4".
36091         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36092         * lib/md4.c (md4_read_ctx): Likewise.
36093         * lib/sha1.c (sha1_read_ctx): Likewise.
36094
36095 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36096
36097         * tests/test-sha1.c: New file, based on test-md5.c.
36098
36099         * modules/crypto/sha1-tests: New file.
36100
36101 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36102
36103         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36104
36105 2008-01-31  Jim Meyering  <meyering@redhat.com>
36106
36107         Prefer "sizeof v" over the equivalent "4".
36108         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36109         * lib/md5.c (set_uint32): Likewise.
36110         * lib/sha1.c (set_uint32): Likewise.
36111
36112 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36113
36114         * lib/sha1.c (set_uint32): Mark function as static.
36115
36116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36117
36118         md2: clarify comments to say that alignment is not required.
36119         * lib/md2.h: Remove warning about alignment in comment.
36120         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36121         never been required.
36122
36123 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36124
36125         md4: adapt alignment constraint fix from sha1.
36126         * lib/md4.c (set_uint32): New function, from sha1.c
36127         (md4_read_ctx): Use it.
36128         (md4_finish_ctx): Doc fix.
36129         * lib/md4.h: Doc fix.
36130
36131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36132
36133         md5: adapt alignment constraint fix from sha1.
36134         * lib/md5.c (set_uint32): New function, from sha1.c
36135         (md5_read_ctx): Use it.
36136         (md5_finish_ctx): Doc fix.
36137         * lib/md5.h: Doc fix.
36138
36139 2008-01-30  Peter Palfrader  <weasel@debian.org>
36140
36141         sha1: remove the result buffer alignment constraint
36142         * lib/sha1.c (set_uint32): New function.
36143         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36144         constraint.
36145         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36146         * lib/sha1.h: Likewise.
36147
36148 2008-01-30  Andreas Schwab  <schwab@suse.de>
36149             Bruno Haible  <bruno@clisp.org>
36150
36151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36152         correct definition of LDBL_MIN_EXP.
36153
36154 2008-01-30  Karl Berry  <karl@gnu.org>
36155
36156         * config/srclist-update: try to preserve x bit on updates.
36157         * config/srclistvars.sh: update for karl.
36158
36159 2008-01-29  Jim Meyering  <meyering@redhat.com>
36160
36161         vasnprintf.c: Avoid warning about unused label
36162         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36163         "overflow" label definition and associated code with the
36164         same cpp condition that guards the sole use of that label.
36165
36166 2008-01-26  Bruno Haible  <bruno@clisp.org>
36167
36168         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36169         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36170         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36171         * lib/isnanl-nolibm.h (isnanl): Likewise.
36172         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36173
36174 2008-01-26  Bruno Haible  <bruno@clisp.org>
36175
36176         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36177         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36178
36179 2008-01-26  Bruno Haible  <bruno@clisp.org>
36180
36181         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36182         GCC >= 4.0 built-in.
36183         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36184
36185 2008-01-26  Bruno Haible  <bruno@clisp.org>
36186
36187         Rename isnan, applicable to 'double' only, to isnand.
36188         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36189         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36190         (configure.ac): Update.
36191         (Include): Replace "isnan.h" with "isnand.h".
36192         * m4/isnand.m4: Renamed from m4/isnan.m4.
36193         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36194         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36195         instead of isnan.c.
36196         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36197         instead of HAVE_ISNAN_IN_LIBC.
36198         (isnand): Renamed from isnan.
36199         * lib/isnand.c: New file.
36200         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36201         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36202         (Makefile.am): Update.
36203         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36204         Include isnand.h instead of isnan.h.
36205         (main): Test isnand instead of isnan.
36206         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36207         isnan-nolibm.
36208         * modules/frexp (Depends-on): Likewise.
36209         * modules/frexp-tests (Depends-on): Likewise.
36210         * modules/frexp-nolibm (Depends-on): Likewise.
36211         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36212         * modules/isfinite (Depends-on): Likewise.
36213         * modules/round-tests (Depends-on): Likewise.
36214         * modules/signbit (Depends-on): Likewise.
36215         * modules/signbit-tests (Depends-on): Likewise.
36216         * modules/snprintf-posix (Depends-on): Likewise.
36217         * modules/sprintf-posix (Depends-on): Likewise.
36218         * modules/trunc-tests (Depends-on): Likewise.
36219         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36220         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36221         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36222         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36223         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36224         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36225         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36226         * modules/vasnprintf-posix (Depends-on): Likewise.
36227         * modules/vasprintf-posix (Depends-on): Likewise.
36228         * modules/vfprintf-posix (Depends-on): Likewise.
36229         * modules/vsnprintf-posix (Depends-on): Likewise.
36230         * modules/vsprintf-posix (Depends-on): Likewise.
36231         * lib/frexp.c: Include isnand.h instead of isnan.h.
36232         (ISNAN): Set to isnand instead of isnan.
36233         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36234         (gl_isfinited): Use isnand instead of isnan.
36235         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36236         (gl_signbitd): Use isnand instead of isnan.
36237         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36238         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36239         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36240         (main): Use isnand instead of isnan.
36241         * tests/test-round1.c: Include isnand.h.
36242         (main): Use isnand instead of isnan.
36243         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36244         (ISNAN): Set to isnand instead of isnan.
36245         * tests/test-trunc1.c: Include isnand.h.
36246         (main): Use isnand instead of isnan.
36247         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36248         (equal): Use isnand instead of isnan.
36249         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36250         isnand-nolibm.
36251         * NEWS: Mention the change.
36252
36253 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36254             Bruno Haible  <bruno@clisp.org>
36255
36256         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36257         the GCC builtins for signbits are present and set
36258         REPLACE_SIGNBIT_USING_GCC if so.
36259         * lib/math.in.h (signbit): Define using GCC builtins if
36260         REPLACE_SIGNBIT_USING_GCC is set.
36261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36262         REPLACE_SIGNBIT_USING_GCC.
36263         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36264
36265 2008-01-25  Jim Meyering  <meyering@redhat.com>
36266
36267         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36268         * lib/poll.c: Include <config.h>, not "config.h".
36269         * tests/test-getaddrinfo.c: Likewise.
36270
36271 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36272
36273         * modules/sockets-tests: New file.
36274
36275 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36276
36277         * modules/sockets: New module, can be used to call WSA_Startup and
36278         WSA_Cleanup when needed.
36279
36280         * lib/sockets.h, lib/sockets.c: New files.
36281
36282         * m4/sockets.m4: New file.
36283
36284         * tests/test-sockets.c: New file.
36285
36286 2008-01-19  Bruno Haible  <bruno@clisp.org>
36287
36288         * doc/posix-headers: Renamed from doc/headers.
36289         * doc/posix-functions: Renamed from doc/functions.
36290         * doc/gnulib.texi: Update.
36291
36292 2008-01-19  Bruno Haible  <bruno@clisp.org>
36293
36294         * doc/glibc-functions/strcasestr.texi: Include contents of
36295         doc/functions/strcasestr.texi, fixing the list of platforms.
36296         * doc/functions/strcasestr.texi: Remove file.
36297
36298 2008-01-19  Bruno Haible  <bruno@clisp.org>
36299
36300         * doc/glibc-functions/memmem.texi: Include contents of
36301         doc/functions/memmem.texi.
36302         * doc/functions/memmem.texi: Remove file.
36303
36304 2008-01-18  Bruno Haible  <bruno@clisp.org>
36305
36306         * doc/glibc-functions/*.texi: New files.
36307         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36308         to use the new files.
36309
36310 2008-01-17  Bruno Haible  <bruno@clisp.org>
36311
36312         * tests/test-gethostname.c (main): Fix printf statement.
36313
36314 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36315
36316         * modules/gethostname-tests: New file.
36317
36318         * tests/test-gethostname.c: New file.
36319
36320 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36321
36322         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36323         used by the UNAME case.  Reported by Bruno Haible
36324         <bruno@clisp.org>.
36325
36326 2008-01-17  Eric Blake  <ebb9@byu.net>
36327
36328         Convert c-strcasestr to be more efficient.
36329         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36330         (Depends-on): Add c-strcase, remove malloca, strnlen.
36331         * tests/test-c-strcasestr.c (main): Enhance test.
36332         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36333
36334 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36335
36336         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36337         Use it in creating po/Makevars.
36338
36339 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36340
36341         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36342         Applications that requires it should initialize libgcrypt
36343         manually.
36344
36345 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36346
36347         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36348
36349 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36350
36351         Fix problem with getdate on mingw32 reported by Simon Josefsson
36352         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36353         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36354         tzname", when deciding whether to declare tzname.
36355         * lib/strftime.c (tzname): Likewise.
36356
36357 2008-01-15  Bruno Haible  <bruno@clisp.org>
36358
36359         Work around a MacOS X 10.5 bug in frexpl().
36360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36361         * doc/functions/frexpl.texi: Document the bug.
36362         Reported by Elias Pipping <pipping@gentoo.org>.
36363
36364 2008-01-14  Eric Blake  <ebb9@byu.net>
36365
36366         Touch up previous patch.
36367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36368         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36369
36370         Convert strcasestr module to use Two-Way algorithm.
36371         * modules/strcasestr-simple: New module, based on the old
36372         strcasestr, but with Two-Way rather than KMP.
36373         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36374         * lib/string.in.h (rpl_strcasestr): Declare.
36375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36376         performance.
36377         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36378         * modules/string (Makefile.am): Support strcasestr.
36379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36380         * modules/strcasestr-tests (Depends-on): Check for alarm.
36381         * tests/test-strcasestr.c: Augment test.
36382         * lib/str-two-way.h: Clean up stray macro.
36383         * NEWS: Document new module.
36384         * MODULES.html.sh (string handling): Likewise.
36385         * doc/functions/strcasestr.texi: New file.
36386         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36387         here, since it is not a POSIX function.
36388
36389 2008-01-14  Colin Watson  <cjwatson@debian.org>
36390             Bruno Haible  <bruno@clisp.org>
36391
36392         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36393         works fine; if not, set REPLACE_STRSIGNAL.
36394         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36396         REPLACE_STRSIGNAL.
36397         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36398         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36399         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36400
36401 2008-01-14  Bruno Haible  <bruno@clisp.org>
36402
36403         * modules/strsignal (Include): Change to <string.h>.
36404
36405 2008-01-14  Colin Watson  <cjwatson@debian.org>
36406
36407         * modules/argp (Notice): Add a notice recommending to change
36408         XGETTEXT_OPTIONS.
36409         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36410
36411 2008-01-13  Colin Watson  <cjwatson@debian.org>
36412
36413         * modules/strsignal-tests: New file.
36414         * tests/test-strsignal.c: New file.
36415
36416         * lib/strsignal.c: New file, from glibc with modifications.
36417         * lib/siglist.h: New file, from glibc with modifications.
36418         * lib/string.in.h (strsignal): New declaration.
36419         * m4/strsignal.m4: New file.
36420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36421         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36422         * modules/strsignal: New file.
36423         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36424         HAVE_DECL_STRSIGNAL.
36425
36426 2008-01-13  Bruno Haible  <bruno@clisp.org>
36427
36428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36429         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36430         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36431         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36432
36433 2008-01-13  Bruno Haible  <bruno@clisp.org>
36434
36435         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36436         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36437         * lib/argp.h (__attribute__): Likewise.
36438         * lib/c-stack.c (__attribute__): Likewise.
36439         * lib/error.h (__attribute__): Likewise.
36440         * lib/fts.c (__attribute__): Likewise.
36441         * lib/openat.h (__attribute__): Likewise.
36442         * lib/stdio.in.h (__attribute__): Likewise.
36443         * lib/string.in.h (__attribute__): Likewise.
36444         * lib/utimens.c (__attribute__): Likewise.
36445         * lib/vasnprintf.h (__attribute__): Likewise.
36446         * lib/xalloc.h (__attribute__): Likewise.
36447         * lib/xprintf.h (__attribute__): Likewise.
36448         * lib/xstrtol.h (__attribute__): Likewise.
36449         * lib/xvasprintf.h (__attribute__): Likewise.
36450
36451 2008-01-12  Bruno Haible  <bruno@clisp.org>
36452
36453         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36454         * doc/glibc-headers/a.out.texi: New file.
36455         * doc/glibc-headers/aliases.texi: New file.
36456         * doc/glibc-headers/alloca.texi: New file.
36457         * doc/glibc-headers/ar.texi: New file.
36458         * doc/glibc-headers/argp.texi: New file.
36459         * doc/glibc-headers/argz.texi: New file.
36460         * doc/glibc-headers/byteswap.texi: New file.
36461         * doc/glibc-headers/crypt.texi: New file.
36462         * doc/glibc-headers/endian.texi: New file.
36463         * doc/glibc-headers/envz.texi: New file.
36464         * doc/glibc-headers/err.texi: New file.
36465         * doc/glibc-headers/error.texi: New file.
36466         * doc/glibc-headers/execinfo.texi: New file.
36467         * doc/glibc-headers/fpu_control.texi: New file.
36468         * doc/glibc-headers/fstab.texi: New file.
36469         * doc/glibc-headers/fts.texi: New file.
36470         * doc/glibc-headers/getopt.texi: New file.
36471         * doc/glibc-headers/ieee754.texi: New file.
36472         * doc/glibc-headers/ifaddrs.texi: New file.
36473         * doc/glibc-headers/libintl.texi: New file.
36474         * doc/glibc-headers/mcheck.texi: New file.
36475         * doc/glibc-headers/mntent.texi: New file.
36476         * doc/glibc-headers/obstack.texi: New file.
36477         * doc/glibc-headers/paths.texi: New file.
36478         * doc/glibc-headers/printf.texi: New file.
36479         * doc/glibc-headers/pty.texi: New file.
36480         * doc/glibc-headers/resolv.texi: New file.
36481         * doc/glibc-headers/shadow.texi: New file.
36482         * doc/glibc-headers/sysexits.texi: New file.
36483         * doc/glibc-headers/ttyent.texi: New file.
36484
36485 2008-01-12  Jim Meyering  <meyering@redhat.com>
36486
36487         announce-gen: emit Gnulib's git-based version string.
36488         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
36489         New option --gnulib-version=V, where V is expected to be
36490         the output of running git describe in the gnulib directory.
36491         (get_tool_versions): Request feedback on xdelta.  I suspect it's
36492         not useful, and plan to stop publishing an xdelta file with each
36493         coreutils release.
36494
36495         * build-aux/announce-gen: Also check for lzma-compressed files.
36496
36497 2008-01-11  Bruno Haible  <bruno@clisp.org>
36498
36499         * tests/test-memmem.c (main): Increase maximum allowed time.
36500         * tests/test-strstr.c (main): Likewise.
36501
36502 2008-01-11  Bruno Haible  <bruno@clisp.org>
36503
36504         * doc/functions/memmem.texi: Add more precisions about platforms.
36505         * doc/functions/strstr.texi: Likewise.
36506
36507 2008-01-10  Eric Blake  <ebb9@byu.net>
36508
36509         * m4/strstr.m4: Delete cruft from copy-n-paste.
36510         Reported by Bruno Haible.
36511
36512 2008-01-10  Bruno Haible  <bruno@clisp.org>
36513
36514         Make c-strstr rely on strstr.
36515         * lib/c-strstr.c: Don't include str-kmp.h.
36516         (c_strstr): Define in terms of strstr.
36517         * modules/c-strstr (Files): Remove lib/str-kmp.h.
36518         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
36519
36520 2008-01-10  Bruno Haible  <bruno@clisp.org>
36521
36522         * doc/gnulib.texi (String Functions in C Locale): New section.
36523         * doc/c-ctype.texi: New file.
36524         * doc/c-strcase.texi: New file.
36525         * doc/c-strcaseeq.texi: New file.
36526         * doc/c-strcasestr.texi: New file.
36527         * doc/c-strstr.texi: New file.
36528         * doc/c-strtod.texi: New file.
36529         * doc/c-strtold.texi: New file.
36530
36531 2008-01-10  Eric Blake  <ebb9@byu.net>
36532
36533         * lib/relocatable.h: Fix a comment.
36534
36535 2008-01-10  Eric Blake  <ebb9@byu.net>
36536
36537         Share two-way algorithm.
36538         * lib/str-two-way.h: New file, merged from...
36539         * lib/memmem.c: ...here...
36540         * lib/strstr.c: ...and here.
36541         * modules/memmem (Files): Use it.
36542         * modules/strstr (Files): Likewise.
36543
36544         Avoid quadratic strstr implementations.
36545         * lib/strstr.c: New file.
36546         * m4/strstr.m4: Likewise.
36547         * modules/strstr: Likewise.
36548         * modules/strstr-tests: Likewise.
36549         * tests/test-strstr.c: Likewise.
36550         * lib/string.in.h (rpl_strstr): Declare.
36551         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
36552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
36553         * modules/string (Makefile.am): Likewise.
36554         * MODULES.html.sh (string handling): Mention new module.
36555         * doc/functions/strstr.texi (strstr): Document the bug.
36556
36557 2008-01-10  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/relocatable.h (relocate): State whether result is freshly
36560         allocated or not.
36561         * lib/relocatable.c (relocate): Return a freshly allocated string
36562         instead of a pointer to a privately held string.
36563         Reported by Sylvain Beucler <beuc@gnu.org>.
36564
36565 2008-01-10  Colin Watson  <cjwatson@debian.org>
36566
36567         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
36568         s/S_ISNLK/S_ISLNK/.
36569
36570 2008-01-09  Bruno Haible  <bruno@clisp.org>
36571
36572         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
36573         and other files.
36574         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
36575         if it's only a guess.
36576         * modules/memmem: Simplify by depending on memmem-simple.
36577
36578 2008-01-09  Bruno Haible  <bruno@clisp.org>
36579
36580         Work around OpenBSD 4.0 tdelete() bug.
36581         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
36582         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
36583         macros and don't redefine the enum values.
36584         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
36585         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
36586         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
36587
36588 2008-01-09  Bruno Haible  <bruno@clisp.org>
36589
36590         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
36591         (main): Don't perform the tests if setlocale did not install a UTF-8
36592         locale. Needed on OpenBSD 4.0.
36593         * modules/wcwidth-tests (Depends-on): Add localcharset.
36594
36595 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36596
36597         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
36598         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
36599         * NEWS: announce this.
36600         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
36601
36602 2008-01-09  Simon Josefsson  <simon@josefsson.org>
36603         and Eric Blake  <ebb9@byu.net>
36604
36605         Add memmem-simple module.
36606         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
36607         (gl_FUNC_MEMMEM): Separate performance from presence checks.
36608         * modules/memmem-simple: New file.
36609         * modules/memmem (Description): Tweak.
36610         * MODULES.html.sh (string handling): Mention new module.
36611         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
36612         addressed by memmem-simple.
36613         * NEWS: Document the difference.
36614
36615 2008-01-09  Eric Blake  <ebb9@byu.net>
36616
36617         Give gcc some memmem optimization hints.
36618         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
36619         (strcasestr): Declare as pure.
36620         * modules/memmem (Maintainer): Claim my implementation.
36621
36622 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36623
36624         Support AIX 6.1 and higher.
36625         * build-aux/config.libpath: Likewise.
36626         * build-aux/config.rpath: Likewise.
36627
36628 2008-01-08  Jim Meyering  <meyering@redhat.com>
36629             Bruno Haible  <bruno@clisp.org>
36630
36631         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
36632         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
36633         Reported by Peter Fales in
36634         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
36635
36636 2008-01-08  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/unictype/category-of (Depends-on): Add
36639         unictype/category-none.
36640         * modules/unictype/category-and-tests (Depends-on): Add
36641         unictype/category-{L,N,Lu,Nd}.
36642         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
36643         * modules/unictype/category-or-tests (Depends-on): Add
36644         unictype/category-{L,N}.
36645         * modules/unictype/category-name-tests (Depends-on): Add
36646         unictype/category-{Z,Nl}.
36647         Reported by Simon Josefsson.
36648
36649 2008-01-08  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
36652         convention better.
36653         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
36654         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
36655         Reported by Peter Miller <millerp@canb.auug.org.au>.
36656
36657 2008-01-08  Eric Blake  <ebb9@byu.net>
36658
36659         Rewrite memmem to guarantee linear complexity without malloc.
36660         * lib/memmem.c (memmem): Use Two-Way rather than
36661         Knuth-Morris-Pratt, to allow O(1) space usage.
36662         (critical_factorization, two_way_short_needle)
36663         (two_way_long_needle): New functions.
36664         (knuth_morris_pratt): Delete.
36665         * modules/memmem (Depends-on): No longer need malloca or stdbool.
36666         Add stdint.
36667         * tests/test-memmem.c (main): Add tests for periodic needle and
36668         sublinear performance.
36669         * doc/functions/memmem.texi (memmem): Document other deficiencies
36670         in cygwin and older glibc.
36671
36672 2008-01-08  Bruno Haible  <bruno@clisp.org>
36673
36674         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
36675         augmentation.
36676
36677 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
36678
36679         Add a configure time option: --disable-acl.
36680         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
36681         AC_ARG_ENABLE(acl).
36682
36683 2008-01-06  Simon Josefsson  <simon@josefsson.org>
36684
36685         * tests/test-localename.c: Don't include obsolete "setenv.h".
36686
36687         * modules/localename-tests (Depends-on): Need unsetenv.
36688
36689 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36690
36691         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
36692
36693 2008-01-06  Colin Watson  <cjwatson@debian.org>
36694
36695         * users.txt: Add man-db.
36696
36697 2008-01-07  Bruno Haible  <bruno@clisp.org>
36698
36699         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
36700         previous section name.
36701
36702 2008-01-07  Bruno Haible  <bruno@clisp.org>
36703
36704         * lib/progname.c (set_program_name): Don't strip off a leading
36705         "lt-" prefix outside a .libs directory.
36706         Suggested by Paul Eggert.
36707
36708 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
36709             Bruno Haible  <bruno@clisp.org>
36710
36711         Improve memory cleanup in 'relocatable' module.
36712         * lib/relocatable.h (compute_curr_prefix): Change return type to
36713         'char *'.
36714         * lib/relocatable.c (compute_curr_prefix): Change return type to
36715         'char *'. Free curr_installdir after use.
36716         (relocate): Free curr_prefix_better after use.
36717         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
36718
36719 2008-01-01  Bruno Haible  <bruno@clisp.org>
36720
36721         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
36722         failure on older glibc systems.
36723         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36724
36725 2008-01-05  Eric Blake  <ebb9@byu.net>
36726
36727         Avoid quadratic system memmem.
36728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
36729         Reported by Ralf Wildenhues.
36730
36731         Fix memmem test for mingw.
36732         * modules/memmem-tests (configure.ac): Check for alarm.
36733         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
36734         it.
36735         * doc/functions/memmem.texi: New file.
36736         * doc/gnulib.texi (Function Substitutes): Add memmem.
36737         Reported by Bruno Haible.
36738
36739 2008-01-04  Bruno Haible  <bruno@clisp.org>
36740
36741         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
36742         Require gl_HEADER_STRINGS_H_DEFAULTS, not
36743         gl_HEADER_STRING_H_DEFAULTS.
36744
36745 2008-01-04  Eric Blake  <ebb9@byu.net>
36746
36747         Shorten duration of memmem test.
36748         * tests/test-memmem.c (main): Use alarm to declare failure if test
36749         is taking too long.
36750         Reported by Ralf Wildenhues.
36751
36752 2007-12-21  Simon Josefsson  <simon@josefsson.org>
36753
36754         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
36755         string, needed by strerror.
36756
36757 2008-01-03  Colin Watson  <cjwatson@debian.org>
36758             Bruno Haible  <bruno@clisp.org>
36759
36760         * doc/gnulib-tool.texi (Localization): New section.
36761
36762 2008-01-02  Bruno Haible  <bruno@clisp.org>
36763
36764         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
36765         variables to 'unsigned char *' type.
36766         Reported by Paul Eggert.
36767
36768 2008-01-02  Jim Meyering  <jim@meyering.net>
36769
36770         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
36771
36772 2007-12-31  Jim Meyering  <jim@meyering.net>
36773
36774         Avoid use of private FTS type name.
36775         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
36776
36777 2007-12-30  Karl Berry  <karl@gnu.org>
36778
36779         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
36780         work around defect in Texinfo and/or the standalone Info browser.
36781
36782 2007-12-30  Bruno Haible  <bruno@clisp.org>
36783
36784         Unify 5 copies of the KMP code.
36785         * lib/str-kmp.h: New file.
36786         * lib/c-strcasestr.c: Include str-kmp.h.
36787         (knuth_morris_pratt): Remove function.
36788         (c_strcasestr): Update.
36789         * lib/c-strstr.c: Include str-kmp.h.
36790         (knuth_morris_pratt): Remove function.
36791         (c_strcasestr): Update.
36792         * lib/mbscasestr.c: Include str-kmp.h.
36793         (knuth_morris_pratt_unibyte): Remove function.
36794         * lib/mbsstr.c: Include str-kmp.h.
36795         (knuth_morris_pratt_unibyte): Remove function.
36796         * lib/strcasestr.c: Include str-kmp.h.
36797         (knuth_morris_pratt): Remove function.
36798         (strcasestr): Update.
36799         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
36800         * modules/c-strstr (Files): Likewise.
36801         * modules/mbscasestr (Files): Likewise.
36802         * modules/mbsstr (Files): Likewise.
36803         * modules/strcasestr (Files): Likewise.
36804         Suggested by Paul Eggert.
36805
36806 2007-12-30  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
36809         defined.
36810
36811 2007-12-30  Bruno Haible  <bruno@clisp.org>
36812
36813         * lib/xmalloca.h: Include xalloc.h.
36814         (xnmalloca): New macro.
36815
36816 2007-12-30  Bruno Haible  <bruno@clisp.org>
36817
36818         * lib/malloca.h (nmalloca): New macro.
36819         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
36820         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
36821         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
36822         knuth_morris_pratt_multibyte): Likewise.
36823         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
36824         knuth_morris_pratt_multibyte): Likewise.
36825         * lib/memmem.c (knuth_morris_pratt): Likewise.
36826         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
36827
36828 2007-12-25  Bruno Haible  <bruno@clisp.org>
36829
36830         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
36831         * lib/glob.c: Don't include openat.h.
36832         (link_exists2_p): Add back the code that deals with the
36833         !GLOB_ALTDIRFUNC case.
36834         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
36835         let it do the filename concatenation.
36836         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
36837         * modules/glob (Depends-on): Remove openat.
36838
36839 2007-12-31  Bruno Haible  <bruno@clisp.org>
36840
36841         * modules/dirfd (License): Change to LGPLv2+.
36842         Approved by Jim Meyering.
36843
36844 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36845
36846         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
36847         when multiplying M by sizeof (size_t).
36848
36849 2007-12-10  Martin Lambers  <marlam@marlam.de>
36850
36851         Override getpagesize on mingw.
36852         * lib/getpagesize.c: New file.
36853         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
36854         * modules/getpagesize (Files): Add lib/getpagesize.c.
36855         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
36856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36857         REPLACE_GETPAGESIZE.
36858         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
36859
36860 2007-12-25  Bruno Haible  <bruno@clisp.org>
36861
36862         * modules/localcharset (Notice): New field.
36863         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
36864         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36865
36866 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36867             Bruno Haible  <bruno@clisp.org>
36868
36869         Avoid using the syntax symbol() in formatted documentation.
36870         * MODULES.html.sh (func_module): When replacing symbol() with a
36871         hyperlink, remove the parentheses. Show an error if some remain.
36872         Recognize and render the '...' syntax.
36873         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
36874         Rework. Add paragraph about GCC's inlining.
36875         * doc/alloca.texi: Likewise.
36876         * doc/error.texi: Remove parentheses from symbol reference.
36877         * doc/gnulib-intro.texi: Likewise.
36878         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
36879         * modules/fnmatch (Description): Reword to say "the ... function".
36880         * modules/full-read (Description): Likewise.
36881         * modules/full-write (Description): Likewise.
36882         * modules/safe-read (Description): Likewise.
36883         * modules/safe-write (Description): Likewise.
36884         * modules/strchrnul (Description): Likewise.
36885         * modules/trim (Description): Likewise.
36886         * modules/error (Description): Remove parentheses from symbol
36887         references.
36888         * modules/verror (Description): Likewise.
36889         Reported by Karl Berry.
36890
36891 2007-12-25  Bruno Haible  <bruno@clisp.org>
36892
36893         Fixup after 2007-10-16 commit.
36894         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
36895
36896 2007-12-24  Bruno Haible  <bruno@clisp.org>
36897
36898         Make --enable-relocatable work with DESTDIR.
36899         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
36900         to compute installdir from destprog.
36901         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
36902         also set the RELOC_DESTDIR variable.
36903         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36904
36905 2007-12-24  Bruno Haible  <bruno@clisp.org>
36906
36907         Fix link error due to xalloc_die().
36908         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
36909         of xreadlink.
36910         * lib/relocwrapper.c: Update comments.
36911         * build-aux/install-reloc: Remove xreadlink.c from file list.
36912         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
36913         xreadlink.c.
36914         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36915
36916 2007-12-24  Bruno Haible  <bruno@clisp.org>
36917
36918         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
36919         * lib/setenv.h: Remove file.
36920         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
36921         lib/setenv.h.
36922         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
36923         (Depends-on): Add stdlib.
36924         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
36925         gl_FUNC_UNSETENV.
36926         (Include): Replace setenv.h with <stdlib.h>.
36927         * modules/unsetenv: New file.
36928         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
36929         * lib/unsetenv.c: Include <stdlib.h> first.
36930         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
36931         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
36932         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
36933         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
36934         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
36935         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
36937         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36938         * doc/functions/unsetenv.texi: Update.
36939         * modules/xsetenv (Depends-on): Add unsetenv.
36940         * modules/getdate (Depends-on): Likewise.
36941         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
36942         * lib/xsetenv.c: Don't include setenv.h.
36943         * lib/getdate.y: Likewise.
36944         * lib/relocwrapper.c: Likewise.
36945         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
36946         (Depends-on): Add stdlib.
36947         * NEWS: Mention the changes.
36948         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36949
36950 2007-12-23  Bruno Haible  <bruno@clisp.org>
36951
36952         * lib/memmem.c (memmem): Use lowercase variable names. Tab
36953         indentation.
36954
36955 2007-12-23  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/c-strcasestr.c: Add more comments.
36958         * lib/c-strstr.c: Likewise.
36959         * lib/mbscasestr.c: Likewise.
36960         * lib/mbsstr.c: Likewise.
36961         * lib/strcasestr.c: Likewise.
36962         * lib/memmem.c: Likewise.
36963
36964 2007-12-23  Bruno Haible  <bruno@clisp.org>
36965
36966         * tests/test-memmem.c: Include <string.h> first.
36967
36968 2007-12-22  Bruno Haible  <bruno@clisp.org>
36969
36970         * gnulib-tool (func_create_testdir): Change $auxdir while generating
36971         the contents of $testsbase.
36972         Reported by Ralf Wildenhues.
36973
36974 2007-12-22  Bruno Haible  <bruno@clisp.org>
36975
36976         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
36977         two variables local_ldadd_before, local_ldadd_last.
36978
36979 2007-12-20  Eric Blake  <ebb9@byu.net>
36980
36981         Work around circular library issue when cross-compiling.
36982         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
36983         that progname.o does not need to pull in rpl_memcmp.
36984
36985 2007-12-19  Eric Blake  <ebb9@byu.net>
36986
36987         Fix memmem to avoid O(n^2) worst-case complexity.
36988         * lib/memmem.c (knuth_morris_pratt): New function.
36989         (memmem): Use it if first few naive iterations fail.
36990         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
36991         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
36992         * modules/memchr (License): Likewise.
36993         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
36994         malloca.
36995         * tests/test-memmem.c: Rewrite, borrowing ideas from
36996         test-mbsstr1.c; the old version wouldn't even compile!
36997         * modules/memmem-tests: New file.
36998         * lib/string.in.h (rpl_memmem): Add declaration.
36999         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37001         REPLACE_MEMMEM.
37002
37003 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37004
37005         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37006         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37007         before any system include files, and undef after them all.  This
37008         should fix a problem on VMS reported by John E. Malmberg in
37009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37010
37011 2007-12-17  Eric Blake  <ebb9@byu.net>
37012
37013         Revert addition of verify, for BSD/OS.
37014         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37015         can't handle large files, for the sake of obsolete platforms.
37016         * modules/fseeko (Depends-on): Remove verify.
37017         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37018         * doc/functions/ftello.texi (ftello): Likewise.
37019         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37020         Reported by Larry Jones.
37021
37022 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37023
37024         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37025         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37026
37027 2007-12-17  Jim Meyering  <meyering@redhat.com>
37028
37029         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37030         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37031         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37032         * modules/getcwd (Depends-on): Add openat.
37033         Reported by Petr Salinger.
37034
37035 2007-12-17  Bruno Haible  <bruno@clisp.org>
37036
37037         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37038         avoid a segmentation fault of the configure test on x86_64 systems.
37039
37040 2007-12-15  Jim Meyering  <meyering@redhat.com>
37041
37042         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37043
37044 2007-12-13  Eric Blake  <ebb9@byu.net>
37045
37046         Another fseek test.
37047         * tests/test-fseek.c (main): Also test ungetc handling.
37048         * tests/test-fseeko.c (main): Likewise.
37049         * modules/fseeko (Depends-on): Add verify.
37050         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37051         large.
37052         Reported by Larry Jones.
37053
37054         Fix fseeko on mingw.
37055         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37056         seek.
37057
37058         Beef up fseek tests.
37059         * tests/test-fseek.c (main): Also test eof handling.
37060         * tests/test-fseeko.c (main): Likewise.
37061         Reported by Larry Jones.
37062
37063 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37064
37065         Fix fseeko on BSD-based platforms.
37066         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37067         successful seek.
37068
37069 2007-12-12  Eric Blake  <ebb9@byu.net>
37070
37071         Allow circular dependency of separate libtests.a
37072         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37073         when use_libtests.
37074
37075 2007-12-11  Eric Blake  <ebb9@byu.net>
37076
37077         Fix bug with -0.0L in previous patch.
37078         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37079         * tests/test-isnan.c (main): Also test on zeroes.
37080         * tests/test-isnanf.c (main): Likewise.
37081         * tests/test-isnanl.h (main): Likewise.
37082
37083         Detect pseudo-denormals on x86 even when cross-compiling.
37084         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37085         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37086         invalid bit patterns that happen to satisfy ==.
37087
37088         Avoid link failures with separate libtests.a.
37089         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37090         last, to satisfy circular dependencies.
37091
37092 2007-12-11  Eric Blake  <ebb9@byu.net>
37093         and Bruno Haible  <bruno@clisp.org>
37094
37095         Fix OpenBSD 4.0 <float.h> handling of long double.
37096         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37097         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37098         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37099
37100 2007-12-11  Jim Meyering  <meyering@redhat.com>
37101
37102         * users.txt: Add libvirt.
37103
37104         Support versions of autoconf prior to 2.59c.
37105         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37106         if it is not already defined.
37107
37108 2007-12-09  Bruno Haible  <bruno@clisp.org>
37109
37110         Let 'gnulib-tool --import' collect sources needed for the tests in
37111         tests/ rather than in lib/.
37112         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37113         argument. If true, add rules to generate libtests.a, and put libtests.a
37114         into $(LDADD). Consider source files in subdirectories and set
37115         uses_subdirs.
37116         (func_emit_initmacro_start, func_emit_initmacro_end,
37117         func_emit_initmacro_done): Pass all arguments explicitly.
37118         (func_import): Determine two module lists main_modules,
37119         testsrelated_modules. Determine use_libtests. Determine two variables
37120         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37121         instead of just sed_transform_lib_file. Determine two variables
37122         main_files and testsrelated_files. Compute 'files' as the union of
37123         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37124         func_add_or_update. In the generated gnulib-comp.m4, collect the
37125         object files for tests/ in different variables than those for lib/.
37126         Substitute LIBTESTS_LIBDEPS.
37127         (func_create_testdir): Combine the uses_subdirs results from
37128         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37129
37130 2007-12-09  Bruno Haible  <bruno@clisp.org>
37131
37132         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37133         the build-aux directory.
37134
37135 2007-12-09  Bruno Haible  <bruno@clisp.org>
37136
37137         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37138         introduced on 2006-09-09.
37139
37140 2007-12-07  Jim Meyering  <meyering@redhat.com>
37141
37142         Let these macros work also with autoconf-2.59.
37143         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37144         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37146
37147 2007-12-06  Jim Meyering  <meyering@redhat.com>
37148
37149         Avoid a configure-time syntax error in gl_FUNC_ACL.
37150         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37151         function in each branch, before testing the cache variable.
37152
37153 2007-12-04  Eric Blake  <ebb9@byu.net>
37154
37155         Make scripts executable.
37156         * build-aux/config.guess: Add execute permissions.
37157         * build-aux/config.sub: Likewise.
37158         * build-aux/gendocs.sh: Likewise.
37159
37160         Fix frexp on mingw.
37161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37162         cross-compiling.
37163         * doc/functions/frexp.texi (frexp): Document the bug.
37164
37165         Make cygwin fseeko check more reliable.
37166         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37167         version numbers, rather than unrelated feature check.
37168         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37169         * doc/functions/ftello.texi (ftello): Likewise.
37170         Reported by Bruno Haible.
37171
37172         * m4/strerror.m4: Bump version number.
37173
37174 2007-12-03  Bruno Haible  <bruno@clisp.org>
37175
37176         * doc/functions/mprotect.texi: Mention the mingw problem.
37177
37178 2007-12-03  Eric Blake  <ebb9@byu.net>
37179
37180         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37181         REPLACE_STRERROR is initialized before this macro.
37182
37183 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37184
37185         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37186         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37187         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37188         put -lsec in even for programs other than 'ls'.  This fixes a problem
37189         for gettext reported by Bruno Haible in
37190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37191         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37192         Add support for Solaris 10.  This isn't efficient, but should get the
37193         job done for now.
37194
37195 2007-12-03  James Youngman  <jay@gnu.org>
37196
37197         * doc/regexprops-generic.texi: change "an close-group" to "a
37198         close-group" and "illegal" to "not allowed".
37199
37200 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37201
37202         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37203         pr_byname.h. Needed for the rare case when the maintainer has done
37204         "make maintainer-clean" in the source directory and then attempts a
37205         build outside the source directory.
37206         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37207         scripts_byname.h.
37208
37209 2007-12-02  Martin Lambers <marlam@marlam.de>
37210             Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/getpagesize.h: Remove file.
37213         * lib/unistd.in.h: Include declaration of getpagesize here.
37214         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37215         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37216         HAVE_SYS_PARAM_H.
37217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37218         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37219         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37220         (Depends-on): Add unistd.
37221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37222         (Include): Use <unistd.h> instead of getpagesize.h.
37223         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37224         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37225         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37226         gl_GETPAGESIZE invocation, already handled by module dependency.
37227         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37228
37229 2007-12-02  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/strings-tests: New file.
37232         * tests/test-strings.c: New file.
37233
37234         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37235         * lib/strings.in.h: New file.
37236         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37237         * m4/strings_h.m4: New file.
37238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37239         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37240         * modules/strings: New file.
37241         * modules/string (Makefile.am): Update.
37242         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37243         Reported by Karl Berry.
37244
37245 2007-12-01  Eric Blake  <ebb9@byu.net>
37246
37247         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37248         accomodate fix in cygwin 1.5.25.
37249
37250 2007-12-01  Jim Meyering  <meyering@redhat.com>
37251
37252         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37253         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37254         that would inhibit utf8-optimization of a regexp containing line-
37255         or buffer-anchors, e.g., `^', `$'.
37256
37257 2007-11-30  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37260         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37261         glthread_recursive_lock_init.
37262         * lib/lock.c (glthread_recursive_lock_init)
37263         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37264         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37265
37266 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37267
37268         New function qset_acl, like set_acl but with syscall semantics.
37269         * lib/acl.h (qset_acl): New decl.
37270         * lib/acl.c (qset_acl): New function.
37271         (set_acl): Use new function.  Use more-consistent diagnostics.
37272
37273 2007-11-28  Jim Meyering  <meyering@redhat.com>
37274
37275         * modules/physmem (License): Change from GPL to LGPLv2+.
37276
37277 2007-11-26  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37280         'long double' type has excess precision.
37281         Reported by Jim Meyering in
37282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37283
37284 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37285
37286         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37287         Sync from <http://gnu.org/licenses>.
37288         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37289         with license text from same location.
37290         * doc/maintain.texi, doc/standards.texi:  Sync from
37291         <http://savannah.gnu.org/projects/gnustandards>.
37292
37293 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37294         and Jim Meyering  <meyering@redhat.com>
37295
37296         Adjust getdate' grammar to accept a slightly more regular language.
37297         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37298         Before, the former was rejected.
37299         * lib/getdate.y (digits_to_date_time): New function, factored
37300         out of ...
37301         (number): ...here.  Just call digits_to_date_time.
37302         (hybrid): New non-terminal to handle an <unsigned number,
37303         signed relative offset> sequence consistently.
37304
37305 2007-11-18  Jim Meyering  <meyering@redhat.com>
37306
37307         Pull my changes from coreutils:
37308         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37309         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37310         use of $gnulib_tool_option_extras, so that it's separated from the
37311         preceding argument.
37312
37313         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37314         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37315         parent destination directories before copying a file into place.
37316
37317 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37318
37319         bootstrap: work also with 4-argument variant of AC_INIT
37320         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37321
37322 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37323
37324         Port test-getaddrinfo to Solaris.
37325         Problem reported by Bruno Haible in
37326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37327         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37328         explanation of setting 'hints'.
37329         Don't reject an implementation merely because it returns EAI_SERVICE.
37330         (EAI_SERVICE): Define to 0 if not defined.
37331
37332 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37333
37334         The license of gnu-make and posix-shell is now "GPLed build tool".
37335         * modules/gnu-make (License): Likewise.
37336         * modules/posix-shell (License): Likewise.
37337
37338         New module posix-shell, for determining a POSIX shell
37339         or perhaps something that is close enough to a POSIX shell.
37340         * m4/posix-shell.m4: New file.
37341         * modules/posix-shell: New file.
37342
37343         * MODULES.html.sh: Mention new module.
37344
37345         New module gnu-make, for determining whether we're using GNU Make.
37346         * m4/gnu-make.m4: New file.
37347         * modules/gnu-make: New file.
37348         * MODULES.html.sh: Mention new module.
37349
37350 2007-11-14  Jim Meyering  <meyering@redhat.com>
37351
37352         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37353         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37354         use this macro to create a function _definition_.
37355         Remove useless "#undef ARGMATCH_DIE".
37356
37357 2007-11-14  Bruno Haible  <bruno@clisp.org>
37358
37359         * lib/config.charset: Update for OpenBSD 4.1.
37360         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37361
37362 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37363
37364         Document 64-bit #if problems in stdint.texi.
37365         * doc/headers/stdint.texi (stdint.h): Mention problems with
37366         64-bit-#if, and how to work around them.
37367
37368         Don't insist on 'long long int' support in the preprocessor.  It
37369         breaks too many things.  For example, PRIdMAX still uses a 'long
37370         long int' format with the latest Sun compiler, even though
37371         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37372         preprocessor problem.  This causes the latest coreutils to dump
37373         core on Solaris 10 sparc with the Sun C compiler.
37374         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37375         the troublesome expressions at configure-time, not at #if-time.
37376         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37377         preprocessor.
37378         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37379         compile-time C checks, done at 'configure'-time.
37380         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37381         * modules/inttypes (Makefile): Substitute the new symbols that
37382         gl_INTTYPES_H now generates.
37383         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37384
37385 2007-11-12  Bruno Haible  <bruno@clisp.org>
37386
37387         Tests for Unicode character classification functions.
37388
37389         * modules/unictype/bidicategory-byname-tests: New file.
37390         * modules/unictype/bidicategory-name-tests: New file.
37391         * modules/unictype/bidicategory-of-tests: New file.
37392         * modules/unictype/bidicategory-test-tests: New file.
37393         * modules/unictype/block-list-tests: New file.
37394         * modules/unictype/block-of-tests: New file.
37395         * modules/unictype/block-test-tests: New file.
37396         * modules/unictype/category-C-tests: New file.
37397         * modules/unictype/category-Cc-tests: New file.
37398         * modules/unictype/category-Cf-tests: New file.
37399         * modules/unictype/category-Cn-tests: New file.
37400         * modules/unictype/category-Co-tests: New file.
37401         * modules/unictype/category-Cs-tests: New file.
37402         * modules/unictype/category-L-tests: New file.
37403         * modules/unictype/category-Ll-tests: New file.
37404         * modules/unictype/category-Lm-tests: New file.
37405         * modules/unictype/category-Lo-tests: New file.
37406         * modules/unictype/category-Lt-tests: New file.
37407         * modules/unictype/category-Lu-tests: New file.
37408         * modules/unictype/category-M-tests: New file.
37409         * modules/unictype/category-Mc-tests: New file.
37410         * modules/unictype/category-Me-tests: New file.
37411         * modules/unictype/category-Mn-tests: New file.
37412         * modules/unictype/category-N-tests: New file.
37413         * modules/unictype/category-Nd-tests: New file.
37414         * modules/unictype/category-Nl-tests: New file.
37415         * modules/unictype/category-No-tests: New file.
37416         * modules/unictype/category-P-tests: New file.
37417         * modules/unictype/category-Pc-tests: New file.
37418         * modules/unictype/category-Pd-tests: New file.
37419         * modules/unictype/category-Pe-tests: New file.
37420         * modules/unictype/category-Pf-tests: New file.
37421         * modules/unictype/category-Pi-tests: New file.
37422         * modules/unictype/category-Po-tests: New file.
37423         * modules/unictype/category-Ps-tests: New file.
37424         * modules/unictype/category-S-tests: New file.
37425         * modules/unictype/category-Sc-tests: New file.
37426         * modules/unictype/category-Sk-tests: New file.
37427         * modules/unictype/category-Sm-tests: New file.
37428         * modules/unictype/category-So-tests: New file.
37429         * modules/unictype/category-Z-tests: New file.
37430         * modules/unictype/category-Zl-tests: New file.
37431         * modules/unictype/category-Zp-tests: New file.
37432         * modules/unictype/category-Zs-tests: New file.
37433         * modules/unictype/category-and-not-tests: New file.
37434         * modules/unictype/category-and-tests: New file.
37435         * modules/unictype/category-byname-tests: New file.
37436         * modules/unictype/category-name-tests: New file.
37437         * modules/unictype/category-none-tests: New file.
37438         * modules/unictype/category-of-tests: New file.
37439         * modules/unictype/category-or-tests: New file.
37440         * modules/unictype/category-test-withtable-tests: New file.
37441         * modules/unictype/combining-class-tests: New file.
37442         * modules/unictype/ctype-alnum-tests: New file.
37443         * modules/unictype/ctype-alpha-tests: New file.
37444         * modules/unictype/ctype-blank-tests: New file.
37445         * modules/unictype/ctype-cntrl-tests: New file.
37446         * modules/unictype/ctype-digit-tests: New file.
37447         * modules/unictype/ctype-graph-tests: New file.
37448         * modules/unictype/ctype-lower-tests: New file.
37449         * modules/unictype/ctype-print-tests: New file.
37450         * modules/unictype/ctype-punct-tests: New file.
37451         * modules/unictype/ctype-space-tests: New file.
37452         * modules/unictype/ctype-upper-tests: New file.
37453         * modules/unictype/ctype-xdigit-tests: New file.
37454         * modules/unictype/decimal-digit-tests: New file.
37455         * modules/unictype/digit-tests: New file.
37456         * modules/unictype/mirror-tests: New file.
37457         * modules/unictype/numeric-tests: New file.
37458         * modules/unictype/property-alphabetic-tests: New file.
37459         * modules/unictype/property-ascii-hex-digit-tests: New file.
37460         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37461         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37462         * modules/unictype/property-bidi-block-separator-tests: New file.
37463         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37464         * modules/unictype/property-bidi-common-separator-tests: New file.
37465         * modules/unictype/property-bidi-control-tests: New file.
37466         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
37467         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
37468         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
37469         * modules/unictype/property-bidi-european-digit-tests: New file.
37470         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
37471         * modules/unictype/property-bidi-left-to-right-tests: New file.
37472         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
37473         * modules/unictype/property-bidi-other-neutral-tests: New file.
37474         * modules/unictype/property-bidi-pdf-tests: New file.
37475         * modules/unictype/property-bidi-segment-separator-tests: New file.
37476         * modules/unictype/property-bidi-whitespace-tests: New file.
37477         * modules/unictype/property-byname-tests: New file.
37478         * modules/unictype/property-combining-tests: New file.
37479         * modules/unictype/property-composite-tests: New file.
37480         * modules/unictype/property-currency-symbol-tests: New file.
37481         * modules/unictype/property-dash-tests: New file.
37482         * modules/unictype/property-decimal-digit-tests: New file.
37483         * modules/unictype/property-default-ignorable-code-point-tests: New file.
37484         * modules/unictype/property-deprecated-tests: New file.
37485         * modules/unictype/property-diacritic-tests: New file.
37486         * modules/unictype/property-extender-tests: New file.
37487         * modules/unictype/property-format-control-tests: New file.
37488         * modules/unictype/property-grapheme-base-tests: New file.
37489         * modules/unictype/property-grapheme-extend-tests: New file.
37490         * modules/unictype/property-grapheme-link-tests: New file.
37491         * modules/unictype/property-hex-digit-tests: New file.
37492         * modules/unictype/property-hyphen-tests: New file.
37493         * modules/unictype/property-id-continue-tests: New file.
37494         * modules/unictype/property-id-start-tests: New file.
37495         * modules/unictype/property-ideographic-tests: New file.
37496         * modules/unictype/property-ids-binary-operator-tests: New file.
37497         * modules/unictype/property-ids-trinary-operator-tests: New file.
37498         * modules/unictype/property-ignorable-control-tests: New file.
37499         * modules/unictype/property-iso-control-tests: New file.
37500         * modules/unictype/property-join-control-tests: New file.
37501         * modules/unictype/property-left-of-pair-tests: New file.
37502         * modules/unictype/property-line-separator-tests: New file.
37503         * modules/unictype/property-logical-order-exception-tests: New file.
37504         * modules/unictype/property-lowercase-tests: New file.
37505         * modules/unictype/property-math-tests: New file.
37506         * modules/unictype/property-non-break-tests: New file.
37507         * modules/unictype/property-not-a-character-tests: New file.
37508         * modules/unictype/property-numeric-tests: New file.
37509         * modules/unictype/property-other-alphabetic-tests: New file.
37510         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
37511         * modules/unictype/property-other-grapheme-extend-tests: New file.
37512         * modules/unictype/property-other-id-continue-tests: New file.
37513         * modules/unictype/property-other-id-start-tests: New file.
37514         * modules/unictype/property-other-lowercase-tests: New file.
37515         * modules/unictype/property-other-math-tests: New file.
37516         * modules/unictype/property-other-uppercase-tests: New file.
37517         * modules/unictype/property-paired-punctuation-tests: New file.
37518         * modules/unictype/property-paragraph-separator-tests: New file.
37519         * modules/unictype/property-pattern-syntax-tests: New file.
37520         * modules/unictype/property-pattern-white-space-tests: New file.
37521         * modules/unictype/property-private-use-tests: New file.
37522         * modules/unictype/property-punctuation-tests: New file.
37523         * modules/unictype/property-quotation-mark-tests: New file.
37524         * modules/unictype/property-radical-tests: New file.
37525         * modules/unictype/property-sentence-terminal-tests: New file.
37526         * modules/unictype/property-soft-dotted-tests: New file.
37527         * modules/unictype/property-space-tests: New file.
37528         * modules/unictype/property-terminal-punctuation-tests: New file.
37529         * modules/unictype/property-test-tests: New file.
37530         * modules/unictype/property-titlecase-tests: New file.
37531         * modules/unictype/property-unassigned-code-value-tests: New file.
37532         * modules/unictype/property-unified-ideograph-tests: New file.
37533         * modules/unictype/property-uppercase-tests: New file.
37534         * modules/unictype/property-variation-selector-tests: New file.
37535         * modules/unictype/property-white-space-tests: New file.
37536         * modules/unictype/property-xid-continue-tests: New file.
37537         * modules/unictype/property-xid-start-tests: New file.
37538         * modules/unictype/property-zero-width-tests: New file.
37539         * modules/unictype/scripts-tests: New file.
37540         * modules/unictype/syntax-c-ident-tests: New file.
37541         * modules/unictype/syntax-c-whitespace-tests: New file.
37542         * modules/unictype/syntax-java-ident-tests: New file.
37543         * modules/unictype/syntax-java-whitespace-tests: New file.
37544         * tests/unictype/test-bidi_byname.c: New file.
37545         * tests/unictype/test-bidi_name.c: New file.
37546         * tests/unictype/test-bidi_of.c: New file.
37547         * tests/unictype/test-bidi_test.c: New file.
37548         * tests/unictype/test-block_list.c: New file.
37549         * tests/unictype/test-block_of.c: New file.
37550         * tests/unictype/test-block_test.c: New file.
37551         * tests/unictype/test-categ_and.c: New file.
37552         * tests/unictype/test-categ_and_not.c: New file.
37553         * tests/unictype/test-categ_byname.c: New file.
37554         * tests/unictype/test-categ_name.c: New file.
37555         * tests/unictype/test-categ_none.c: New file.
37556         * tests/unictype/test-categ_of.c: New file.
37557         * tests/unictype/test-categ_or.c: New file.
37558         * tests/unictype/test-categ_test_withtable.c: New file.
37559         * tests/unictype/test-combining.c: New file.
37560         * tests/unictype/test-decdigit.c: New file.
37561         * tests/unictype/test-digit.c: New file.
37562         * tests/unictype/test-mirror.c: New file.
37563         * tests/unictype/test-numeric.c: New file.
37564         * tests/unictype/test-pr_byname.c: New file.
37565         * tests/unictype/test-pr_test.c: New file.
37566         * tests/unictype/test-predicate-part1.h: New file.
37567         * tests/unictype/test-predicate-part2.h: New file.
37568         * tests/unictype/test-scripts.c: New file.
37569         * tests/unictype/test-sy_c_ident.c: New file.
37570         * tests/unictype/test-sy_java_ident.c: New file.
37571
37572         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
37573         for Unicode 5.0.0.
37574         * tests/unictype/test-categ_Cc.c: Likewise.
37575         * tests/unictype/test-categ_Cf.c: Likewise.
37576         * tests/unictype/test-categ_Cn.c: Likewise.
37577         * tests/unictype/test-categ_Co.c: Likewise.
37578         * tests/unictype/test-categ_Cs.c: Likewise.
37579         * tests/unictype/test-categ_L.c: Likewise.
37580         * tests/unictype/test-categ_Ll.c: Likewise.
37581         * tests/unictype/test-categ_Lm.c: Likewise.
37582         * tests/unictype/test-categ_Lo.c: Likewise.
37583         * tests/unictype/test-categ_Lt.c: Likewise.
37584         * tests/unictype/test-categ_Lu.c: Likewise.
37585         * tests/unictype/test-categ_M.c: Likewise.
37586         * tests/unictype/test-categ_Mc.c: Likewise.
37587         * tests/unictype/test-categ_Me.c: Likewise.
37588         * tests/unictype/test-categ_Mn.c: Likewise.
37589         * tests/unictype/test-categ_N.c: Likewise.
37590         * tests/unictype/test-categ_Nd.c: Likewise.
37591         * tests/unictype/test-categ_Nl.c: Likewise.
37592         * tests/unictype/test-categ_No.c: Likewise.
37593         * tests/unictype/test-categ_P.c: Likewise.
37594         * tests/unictype/test-categ_Pc.c: Likewise.
37595         * tests/unictype/test-categ_Pd.c: Likewise.
37596         * tests/unictype/test-categ_Pe.c: Likewise.
37597         * tests/unictype/test-categ_Pf.c: Likewise.
37598         * tests/unictype/test-categ_Pi.c: Likewise.
37599         * tests/unictype/test-categ_Po.c: Likewise.
37600         * tests/unictype/test-categ_Ps.c: Likewise.
37601         * tests/unictype/test-categ_S.c: Likewise.
37602         * tests/unictype/test-categ_Sc.c: Likewise.
37603         * tests/unictype/test-categ_Sk.c: Likewise.
37604         * tests/unictype/test-categ_Sm.c: Likewise.
37605         * tests/unictype/test-categ_So.c: Likewise.
37606         * tests/unictype/test-categ_Z.c: Likewise.
37607         * tests/unictype/test-categ_Zl.c: Likewise.
37608         * tests/unictype/test-categ_Zp.c: Likewise.
37609         * tests/unictype/test-categ_Zs.c: Likewise.
37610         * tests/unictype/test-ctype_alnum.c: Likewise.
37611         * tests/unictype/test-ctype_alpha.c: Likewise.
37612         * tests/unictype/test-ctype_blank.c: Likewise.
37613         * tests/unictype/test-ctype_cntrl.c: Likewise.
37614         * tests/unictype/test-ctype_digit.c: Likewise.
37615         * tests/unictype/test-ctype_graph.c: Likewise.
37616         * tests/unictype/test-ctype_lower.c: Likewise.
37617         * tests/unictype/test-ctype_print.c: Likewise.
37618         * tests/unictype/test-ctype_punct.c: Likewise.
37619         * tests/unictype/test-ctype_space.c: Likewise.
37620         * tests/unictype/test-ctype_upper.c: Likewise.
37621         * tests/unictype/test-ctype_xdigit.c: Likewise.
37622         * tests/unictype/test-decdigit.h: Likewise.
37623         * tests/unictype/test-digit.h: Likewise.
37624         * tests/unictype/test-numeric.h: Likewise.
37625         * tests/unictype/test-pr_alphabetic.c: Likewise.
37626         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
37627         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37628         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
37629         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
37630         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
37631         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
37632         * tests/unictype/test-pr_bidi_control.c: Likewise.
37633         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
37634         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
37635         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37636         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
37637         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37638         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37639         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37640         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37641         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
37642         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
37643         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
37644         * tests/unictype/test-pr_combining.c: Likewise.
37645         * tests/unictype/test-pr_composite.c: Likewise.
37646         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37647         * tests/unictype/test-pr_dash.c: Likewise.
37648         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37649         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
37650         * tests/unictype/test-pr_deprecated.c: Likewise.
37651         * tests/unictype/test-pr_diacritic.c: Likewise.
37652         * tests/unictype/test-pr_extender.c: Likewise.
37653         * tests/unictype/test-pr_format_control.c: Likewise.
37654         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37655         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37656         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37657         * tests/unictype/test-pr_hex_digit.c: Likewise.
37658         * tests/unictype/test-pr_hyphen.c: Likewise.
37659         * tests/unictype/test-pr_id_continue.c: Likewise.
37660         * tests/unictype/test-pr_id_start.c: Likewise.
37661         * tests/unictype/test-pr_ideographic.c: Likewise.
37662         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
37663         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
37664         * tests/unictype/test-pr_ignorable_control.c: Likewise.
37665         * tests/unictype/test-pr_iso_control.c: Likewise.
37666         * tests/unictype/test-pr_join_control.c: Likewise.
37667         * tests/unictype/test-pr_left_of_pair.c: Likewise.
37668         * tests/unictype/test-pr_line_separator.c: Likewise.
37669         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
37670         * tests/unictype/test-pr_lowercase.c: Likewise.
37671         * tests/unictype/test-pr_math.c: Likewise.
37672         * tests/unictype/test-pr_non_break.c: Likewise.
37673         * tests/unictype/test-pr_not_a_character.c: Likewise.
37674         * tests/unictype/test-pr_numeric.c: Likewise.
37675         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37676         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
37677         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
37678         * tests/unictype/test-pr_other_id_continue.c: Likewise.
37679         * tests/unictype/test-pr_other_id_start.c: Likewise.
37680         * tests/unictype/test-pr_other_lowercase.c: Likewise.
37681         * tests/unictype/test-pr_other_math.c: Likewise.
37682         * tests/unictype/test-pr_other_uppercase.c: Likewise.
37683         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
37684         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
37685         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
37686         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
37687         * tests/unictype/test-pr_private_use.c: Likewise.
37688         * tests/unictype/test-pr_punctuation.c: Likewise.
37689         * tests/unictype/test-pr_quotation_mark.c: Likewise.
37690         * tests/unictype/test-pr_radical.c: Likewise.
37691         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37692         * tests/unictype/test-pr_soft_dotted.c: Likewise.
37693         * tests/unictype/test-pr_space.c: Likewise.
37694         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37695         * tests/unictype/test-pr_titlecase.c: Likewise.
37696         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37697         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37698         * tests/unictype/test-pr_uppercase.c: Likewise.
37699         * tests/unictype/test-pr_variation_selector.c: Likewise.
37700         * tests/unictype/test-pr_white_space.c: Likewise.
37701         * tests/unictype/test-pr_xid_continue.c: Likewise.
37702         * tests/unictype/test-pr_xid_start.c: Likewise.
37703         * tests/unictype/test-pr_zero_width.c: Likewise.
37704         * tests/unictype/test-sy_c_whitespace.c: Likewise.
37705         * tests/unictype/test-sy_java_whitespace.c: Likewise.
37706
37707 2007-11-12  Bruno Haible  <bruno@clisp.org>
37708
37709         Unicode character classification functions.
37710         * lib/unictype.h: New file.
37711         * modules/unictype/base: New file.
37712         * modules/unictype/category-L: New file.
37713         * modules/unictype/category-Lu: New file.
37714         * modules/unictype/category-Ll: New file.
37715         * modules/unictype/category-Lt: New file.
37716         * modules/unictype/category-Lm: New file.
37717         * modules/unictype/category-Lo: New file.
37718         * modules/unictype/category-M: New file.
37719         * modules/unictype/category-Mn: New file.
37720         * modules/unictype/category-Mc: New file.
37721         * modules/unictype/category-Me: New file.
37722         * modules/unictype/category-N: New file.
37723         * modules/unictype/category-Nd: New file.
37724         * modules/unictype/category-Nl: New file.
37725         * modules/unictype/category-No: New file.
37726         * modules/unictype/category-P: New file.
37727         * modules/unictype/category-Pc: New file.
37728         * modules/unictype/category-Pd: New file.
37729         * modules/unictype/category-Ps: New file.
37730         * modules/unictype/category-Pe: New file.
37731         * modules/unictype/category-Pi: New file.
37732         * modules/unictype/category-Pf: New file.
37733         * modules/unictype/category-Po: New file.
37734         * modules/unictype/category-S: New file.
37735         * modules/unictype/category-Sm: New file.
37736         * modules/unictype/category-Sc: New file.
37737         * modules/unictype/category-Sk: New file.
37738         * modules/unictype/category-So: New file.
37739         * modules/unictype/category-Z: New file.
37740         * modules/unictype/category-Zs: New file.
37741         * modules/unictype/category-Zl: New file.
37742         * modules/unictype/category-Zp: New file.
37743         * modules/unictype/category-C: New file.
37744         * modules/unictype/category-Cc: New file.
37745         * modules/unictype/category-Cf: New file.
37746         * modules/unictype/category-Cs: New file.
37747         * modules/unictype/category-Co: New file.
37748         * modules/unictype/category-Cn: New file.
37749         * modules/unictype/category-or: New file.
37750         * modules/unictype/category-of: New file.
37751         * modules/unictype/category-test: New file.
37752         * modules/unictype/category-test-withtable: New file.
37753         * modules/unictype/category-byname: New file.
37754         * modules/unictype/category-none: New file.
37755         * modules/unictype/category-and: New file.
37756         * modules/unictype/category-and-not: New file.
37757         * modules/unictype/category-name: New file.
37758         * modules/unictype/combining-class: New file.
37759         * modules/unictype/category-all: New file.
37760         * modules/unictype/bidicategory-all: New file.
37761         * modules/unictype/bidicategory-byname: New file.
37762         * modules/unictype/bidicategory-name: New file.
37763         * modules/unictype/bidicategory-of: New file.
37764         * modules/unictype/bidicategory-test: New file.
37765         * modules/unictype/decimal-digit: New file.
37766         * modules/unictype/digit: New file.
37767         * modules/unictype/numeric: New file.
37768         * modules/unictype/mirror: New file.
37769         * modules/unictype/property-white-space: New file.
37770         * modules/unictype/property-alphabetic: New file.
37771         * modules/unictype/property-other-alphabetic: New file.
37772         * modules/unictype/property-not-a-character: New file.
37773         * modules/unictype/property-default-ignorable-code-point: New file.
37774         * modules/unictype/property-other-default-ignorable-code-point: New
37775         file.
37776         * modules/unictype/property-deprecated: New file.
37777         * modules/unictype/property-logical-order-exception: New file.
37778         * modules/unictype/property-variation-selector: New file.
37779         * modules/unictype/property-private-use: New file.
37780         * modules/unictype/property-unassigned-code-value: New file.
37781         * modules/unictype/property-uppercase: New file.
37782         * modules/unictype/property-other-uppercase: New file.
37783         * modules/unictype/property-lowercase: New file.
37784         * modules/unictype/property-other-lowercase: New file.
37785         * modules/unictype/property-titlecase: New file.
37786         * modules/unictype/property-soft-dotted: New file.
37787         * modules/unictype/property-id-start: New file.
37788         * modules/unictype/property-other-id-start: New file.
37789         * modules/unictype/property-id-continue: New file.
37790         * modules/unictype/property-other-id-continue: New file.
37791         * modules/unictype/property-xid-start: New file.
37792         * modules/unictype/property-xid-continue: New file.
37793         * modules/unictype/property-pattern-white-space: New file.
37794         * modules/unictype/property-pattern-syntax: New file.
37795         * modules/unictype/property-join-control: New file.
37796         * modules/unictype/property-grapheme-base: New file.
37797         * modules/unictype/property-grapheme-extend: New file.
37798         * modules/unictype/property-other-grapheme-extend: New file.
37799         * modules/unictype/property-grapheme-link: New file.
37800         * modules/unictype/property-bidi-control: New file.
37801         * modules/unictype/property-bidi-left-to-right: New file.
37802         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
37803         * modules/unictype/property-bidi-arabic-right-to-left: New file.
37804         * modules/unictype/property-bidi-european-digit: New file.
37805         * modules/unictype/property-bidi-eur-num-separator: New file.
37806         * modules/unictype/property-bidi-eur-num-terminator: New file.
37807         * modules/unictype/property-bidi-arabic-digit: New file.
37808         * modules/unictype/property-bidi-common-separator: New file.
37809         * modules/unictype/property-bidi-block-separator: New file.
37810         * modules/unictype/property-bidi-segment-separator: New file.
37811         * modules/unictype/property-bidi-whitespace: New file.
37812         * modules/unictype/property-bidi-non-spacing-mark: New file.
37813         * modules/unictype/property-bidi-boundary-neutral: New file.
37814         * modules/unictype/property-bidi-pdf: New file.
37815         * modules/unictype/property-bidi-embedding-or-override: New file.
37816         * modules/unictype/property-bidi-other-neutral: New file.
37817         * modules/unictype/property-hex-digit: New file.
37818         * modules/unictype/property-ascii-hex-digit: New file.
37819         * modules/unictype/property-ideographic: New file.
37820         * modules/unictype/property-unified-ideograph: New file.
37821         * modules/unictype/property-radical: New file.
37822         * modules/unictype/property-ids-binary-operator: New file.
37823         * modules/unictype/property-ids-trinary-operator: New file.
37824         * modules/unictype/property-zero-width: New file.
37825         * modules/unictype/property-space: New file.
37826         * modules/unictype/property-non-break: New file.
37827         * modules/unictype/property-iso-control: New file.
37828         * modules/unictype/property-format-control: New file.
37829         * modules/unictype/property-dash: New file.
37830         * modules/unictype/property-hyphen: New file.
37831         * modules/unictype/property-punctuation: New file.
37832         * modules/unictype/property-line-separator: New file.
37833         * modules/unictype/property-paragraph-separator: New file.
37834         * modules/unictype/property-quotation-mark: New file.
37835         * modules/unictype/property-sentence-terminal: New file.
37836         * modules/unictype/property-terminal-punctuation: New file.
37837         * modules/unictype/property-currency-symbol: New file.
37838         * modules/unictype/property-math: New file.
37839         * modules/unictype/property-other-math: New file.
37840         * modules/unictype/property-paired-punctuation: New file.
37841         * modules/unictype/property-left-of-pair: New file.
37842         * modules/unictype/property-combining: New file.
37843         * modules/unictype/property-composite: New file.
37844         * modules/unictype/property-decimal-digit: New file.
37845         * modules/unictype/property-numeric: New file.
37846         * modules/unictype/property-diacritic: New file.
37847         * modules/unictype/property-extender: New file.
37848         * modules/unictype/property-ignorable-control: New file.
37849         * modules/unictype/property-test: New file.
37850         * modules/unictype/property-byname: New file.
37851         * modules/unictype/property-all: New file.
37852         * modules/unictype/scripts: New file.
37853         * modules/unictype/scripts-all: New file.
37854         * modules/unictype/block-of: New file.
37855         * modules/unictype/block-test: New file.
37856         * modules/unictype/block-list: New file.
37857         * modules/unictype/block-all: New file.
37858         * modules/unictype/syntax-c-whitespace: New file.
37859         * modules/unictype/syntax-java-whitespace: New file.
37860         * modules/unictype/syntax-c-ident: New file.
37861         * modules/unictype/syntax-java-ident: New file.
37862         * modules/unictype/ctype-alnum: New file.
37863         * modules/unictype/ctype-alpha: New file.
37864         * modules/unictype/ctype-cntrl: New file.
37865         * modules/unictype/ctype-digit: New file.
37866         * modules/unictype/ctype-graph: New file.
37867         * modules/unictype/ctype-lower: New file.
37868         * modules/unictype/ctype-print: New file.
37869         * modules/unictype/ctype-punct: New file.
37870         * modules/unictype/ctype-space: New file.
37871         * modules/unictype/ctype-upper: New file.
37872         * modules/unictype/ctype-xdigit: New file.
37873         * modules/unictype/ctype-blank: New file.
37874         * lib/unictype/bidi_byname.c: New file.
37875         * lib/unictype/bidi_name.c: New file.
37876         * lib/unictype/bidi_of.c: New file.
37877         * lib/unictype/bidi_test.c: New file.
37878         * lib/unictype/bitmap.h: New file.
37879         * lib/unictype/block_test.c: New file.
37880         * lib/unictype/blocks.c: New file.
37881         * lib/unictype/categ_C.c: New file.
37882         * lib/unictype/categ_Cc.c: New file.
37883         * lib/unictype/categ_Cf.c: New file.
37884         * lib/unictype/categ_Cn.c: New file.
37885         * lib/unictype/categ_Co.c: New file.
37886         * lib/unictype/categ_Cs.c: New file.
37887         * lib/unictype/categ_L.c: New file.
37888         * lib/unictype/categ_Ll.c: New file.
37889         * lib/unictype/categ_Lm.c: New file.
37890         * lib/unictype/categ_Lo.c: New file.
37891         * lib/unictype/categ_Lt.c: New file.
37892         * lib/unictype/categ_Lu.c: New file.
37893         * lib/unictype/categ_M.c: New file.
37894         * lib/unictype/categ_Mc.c: New file.
37895         * lib/unictype/categ_Me.c: New file.
37896         * lib/unictype/categ_Mn.c: New file.
37897         * lib/unictype/categ_N.c: New file.
37898         * lib/unictype/categ_Nd.c: New file.
37899         * lib/unictype/categ_Nl.c: New file.
37900         * lib/unictype/categ_No.c: New file.
37901         * lib/unictype/categ_P.c: New file.
37902         * lib/unictype/categ_Pc.c: New file.
37903         * lib/unictype/categ_Pd.c: New file.
37904         * lib/unictype/categ_Pe.c: New file.
37905         * lib/unictype/categ_Pf.c: New file.
37906         * lib/unictype/categ_Pi.c: New file.
37907         * lib/unictype/categ_Po.c: New file.
37908         * lib/unictype/categ_Ps.c: New file.
37909         * lib/unictype/categ_S.c: New file.
37910         * lib/unictype/categ_Sc.c: New file.
37911         * lib/unictype/categ_Sk.c: New file.
37912         * lib/unictype/categ_Sm.c: New file.
37913         * lib/unictype/categ_So.c: New file.
37914         * lib/unictype/categ_Z.c: New file.
37915         * lib/unictype/categ_Zl.c: New file.
37916         * lib/unictype/categ_Zp.c: New file.
37917         * lib/unictype/categ_Zs.c: New file.
37918         * lib/unictype/categ_and.c: New file.
37919         * lib/unictype/categ_and_not.c: New file.
37920         * lib/unictype/categ_byname.c: New file.
37921         * lib/unictype/categ_name.c: New file.
37922         * lib/unictype/categ_none.c: New file.
37923         * lib/unictype/categ_of.c: New file.
37924         * lib/unictype/categ_or.c: New file.
37925         * lib/unictype/categ_test.c: New file.
37926         * lib/unictype/combining.c: New file.
37927         * lib/unictype/ctype_alnum.c: New file.
37928         * lib/unictype/ctype_alpha.c: New file.
37929         * lib/unictype/ctype_blank.c: New file.
37930         * lib/unictype/ctype_cntrl.c: New file.
37931         * lib/unictype/ctype_digit.c: New file.
37932         * lib/unictype/ctype_graph.c: New file.
37933         * lib/unictype/ctype_lower.c: New file.
37934         * lib/unictype/ctype_print.c: New file.
37935         * lib/unictype/ctype_punct.c: New file.
37936         * lib/unictype/ctype_space.c: New file.
37937         * lib/unictype/ctype_upper.c: New file.
37938         * lib/unictype/ctype_xdigit.c: New file.
37939         * lib/unictype/decdigit.c: New file.
37940         * lib/unictype/digit.c: New file.
37941         * lib/unictype/identsyntaxmap.h: New file.
37942         * lib/unictype/mirror.c: New file.
37943         * lib/unictype/numeric.c: New file.
37944         * lib/unictype/pr_alphabetic.c: New file.
37945         * lib/unictype/pr_ascii_hex_digit.c: New file.
37946         * lib/unictype/pr_bidi_arabic_digit.c: New file.
37947         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
37948         * lib/unictype/pr_bidi_block_separator.c: New file.
37949         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
37950         * lib/unictype/pr_bidi_common_separator.c: New file.
37951         * lib/unictype/pr_bidi_control.c: New file.
37952         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
37953         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
37954         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
37955         * lib/unictype/pr_bidi_european_digit.c: New file.
37956         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
37957         * lib/unictype/pr_bidi_left_to_right.c: New file.
37958         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
37959         * lib/unictype/pr_bidi_other_neutral.c: New file.
37960         * lib/unictype/pr_bidi_pdf.c: New file.
37961         * lib/unictype/pr_bidi_segment_separator.c: New file.
37962         * lib/unictype/pr_bidi_whitespace.c: New file.
37963         * lib/unictype/pr_byname.c: New file.
37964         * lib/unictype/pr_byname.gperf: New file.
37965         * lib/unictype/pr_combining.c: New file.
37966         * lib/unictype/pr_composite.c: New file.
37967         * lib/unictype/pr_currency_symbol.c: New file.
37968         * lib/unictype/pr_dash.c: New file.
37969         * lib/unictype/pr_decimal_digit.c: New file.
37970         * lib/unictype/pr_default_ignorable_code_point.c: New file.
37971         * lib/unictype/pr_deprecated.c: New file.
37972         * lib/unictype/pr_diacritic.c: New file.
37973         * lib/unictype/pr_extender.c: New file.
37974         * lib/unictype/pr_format_control.c: New file.
37975         * lib/unictype/pr_grapheme_base.c: New file.
37976         * lib/unictype/pr_grapheme_extend.c: New file.
37977         * lib/unictype/pr_grapheme_link.c: New file.
37978         * lib/unictype/pr_hex_digit.c: New file.
37979         * lib/unictype/pr_hyphen.c: New file.
37980         * lib/unictype/pr_id_continue.c: New file.
37981         * lib/unictype/pr_id_start.c: New file.
37982         * lib/unictype/pr_ideographic.c: New file.
37983         * lib/unictype/pr_ids_binary_operator.c: New file.
37984         * lib/unictype/pr_ids_trinary_operator.c: New file.
37985         * lib/unictype/pr_ignorable_control.c: New file.
37986         * lib/unictype/pr_iso_control.c: New file.
37987         * lib/unictype/pr_join_control.c: New file.
37988         * lib/unictype/pr_left_of_pair.c: New file.
37989         * lib/unictype/pr_line_separator.c: New file.
37990         * lib/unictype/pr_logical_order_exception.c: New file.
37991         * lib/unictype/pr_lowercase.c: New file.
37992         * lib/unictype/pr_math.c: New file.
37993         * lib/unictype/pr_non_break.c: New file.
37994         * lib/unictype/pr_not_a_character.c: New file.
37995         * lib/unictype/pr_numeric.c: New file.
37996         * lib/unictype/pr_other_alphabetic.c: New file.
37997         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
37998         * lib/unictype/pr_other_grapheme_extend.c: New file.
37999         * lib/unictype/pr_other_id_continue.c: New file.
38000         * lib/unictype/pr_other_id_start.c: New file.
38001         * lib/unictype/pr_other_lowercase.c: New file.
38002         * lib/unictype/pr_other_math.c: New file.
38003         * lib/unictype/pr_other_uppercase.c: New file.
38004         * lib/unictype/pr_paired_punctuation.c: New file.
38005         * lib/unictype/pr_paragraph_separator.c: New file.
38006         * lib/unictype/pr_pattern_syntax.c: New file.
38007         * lib/unictype/pr_pattern_white_space.c: New file.
38008         * lib/unictype/pr_private_use.c: New file.
38009         * lib/unictype/pr_punctuation.c: New file.
38010         * lib/unictype/pr_quotation_mark.c: New file.
38011         * lib/unictype/pr_radical.c: New file.
38012         * lib/unictype/pr_sentence_terminal.c: New file.
38013         * lib/unictype/pr_soft_dotted.c: New file.
38014         * lib/unictype/pr_space.c: New file.
38015         * lib/unictype/pr_terminal_punctuation.c: New file.
38016         * lib/unictype/pr_test.c: New file.
38017         * lib/unictype/pr_titlecase.c: New file.
38018         * lib/unictype/pr_unassigned_code_value.c: New file.
38019         * lib/unictype/pr_unified_ideograph.c: New file.
38020         * lib/unictype/pr_uppercase.c: New file.
38021         * lib/unictype/pr_variation_selector.c: New file.
38022         * lib/unictype/pr_white_space.c: New file.
38023         * lib/unictype/pr_xid_continue.c: New file.
38024         * lib/unictype/pr_xid_start.c: New file.
38025         * lib/unictype/pr_zero_width.c: New file.
38026         * lib/unictype/scripts.c: New file.
38027         * lib/unictype/sy_c_ident.c: New file.
38028         * lib/unictype/sy_c_whitespace.c: New file.
38029         * lib/unictype/sy_java_ident.c: New file.
38030         * lib/unictype/sy_java_whitespace.c: New file.
38031
38032         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38033         Unicode 5.0.0.
38034         * lib/unictype/blocks.h: Likewise.
38035         * lib/unictype/categ_C.h: Likewise.
38036         * lib/unictype/categ_Cc.h: Likewise.
38037         * lib/unictype/categ_Cf.h: Likewise.
38038         * lib/unictype/categ_Cn.h: Likewise.
38039         * lib/unictype/categ_Co.h: Likewise.
38040         * lib/unictype/categ_Cs.h: Likewise.
38041         * lib/unictype/categ_L.h: Likewise.
38042         * lib/unictype/categ_Ll.h: Likewise.
38043         * lib/unictype/categ_Lm.h: Likewise.
38044         * lib/unictype/categ_Lo.h: Likewise.
38045         * lib/unictype/categ_Lt.h: Likewise.
38046         * lib/unictype/categ_Lu.h: Likewise.
38047         * lib/unictype/categ_M.h: Likewise.
38048         * lib/unictype/categ_Mc.h: Likewise.
38049         * lib/unictype/categ_Me.h: Likewise.
38050         * lib/unictype/categ_Mn.h: Likewise.
38051         * lib/unictype/categ_N.h: Likewise.
38052         * lib/unictype/categ_Nd.h: Likewise.
38053         * lib/unictype/categ_Nl.h: Likewise.
38054         * lib/unictype/categ_No.h: Likewise.
38055         * lib/unictype/categ_P.h: Likewise.
38056         * lib/unictype/categ_Pc.h: Likewise.
38057         * lib/unictype/categ_Pd.h: Likewise.
38058         * lib/unictype/categ_Pe.h: Likewise.
38059         * lib/unictype/categ_Pf.h: Likewise.
38060         * lib/unictype/categ_Pi.h: Likewise.
38061         * lib/unictype/categ_Po.h: Likewise.
38062         * lib/unictype/categ_Ps.h: Likewise.
38063         * lib/unictype/categ_S.h: Likewise.
38064         * lib/unictype/categ_Sc.h: Likewise.
38065         * lib/unictype/categ_Sk.h: Likewise.
38066         * lib/unictype/categ_Sm.h: Likewise.
38067         * lib/unictype/categ_So.h: Likewise.
38068         * lib/unictype/categ_Z.h: Likewise.
38069         * lib/unictype/categ_Zl.h: Likewise.
38070         * lib/unictype/categ_Zp.h: Likewise.
38071         * lib/unictype/categ_Zs.h: Likewise.
38072         * lib/unictype/categ_of.h: Likewise.
38073         * lib/unictype/combining.h: Likewise.
38074         * lib/unictype/ctype_alnum.h: Likewise.
38075         * lib/unictype/ctype_alpha.h: Likewise.
38076         * lib/unictype/ctype_blank.h: Likewise.
38077         * lib/unictype/ctype_cntrl.h: Likewise.
38078         * lib/unictype/ctype_digit.h: Likewise.
38079         * lib/unictype/ctype_graph.h: Likewise.
38080         * lib/unictype/ctype_lower.h: Likewise.
38081         * lib/unictype/ctype_print.h: Likewise.
38082         * lib/unictype/ctype_punct.h: Likewise.
38083         * lib/unictype/ctype_space.h: Likewise.
38084         * lib/unictype/ctype_upper.h: Likewise.
38085         * lib/unictype/ctype_xdigit.h: Likewise.
38086         * lib/unictype/decdigit.h: Likewise.
38087         * lib/unictype/digit.h: Likewise.
38088         * lib/unictype/mirror.h: Likewise.
38089         * lib/unictype/numeric.h: Likewise.
38090         * lib/unictype/pr_alphabetic.h: Likewise.
38091         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38092         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38093         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38094         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38095         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38096         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38097         * lib/unictype/pr_bidi_control.h: Likewise.
38098         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38099         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38100         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38101         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38102         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38103         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38104         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38105         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38106         * lib/unictype/pr_bidi_pdf.h: Likewise.
38107         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38108         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38109         * lib/unictype/pr_combining.h: Likewise.
38110         * lib/unictype/pr_composite.h: Likewise.
38111         * lib/unictype/pr_currency_symbol.h: Likewise.
38112         * lib/unictype/pr_dash.h: Likewise.
38113         * lib/unictype/pr_decimal_digit.h: Likewise.
38114         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38115         * lib/unictype/pr_deprecated.h: Likewise.
38116         * lib/unictype/pr_diacritic.h: Likewise.
38117         * lib/unictype/pr_extender.h: Likewise.
38118         * lib/unictype/pr_format_control.h: Likewise.
38119         * lib/unictype/pr_grapheme_base.h: Likewise.
38120         * lib/unictype/pr_grapheme_extend.h: Likewise.
38121         * lib/unictype/pr_grapheme_link.h: Likewise.
38122         * lib/unictype/pr_hex_digit.h: Likewise.
38123         * lib/unictype/pr_hyphen.h: Likewise.
38124         * lib/unictype/pr_id_continue.h: Likewise.
38125         * lib/unictype/pr_id_start.h: Likewise.
38126         * lib/unictype/pr_ideographic.h: Likewise.
38127         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38128         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38129         * lib/unictype/pr_ignorable_control.h: Likewise.
38130         * lib/unictype/pr_iso_control.h: Likewise.
38131         * lib/unictype/pr_join_control.h: Likewise.
38132         * lib/unictype/pr_left_of_pair.h: Likewise.
38133         * lib/unictype/pr_line_separator.h: Likewise.
38134         * lib/unictype/pr_logical_order_exception.h: Likewise.
38135         * lib/unictype/pr_lowercase.h: Likewise.
38136         * lib/unictype/pr_math.h: Likewise.
38137         * lib/unictype/pr_non_break.h: Likewise.
38138         * lib/unictype/pr_not_a_character.h: Likewise.
38139         * lib/unictype/pr_numeric.h: Likewise.
38140         * lib/unictype/pr_other_alphabetic.h: Likewise.
38141         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38142         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38143         * lib/unictype/pr_other_id_continue.h: Likewise.
38144         * lib/unictype/pr_other_id_start.h: Likewise.
38145         * lib/unictype/pr_other_lowercase.h: Likewise.
38146         * lib/unictype/pr_other_math.h: Likewise.
38147         * lib/unictype/pr_other_uppercase.h: Likewise.
38148         * lib/unictype/pr_paired_punctuation.h: Likewise.
38149         * lib/unictype/pr_paragraph_separator.h: Likewise.
38150         * lib/unictype/pr_pattern_syntax.h: Likewise.
38151         * lib/unictype/pr_pattern_white_space.h: Likewise.
38152         * lib/unictype/pr_private_use.h: Likewise.
38153         * lib/unictype/pr_punctuation.h: Likewise.
38154         * lib/unictype/pr_quotation_mark.h: Likewise.
38155         * lib/unictype/pr_radical.h: Likewise.
38156         * lib/unictype/pr_sentence_terminal.h: Likewise.
38157         * lib/unictype/pr_soft_dotted.h: Likewise.
38158         * lib/unictype/pr_space.h: Likewise.
38159         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38160         * lib/unictype/pr_titlecase.h: Likewise.
38161         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38162         * lib/unictype/pr_unified_ideograph.h: Likewise.
38163         * lib/unictype/pr_uppercase.h: Likewise.
38164         * lib/unictype/pr_variation_selector.h: Likewise.
38165         * lib/unictype/pr_white_space.h: Likewise.
38166         * lib/unictype/pr_xid_continue.h: Likewise.
38167         * lib/unictype/pr_xid_start.h: Likewise.
38168         * lib/unictype/pr_zero_width.h: Likewise.
38169         * lib/unictype/scripts.h: Likewise.
38170         * lib/unictype/scripts_byname.gperf: Likewise.
38171         * lib/unictype/sy_c_ident.h: Likewise.
38172         * lib/unictype/sy_c_whitespace.h: Likewise.
38173         * lib/unictype/sy_java_ident.h: Likewise.
38174         * lib/unictype/sy_java_whitespace.h: Likewise.
38175
38176         * lib/unictype/Makefile: New file.
38177         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38178         glibc.
38179         * lib/unictype/3level.h: New file, copied from glibc.
38180         * lib/unictype/3levelbit.h: New file.
38181
38182 2007-11-11  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/gperf: New file.
38185         * modules/iconv_open (Depends-on): Add it.
38186         (Makefile.am): Remove the GPERF definition.
38187
38188 2007-11-11  Bruno Haible  <bruno@clisp.org>
38189
38190         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38191         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38192
38193 2007-11-11  Bruno Haible  <bruno@clisp.org>
38194
38195         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38196         (usage): Remove function.
38197
38198 2007-11-11  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38201         gl_FUNC_CEILF_LIBS.
38202         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38203         gl_FUNC_CEIL_LIBS.
38204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38205         gl_FUNC_CEILL_LIBS.
38206         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38207         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38208         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38209
38210 2007-11-11  Bruno Haible  <bruno@clisp.org>
38211
38212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38213         roundf were declared but do not exist on functions.
38214         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38215         roundl were declared but do not exist on functions.
38216         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38217         HAVE_FLOORL_AND_CEILL, respectively.
38218         Needed for Sun C on Solaris 10.
38219
38220 2007-11-11  Bruno Haible  <bruno@clisp.org>
38221
38222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38223         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38224         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38225         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38227         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38228         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38229         HAVE_DECL_ROUNDF.
38230         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38231         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38233         of HAVE_DECL_ROUND*.
38234         * modules/math (Makefile.am): Update.
38235
38236 2007-11-10  Bruno Haible  <bruno@clisp.org>
38237
38238         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38239         ptrdiff_t as m4/intl.m4.
38240
38241 2007-11-10  Jim Meyering  <meyering@redhat.com>
38242
38243         Avoid link failure for the argmatch test.
38244         * tests/test-argmatch.c (usage): Define function to avoid a link
38245         failure: argmatch_die requires a usage function.
38246
38247 2007-11-09  Bruno Haible  <bruno@clisp.org>
38248
38249         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38250         * doc/functions/vsnprintf.texi: Likewise.
38251         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38252         with a size argument < 2.
38253
38254 2007-11-09  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38257         buffer. Fixes an inefficiency introduced on 2007-11-03.
38258
38259 2007-11-09  Bruno Haible  <bruno@clisp.org>
38260
38261         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38262         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38263
38264 2007-11-08  Jim Meyering  <meyering@redhat.com>
38265
38266         Change cache variable name prefix "jm_" to "gl_" everywhere.
38267         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38268         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38269         * m4/uptime.m4: s/gl_/jm_/
38270
38271 2007-11-07  Bruno Haible  <bruno@clisp.org>
38272
38273         Update to GNU gettext 0.17.
38274         * m4/intl.m4: Update to GNU gettext 0.17.
38275         * m4/po.m4: Likewise.
38276         * modules/gettext (Files): Remove m4/ulonglong.m4.
38277         (configure.ac): Require gettext infrastructure from version 0.17.
38278
38279 2007-11-06  Bruno Haible  <bruno@clisp.org>
38280
38281         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38282         symbolic values are not defined in a public header.
38283         * lib/freadable.c (freadable) [QNX]: Likewise.
38284         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38285         * lib/freading.c (freading) [QNX]: Likewise.
38286         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38287         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38288         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38289         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38290         Reported by Alain Magloire.
38291
38292         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38293
38294 2007-11-05  Bruno Haible  <bruno@clisp.org>
38295
38296         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38297         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38298         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38299         Reported by Eric Blake.
38300
38301 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38302             Bruno Haible  <bruno@clisp.org>
38303
38304         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38305         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38306         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38307         (malloc): Undefine also before including <stdlib.h>.
38308         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38309         Needed on OSF/1 4.0.
38310
38311 2007-11-05  Jim Meyering  <meyering@redhat.com>
38312
38313         git-version-gen: sync from coreutils.
38314         * build-aux/git-version-gen: Add comments.
38315         Change the first '-' to '.' in the snapshot version string,
38316         e.g., 6.9-377-08144 -> 6.9.377-08144
38317         Remove first parameter.
38318         Don't declare a version "-dirty" merely because a time
38319         stamp has changed.
38320
38321 2007-11-04  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/lock.h: Protect all macro definitions containing an 'if'
38324         statement through a "do { ... } while (0)".
38325         * lib/tls.h: Likewise.
38326
38327 2007-11-04  Bruno Haible  <bruno@clisp.org>
38328
38329         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38330
38331 2007-11-04  Bruno Haible  <bruno@clisp.org>
38332
38333         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38334         * modules/fprintf-posix (Depends-on): Add nocrash.
38335         * modules/snprintf-posix (Depends-on): Likewise.
38336         * modules/sprintf-posix (Depends-on): Likewise.
38337         * modules/vasnprintf-posix (Depends-on): Likewise.
38338         * modules/vasprintf-posix (Depends-on): Likewise.
38339         * modules/vfprintf-posix (Depends-on): Likewise.
38340         * modules/vsnprintf-posix (Depends-on): Likewise.
38341         * modules/vsprintf-posix (Depends-on): Likewise.
38342         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38343         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38344         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38345         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38346         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38347         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38348         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38349
38350 2007-11-04  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/nocrash: New file.
38353         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38354         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38355
38356 2007-11-04  Bruno Haible  <bruno@clisp.org>
38357
38358         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38359         precision handling.
38360         * tests/test-vasprintf-posix.c (test_function): Likewise.
38361         * tests/test-snprintf-posix.h (test_function): Likewise.
38362         * tests/test-sprintf-posix.h (test_function): Likewise.
38363
38364         Fix *printf behaviour for large precisions on mingw and BeOS.
38365         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38366         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38368         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38370         gl_PRINTF_PRECISION and test its result. Invoke
38371         gl_PREREQ_VASNPRINTF_PRECISION.
38372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38378         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38379         * doc/functions/fprintf.texi: Update.
38380         * doc/functions/printf.texi: Update.
38381         * doc/functions/snprintf.texi: Update.
38382         * doc/functions/sprintf.texi: Update.
38383         * doc/functions/vfprintf.texi: Update.
38384         * doc/functions/vprintf.texi: Update.
38385         * doc/functions/vsnprintf.texi: Update.
38386         * doc/functions/vsprintf.texi: Update.
38387
38388 2007-11-04  Bruno Haible  <bruno@clisp.org>
38389
38390         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38391
38392 2007-11-04  Bruno Haible  <bruno@clisp.org>
38393
38394         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38395         Reported by Sylvain Beucler <beuc@gnu.org>.
38396
38397 2007-11-03  Bruno Haible  <bruno@clisp.org>
38398
38399         * tests/test-fprintf-posix2.sh: New file.
38400         * tests/test-fprintf-posix2.c: New file.
38401         * modules/fprintf-posix-tests (Files): Add them.
38402         (TESTS): Add test-fprintf-posix2.sh.
38403         (configure.ac): Check for getrlimit and setrlimit.
38404         (check_PROGRAMS): Add test-fprintf-posix2.
38405
38406         * tests/test-printf-posix2.sh: New file.
38407         * tests/test-printf-posix2.c: New file.
38408         * modules/printf-posix-tests (Files): Add them.
38409         (TESTS): Add test-printf-posix2.sh.
38410         (configure.ac): Check for getrlimit and setrlimit.
38411         (check_PROGRAMS): Add test-printf-posix2.
38412
38413         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38414         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38415         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38416         (decode_double): New function, copied from decode_long_double.
38417         (scale10_round_decimal_decoded): New function, extracted from
38418         scale10_round_decimal_long_double.
38419         (scale10_round_decimal_long_double): Use it.
38420         (scale10_round_decimal_double): New function.
38421         (floorlog10): New function.
38422         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38424         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38426         gl_PRINTF_ENOMEM and test its result. Invoke
38427         gl_PREREQ_VASNPRINTF_ENOMEM.
38428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38435         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38436         * modules/snprintf-posix (Depends-on): Likewise.
38437         * modules/sprintf-posix (Depends-on): Likewise.
38438         * modules/vasnprintf-posix (Depends-on): Likewise.
38439         * modules/vasprintf-posix (Depends-on): Likewise.
38440         * modules/vfprintf-posix (Depends-on): Likewise.
38441         * modules/vsnprintf-posix (Depends-on): Likewise.
38442         * modules/vsprintf-posix (Depends-on): Likewise.
38443         * doc/functions/fprintf.texi: Update.
38444         * doc/functions/printf.texi: Update.
38445         * doc/functions/snprintf.texi: Update.
38446         * doc/functions/sprintf.texi: Update.
38447         * doc/functions/vfprintf.texi: Update.
38448         * doc/functions/vprintf.texi: Update.
38449         * doc/functions/vsnprintf.texi: Update.
38450         * doc/functions/vsprintf.texi: Update.
38451
38452 2007-11-03  Bruno Haible  <bruno@clisp.org>
38453
38454         * modules/frexp-nolibm-tests: New file.
38455
38456         * modules/frexp-nolibm: New file.
38457         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38458
38459 2007-11-03  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38462         value is C99 compliant.
38463         Needed for OSF/1 5.1.
38464
38465 2007-11-03  Bruno Haible  <bruno@clisp.org>
38466
38467         Fix out-of-memory handling of vasnprintf.
38468         * lib/printf-parse.c: Include <errno.h>.
38469         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
38470         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
38471         is already set.
38472
38473 2007-11-02  Eric Blake  <ebb9@byu.net>
38474
38475         Fix tests on cygwin.
38476         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
38477
38478 2007-11-01  Bruno Haible  <bruno@clisp.org>
38479
38480         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
38481         warning.
38482         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
38483         needed for POSIX compatibility.
38484
38485 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38486
38487         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
38488         for compatibility with GNU.
38489
38490 2007-11-01  Bruno Haible  <bruno@clisp.org>
38491
38492         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
38493         (putenv): Renamed from rpl_putenv. Change argument type from
38494         'const char *' to 'char *'.
38495         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
38496         of defining putenv in config.h, just set REPLACE_PUTENV.
38497         * modules/putenv (Depends-on): Add stdlib.
38498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38499         (Include): Use <stdlib.h>.
38500         * lib/stdlib.in.h (putenv): New declaration.
38501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
38502         REPLACE_PUTENV.
38503         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
38504         REPLACE_PUTENV.
38505         Needed for MacOS X 10.5.0.
38506         Reported by Peter O'Gorman <peter@pogma.com>.
38507
38508 2007-11-01  Jim Meyering  <meyering@redhat.com>
38509
38510         Treat an empty date string exactly like "0".
38511         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
38512         if the remaining date string (to be parsed) is empty, use "0".
38513         Reported by Mischa Molhoek and discussed in this thread:
38514         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
38515
38516 2007-10-31  Bruno Haible  <bruno@clisp.org>
38517
38518         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
38519         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
38520         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
38521         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
38522         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
38523         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
38524
38525 2007-10-31  Bruno Haible  <bruno@clisp.org>
38526
38527         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
38528         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
38529         (AC_TYPE_LONG_LONG_INT): Use it.
38530         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
38531         it as well.
38532         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
38533         to m4/longlong.m4.
38534         * modules/stdint (Files): Remove m4/ulonglong.m4.
38535         * modules/strtoull (Files): Use m4/longlong.m4 instead of
38536         m4/ulonglong.m4.
38537         * modules/strtoumax (Files): Likewise.
38538
38539 2007-10-30  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/xvasprintf-posix: New file.
38542         Suggested by Eric Blake.
38543
38544 2007-10-30  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/xprintf-posix-tests: New file.
38547         * tests/test-xprintf-posix.sh: New file.
38548         * tests/test-xprintf-posix.c: New file.
38549         * tests/test-xfprintf-posix.c: New file.
38550
38551         * modules/xprintf-posix: New file.
38552
38553 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38554
38555         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
38556         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
38557         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
38558
38559 2007-10-29  Bruno Haible  <bruno@clisp.org>
38560
38561         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
38562         contain the special marker '_cv_'.
38563         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38564         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38565         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38566         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
38567         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38568         Reported by Ralf Wildenhues.
38569
38570 2007-10-29  Bruno Haible  <bruno@clisp.org>
38571
38572         * gnulib-tool (func_import): When --lgpl is not specified, set
38573         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
38574         GPLv3.
38575         Reported by Simon Josefsson.
38576
38577 2007-10-28  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
38580         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
38581         HAVE_DECL_ISFINITE.
38582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38583         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
38584         HAVE_DECL_ISFINITE.
38585
38586 2007-10-28  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
38589         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
38590
38591 2007-10-28  Bruno Haible  <bruno@clisp.org>
38592
38593         Fix link errors with Sun C 5.0 on Solaris 10.
38594         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
38595         function is declared but not present in the compiler's libm.
38596         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38597         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38598         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
38599         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
38600         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
38601         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
38602         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
38603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38604         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
38605         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
38606         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
38607         HAVE_DECL_FLOORL.
38608
38609 2007-10-28  Bruno Haible  <bruno@clisp.org>
38610
38611         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
38612         gl_FUNC_FLOORL. Cache the result.
38613         (gl_FUNC_FLOORL): Use it.
38614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
38615         gl_FUNC_CEILL. Cache the result.
38616         (gl_FUNC_CEILL): Use it.
38617
38618         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
38619         gl_FUNC_FLOOR. Cache the result.
38620         (gl_FUNC_FLOOR): Use it.
38621         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
38622         gl_FUNC_CEIL. Cache the result.
38623         (gl_FUNC_CEIL): Use it.
38624
38625         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
38626         gl_FUNC_FLOORF. Cache the result.
38627         (gl_FUNC_FLOORF): Use it.
38628         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
38629         gl_FUNC_CEILF. Cache the result.
38630         (gl_FUNC_CEILF): Use it.
38631
38632 2007-10-28  Bruno Haible  <bruno@clisp.org>
38633
38634         * gnulib-tool: Allow specifying the LGPL version number through
38635         --lgpl=2 or --lgpl=3.
38636         (func_usage): Document --lgpl with argument.
38637         Handle --lgpl=... arguments.
38638         (func_import): Recognize also gl_LGPL calls with an argument. When
38639         --lgpl=2 is used and the module's license is just LGPL, report an
38640         error. Set sed_transform_lib_file according to the lgpl variable. In
38641         the generated files, use --lgpl or gl_LGPL invocations with argument,
38642         if necessary.
38643         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
38644         an LGPv2+ license.
38645         * doc/gnulib-tool.texi (Modified imports): Update explanation of
38646         gl_LGPL macro.
38647
38648 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38649             Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
38652         (u16_uctomb_aux): Likewise.
38653         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
38654         !HAVE_INLINE.
38655         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
38656
38657 2007-10-28  Bruno Haible  <bruno@clisp.org>
38658
38659         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
38660         Invoke AM_GETTEXT_OPTION if it exists.
38661         * modules/vasprintf: Likewise.
38662         * modules/verror: Likewise.
38663         * modules/xprintf: Likewise.
38664         * modules/xvasprintf: Likewise.
38665
38666 2007-10-27  Ben Pfaff  <blp@gnu.org>
38667
38668         * lib/math.in.h: Define isfinite macro and prototypes for
38669         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
38670         implementations.
38671         * m4/math_h.m4: New substitutions for isfinite module.
38672         * lib/isfinite.c: New file.
38673         * m4/isfinite.m4: New file.
38674         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
38675         * modules/isfinite: New file.
38676         * modules/isfinite-tests: New file.
38677         * tests/tests-isfinite.c: New file.
38678         * doc/functions/isfinite.texi: Mention isfinite module.
38679         * MODULES.html.sh: Mention new module.
38680
38681 2007-10-27  Ben Pfaff  <blp@gnu.org>
38682
38683         Ralf Wildenhues reported that Tru64 4.0D declares the round
38684         functions but does not have definitions.
38685         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
38686         cannot be found in any library, set the output variable to
38687         "missing" instead of "".
38688         * m4/round.m4: Also use our substitute if we cannot find round in
38689         any library, even if it is declared.
38690         * m4/roundf.m4: Likewise for roundf.
38691         * m4/roundl.m4: Likewise for roundl.
38692         * lib/math.in.h: Undefine roundf, round, roundl before defining
38693         their replacements, to allow for hypothetical systems where these
38694         may be defined as macros but not available in libraries.
38695
38696 2007-10-27  Bruno Haible  <bruno@clisp.org>
38697
38698         * doc/gnulib.texi: Invoke @firstparagraphindent.
38699         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
38700         changes in gnulib.
38701         (Source changes): New section.
38702
38703 2007-10-26  Bruno Haible  <bruno@clisp.org>
38704
38705         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
38706         borrowed from autoconf.
38707
38708 2007-10-26  Bruno Haible  <bruno@clisp.org>
38709
38710         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
38711         strerror returned the empty string. Needed on HP-UX 11.00.
38712
38713 2007-10-24  Micah Cowan  <micah@cowan.name>
38714
38715         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
38716         * build-aux/bootstrap: Remove support for now-unnecessary option,
38717         --cvs-user, and envvars CVS_USER, CVS_RSH.
38718
38719 2007-10-24  Jim Meyering  <meyering@redhat.com>
38720
38721         Avoid diagnostics from sha1sum when there is no cached checksum.
38722         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
38723         if the po.s1 file hasn't been created yet.
38724
38725         * build-aux/bootstrap: Sync from coreutils:
38726         2007-10-24  Jim Meyering  <meyering@redhat.com>
38727         Get gnulib from the git repository, not from an obsolete cvs one.
38728         * build-aux/bootstrap: Suggestion from Micah Cowan.
38729         2007-10-04  Jim Meyering  <jim@meyering.net>
38730         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
38731         (update_po_files): Work also when there are no .po files in po/.
38732
38733 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38734
38735         * README: Append ".git" to git and cg examples.
38736         Problem reported by Benoit Sigoure.
38737
38738 2007-10-23  Micah Cowan  <micah@cowan.name>
38739
38740         * users.txt: Add wget.
38741
38742 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38743
38744         Fix linking of some unistdio tests on FreeBSD.
38745         * modules/unistdio/u16-vsnprintf-tests
38746         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
38747         * modules/unistdio/u16-vsprintf-tests
38748         (test_u16_vsnprintf1_LDADD): Likewise.
38749         * modules/unistdio/u32-vsnprintf-tests
38750         (test_u32_vsnprintf1_LDADD): Likewise.
38751         * modules/unistdio/u32-vsprintf-tests
38752         (test_u32_vsprintf1_LDADD): Likewise.
38753         * modules/unistdio/u8-vsnprintf-tests
38754         (test_u8_vsnprintf1_LDADD): Likewise.
38755         * modules/unistdio/u8-vsprintf-tests
38756         (test_u8_vsprintf1_LDADD): Likewise.
38757         * modules/unistdio/ulc-vsnprintf-tests
38758         (test_ulc_vsnprintf1_LDADD): Likewise.
38759         * modules/unistdio/ulc-vsprintf-tests
38760         (test_ulc_vsprintf1_LDADD): Likewise.
38761
38762         Fix linking of some uniconv tests on FreeBSD.
38763         * modules/uniconv/u16-conv-from-enc-tests
38764         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
38765         * modules/uniconv/u16-conv-to-enc-tests
38766         (test_u16_conv_to_enc_LDADD): Likewise.
38767         * modules/uniconv/u16-strconv-from-enc-tests
38768         (test_u16_strconv_from_enc_LDADD): Likewise.
38769         * modules/uniconv/u16-strconv-to-enc-tests
38770         (test_u16_strconv_to_enc_LDADD): Likewise.
38771         * modules/uniconv/u32-conv-from-enc-tests
38772         (test_u32_conv_from_enc_LDADD): Likewise.
38773         * modules/uniconv/u32-conv-to-enc-tests
38774         (test_u32_conv_to_enc_LDADD): Likewise.
38775         * modules/uniconv/u32-strconv-from-enc-tests
38776         (test_u32_strconv_from_enc_LDADD): Likewise.
38777         * modules/uniconv/u32-strconv-to-enc-tests
38778         (test_u32_strconv_to_enc_LDADD): Likewise.
38779         * modules/uniconv/u8-conv-from-enc-tests
38780         (test_u8_conv_from_enc_LDADD): Likewise.
38781         * modules/uniconv/u8-conv-to-enc-tests
38782         (test_u8_conv_to_enc_LDADD): Likewise.
38783         * modules/uniconv/u8-strconv-from-enc-tests
38784         (test_u8_strconv_from_enc_LDADD): Likewise.
38785         * modules/uniconv/u8-strconv-to-enc-tests
38786         (test_u8_strconv_to_enc_LDADD): Likewise.
38787
38788 2007-10-22  Bruno Haible  <bruno@clisp.org>
38789
38790         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
38791         size.
38792
38793 2007-10-22  Eric Blake  <ebb9@byu.net>
38794
38795         Tweak x*printf documentation.
38796         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
38797         variable name and comments.
38798         Suggested by Bruno Haible.
38799
38800 2007-10-22  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/acl.c (copy_acl): Fix file name in comment.
38803
38804 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38805
38806         Fix Tru64 problem with stdbool.h.
38807         * lib/stdbool.in.h (false, true):
38808         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
38809         Don't declare as an enum in this situation; it runs afoul of Tru64.
38810         Problem reported by Steven M. Schweda in
38811         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
38812
38813 2007-10-22  Eric Blake  <ebb9@byu.net>
38814
38815         Also wrap vf?printf.
38816         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
38817         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
38818         (xvprintf, xvfprintf): New functions.
38819
38820 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38821
38822         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
38823         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
38824
38825         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
38826         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
38827
38828 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38829
38830         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
38831         by Bruno Haible.
38832
38833 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38834
38835         * lib/getloadavg.c
38836         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
38837         Undef `sys' after including sys/table.h, for Tru64 4.0D.
38838
38839         * tests/test-i-ring.c: Work for C89.
38840
38841 2007-10-22  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
38844         -1u, in preprocessor expression, so that we don't test for the bug
38845         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
38846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
38847
38848 2007-10-22  Eric Blake  <ebb9@byu.net>
38849
38850         * tests/test-yesno.sh: Silence stderr during test.
38851
38852 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38853
38854         * modules/crypto/gc-camellia: New file.
38855
38856         * m4/gc-camellia.m4: New file.
38857
38858         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
38859
38860         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
38861
38862 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38863
38864         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
38865         --help to stdout.  Reported by sms@antinode.org (Steven
38866         M. Schweda).
38867
38868 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38869
38870         * users.txt: Fix link to libksba.
38871
38872 2007-10-21  Ben Pfaff  <blp@gnu.org>
38873
38874         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
38875         round.c roundf implementation that depends on floorf and ceilf to
38876         be tested unconditionally.
38877
38878 2007-10-21  Ben Pfaff  <blp@gnu.org>
38879
38880         * m4/check-libm-func.m4: Removed.
38881         * m4/check-math-lib.m4: New file.
38882         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
38883         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
38884         definition and lack of AC_LIBOBJ([roundf]).
38885         * m4/roundl.m4: Ditto, and similarly for roundl.
38886         * modules/round: Reference new m4 file.
38887         * modules/roundf: Ditto.
38888         * modules/roundl: Ditto.
38889         * tests/test-round2.c (main): Use ROUND instead of round.
38890         Bug report from Bruno Haible.
38891
38892 2007-10-21  Bruno Haible  <bruno@clisp.org>
38893
38894         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
38895         context.
38896
38897 2007-10-21  Bruno Haible  <bruno@clisp.org>
38898
38899         * tests/test-wcwidth.c (main): Allow negative result for some control
38900         characters.
38901
38902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
38903         Needed on OSF/1 5.1.
38904
38905 2007-10-21  Bruno Haible  <bruno@clisp.org>
38906
38907         * tests/test-floorf1.c: Include isnanf.h.
38908         (main): Use isnanf() instead of isnan().
38909         * tests/test-ceilf1.c: Include isnanf.h.
38910         (main): Use isnanf() instead of isnan().
38911         * tests/test-truncf1.c: Include isnanf.h.
38912         (main): Use isnanf() instead of isnan().
38913         * tests/test-roundf1.c: Include isnanf.h.
38914         (main): Use isnanf() instead of isnan().
38915
38916 2007-10-21  Eric Blake  <ebb9@byu.net>
38917
38918         * users.txt: Update URL for m4.
38919
38920 2007-10-21  Bruno Haible  <bruno@clisp.org>
38921
38922         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
38923
38924 2007-10-21  Bruno Haible  <bruno@clisp.org>
38925
38926         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
38927         Git's management files if the CVS files are not present.
38928
38929 2007-10-20  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
38932         gcc-3.4.x.
38933
38934 2007-10-20  Ben Pfaff  <blp@gnu.org>
38935
38936         * lib/math.in.h: Declare round, roundf, roundl if we are providing
38937         implementations.
38938         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
38939         * lib/round.c: New file.
38940         * lib/roundf.c: New file.
38941         * lib/roundl.c: New file.
38942         * m4/round.m4: New file.
38943         * m4/roundf.m4: New file.
38944         * m4/roundl.m4: New file.
38945         * m4/check-libm-func-m4: New file.
38946         * modules/math: Replace round, roundf, roundl related @VARS@ in
38947         math.in.h.
38948         * modules/round: New file.
38949         * modules/round-tests: New file.
38950         * modules/roundf: New file.
38951         * modules/roundf-tests: New file.
38952         * modules/roundl: New file.
38953         * modules/roundl-tests: New file.
38954         * tests/test-round1.c: New file.
38955         * tests/test-round2.c: New file.
38956         * tests/test-roundf1.c: New file.
38957         * tests/test-roundf2.c: New file.
38958         * tests/test-roundl.c: New file.
38959         * doc/functions/round.texi: Mention round module.
38960         * doc/functions/roundf.texi: Mention roundf module.
38961         * doc/functions/roundl.texi: Mention roundl module.
38962         * MODULES.html.sh: Mention new modules.
38963         Thanks to Bruno Haible for suggestions.
38964
38965 2007-10-20  Jim Meyering  <meyering@redhat.com>
38966
38967         * lib/xprintf.c: Include <config.h> unconditionally.
38968
38969         Change xprintf's license to GPL.
38970         * modules/xprintf (License): s/LGPL/GPL/, since this module
38971         depends on modules (exit and exitfail) which are GPL.
38972         Suggestion from Bruno Haible.
38973
38974         xprintf fixes.
38975         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
38976         Use a clearer diagnostic.
38977         Patch from Bruno Haible.
38978
38979 2007-10-20  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
38982         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
38983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38984
38985 2007-10-20  Bruno Haible  <bruno@clisp.org>
38986
38987         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
38988         precision in the comparison result > x - 1 or similar.
38989         * tests/test-ceilf2.c (correct_result_p): Likewise.
38990         * tests/test-truncf2.c (correct_result_p): Likewise.
38991         * tests/test-trunc2.c (correct_result_p): Likewise.
38992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38993
38994 2007-10-20  Bruno Haible  <bruno@clisp.org>
38995
38996         * modules/ceil: New file.
38997         * m4/ceil.m4: New file.
38998         * doc/functions/ceil.texi: Mention the 'ceil' module.
38999
39000 2007-10-20  Bruno Haible  <bruno@clisp.org>
39001
39002         * modules/floor: New file.
39003         * m4/floor.m4: New file.
39004         * doc/functions/floor.texi: Mention the 'floor' module.
39005
39006 2007-10-20  Bruno Haible  <bruno@clisp.org>
39007
39008         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39009         of %a.
39010         * modules/floorf-tests (Depends-on): Likewise.
39011         * modules/truncf-tests (Depends-on): Likewise.
39012         * modules/trunc-tests (Depends-on): Likewise.
39013         Reported by Ben Pfaff.
39014
39015 2007-10-19  Jim Meyering  <meyering@redhat.com>
39016
39017         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39018         Don't bother testing specific errno values.  Just test ferror.
39019
39020         New module: xprintf
39021         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39022
39023 2007-10-19  Bruno Haible  <bruno@clisp.org>
39024
39025         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39026         syntax.
39027         * modules/javaexec (Makefile.am): Likewise.
39028         * modules/relocatable-prog (Makefile.am): Likewise.
39029         Suggested by Jim Meyering.
39030
39031 2007-10-18  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39034         Reported by Jim Meyering.
39035
39036 2007-10-18  Eric Blake  <ebb9@byu.net>
39037
39038         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39039
39040 2007-10-18  Bruno Haible  <bruno@clisp.org>
39041
39042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39043         the format string into writable memory. Needed in Fortify conditions.
39044
39045 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39046             Bruno Haible  <bruno@clisp.org>
39047
39048         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39049         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39050         * modules/trim (Depends-on): Add mbchar.
39051         (configure.ac): Add gl_FUNC_MBRTOWC.
39052         (Makefile.am): Augment lib_SOURCES.
39053
39054 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39055
39056         Modify glob.c to use fstatat and dirfd, to simplify it.
39057         Suggested by Eric Blake.
39058         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39059         Don't include <stdbool.h>; not used.
39060         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39061         (link_exists_p): Simplify implementation, since we can now assume
39062         dirfd and fstatat.
39063         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39064
39065 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39066
39067         * gnulib-tool (func_get_dependencies): Fix sed script to
39068         match only tests.
39069
39070 2007-10-17  Bruno Haible  <bruno@clisp.org>
39071
39072         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39073         allow locale names without encoding suffix.
39074         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39075         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39076
39077 2007-10-16  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39080         * lib/getgroups.c (getgroups): Likewise.
39081         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39082
39083 2007-10-16  Bruno Haible  <bruno@clisp.org>
39084
39085         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39086         * modules/malloc-posix (License): Likewise.
39087         * modules/realloc-posix (License): Likewise.
39088         * modules/calloc-posix (License): Likewise.
39089         * modules/intprops (License): Change from GPL to LGPL, with
39090         Paul Eggert's approval.
39091
39092 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39093
39094         Merge glibc changes into lib/glob.c.
39095
39096         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39097         2007-10-15 04:59:03 UTC.  Here are the changes:
39098
39099         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39100
39101         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39102
39103         * lib/glob.c: Add some branch prediction throughout.
39104
39105         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39106
39107         [BZ #5103]
39108         * lib/glob.c (glob): Recognize patterns starting \/.
39109
39110         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39111
39112         [BZ #3996]
39113         * lib/glob.c (attribute_hidden): Define if not defined.
39114         (glob): Unescape dirname, filename or username when needed and not
39115         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39116         is NULL.  Handle unescaped [ in pattern without closing ].
39117         Don't pass GLOB_CHECK down to recursive glob for directories.
39118         (__glob_pattern_type): New function.
39119         (__glob_pattern_p): Implement using __glob_pattern_type.
39120         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39121         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39122         Remove unreachable code.
39123
39124         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39125
39126         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39127         explain why there are no leaks.
39128
39129         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39130
39131         [BZ #3253]
39132         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39133         time, rather allocate increasingly bigger arrays of pointers, if
39134         possible with alloca, if too large with malloc.
39135
39136 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39137
39138         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39139         Problem reported by H.Merijn Brand in
39140         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39141         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39142         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39143
39144 2007-10-15  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39147         with explicit rpl_ prefix.
39148         * lib/fopen.c (fopen): Likewise.
39149         * lib/freopen.c (freopen): Likewise.
39150         * lib/iconv.c (iconv): Likewise.
39151         * lib/iconv_close.c (iconv_close): Likewise.
39152
39153 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39154
39155         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39156
39157 2007-10-15  Bruno Haible  <bruno@clisp.org>
39158
39159         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39160         <stddef.h> instead of <stdlib.h> since we only need NULL.
39161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39162
39163 2007-10-15  Bruno Haible  <bruno@clisp.org>
39164
39165         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39166         Replace paragraph talking about LIBOBJS.
39167         Reported by Colin Watson <cjwatson@debian.org>.
39168
39169 2007-10-15  Bruno Haible  <bruno@clisp.org>
39170
39171         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39172         <stdlib.h> before using NULL.
39173
39174 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39175
39176         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39177         Reported by Albert Chin <china@thewrittenword.com>.
39178
39179 2007-10-14  Bruno Haible  <bruno@clisp.org>
39180
39181         * modules/iconv_open-utf-tests: New file.
39182         * tests/test-iconv-utf.c: New file.
39183
39184         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39185         * modules/iconv_open-utf: New file.
39186         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39187         (iconv, iconv_close): New declarations.
39188         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39189         be defined.
39190         (iconv_open): Add special handling of conversion between UTF-8 and
39191         UTF-{16,32}{BE,LE}.
39192         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39193         * lib/iconv_close.c: New file.
39194         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39195         gl_FUNC_ICONV_OPEN.
39196         (gl_FUNC_ICONV_OPEN): Use it.
39197         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39198         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39199         and REPLACE_ICONV_UTF.
39200         * modules/iconv_open (Depends-on): Add c-strcase.
39201         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39202         ICONV_CONST.
39203         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39204
39205 2007-10-13  Albert Chin  <china@thewrittenword.com>
39206             Bruno Haible  <bruno@clisp.org>
39207
39208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39209         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39210
39211 2007-10-13  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39214         defined, use the ISO C99 inline semantics.
39215         * lib/argp.h (ARGP_EI): Likewise.
39216
39217 2007-10-13  Bruno Haible  <bruno@clisp.org>
39218
39219         Handle 'inline' change in gcc 4.3.0.
39220         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39221         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39222         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39223         argp_fmtstream_point): Disable 'extern' declaration if the function
39224         definition is going to be provided inline.
39225         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39226         semantics, not the ISO C99 inline semantics.
39227         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39228         'extern' declaration if the function definition is going to be provided
39229         inline.
39230         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39231         the GNU C inline semantics, not the ISO C99 inline semantics. With
39232         GCC 4.2, avoid a warning.
39233
39234 2007-10-13  Bruno Haible  <bruno@clisp.org>
39235
39236         * lib/freading.h (freading): Enable the use of __freading for
39237         glibc >= 2.7.
39238         * lib/freading.c (freading): Likewise.
39239
39240 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39241
39242         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39243         "warning: C99 inline functions are not supported; using GNU89".
39244
39245 2007-10-12  Bruno Haible  <bruno@clisp.org>
39246
39247         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39248         of 2.
39249         * tests/test-ceilf2.c: New file.
39250         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39251
39252         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39253         * modules/ceilf-tests: Update.
39254
39255 2007-10-12  Bruno Haible  <bruno@clisp.org>
39256
39257         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39258         of 2.
39259         * tests/test-floorf2.c: New file.
39260         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39261
39262         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39263         * modules/floorf-tests: Update.
39264
39265 2007-10-12  Bruno Haible  <bruno@clisp.org>
39266
39267         * tests/test-trunc2.c: New file.
39268         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39269
39270         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39271         * modules/trunc-tests: Update.
39272
39273 2007-10-12  Bruno Haible  <bruno@clisp.org>
39274
39275         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39276         of 2.
39277         * tests/test-truncf2.c: New file.
39278         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39279
39280         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39281         * modules/truncf-tests: Update.
39282
39283 2007-10-11  Eric Blake  <ebb9@byu.net>
39284
39285         Don't claim strerror is broken on Interix.
39286         * doc/functions/strerror.texi (strerror): Known broken systems are
39287         now Solaris 8, and not Interix.
39288         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39289         Interix on cross-compile.
39290         Reported by Martin Koeppe in
39291         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39292
39293 2007-10-11  Bruno Haible  <bruno@clisp.org>
39294
39295         * modules/i-ring-tests: New file.
39296         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39297         instead of assert.
39298
39299 2007-10-11  Bruno Haible  <bruno@clisp.org>
39300
39301         * modules/filenamecat-tests: New file.
39302         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39303         * lib/filenamecat.c: Remove test code.
39304
39305 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39308
39309         * lib/strerror.c: Include <string.h> always, to test interface,
39310         and to remove the need for the dummy.
39311         Include intprops.h to compute width instead of doing it ourselves
39312         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39313         (strerror): Define it to return NULL if there's no system strerror.
39314         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39315         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39316         ancient pre-strerror Unix systems well any more.  Saying "unknown
39317         system error" is enough.
39318         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39319         simpler strerror.c implementation.
39320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39321         Simplify the tests to reflect the simpler strerror implementation.
39322         * modules/strerror (Depends-on): Add intprops.
39323
39324 2007-10-09  Eric Blake  <ebb9@byu.net>
39325
39326         Silence test-fpending.
39327         * modules/fpending-tests (Files): Add wrapper script.
39328         * tests/test-fpending.sh: New file.
39329
39330 2007-10-09  Bruno Haible  <bruno@clisp.org>
39331
39332         * MODULES.html.sh (func_module): Don't create a hyperlink for
39333         function names like 'printf_frexp'.
39334         (Misc): Add crc, memxor.
39335         (Characteristics of floating types): New section.
39336         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39337         isnanf-nolibm, signbit, trunc, truncf, truncl.
39338         (Enhancements for ISO C 99 functions): New subsection Input/output.
39339         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39340         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39341         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39342         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39343         (Enhancements for POSIX:2001 functions): Add chdir-long.
39344         (File system functions): Add areadlink, chdir-safer, read-file.
39345         Remove cycle-check.
39346         (File system as inode set): New section.
39347         (Date and time): Add gethrxtime.
39348         (Multithreading): Add openmp.
39349         (Internationalization functions): Add localename.
39350         (Unicode string functions): Add unistr/u*-mbsnlen.
39351         (Support for maintaining and releasing projects): Add git-version-gen.
39352         (Lone files): Remove directories.
39353
39354 2007-10-08  Ben Pfaff  <blp@gnu.org>
39355
39356         * lib/xmalloca.h: Fix typo in comment.
39357
39358 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39361         when avoiding problems with integer overflow.  Use a portable test
39362         instead.
39363
39364 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39365
39366         * modules/dummy (License): Change to LGPLv2+.
39367         * modules/float (License): Likewise
39368         * modules/realloc (License): Likewise
39369         * modules/stdlib (License): Likewise
39370
39371 2007-10-07  Bruno Haible  <bruno@clisp.org>
39372
39373         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39374         * floor.c (TWO_MANT_DIG): Likewise.
39375         * ceil.c (TWO_MANT_DIG): Likewise.
39376         Reported by Ben Pfaff.
39377
39378 2007-10-07  Bruno Haible  <bruno@clisp.org>
39379
39380         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39381         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39382         * lib/frexp.c (FUNC): Likewise.
39383         * lib/printf-frexp.h (printf_frexp): Likewise.
39384         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39385         * lib/printf-frexp.c (FUNC): Likewise.
39386         Suggested by Jim Meyering.
39387
39388 2007-10-07  Jim Meyering  <meyering@redhat.com>
39389
39390         Make xnanosleep's integer overflow test more robust.
39391         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39392         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39393
39394 2007-10-07  Bruno Haible  <bruno@clisp.org>
39395
39396         * NEWS: Mention the license change.
39397
39398         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39399         abbreviations in the modules files.
39400
39401         Change copyright notice from GPLv2+ to GPLv3+.
39402         * README: Change copyright notice.
39403         * MODULES.html.sh: Likewise.
39404         * build-aux/bootstrap.conf: Likewise.
39405         * build-aux/config.libpath: Likewise.
39406         * build-aux/csharpcomp.sh.in: Likewise.
39407         * build-aux/csharpexec.sh.in: Likewise.
39408         * build-aux/install-reloc: Likewise.
39409         * build-aux/javacomp.sh.in: Likewise.
39410         * build-aux/javaexec.sh.in: Likewise.
39411         * build-aux/ldd.sh.in: Likewise.
39412         * build-aux/reloc-ldflags: Likewise.
39413         * build-aux/relocatable.sh.in: Likewise.
39414         * build-aux/x-to-1.in: Likewise.
39415         * check-module: Likewise.
39416         * config/srclistvars.sh: Likewise.
39417         * gnulib-tool: Likewise.
39418         * lib/acl-internal.h: Likewise.
39419         * lib/acl.c: Likewise.
39420         * lib/acl.h: Likewise.
39421         * lib/acl_entries.c: Likewise.
39422         * lib/areadlink-with-size.c: Likewise.
39423         * lib/areadlink.c: Likewise.
39424         * lib/areadlink.h: Likewise.
39425         * lib/argmatch.c: Likewise.
39426         * lib/argmatch.h: Likewise.
39427         * lib/argp-ba.c: Likewise.
39428         * lib/argp-eexst.c: Likewise.
39429         * lib/argp-fmtstream.c: Likewise.
39430         * lib/argp-fmtstream.h: Likewise.
39431         * lib/argp-fs-xinl.c: Likewise.
39432         * lib/argp-help.c: Likewise.
39433         * lib/argp-namefrob.h: Likewise.
39434         * lib/argp-parse.c: Likewise.
39435         * lib/argp-pin.c: Likewise.
39436         * lib/argp-pv.c: Likewise.
39437         * lib/argp-pvh.c: Likewise.
39438         * lib/argp-xinl.c: Likewise.
39439         * lib/argp.h: Likewise.
39440         * lib/at-func.c: Likewise.
39441         * lib/atanl.c: Likewise.
39442         * lib/backupfile.c: Likewise.
39443         * lib/backupfile.h: Likewise.
39444         * lib/basename.c: Likewise.
39445         * lib/binary-io.h: Likewise.
39446         * lib/byteswap.in.h: Likewise.
39447         * lib/c-stack.c: Likewise.
39448         * lib/c-stack.h: Likewise.
39449         * lib/c-strcasestr.c: Likewise.
39450         * lib/c-strcasestr.h: Likewise.
39451         * lib/c-strstr.c: Likewise.
39452         * lib/c-strstr.h: Likewise.
39453         * lib/c-strtod.c: Likewise.
39454         * lib/calloc.c: Likewise.
39455         * lib/canon-host.c: Likewise.
39456         * lib/canon-host.h: Likewise.
39457         * lib/canonicalize-lgpl.c: Likewise.
39458         * lib/canonicalize.c: Likewise.
39459         * lib/canonicalize.h: Likewise.
39460         * lib/ceil.c: Likewise.
39461         * lib/ceilf.c: Likewise.
39462         * lib/ceill.c: Likewise.
39463         * lib/chdir-long.c: Likewise.
39464         * lib/chdir-long.h: Likewise.
39465         * lib/chdir-safer.c: Likewise.
39466         * lib/chdir-safer.h: Likewise.
39467         * lib/chown.c: Likewise.
39468         * lib/classpath.c: Likewise.
39469         * lib/classpath.h: Likewise.
39470         * lib/clean-temp.c: Likewise.
39471         * lib/clean-temp.h: Likewise.
39472         * lib/cloexec.c: Likewise.
39473         * lib/close-stream.c: Likewise.
39474         * lib/closein.c: Likewise.
39475         * lib/closein.h: Likewise.
39476         * lib/closeout.c: Likewise.
39477         * lib/closeout.h: Likewise.
39478         * lib/concat-filename.c: Likewise.
39479         * lib/copy-file.c: Likewise.
39480         * lib/copy-file.h: Likewise.
39481         * lib/count-one-bits.h: Likewise.
39482         * lib/crc.c: Likewise.
39483         * lib/crc.h: Likewise.
39484         * lib/creat-safer.c: Likewise.
39485         * lib/csharpcomp.c: Likewise.
39486         * lib/csharpcomp.h: Likewise.
39487         * lib/csharpexec.c: Likewise.
39488         * lib/csharpexec.h: Likewise.
39489         * lib/cycle-check.c: Likewise.
39490         * lib/cycle-check.h: Likewise.
39491         * lib/diacrit.c: Likewise.
39492         * lib/diacrit.h: Likewise.
39493         * lib/diffseq.h: Likewise.
39494         * lib/dirchownmod.c: Likewise.
39495         * lib/dirent.in.h: Likewise.
39496         * lib/dirfd.c: Likewise.
39497         * lib/dirfd.h: Likewise.
39498         * lib/dirname.c: Likewise.
39499         * lib/dirname.h: Likewise.
39500         * lib/dummy.c: Likewise.
39501         * lib/dup-safer.c: Likewise.
39502         * lib/dup2.c: Likewise.
39503         * lib/eealloc.h: Likewise.
39504         * lib/error.c: Likewise.
39505         * lib/error.h: Likewise.
39506         * lib/euidaccess.c: Likewise.
39507         * lib/exclude.c: Likewise.
39508         * lib/exclude.h: Likewise.
39509         * lib/execute.c: Likewise.
39510         * lib/execute.h: Likewise.
39511         * lib/exitfail.c: Likewise.
39512         * lib/exitfail.h: Likewise.
39513         * lib/expl.c: Likewise.
39514         * lib/fatal-signal.c: Likewise.
39515         * lib/fatal-signal.h: Likewise.
39516         * lib/fbufmode.c: Likewise.
39517         * lib/fbufmode.h: Likewise.
39518         * lib/fchdir.c: Likewise.
39519         * lib/fchmodat.c: Likewise.
39520         * lib/fchownat.c: Likewise.
39521         * lib/fcntl--.h: Likewise.
39522         * lib/fcntl-safer.h: Likewise.
39523         * lib/fcntl.in.h: Likewise.
39524         * lib/fd-safer.c: Likewise.
39525         * lib/fflush.c: Likewise.
39526         * lib/file-has-acl.c: Likewise.
39527         * lib/file-set.c: Likewise.
39528         * lib/file-type.c: Likewise.
39529         * lib/file-type.h: Likewise.
39530         * lib/fileblocks.c: Likewise.
39531         * lib/filemode.c: Likewise.
39532         * lib/filemode.h: Likewise.
39533         * lib/filename.h: Likewise.
39534         * lib/filenamecat.c: Likewise.
39535         * lib/filenamecat.h: Likewise.
39536         * lib/findprog.c: Likewise.
39537         * lib/findprog.h: Likewise.
39538         * lib/float.in.h: Likewise.
39539         * lib/floor.c: Likewise.
39540         * lib/floorf.c: Likewise.
39541         * lib/floorl.c: Likewise.
39542         * lib/fopen-safer.c: Likewise.
39543         * lib/fopen.c: Likewise.
39544         * lib/fpending.c: Likewise.
39545         * lib/fpending.h: Likewise.
39546         * lib/fprintf.c: Likewise.
39547         * lib/fprintftime.h: Likewise.
39548         * lib/fpucw.h: Likewise.
39549         * lib/fpurge.c: Likewise.
39550         * lib/fpurge.h: Likewise.
39551         * lib/freadable.c: Likewise.
39552         * lib/freadable.h: Likewise.
39553         * lib/freadahead.c: Likewise.
39554         * lib/freadahead.h: Likewise.
39555         * lib/freading.c: Likewise.
39556         * lib/freading.h: Likewise.
39557         * lib/free.c: Likewise.
39558         * lib/freopen.c: Likewise.
39559         * lib/frexp.c: Likewise.
39560         * lib/frexpl.c: Likewise.
39561         * lib/fseek.c: Likewise.
39562         * lib/fseterr.c: Likewise.
39563         * lib/fseterr.h: Likewise.
39564         * lib/fstatat.c: Likewise.
39565         * lib/fstrcmp.c: Likewise.
39566         * lib/fstrcmp.h: Likewise.
39567         * lib/fsusage.c: Likewise.
39568         * lib/fsusage.h: Likewise.
39569         * lib/ftell.c: Likewise.
39570         * lib/ftello.c: Likewise.
39571         * lib/fts-cycle.c: Likewise.
39572         * lib/fts.c: Likewise.
39573         * lib/fts_.h: Likewise.
39574         * lib/full-read.c: Likewise.
39575         * lib/full-read.h: Likewise.
39576         * lib/full-write.c: Likewise.
39577         * lib/full-write.h: Likewise.
39578         * lib/fwritable.c: Likewise.
39579         * lib/fwritable.h: Likewise.
39580         * lib/fwriteerror.c: Likewise.
39581         * lib/fwriteerror.h: Likewise.
39582         * lib/fwriting.c: Likewise.
39583         * lib/fwriting.h: Likewise.
39584         * lib/gcd.c: Likewise.
39585         * lib/gcd.h: Likewise.
39586         * lib/getcwd.c: Likewise.
39587         * lib/getdate.h: Likewise.
39588         * lib/getdate.y: Likewise.
39589         * lib/getdomainname.c: Likewise.
39590         * lib/getdomainname.h: Likewise.
39591         * lib/getgroups.c: Likewise.
39592         * lib/gethostname.c: Likewise.
39593         * lib/gethrxtime.c: Likewise.
39594         * lib/gethrxtime.h: Likewise.
39595         * lib/getloadavg.c: Likewise.
39596         * lib/getndelim2.c: Likewise.
39597         * lib/getndelim2.h: Likewise.
39598         * lib/getnline.c: Likewise.
39599         * lib/getnline.h: Likewise.
39600         * lib/getopt.c: Likewise.
39601         * lib/getopt.in.h: Likewise.
39602         * lib/getopt1.c: Likewise.
39603         * lib/getopt_int.h: Likewise.
39604         * lib/getpagesize.h: Likewise.
39605         * lib/getsubopt.c: Likewise.
39606         * lib/gettime.c: Likewise.
39607         * lib/getugroups.c: Likewise.
39608         * lib/getugroups.h: Likewise.
39609         * lib/getusershell.c: Likewise.
39610         * lib/gl_anyavltree_list1.h: Likewise.
39611         * lib/gl_anyavltree_list2.h: Likewise.
39612         * lib/gl_anyhash_list1.h: Likewise.
39613         * lib/gl_anyhash_list2.h: Likewise.
39614         * lib/gl_anylinked_list1.h: Likewise.
39615         * lib/gl_anylinked_list2.h: Likewise.
39616         * lib/gl_anyrbtree_list1.h: Likewise.
39617         * lib/gl_anyrbtree_list2.h: Likewise.
39618         * lib/gl_anytree_list1.h: Likewise.
39619         * lib/gl_anytree_list2.h: Likewise.
39620         * lib/gl_anytree_oset.h: Likewise.
39621         * lib/gl_anytreehash_list1.h: Likewise.
39622         * lib/gl_anytreehash_list2.h: Likewise.
39623         * lib/gl_array_list.c: Likewise.
39624         * lib/gl_array_list.h: Likewise.
39625         * lib/gl_array_oset.c: Likewise.
39626         * lib/gl_array_oset.h: Likewise.
39627         * lib/gl_avltree_list.c: Likewise.
39628         * lib/gl_avltree_list.h: Likewise.
39629         * lib/gl_avltree_oset.c: Likewise.
39630         * lib/gl_avltree_oset.h: Likewise.
39631         * lib/gl_avltreehash_list.c: Likewise.
39632         * lib/gl_avltreehash_list.h: Likewise.
39633         * lib/gl_carray_list.c: Likewise.
39634         * lib/gl_carray_list.h: Likewise.
39635         * lib/gl_linked_list.c: Likewise.
39636         * lib/gl_linked_list.h: Likewise.
39637         * lib/gl_linkedhash_list.c: Likewise.
39638         * lib/gl_linkedhash_list.h: Likewise.
39639         * lib/gl_list.c: Likewise.
39640         * lib/gl_list.h: Likewise.
39641         * lib/gl_oset.c: Likewise.
39642         * lib/gl_oset.h: Likewise.
39643         * lib/gl_rbtree_list.c: Likewise.
39644         * lib/gl_rbtree_list.h: Likewise.
39645         * lib/gl_rbtree_oset.c: Likewise.
39646         * lib/gl_rbtree_oset.h: Likewise.
39647         * lib/gl_rbtreehash_list.c: Likewise.
39648         * lib/gl_rbtreehash_list.h: Likewise.
39649         * lib/gl_sublist.c: Likewise.
39650         * lib/gl_sublist.h: Likewise.
39651         * lib/group-member.c: Likewise.
39652         * lib/group-member.h: Likewise.
39653         * lib/hard-locale.c: Likewise.
39654         * lib/hard-locale.h: Likewise.
39655         * lib/hash-pjw.c: Likewise.
39656         * lib/hash-pjw.h: Likewise.
39657         * lib/hash-triple.c: Likewise.
39658         * lib/hash.c: Likewise.
39659         * lib/hash.h: Likewise.
39660         * lib/human.c: Likewise.
39661         * lib/human.h: Likewise.
39662         * lib/i-ring.c: Likewise.
39663         * lib/i-ring.h: Likewise.
39664         * lib/idcache.c: Likewise.
39665         * lib/imaxabs.c: Likewise.
39666         * lib/imaxdiv.c: Likewise.
39667         * lib/inet_pton.c: Likewise.
39668         * lib/inet_pton.h: Likewise.
39669         * lib/intprops.h: Likewise.
39670         * lib/inttostr.c: Likewise.
39671         * lib/inttostr.h: Likewise.
39672         * lib/inttypes.in.h: Likewise.
39673         * lib/isapipe.c: Likewise.
39674         * lib/isdir.c: Likewise.
39675         * lib/isnan.c: Likewise.
39676         * lib/isnan.h: Likewise.
39677         * lib/isnanf.c: Likewise.
39678         * lib/isnanf.h: Likewise.
39679         * lib/isnanl-nolibm.h: Likewise.
39680         * lib/isnanl.c: Likewise.
39681         * lib/isnanl.h: Likewise.
39682         * lib/javacomp.c: Likewise.
39683         * lib/javacomp.h: Likewise.
39684         * lib/javaexec.c: Likewise.
39685         * lib/javaexec.h: Likewise.
39686         * lib/javaversion.c: Likewise.
39687         * lib/javaversion.h: Likewise.
39688         * lib/javaversion.java: Likewise.
39689         * lib/lbrkprop.h: Likewise.
39690         * lib/lchmod.h: Likewise.
39691         * lib/lchown.c: Likewise.
39692         * lib/ldexpl.c: Likewise.
39693         * lib/linebreak.c: Likewise.
39694         * lib/linebreak.h: Likewise.
39695         * lib/linebuffer.c: Likewise.
39696         * lib/linebuffer.h: Likewise.
39697         * lib/locale.in.h: Likewise.
39698         * lib/logl.c: Likewise.
39699         * lib/long-options.c: Likewise.
39700         * lib/long-options.h: Likewise.
39701         * lib/lstat.c: Likewise.
39702         * lib/lstat.h: Likewise.
39703         * lib/math.in.h: Likewise.
39704         * lib/mbchar.c: Likewise.
39705         * lib/mbchar.h: Likewise.
39706         * lib/mbfile.h: Likewise.
39707         * lib/mbiter.h: Likewise.
39708         * lib/mbscasecmp.c: Likewise.
39709         * lib/mbscasestr.c: Likewise.
39710         * lib/mbschr.c: Likewise.
39711         * lib/mbscspn.c: Likewise.
39712         * lib/mbslen.c: Likewise.
39713         * lib/mbsncasecmp.c: Likewise.
39714         * lib/mbsnlen.c: Likewise.
39715         * lib/mbspbrk.c: Likewise.
39716         * lib/mbspcasecmp.c: Likewise.
39717         * lib/mbsrchr.c: Likewise.
39718         * lib/mbssep.c: Likewise.
39719         * lib/mbsspn.c: Likewise.
39720         * lib/mbsstr.c: Likewise.
39721         * lib/mbstok_r.c: Likewise.
39722         * lib/mbswidth.c: Likewise.
39723         * lib/mbswidth.h: Likewise.
39724         * lib/mbuiter.h: Likewise.
39725         * lib/memcasecmp.c: Likewise.
39726         * lib/memcasecmp.h: Likewise.
39727         * lib/memchr.c: Likewise.
39728         * lib/memcmp.c: Likewise.
39729         * lib/memcoll.c: Likewise.
39730         * lib/memcoll.h: Likewise.
39731         * lib/memcpy.c: Likewise.
39732         * lib/memrchr.c: Likewise.
39733         * lib/mkancesdirs.c: Likewise.
39734         * lib/mkdir-p.c: Likewise.
39735         * lib/mkdir-p.h: Likewise.
39736         * lib/mkdir.c: Likewise.
39737         * lib/mkdirat.c: Likewise.
39738         * lib/mkdtemp.c: Likewise.
39739         * lib/mkstemp-safer.c: Likewise.
39740         * lib/mkstemp.c: Likewise.
39741         * lib/modechange.c: Likewise.
39742         * lib/modechange.h: Likewise.
39743         * lib/mountlist.c: Likewise.
39744         * lib/mountlist.h: Likewise.
39745         * lib/mpsort.c: Likewise.
39746         * lib/nanosleep.c: Likewise.
39747         * lib/obstack.c: Likewise.
39748         * lib/obstack.h: Likewise.
39749         * lib/open-safer.c: Likewise.
39750         * lib/open.c: Likewise.
39751         * lib/openat-die.c: Likewise.
39752         * lib/openat-priv.h: Likewise.
39753         * lib/openat-proc.c: Likewise.
39754         * lib/openat.c: Likewise.
39755         * lib/openat.h: Likewise.
39756         * lib/pagealign_alloc.c: Likewise.
39757         * lib/pagealign_alloc.h: Likewise.
39758         * lib/physmem.c: Likewise.
39759         * lib/physmem.h: Likewise.
39760         * lib/pipe-safer.c: Likewise.
39761         * lib/pipe.c: Likewise.
39762         * lib/pipe.h: Likewise.
39763         * lib/posixtm.c: Likewise.
39764         * lib/posixtm.h: Likewise.
39765         * lib/posixver.c: Likewise.
39766         * lib/printf-frexp.c: Likewise.
39767         * lib/printf-frexp.h: Likewise.
39768         * lib/printf-frexpl.c: Likewise.
39769         * lib/printf-frexpl.h: Likewise.
39770         * lib/printf.c: Likewise.
39771         * lib/progname.c: Likewise.
39772         * lib/progname.h: Likewise.
39773         * lib/progreloc.c: Likewise.
39774         * lib/putenv.c: Likewise.
39775         * lib/quote.c: Likewise.
39776         * lib/quote.h: Likewise.
39777         * lib/quotearg.c: Likewise.
39778         * lib/quotearg.h: Likewise.
39779         * lib/raise.c: Likewise.
39780         * lib/readline.c: Likewise.
39781         * lib/readline.h: Likewise.
39782         * lib/readlink.c: Likewise.
39783         * lib/readtokens.c: Likewise.
39784         * lib/readtokens.h: Likewise.
39785         * lib/readtokens0.c: Likewise.
39786         * lib/readtokens0.h: Likewise.
39787         * lib/readutmp.c: Likewise.
39788         * lib/readutmp.h: Likewise.
39789         * lib/realloc.c: Likewise.
39790         * lib/relocwrapper.c: Likewise.
39791         * lib/rename-dest-slash.c: Likewise.
39792         * lib/rename.c: Likewise.
39793         * lib/rmdir.c: Likewise.
39794         * lib/rpmatch.c: Likewise.
39795         * lib/safe-read.c: Likewise.
39796         * lib/safe-read.h: Likewise.
39797         * lib/safe-write.c: Likewise.
39798         * lib/safe-write.h: Likewise.
39799         * lib/same-inode.h: Likewise.
39800         * lib/same.c: Likewise.
39801         * lib/same.h: Likewise.
39802         * lib/save-cwd.c: Likewise.
39803         * lib/save-cwd.h: Likewise.
39804         * lib/savedir.c: Likewise.
39805         * lib/savedir.h: Likewise.
39806         * lib/savewd.c: Likewise.
39807         * lib/savewd.h: Likewise.
39808         * lib/search.in.h: Likewise.
39809         * lib/setenv.c: Likewise.
39810         * lib/setenv.h: Likewise.
39811         * lib/settime.c: Likewise.
39812         * lib/sh-quote.c: Likewise.
39813         * lib/sh-quote.h: Likewise.
39814         * lib/sig2str.c: Likewise.
39815         * lib/sig2str.h: Likewise.
39816         * lib/signal.in.h: Likewise.
39817         * lib/signbitd.c: Likewise.
39818         * lib/signbitf.c: Likewise.
39819         * lib/signbitl.c: Likewise.
39820         * lib/sigprocmask.c: Likewise.
39821         * lib/sincosl.c: Likewise.
39822         * lib/sleep.c: Likewise.
39823         * lib/sprintf.c: Likewise.
39824         * lib/sqrtl.c: Likewise.
39825         * lib/stat-time.h: Likewise.
39826         * lib/stdio--.h: Likewise.
39827         * lib/stdio-safer.h: Likewise.
39828         * lib/stdlib--.h: Likewise.
39829         * lib/stdlib-safer.h: Likewise.
39830         * lib/stdlib.in.h: Likewise.
39831         * lib/stpcpy.c: Likewise.
39832         * lib/stpncpy.c: Likewise.
39833         * lib/strchrnul.c: Likewise.
39834         * lib/strcspn.c: Likewise.
39835         * lib/strerror.c: Likewise.
39836         * lib/strftime.c: Likewise.
39837         * lib/strftime.h: Likewise.
39838         * lib/striconveh.c: Likewise.
39839         * lib/striconveh.h: Likewise.
39840         * lib/striconveha.c: Likewise.
39841         * lib/striconveha.h: Likewise.
39842         * lib/stripslash.c: Likewise.
39843         * lib/strnlen1.c: Likewise.
39844         * lib/strnlen1.h: Likewise.
39845         * lib/strtod.c: Likewise.
39846         * lib/strtoimax.c: Likewise.
39847         * lib/strtok_r.c: Likewise.
39848         * lib/strtol.c: Likewise.
39849         * lib/strtoll.c: Likewise.
39850         * lib/strtoul.c: Likewise.
39851         * lib/strtoull.c: Likewise.
39852         * lib/sysexits.in.h: Likewise.
39853         * lib/tempname.c: Likewise.
39854         * lib/tempname.h: Likewise.
39855         * lib/timespec.h: Likewise.
39856         * lib/tls.c: Likewise.
39857         * lib/tls.h: Likewise.
39858         * lib/tmpdir.c: Likewise.
39859         * lib/tmpdir.h: Likewise.
39860         * lib/tmpfile-safer.c: Likewise.
39861         * lib/tmpfile.c: Likewise.
39862         * lib/trigl.c: Likewise.
39863         * lib/trigl.h: Likewise.
39864         * lib/trim.c: Likewise.
39865         * lib/trim.h: Likewise.
39866         * lib/trunc.c: Likewise.
39867         * lib/truncf.c: Likewise.
39868         * lib/truncl.c: Likewise.
39869         * lib/tsearch.c: Likewise.
39870         * lib/unicodeio.c: Likewise.
39871         * lib/unicodeio.h: Likewise.
39872         * lib/unistd--.h: Likewise.
39873         * lib/unistd-safer.h: Likewise.
39874         * lib/unistdio/ulc-fprintf.c: Likewise.
39875         * lib/unistdio/ulc-vfprintf.c: Likewise.
39876         * lib/unlinkdir.c: Likewise.
39877         * lib/unlinkdir.h: Likewise.
39878         * lib/unlocked-io.h: Likewise.
39879         * lib/unsetenv.c: Likewise.
39880         * lib/userspec.c: Likewise.
39881         * lib/utime.c: Likewise.
39882         * lib/utimecmp.c: Likewise.
39883         * lib/utimecmp.h: Likewise.
39884         * lib/utimens.c: Likewise.
39885         * lib/verify.h: Likewise.
39886         * lib/verror.c: Likewise.
39887         * lib/verror.h: Likewise.
39888         * lib/version-etc-fsf.c: Likewise.
39889         * lib/version-etc.c: Likewise.
39890         * lib/version-etc.h: Likewise.
39891         * lib/vfprintf.c: Likewise.
39892         * lib/vprintf.c: Likewise.
39893         * lib/vsprintf.c: Likewise.
39894         * lib/w32spawn.h: Likewise.
39895         * lib/wait-process.c: Likewise.
39896         * lib/wait-process.h: Likewise.
39897         * lib/wcwidth.c: Likewise.
39898         * lib/write-any-file.c: Likewise.
39899         * lib/xalloc-die.c: Likewise.
39900         * lib/xalloc.h: Likewise.
39901         * lib/xasprintf.c: Likewise.
39902         * lib/xgetcwd.c: Likewise.
39903         * lib/xgetcwd.h: Likewise.
39904         * lib/xgetdomainname.c: Likewise.
39905         * lib/xgetdomainname.h: Likewise.
39906         * lib/xgethostname.c: Likewise.
39907         * lib/xmalloc.c: Likewise.
39908         * lib/xmalloca.c: Likewise.
39909         * lib/xmalloca.h: Likewise.
39910         * lib/xmemcoll.c: Likewise.
39911         * lib/xnanosleep.c: Likewise.
39912         * lib/xreadlink.c: Likewise.
39913         * lib/xreadlink.h: Likewise.
39914         * lib/xsetenv.c: Likewise.
39915         * lib/xsetenv.h: Likewise.
39916         * lib/xstriconv.c: Likewise.
39917         * lib/xstriconv.h: Likewise.
39918         * lib/xstrndup.c: Likewise.
39919         * lib/xstrndup.h: Likewise.
39920         * lib/xstrtod.c: Likewise.
39921         * lib/xstrtod.h: Likewise.
39922         * lib/xstrtol-error.c: Likewise.
39923         * lib/xstrtol.c: Likewise.
39924         * lib/xstrtol.h: Likewise.
39925         * lib/xtime.h: Likewise.
39926         * lib/xvasprintf.c: Likewise.
39927         * lib/xvasprintf.h: Likewise.
39928         * lib/yesno.c: Likewise.
39929         * lib/yesno.h: Likewise.
39930         * posix-modules: Likewise.
39931         * tests/test-alloca-opt.c: Likewise.
39932         * tests/test-arcfour.c: Likewise.
39933         * tests/test-arctwo.c: Likewise.
39934         * tests/test-argmatch.c: Likewise.
39935         * tests/test-argp-2.sh: Likewise.
39936         * tests/test-argp.c: Likewise.
39937         * tests/test-arpa_inet.c: Likewise.
39938         * tests/test-array_list.c: Likewise.
39939         * tests/test-array_oset.c: Likewise.
39940         * tests/test-atexit.c: Likewise.
39941         * tests/test-avltree_list.c: Likewise.
39942         * tests/test-avltree_oset.c: Likewise.
39943         * tests/test-avltreehash_list.c: Likewise.
39944         * tests/test-base64.c: Likewise.
39945         * tests/test-binary-io.c: Likewise.
39946         * tests/test-byteswap.c: Likewise.
39947         * tests/test-c-ctype.c: Likewise.
39948         * tests/test-c-strcasecmp.c: Likewise.
39949         * tests/test-c-strcasestr.c: Likewise.
39950         * tests/test-c-strncasecmp.c: Likewise.
39951         * tests/test-c-strstr.c: Likewise.
39952         * tests/test-canonicalize-lgpl.c: Likewise.
39953         * tests/test-canonicalize.c: Likewise.
39954         * tests/test-carray_list.c: Likewise.
39955         * tests/test-ceilf.c: Likewise.
39956         * tests/test-ceill.c: Likewise.
39957         * tests/test-count-one-bits.c: Likewise.
39958         * tests/test-crc.c: Likewise.
39959         * tests/test-dirname.c: Likewise.
39960         * tests/test-fbufmode.c: Likewise.
39961         * tests/test-fcntl.c: Likewise.
39962         * tests/test-fflush.c: Likewise.
39963         * tests/test-floorf.c: Likewise.
39964         * tests/test-floorl.c: Likewise.
39965         * tests/test-fopen.c: Likewise.
39966         * tests/test-fprintf-posix.c: Likewise.
39967         * tests/test-fprintf-posix.h: Likewise.
39968         * tests/test-fpurge.c: Likewise.
39969         * tests/test-freadable.c: Likewise.
39970         * tests/test-freadahead.c: Likewise.
39971         * tests/test-freading.c: Likewise.
39972         * tests/test-freopen.c: Likewise.
39973         * tests/test-frexp.c: Likewise.
39974         * tests/test-frexpl.c: Likewise.
39975         * tests/test-fseek.c: Likewise.
39976         * tests/test-fseeko.c: Likewise.
39977         * tests/test-fseterr.c: Likewise.
39978         * tests/test-fstrcmp.c: Likewise.
39979         * tests/test-ftell.c: Likewise.
39980         * tests/test-ftello.c: Likewise.
39981         * tests/test-fwritable.c: Likewise.
39982         * tests/test-fwriting.c: Likewise.
39983         * tests/test-getaddrinfo.c: Likewise.
39984         * tests/test-getpass.c: Likewise.
39985         * tests/test-gettimeofday.c: Likewise.
39986         * tests/test-hmac-md5.c: Likewise.
39987         * tests/test-hmac-sha1.c: Likewise.
39988         * tests/test-iconv.c: Likewise.
39989         * tests/test-iconvme.c: Likewise.
39990         * tests/test-inttypes.c: Likewise.
39991         * tests/test-isnan.c: Likewise.
39992         * tests/test-isnanf.c: Likewise.
39993         * tests/test-isnanl-nolibm.c: Likewise.
39994         * tests/test-isnanl.c: Likewise.
39995         * tests/test-isnanl.h: Likewise.
39996         * tests/test-ldexpl.c: Likewise.
39997         * tests/test-linked_list.c: Likewise.
39998         * tests/test-linkedhash_list.c: Likewise.
39999         * tests/test-locale.c: Likewise.
40000         * tests/test-localename.c: Likewise.
40001         * tests/test-lock.c: Likewise.
40002         * tests/test-lseek.c: Likewise.
40003         * tests/test-malloca.c: Likewise.
40004         * tests/test-math.c: Likewise.
40005         * tests/test-mbscasecmp.c: Likewise.
40006         * tests/test-mbscasestr1.c: Likewise.
40007         * tests/test-mbscasestr2.c: Likewise.
40008         * tests/test-mbscasestr3.c: Likewise.
40009         * tests/test-mbscasestr4.c: Likewise.
40010         * tests/test-mbschr.c: Likewise.
40011         * tests/test-mbscspn.c: Likewise.
40012         * tests/test-mbsncasecmp.c: Likewise.
40013         * tests/test-mbspbrk.c: Likewise.
40014         * tests/test-mbspcasecmp.c: Likewise.
40015         * tests/test-mbsrchr.c: Likewise.
40016         * tests/test-mbsspn.c: Likewise.
40017         * tests/test-mbsstr1.c: Likewise.
40018         * tests/test-mbsstr2.c: Likewise.
40019         * tests/test-mbsstr3.c: Likewise.
40020         * tests/test-md5.c: Likewise.
40021         * tests/test-memmem.c: Likewise.
40022         * tests/test-netinet_in.c: Likewise.
40023         * tests/test-open.c: Likewise.
40024         * tests/test-printf-frexp.c: Likewise.
40025         * tests/test-printf-frexpl.c: Likewise.
40026         * tests/test-printf-posix.c: Likewise.
40027         * tests/test-printf-posix.h: Likewise.
40028         * tests/test-rbtree_list.c: Likewise.
40029         * tests/test-rbtree_oset.c: Likewise.
40030         * tests/test-rbtreehash_list.c: Likewise.
40031         * tests/test-read-file.c: Likewise.
40032         * tests/test-rijndael.c: Likewise.
40033         * tests/test-search.c: Likewise.
40034         * tests/test-signbit.c: Likewise.
40035         * tests/test-sleep.c: Likewise.
40036         * tests/test-snprintf-posix.c: Likewise.
40037         * tests/test-snprintf-posix.h: Likewise.
40038         * tests/test-snprintf.c: Likewise.
40039         * tests/test-sprintf-posix.c: Likewise.
40040         * tests/test-sprintf-posix.h: Likewise.
40041         * tests/test-stat-time.c: Likewise.
40042         * tests/test-stdbool.c: Likewise.
40043         * tests/test-stdint.c: Likewise.
40044         * tests/test-stdio.c: Likewise.
40045         * tests/test-stdlib.c: Likewise.
40046         * tests/test-stpncpy.c: Likewise.
40047         * tests/test-strcasestr.c: Likewise.
40048         * tests/test-striconv.c: Likewise.
40049         * tests/test-striconveh.c: Likewise.
40050         * tests/test-striconveha.c: Likewise.
40051         * tests/test-string.c: Likewise.
40052         * tests/test-sys_select.c: Likewise.
40053         * tests/test-sys_socket.c: Likewise.
40054         * tests/test-sys_stat.c: Likewise.
40055         * tests/test-sys_time.c: Likewise.
40056         * tests/test-sysexits.c: Likewise.
40057         * tests/test-time.c: Likewise.
40058         * tests/test-tls.c: Likewise.
40059         * tests/test-trunc.c: Likewise.
40060         * tests/test-truncf.c: Likewise.
40061         * tests/test-truncl.c: Likewise.
40062         * tests/test-unistd.c: Likewise.
40063         * tests/test-vasnprintf-posix.c: Likewise.
40064         * tests/test-vasnprintf-posix2.c: Likewise.
40065         * tests/test-vasnprintf.c: Likewise.
40066         * tests/test-vasprintf-posix.c: Likewise.
40067         * tests/test-vasprintf.c: Likewise.
40068         * tests/test-verify.c: Likewise.
40069         * tests/test-vfprintf-posix.c: Likewise.
40070         * tests/test-vprintf-posix.c: Likewise.
40071         * tests/test-vsnprintf-posix.c: Likewise.
40072         * tests/test-vsnprintf.c: Likewise.
40073         * tests/test-vsprintf-posix.c: Likewise.
40074         * tests/test-wchar.c: Likewise.
40075         * tests/test-wctype.c: Likewise.
40076         * tests/test-wcwidth.c: Likewise.
40077         * tests/test-xstrtol.c: Likewise.
40078         * tests/test-xvasprintf.c: Likewise.
40079         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40080         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40081         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40082         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40083         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40084         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40085         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40086         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40087         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40088         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40089         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40090         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40091         * tests/uniname/test-uninames.c: Likewise.
40092         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40093         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40094         * tests/unistdio/test-u16-printf1.h: Likewise.
40095         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40096         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40097         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40098         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40099         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40100         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40101         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40102         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40103         * tests/unistdio/test-u32-printf1.h: Likewise.
40104         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40105         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40106         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40107         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40108         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40109         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40110         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40111         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40112         * tests/unistdio/test-u8-printf1.h: Likewise.
40113         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40114         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40115         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40116         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40117         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40118         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40119         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40120         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40121         * tests/unistdio/test-ulc-printf1.h: Likewise.
40122         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40123         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40124         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40125         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40126         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40127         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40128         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40129         * tests/uniwidth/test-u16-width.c: Likewise.
40130         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40131         * tests/uniwidth/test-u32-width.c: Likewise.
40132         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40133         * tests/uniwidth/test-u8-width.c: Likewise.
40134         * tests/uniwidth/test-uc_width.c: Likewise.
40135         * config/srclist-update: Likewise.
40136         (fixlicense): Update to GPLv3+.
40137
40138         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40139         * tests/test-tsearch.c: Change copyright notice.
40140
40141         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40142         * lib/c-strcaseeq.h: Change copyright notice.
40143         * lib/streq.h: Likewise.
40144         * lib/uniconv.h: Likewise.
40145         * lib/uniconv/u-conv-from-enc.h: Likewise.
40146         * lib/uniconv/u-conv-to-enc.h: Likewise.
40147         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40148         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40149         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40150         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40151         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40152         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40153         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40154         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40155         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40156         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40157         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40158         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40159         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40160         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40161         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40162         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40163         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40164         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40165         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40166         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40167         * lib/uniname.h: Likewise.
40168         * lib/uniname/uniname.c: Likewise.
40169         * lib/unistdio.h: Likewise.
40170         * lib/unistdio/u-asnprintf.h: Likewise.
40171         * lib/unistdio/u-asprintf.h: Likewise.
40172         * lib/unistdio/u-printf-args.c: Likewise.
40173         * lib/unistdio/u-printf-args.h: Likewise.
40174         * lib/unistdio/u-printf-parse.h: Likewise.
40175         * lib/unistdio/u-snprintf.h: Likewise.
40176         * lib/unistdio/u-sprintf.h: Likewise.
40177         * lib/unistdio/u-vasprintf.h: Likewise.
40178         * lib/unistdio/u-vsnprintf.h: Likewise.
40179         * lib/unistdio/u-vsprintf.h: Likewise.
40180         * lib/unistdio/u16-asnprintf.c: Likewise.
40181         * lib/unistdio/u16-asprintf.c: Likewise.
40182         * lib/unistdio/u16-printf-parse.c: Likewise.
40183         * lib/unistdio/u16-snprintf.c: Likewise.
40184         * lib/unistdio/u16-sprintf.c: Likewise.
40185         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40186         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40187         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40188         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40189         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40190         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40191         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40192         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40193         * lib/unistdio/u16-vasnprintf.c: Likewise.
40194         * lib/unistdio/u16-vasprintf.c: Likewise.
40195         * lib/unistdio/u16-vsnprintf.c: Likewise.
40196         * lib/unistdio/u16-vsprintf.c: Likewise.
40197         * lib/unistdio/u32-asnprintf.c: Likewise.
40198         * lib/unistdio/u32-asprintf.c: Likewise.
40199         * lib/unistdio/u32-printf-parse.c: Likewise.
40200         * lib/unistdio/u32-snprintf.c: Likewise.
40201         * lib/unistdio/u32-sprintf.c: Likewise.
40202         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40203         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40204         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40205         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40206         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40207         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40208         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40209         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40210         * lib/unistdio/u32-vasnprintf.c: Likewise.
40211         * lib/unistdio/u32-vasprintf.c: Likewise.
40212         * lib/unistdio/u32-vsnprintf.c: Likewise.
40213         * lib/unistdio/u32-vsprintf.c: Likewise.
40214         * lib/unistdio/u8-asnprintf.c: Likewise.
40215         * lib/unistdio/u8-asprintf.c: Likewise.
40216         * lib/unistdio/u8-printf-parse.c: Likewise.
40217         * lib/unistdio/u8-snprintf.c: Likewise.
40218         * lib/unistdio/u8-sprintf.c: Likewise.
40219         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40220         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40221         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40222         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40223         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40224         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40225         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40226         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40227         * lib/unistdio/u8-vasnprintf.c: Likewise.
40228         * lib/unistdio/u8-vasprintf.c: Likewise.
40229         * lib/unistdio/u8-vsnprintf.c: Likewise.
40230         * lib/unistdio/u8-vsprintf.c: Likewise.
40231         * lib/unistdio/ulc-asnprintf.c: Likewise.
40232         * lib/unistdio/ulc-asprintf.c: Likewise.
40233         * lib/unistdio/ulc-printf-parse.c: Likewise.
40234         * lib/unistdio/ulc-snprintf.c: Likewise.
40235         * lib/unistdio/ulc-sprintf.c: Likewise.
40236         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40237         * lib/unistdio/ulc-vasprintf.c: Likewise.
40238         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40239         * lib/unistdio/ulc-vsprintf.c: Likewise.
40240         * lib/unistr.h: Likewise.
40241         * lib/unistr/u-cpy-alloc.h: Likewise.
40242         * lib/unistr/u-cpy.h: Likewise.
40243         * lib/unistr/u-endswith.h: Likewise.
40244         * lib/unistr/u-move.h: Likewise.
40245         * lib/unistr/u-set.h: Likewise.
40246         * lib/unistr/u-startswith.h: Likewise.
40247         * lib/unistr/u-stpcpy.h: Likewise.
40248         * lib/unistr/u-stpncpy.h: Likewise.
40249         * lib/unistr/u-strcat.h: Likewise.
40250         * lib/unistr/u-strcpy.h: Likewise.
40251         * lib/unistr/u-strcspn.h: Likewise.
40252         * lib/unistr/u-strdup.h: Likewise.
40253         * lib/unistr/u-strlen.h: Likewise.
40254         * lib/unistr/u-strncat.h: Likewise.
40255         * lib/unistr/u-strncpy.h: Likewise.
40256         * lib/unistr/u-strnlen.h: Likewise.
40257         * lib/unistr/u-strpbrk.h: Likewise.
40258         * lib/unistr/u-strspn.h: Likewise.
40259         * lib/unistr/u-strstr.h: Likewise.
40260         * lib/unistr/u-strtok.h: Likewise.
40261         * lib/unistr/u16-check.c: Likewise.
40262         * lib/unistr/u16-chr.c: Likewise.
40263         * lib/unistr/u16-cmp.c: Likewise.
40264         * lib/unistr/u16-cpy-alloc.c: Likewise.
40265         * lib/unistr/u16-cpy.c: Likewise.
40266         * lib/unistr/u16-endswith.c: Likewise.
40267         * lib/unistr/u16-mblen.c: Likewise.
40268         * lib/unistr/u16-mbsnlen.c: Likewise.
40269         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40270         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40271         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40272         * lib/unistr/u16-mbtouc.c: Likewise.
40273         * lib/unistr/u16-mbtoucr.c: Likewise.
40274         * lib/unistr/u16-move.c: Likewise.
40275         * lib/unistr/u16-next.c: Likewise.
40276         * lib/unistr/u16-prev.c: Likewise.
40277         * lib/unistr/u16-set.c: Likewise.
40278         * lib/unistr/u16-startswith.c: Likewise.
40279         * lib/unistr/u16-stpcpy.c: Likewise.
40280         * lib/unistr/u16-stpncpy.c: Likewise.
40281         * lib/unistr/u16-strcat.c: Likewise.
40282         * lib/unistr/u16-strchr.c: Likewise.
40283         * lib/unistr/u16-strcmp.c: Likewise.
40284         * lib/unistr/u16-strcpy.c: Likewise.
40285         * lib/unistr/u16-strcspn.c: Likewise.
40286         * lib/unistr/u16-strdup.c: Likewise.
40287         * lib/unistr/u16-strlen.c: Likewise.
40288         * lib/unistr/u16-strmblen.c: Likewise.
40289         * lib/unistr/u16-strmbtouc.c: Likewise.
40290         * lib/unistr/u16-strncat.c: Likewise.
40291         * lib/unistr/u16-strncmp.c: Likewise.
40292         * lib/unistr/u16-strncpy.c: Likewise.
40293         * lib/unistr/u16-strnlen.c: Likewise.
40294         * lib/unistr/u16-strpbrk.c: Likewise.
40295         * lib/unistr/u16-strrchr.c: Likewise.
40296         * lib/unistr/u16-strspn.c: Likewise.
40297         * lib/unistr/u16-strstr.c: Likewise.
40298         * lib/unistr/u16-strtok.c: Likewise.
40299         * lib/unistr/u16-to-u32.c: Likewise.
40300         * lib/unistr/u16-to-u8.c: Likewise.
40301         * lib/unistr/u16-uctomb-aux.c: Likewise.
40302         * lib/unistr/u16-uctomb.c: Likewise.
40303         * lib/unistr/u32-check.c: Likewise.
40304         * lib/unistr/u32-chr.c: Likewise.
40305         * lib/unistr/u32-cmp.c: Likewise.
40306         * lib/unistr/u32-cpy-alloc.c: Likewise.
40307         * lib/unistr/u32-cpy.c: Likewise.
40308         * lib/unistr/u32-endswith.c: Likewise.
40309         * lib/unistr/u32-mblen.c: Likewise.
40310         * lib/unistr/u32-mbsnlen.c: Likewise.
40311         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40312         * lib/unistr/u32-mbtouc.c: Likewise.
40313         * lib/unistr/u32-mbtoucr.c: Likewise.
40314         * lib/unistr/u32-move.c: Likewise.
40315         * lib/unistr/u32-next.c: Likewise.
40316         * lib/unistr/u32-prev.c: Likewise.
40317         * lib/unistr/u32-set.c: Likewise.
40318         * lib/unistr/u32-startswith.c: Likewise.
40319         * lib/unistr/u32-stpcpy.c: Likewise.
40320         * lib/unistr/u32-stpncpy.c: Likewise.
40321         * lib/unistr/u32-strcat.c: Likewise.
40322         * lib/unistr/u32-strchr.c: Likewise.
40323         * lib/unistr/u32-strcmp.c: Likewise.
40324         * lib/unistr/u32-strcpy.c: Likewise.
40325         * lib/unistr/u32-strcspn.c: Likewise.
40326         * lib/unistr/u32-strdup.c: Likewise.
40327         * lib/unistr/u32-strlen.c: Likewise.
40328         * lib/unistr/u32-strmblen.c: Likewise.
40329         * lib/unistr/u32-strmbtouc.c: Likewise.
40330         * lib/unistr/u32-strncat.c: Likewise.
40331         * lib/unistr/u32-strncmp.c: Likewise.
40332         * lib/unistr/u32-strncpy.c: Likewise.
40333         * lib/unistr/u32-strnlen.c: Likewise.
40334         * lib/unistr/u32-strpbrk.c: Likewise.
40335         * lib/unistr/u32-strrchr.c: Likewise.
40336         * lib/unistr/u32-strspn.c: Likewise.
40337         * lib/unistr/u32-strstr.c: Likewise.
40338         * lib/unistr/u32-strtok.c: Likewise.
40339         * lib/unistr/u32-to-u16.c: Likewise.
40340         * lib/unistr/u32-to-u8.c: Likewise.
40341         * lib/unistr/u32-uctomb.c: Likewise.
40342         * lib/unistr/u8-check.c: Likewise.
40343         * lib/unistr/u8-chr.c: Likewise.
40344         * lib/unistr/u8-cmp.c: Likewise.
40345         * lib/unistr/u8-cpy-alloc.c: Likewise.
40346         * lib/unistr/u8-cpy.c: Likewise.
40347         * lib/unistr/u8-endswith.c: Likewise.
40348         * lib/unistr/u8-mblen.c: Likewise.
40349         * lib/unistr/u8-mbsnlen.c: Likewise.
40350         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40351         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40352         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40353         * lib/unistr/u8-mbtouc.c: Likewise.
40354         * lib/unistr/u8-mbtoucr.c: Likewise.
40355         * lib/unistr/u8-move.c: Likewise.
40356         * lib/unistr/u8-next.c: Likewise.
40357         * lib/unistr/u8-prev.c: Likewise.
40358         * lib/unistr/u8-set.c: Likewise.
40359         * lib/unistr/u8-startswith.c: Likewise.
40360         * lib/unistr/u8-stpcpy.c: Likewise.
40361         * lib/unistr/u8-stpncpy.c: Likewise.
40362         * lib/unistr/u8-strcat.c: Likewise.
40363         * lib/unistr/u8-strchr.c: Likewise.
40364         * lib/unistr/u8-strcmp.c: Likewise.
40365         * lib/unistr/u8-strcpy.c: Likewise.
40366         * lib/unistr/u8-strcspn.c: Likewise.
40367         * lib/unistr/u8-strdup.c: Likewise.
40368         * lib/unistr/u8-strlen.c: Likewise.
40369         * lib/unistr/u8-strmblen.c: Likewise.
40370         * lib/unistr/u8-strmbtouc.c: Likewise.
40371         * lib/unistr/u8-strncat.c: Likewise.
40372         * lib/unistr/u8-strncmp.c: Likewise.
40373         * lib/unistr/u8-strncpy.c: Likewise.
40374         * lib/unistr/u8-strnlen.c: Likewise.
40375         * lib/unistr/u8-strpbrk.c: Likewise.
40376         * lib/unistr/u8-strrchr.c: Likewise.
40377         * lib/unistr/u8-strspn.c: Likewise.
40378         * lib/unistr/u8-strstr.c: Likewise.
40379         * lib/unistr/u8-strtok.c: Likewise.
40380         * lib/unistr/u8-to-u16.c: Likewise.
40381         * lib/unistr/u8-to-u32.c: Likewise.
40382         * lib/unistr/u8-uctomb-aux.c: Likewise.
40383         * lib/unistr/u8-uctomb.c: Likewise.
40384         * lib/unitypes.h: Likewise.
40385         * lib/uniwidth.h: Likewise.
40386         * lib/uniwidth/cjk.h: Likewise.
40387         * lib/uniwidth/u16-strwidth.c: Likewise.
40388         * lib/uniwidth/u16-width.c: Likewise.
40389         * lib/uniwidth/u32-strwidth.c: Likewise.
40390         * lib/uniwidth/u32-width.c: Likewise.
40391         * lib/uniwidth/u8-strwidth.c: Likewise.
40392         * lib/uniwidth/u8-width.c: Likewise.
40393         * lib/uniwidth/width.c: Likewise.
40394
40395 2007-10-07  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40398         The file is still under LGPL (see modules/inttypes).
40399
40400 2007-10-06  Bruno Haible  <bruno@clisp.org>
40401
40402         * modules/trunc (Dependencies): Add 'extensions'.
40403         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40404         Reported by Ben Pfaff <blp@gnu.org>.
40405
40406 2007-10-06  Bruno Haible  <bruno@clisp.org>
40407
40408         * modules/freopen-tests: New file.
40409         * tests/test-freopen.c: New file.
40410
40411         * modules/fopen-tests: New file.
40412         * tests/test-fopen.c: New file.
40413
40414         * modules/fopen: New file.
40415         * lib/fopen.c: New file.
40416         * m4/fopen.m4: New file.
40417         * modules/freopen: New file.
40418         * lib/freopen.c: New file.
40419         * m4/freopen.m4: New file.
40420         * lib/stdio.in.h (fopen, freopen): New declarations.
40421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40422         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40423         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40424         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40425         * doc/functions/fopen.texi: Mention the 'fopen' module.
40426         * doc/functions/freopen.texi: Mention the 'freopen' module.
40427
40428 2007-10-06  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/open-tests: New file.
40431         * tests/test-open.c: New file.
40432
40433         * modules/open: New file.
40434         * lib/open.c: New file.
40435         * m4/open.m4: New file.
40436         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40437         lib/open.c does.
40438         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40439         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40440         macros.
40441         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40442         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40443         REPLACE_OPEN.
40444         * doc/functions/open.texi: Mention the 'open' module.
40445
40446 2007-10-04  Bruno Haible  <bruno@clisp.org>
40447
40448         * modules/ceill-tests: New file.
40449         * tests/test-ceill.c: New file.
40450
40451         * modules/ceill: New file.
40452         * lib/ceill.c: Replace entire file.
40453         * m4/ceill.m4: New file.
40454         * lib/math.in.h (ceill): Replace declaration.
40455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40456         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40457         * doc/functions/ceill.texi: Mention the 'ceill' module.
40458         * modules/mathl (Files): Remove lib/ceill.c.
40459         (Depends-on): Add ceill.
40460
40461 2007-10-04  Bruno Haible  <bruno@clisp.org>
40462
40463         * modules/ceilf-tests: New file.
40464         * tests/test-ceilf.c: New file.
40465
40466         * modules/ceilf: New file.
40467         * lib/ceil.c: New file.
40468         * lib/ceilf.c: New file.
40469         * m4/ceilf.m4: New file.
40470         * lib/math.in.h (ceilf): New declaration.
40471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
40472         HAVE_DECL_CEILF.
40473         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
40474         HAVE_DECL_CEILF.
40475         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
40476
40477 2007-10-04  Bruno Haible  <bruno@clisp.org>
40478
40479         * modules/floorl-tests: New file.
40480         * tests/test-floorl.c: New file.
40481
40482         * modules/floorl: New file.
40483         * lib/floorl.c: Replace entire file.
40484         * m4/floorl.m4: New file.
40485         * lib/math.in.h (floorl): Replace declaration.
40486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
40487         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
40488         * doc/functions/floorl.texi: Mention the 'floorl' module.
40489         * modules/mathl (Files): Remove lib/floorl.c.
40490         (Depends-on): Add floorl.
40491
40492 2007-10-04  Bruno Haible  <bruno@clisp.org>
40493
40494         * modules/floorf-tests: New file.
40495         * tests/test-floorf.c: New file.
40496
40497         * modules/floorf: New file.
40498         * lib/floor.c: New file.
40499         * lib/floorf.c: New file.
40500         * m4/floorf.m4: New file.
40501         * lib/math.in.h (floorf): New declaration.
40502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
40503         HAVE_DECL_FLOORF.
40504         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
40505         HAVE_DECL_FLOORF.
40506         * doc/functions/floorf.texi: Mention the 'floorf' module.
40507
40508 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
40509             Bruno Haible  <bruno@clisp.org>
40510
40511         Advertise for the Git server instead of the CVS server.
40512         * doc/gnulib-intro.texi (Steady Development): Mention the Git
40513         repository instead of the CVS one.
40514         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
40515         about all VCS systems generically.
40516         * doc/gnulib.texi (Introduction): Capitalize `Git'.
40517
40518 2007-10-04  Bruno Haible  <bruno@clisp.org>
40519
40520         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
40521         means.
40522         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
40523
40524 2007-10-04  Bruno Haible  <bruno@clisp.org>
40525
40526         * modules/truncl-tests: New file.
40527         * tests/test-truncl.c: New file.
40528
40529         * modules/truncl: New file.
40530         * lib/truncl.c: New file.
40531         * m4/truncl.m4: New file.
40532         * lib/math.in.h (truncl): New declaration.
40533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
40534         HAVE_DECL_TRUNCL.
40535         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
40536         HAVE_DECL_TRUNCL.
40537         * doc/functions/truncl.texi: Mention the 'truncl' module.
40538
40539 2007-10-04  Bruno Haible  <bruno@clisp.org>
40540
40541         * modules/truncf-tests: New file.
40542         * tests/test-truncf.c: New file.
40543
40544         * modules/truncf: New file.
40545         * lib/trunc.c: Make paramerizable through USE_* macros.
40546         * lib/truncf.c: New file.
40547         * m4/truncf.m4: New file.
40548         * lib/math.in.h (truncf): New declaration.
40549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
40550         HAVE_DECL_TRUNCF.
40551         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
40552         HAVE_DECL_TRUNCF.
40553         * doc/functions/truncf.texi: Mention the 'truncf' module.
40554
40555 2007-10-03  Bruno Haible  <bruno@clisp.org>
40556
40557         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40558         augmentation also for tests modules.
40559         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
40560         * modules/atexit-tests (Makefile.am): Likewise.
40561         * modules/binary-io-tests (Makefile.am): Likewise.
40562         * modules/c-strcase-tests (Makefile.am): Likewise.
40563         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
40564         * modules/canonicalize-tests (Makefile.am): Likewise.
40565         * modules/closein-tests (Makefile.am): Likewise.
40566         * modules/fprintf-posix-tests (Makefile.am): Likewise.
40567         * modules/freadahead-tests (Makefile.am): Likewise.
40568         * modules/fseek-tests (Makefile.am): Likewise.
40569         * modules/fseeko-tests (Makefile.am): Likewise.
40570         * modules/ftell-tests (Makefile.am): Likewise.
40571         * modules/ftello-tests (Makefile.am): Likewise.
40572         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
40573         * modules/isnanl-tests (Makefile.am): Likewise.
40574         * modules/lseek-tests (Makefile.am): Likewise.
40575         * modules/mbscasecmp-tests (Makefile.am): Likewise.
40576         * modules/mbscasestr-tests (Makefile.am): Likewise.
40577         * modules/mbschr-tests (Makefile.am): Likewise.
40578         * modules/mbscspn-tests (Makefile.am): Likewise.
40579         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
40580         * modules/mbspbrk-tests (Makefile.am): Likewise.
40581         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
40582         * modules/mbsrchr-tests (Makefile.am): Likewise.
40583         * modules/mbsspn-tests (Makefile.am): Likewise.
40584         * modules/mbsstr-tests (Makefile.am): Likewise.
40585         * modules/printf-posix-tests (Makefile.am): Likewise.
40586         * modules/snprintf-posix-tests (Makefile.am): Likewise.
40587         * modules/sprintf-posix-tests (Makefile.am): Likewise.
40588         * modules/tsearch-tests (Makefile.am): Likewise.
40589         * modules/uniname/uniname-tests (Makefile.am): Likewise.
40590         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
40591         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
40592         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
40593         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
40594         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
40595         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
40596         * modules/vprintf-posix-tests (Makefile.am): Likewise.
40597         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
40598         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
40599         * modules/xstrtoimax-tests (Makefile.am): Likewise.
40600         * modules/xstrtol-tests (Makefile.am): Likewise.
40601         * modules/xstrtoumax-tests (Makefile.am): Likewise.
40602         * modules/yesno-tests (Makefile.am): Likewise.
40603
40604 2007-10-03  Bruno Haible  <bruno@clisp.org>
40605
40606         * modules/trunc-tests: New file.
40607         * tests/test-trunc.c: New file.
40608
40609         * modules/trunc: New file.
40610         * lib/trunc.c: New file.
40611         * m4/trunc.m4: New file.
40612         * lib/math.in.h (trunc): New declaration.
40613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
40614         HAVE_DECL_TRUNC.
40615         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
40616         HAVE_DECL_TRUNC.
40617         * doc/functions/trunc.texi: Mention the 'trunc' module.
40618
40619 2007-10-03  Bruno Haible  <bruno@clisp.org>
40620
40621         * tests/test-fpending.c: New file, mostly copied
40622         from coreutils/lib/t-fpending.c.
40623         * modules/fpending-tests: New file.
40624
40625 2007-10-03  Bruno Haible  <bruno@clisp.org>
40626
40627         Port the stdio extensions to QNX (untested).
40628         * lib/fseterr.c (fseterr): Add support for QNX.
40629         * lib/fbufmode.c (fbufmode): Likewise.
40630         * lib/freadable.c (freadable): Likewise.
40631         * lib/fwritable.c (fwritable): Likewise.
40632         * lib/freading.c (freading): Likewise.
40633         * lib/fwriting.c (fwriting): Likewise.
40634         * lib/freadahead.c (freadahed): Likewise.
40635         * lib/fpurge.c (fpurge): Likewise.
40636         * lib/fseeko.c (rpl_fseeko): Likewise.
40637
40638 2007-10-03  Bruno Haible  <bruno@clisp.org>
40639             Jim Meyering  <jim@meyering.net>
40640             Eric Blake  <ebb9@byu.net>
40641
40642         * doc/relocatable.texi: Use @command instead of @program.
40643
40644 2007-10-02  Jim Meyering  <jim@meyering.net>
40645
40646         Perform one more "_.h" -> ".in.h" substitution.
40647         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
40648         instead of unistd_.h here, too.
40649
40650 2007-10-01  Bruno Haible  <bruno@clisp.org>
40651
40652         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
40653         Needed for the alloca-opt module.
40654
40655 2007-09-30  Bruno Haible  <bruno@clisp.org>
40656
40657         * lib/alloca.in.h: Renamed from lib/alloca_.h.
40658         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
40659         alloca_.h.
40660         * lib/argz.in.h: Renamed from lib/argz_.h.
40661         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
40662         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
40663         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
40664         byteswap_.h.
40665         * lib/dirent.in.h: Renamed from lib/dirent_.h.
40666         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
40667         dirent_.h.
40668         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
40669         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
40670         fcntl_.h.
40671         * lib/float.in.h: Renamed from lib/float_.h.
40672         * modules/float (Files, Makefile.am): Use float.in.h instead of
40673         float_.h.
40674         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
40675         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
40676         fnmatch_.h.
40677         * lib/getopt.in.h: Renamed from lib/getopt_.h.
40678         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
40679         getopt_.h.
40680         * lib/glob.in.h: Renamed from lib/glob_.h.
40681         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
40682         * lib/iconv.in.h: Renamed from lib/iconv_.h.
40683         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
40684         iconv_.h.
40685         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
40686         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
40687         inttypes_.h.
40688         * lib/locale.in.h: Renamed from lib/locale_.h.
40689         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
40690         locale_.h.
40691         * lib/math.in.h: Renamed from lib/math_.h.
40692         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
40693         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
40694         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
40695         of netinet_in_.h. Add dependency.
40696         * lib/poll.in.h: Renamed from lib/poll_.h.
40697         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
40698         * lib/search.in.h: Renamed from lib/search_.h.
40699         * modules/search (Files, Makefile.am): Use search.in.h instead of
40700         search_.h.
40701         * lib/signal.in.h: Renamed from lib/signal_.h.
40702         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
40703         _signal.h.
40704         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
40705         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
40706         stdbool_.h.
40707         * lib/stdint.in.h: Renamed from lib/stdint_.h.
40708         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
40709         stdint_.h.
40710         * lib/stdio.in.h: Renamed from lib/stdio_.h.
40711         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
40712         stdio_.h.
40713         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
40714         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
40715         stdlib_.h.
40716         * lib/string.in.h: Renamed from lib/string_.h.
40717         * modules/string (Files, Makefile.am): Use string.in.h instead of
40718         string_.h.
40719         * doc/gnulib-tool.texi (Initial import): Update.
40720         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
40721         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
40722         of sys_select_.h. Add dependency.
40723         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
40724         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
40725         of sys_socket_.h.
40726         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
40727         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
40728         sys_stat_.h.
40729         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
40730         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
40731         sys_time_.h.
40732         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
40733         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
40734         sysexits_.h.
40735         * lib/time.in.h: Renamed from lib/time_.h.
40736         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
40737         * lib/unistd.in.h: Renamed from lib/unistd_.h.
40738         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
40739         unistd_.h.
40740         * lib/wchar.in.h: Renamed from lib/wchar_.h.
40741         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
40742         wchar_.h.
40743         * lib/wctype.in.h: Renamed from lib/wctype_.h.
40744         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
40745         wctype_.h.
40746         * build-aux/bootstrap (slurp): Update.
40747         * lib/.cppi-disable: Update.
40748
40749 2007-09-30  Bruno Haible  <bruno@clisp.org>
40750
40751         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
40752         Needed on BeOS.
40753
40754 2007-09-30  Bruno Haible  <bruno@clisp.org>
40755
40756         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
40757
40758 2007-09-29  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
40761
40762 2007-09-29  Bruno Haible  <bruno@clisp.org>
40763
40764         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
40765         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
40766         * build-aux/install-reloc: Compile also areadlink.c.
40767         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
40768
40769 2007-09-29  Bruno Haible  <bruno@clisp.org>
40770
40771         * gnulib-tool (func_emit_initmacro_done): Indentation.
40772
40773 2007-09-29  Bruno Haible  <bruno@clisp.org>
40774
40775         * README: Add CVS checkout update instructions.
40776         Info from Bob Proulx <bob@proulx.com>.
40777
40778 2007-09-28  Eric Blake  <ebb9@byu.net>
40779
40780         Provide move-if-change.
40781         * build-aux/move-if-change: New file, based on best practice
40782         rather than any canonical upstream location.
40783
40784 2007-09-28  Jim Meyering  <jim@meyering.net>
40785
40786         Fix canonicalize loop-detection corner case.
40787         Do not attempt to stat the symlink values stored via seen_triple.
40788         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
40789         on linux-2.6.18, (but not 2.6.22).
40790         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
40791         triple_compare.  The former compares dev,ino,filename, while the latter
40792         would actually stat dirname(filename) when dev and ino were equal.
40793         * lib/hash-triple.c: Install <string.h>.
40794         (STREQ): Define.
40795         (triple_compare_ino_str): New function.
40796         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
40797
40798 2007-09-28  Eric Blake  <ebb9@byu.net>
40799
40800         Enforce that AC_REPLACE_FUNCS files exist.
40801         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
40802         override check for typos.
40803
40804         Fix test-closein on Solaris 10.
40805         * tests/test-closein.c (main): Don't assume stdin can be inherited
40806         closed on all systems.
40807         * tests/test-closein.sh: Likewise.
40808         Reported by Piotr Tarnowski.
40809
40810 2007-09-28  Jim Meyering  <jim@meyering.net>
40811
40812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
40813
40814 2007-09-27  Jim Meyering  <jim@meyering.net>
40815
40816         canonicalize: Avoid a false-positive cycle failure.
40817         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
40818         Sort.  Remove cycle-check.
40819         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
40820         not cycle-check.h.
40821         (seen_triple): New function.
40822         (canonicalize_filename_mode): Use it instead of cycle-check.
40823         * tests/test-canonicalize.c: Add a test for this bug.
40824         * tests/test-canonicalize.sh: Set up and run the test.
40825
40826         New module, file-set, from coreutils.
40827         * modules/file-set: Define it.
40828         * lib/file-set.c, lib/file-set.h: Implement.
40829
40830         New module, hash-triple, from coreutils.
40831         * modules/hash-triple: Define it.
40832         * lib/hash-triple.c, lib/hash-triple.h: Implement.
40833
40834 2007-09-25  Eric Blake  <ebb9@byu.net>
40835
40836         Fix strerror on Interix.
40837         * lib/string_.h (strerror): Declare replacement.
40838         * doc/functions/strerror.texi (strerror): Document the Interix
40839         shortcoming.
40840         * modules/string (Makefile.am): Support new hooks.
40841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
40842         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
40843         gl_FUNC_STRERROR_SEPARATE.
40844         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
40845         * lib/strerror.c (rpl_strerror): Provide replacement.
40846         * modules/strerror (Depends-on): Add string.
40847         (configure.ac): Detect use of module.
40848         * tests/test-strerror.c: New file.
40849         * modules/strerror-tests: New test module.
40850         * modules/argp (Depends-on): Add strerror.
40851         * modules/error (Depends-on): Likewise.
40852         Reported by Martin Koeppe.
40853
40854 2007-09-24  Bruno Haible  <bruno@clisp.org>
40855
40856         * README: Update git instructions.
40857
40858 2007-09-24  Eric Blake  <ebb9@byu.net>
40859
40860         Revert fpending breakage from 2007-09-08.
40861         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
40862         __fpending.c.
40863
40864 2007-09-24  Jim Meyering  <jim@meyering.net>
40865
40866         filenamecat.c: Add a test.
40867         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
40868         showing how the function works when DIR is the empty string.
40869
40870 2007-09-21  Simon Josefsson  <simon@josefsson.org>
40871
40872         * tests/test-canonicalize.sh: Turn on executable bit.
40873
40874 2007-09-19  Eric Blake  <ebb9@byu.net>
40875
40876         * README: Update CVS instructions.
40877
40878 2007-09-18  Bruno Haible  <bruno@clisp.org>
40879
40880         * modules/areadlink: New file.
40881         * lib/areadlink.h (areadlink): New declaration.
40882         * lib/areadlink.c: New file, based on lib/xreadlink.c.
40883
40884 2007-09-17  Jim Meyering  <jim@meyering.net>
40885
40886         * lib/savewd.c (ESTALE) [!defined]: Define.
40887         Reported to be required on Interix by Martin Koeppe.
40888
40889 2007-09-17  Bruno Haible  <bruno@clisp.org>
40890
40891         * gnulib-tool (func_version): Use $version.
40892
40893 2007-09-16  Bruno Haible  <bruno@clisp.org>
40894
40895         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
40896         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
40897         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
40898         Reported by Greg Schafer <gschafer@zip.com.au>.
40899
40900 2007-09-15  Bruno Haible  <bruno@clisp.org>
40901
40902         * gnulib-tool (sed): Try a little harder to make bash understand the
40903         alias.
40904         Reported by Bruce Korb <bruce.korb@gmail.com>.
40905
40906 2007-09-13  Eric Blake  <ebb9@byu.net>
40907
40908         * ChangeLog: Remove conflict markers.
40909
40910 2007-09-13  Simon Josefsson  <simon@josefsson.org>
40911
40912         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
40913         Reported by Bruno Haible <bruno@clisp.org>.
40914
40915 2007-09-12  Bruno Haible  <bruno@clisp.org>
40916
40917         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
40918         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
40919         is not defined.
40920
40921 2007-09-12  Eric Blake  <ebb9@byu.net>
40922
40923         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
40924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
40925         Autoconf definition.
40926         * modules/euidaccess (Depends-on): Add extensions, for
40927         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
40928         * modules/fnmatch (Depends-on): Likewise.
40929         * modules/getaddrinfo (Depends-on): Likewise.
40930         * modules/getdelim (Depends-on): Likewise.
40931         * modules/getline (Depends-on): Likewise.
40932         * modules/getsubopt (Depends-on): Likewise.
40933         * modules/gettext (Depends-on): Likewise.
40934         * modules/group-member (Depends-on): Likewise.
40935         * modules/mbchar (Depends-on): Likewise.
40936         * modules/memmem (Depends-on): Likewise.
40937         * modules/mempcpy (Depends-on): Likewise.
40938         * modules/memrchr (Depends-on): Likewise.
40939         * modules/pagealign_alloc (Depends-on): Likewise.
40940         * modules/readutmp (Depends-on): Likewise.
40941         * modules/stpcpy (Depends-on): Likewise.
40942         * modules/stpncpy (Depends-on): Likewise.
40943         * modules/strchrnul (Depends-on): Likewise.
40944         * modules/strndup (Depends-on): Likewise.
40945         * modules/strsep (Depends-on): Likewise.
40946         * modules/strverscmp (Depends-on): Likewise.
40947         * modules/vasprintf (Depends-on): Likewise.
40948         * modules/wcwidth (Depends-on): Likewise.
40949         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
40950         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
40951         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
40952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
40953         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40954         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40955         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
40956         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40957         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
40958         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40960         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
40964         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40965         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40966         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40968         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40971         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40972         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
40973         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
40974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40975         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
40976         so that lock.m4 can be used in gettext without extensions module.
40977
40978 2007-09-11  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/isc-posix.m4: Remove file.
40981         Suggested by Eric Blake.
40982
40983 2007-09-11  Eric Blake  <ebb9@byu.net>
40984
40985         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
40986
40987 2007-09-10  Bruno Haible  <bruno@clisp.org>
40988
40989         * posix-modules: Fix typo in error message.
40990         Reported by Matt <mkraai@beckman.com>.
40991
40992 2007-09-09  Bruno Haible  <bruno@clisp.org>
40993
40994         * doc/functions/getdelim.texi: Update list of platforms lacking the
40995         function.
40996         * doc/functions/getline.texi: Likewise.
40997
40998 2007-09-09  Jim Meyering  <jim@meyering.net>
40999
41000         * lib/hash.c (hash_initialize): Detect calloc failure.
41001         Reported by Bruno Haible.
41002
41003 2007-09-09  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41006         malloc or realloc fails.
41007
41008 2007-09-09  Bruno Haible  <bruno@clisp.org>
41009
41010         * modules/getcwd (Depends-on): Add malloc-posix.
41011         * modules/glob (Depends-on): Likewise.
41012         * modules/putenv (Depends-on): Likewise.
41013         * modules/strdup (Depends-on): Likewise.
41014         * modules/getdelim (Depends-on): Add realloc-posix.
41015         * modules/read-file (Depends-on): Likewise.
41016
41017 2007-09-09  Bruno Haible  <bruno@clisp.org>
41018
41019         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41020         (gl_FUNC_MALLOC_POSIX): Require it.
41021         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41022         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41023         * modules/realloc (Files): Add m4/malloc.m4.
41024         * modules/calloc (Files): Likewise.
41025
41026 2007-09-09  Bruno Haible  <bruno@clisp.org>
41027
41028         * modules/malloc-posix: New file.
41029         * modules/malloc (Depends-on): Add malloc-posix.
41030         * lib/malloc.c: Include errno.h.
41031         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41032         and a POSIX-compatible malloc into a single function. Set ENOMEM
41033         when returning NULL.
41034         * m4/malloc.m4: New file.
41035         * doc/functions/malloc.texi: Mention the malloc-posix module.
41036         * lib/stdlib_.h (malloc): New declaration.
41037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41038         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41039         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41040         and HAVE_MALLOC_POSIX.
41041
41042 2007-09-09  Bruno Haible  <bruno@clisp.org>
41043
41044         * modules/realloc-posix: New file.
41045         * modules/realloc (Depends-on): Add realloc-posix.
41046         * lib/realloc.c: Include errno.h.
41047         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41048         and a POSIX-compatible realloc into a single function. Set ENOMEM
41049         when returning NULL.
41050         * m4/realloc.m4: New file.
41051         * doc/functions/realloc.texi: Mention the realloc-posix module.
41052         * lib/stdlib_.h (realloc): New declaration.
41053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41054         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41055         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41056         and HAVE_REALLOC_POSIX.
41057
41058 2007-09-09  Bruno Haible  <bruno@clisp.org>
41059
41060         * modules/calloc-posix: New file.
41061         * modules/calloc (Depends-on): Add calloc-posix.
41062         * lib/calloc.c: Include errno.h.
41063         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41064         and a POSIX-compatible calloc into a single function. Set ENOMEM
41065         when returning NULL.
41066         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41067         * doc/functions/calloc.texi: Mention the calloc-posix module.
41068         * lib/stdlib_.h (calloc): New declaration.
41069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41070         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41071         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41072         and HAVE_CALLOC_POSIX.
41073
41074 2007-09-09  Bruno Haible  <bruno@clisp.org>
41075
41076         Allow for modules to show an arbitrary notice.
41077         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41078         * gnulib-tool: New option --extract-notice.
41079         (func_usage): Document it.
41080         (sed_extract_prog): Update.
41081         (func_get_notice): New function.
41082         (func_modules_notice): New function.
41083         (func_import, func_create_testdir): Invoke it.
41084         Suggested by Jim Meyering.
41085
41086 2007-09-09  Bruno Haible  <bruno@clisp.org>
41087
41088         * gnulib-tool: New options --verbose, --quiet.
41089         (func_usage): Document them.
41090         (verbose): New variable.
41091         (func_execute_command): New function.
41092         (func_import): Don't show the module list and the file list if
41093         $verbose < 0.
41094         (func_create_testdir): Likewise. Use func_execute_command.
41095         (func_create_megatestdir): Use func_execute_command.
41096
41097 2007-09-08  Bruno Haible  <bruno@clisp.org>
41098
41099         * gnulib-tool (func_import): Prefer rsync over wget when available,
41100         for fetching the PO files.
41101
41102 2007-09-08  Bruno Haible  <bruno@clisp.org>
41103
41104         * posix-modules: New file. Portions copied from gnulib-tool.
41105         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41106
41107 2007-09-08  Jim Meyering  <jim@meyering.net>
41108
41109         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41110         * lib/fpending.h: Rename from __fpending.h.
41111         * lib/fpending.c: Rename from __fpending.c.
41112         Include "fpending.h", not "__fpending.h".
41113         * lib/__fpending.h, lib/__fpending.c: Remove files.
41114         * modules/fpending (Files): Reflect new file names.
41115         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41116
41117 2007-09-08  Bruno Haible  <bruno@clisp.org>
41118
41119         * m4/inttypes-h.m4: Remove stub file.
41120
41121 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41122
41123         * doc/headers/stdint.texi: Discuss #include_next issue.
41124
41125 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41126
41127         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41128
41129 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41130
41131         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41132         in variable name.
41133
41134 2007-09-03  Jim Meyering  <jim@meyering.net>
41135
41136         New module: git-version-gen.
41137         * modules/git-version-gen: New file.
41138
41139         Import changes from coreutils for bootstrap script.
41140
41141         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41142
41143         bootstrap: uses rsync to download the .po files
41144         * build-aux/bootstrap (po_download_command_format): New global.
41145         (download_po_files): Use rsync.
41146         (update_po_files): Don't remove .po files after download,
41147         so future rsync runs can take advantage of the copies.
41148
41149         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41150
41151         Solve the unnecessary-.po-file-regeneration problem once and for all.
41152         * build-aux/bootstrap (download_po_files): New function, renamed from
41153         get_translations.  Now, downloads, but doesn't update LINGUAS.
41154         (update_po_files): New function.
41155
41156         bootstrap: Ignore more.
41157         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41158         uniwidth to e.g., lib/.gitignore.
41159         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41160
41161         * build-aux/bootstrap: New setting: vc_ignore.
41162         (insert_sorted_if_absent): Create $file if absent.
41163         Adapt to new, possibly empty, list: $vc_ignore.
41164
41165         bootstrap: generate more ignorable names
41166         * build-aux/bootstrap (slurp): When generating ignorable names,
41167         also map .sin to .sed, .gperf to .c, and .y to .c.
41168
41169 2007-09-03  Jim Meyering  <jim@meyering.net>
41170
41171         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41172         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41173
41174 2007-09-02  Bruno Haible  <bruno@clisp.org>
41175
41176         Fix mis-recognition of 'mcs' on QNX 6.
41177         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41178         output contains the string "Mono".
41179         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41180         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41181
41182 2007-09-01  Bruno Haible  <bruno@clisp.org>
41183
41184         Fix collision between uniwidth/* and linebreak modules.
41185         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41186         u32_width): Remove declarations.
41187         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41188         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41189         streq3, streq2, streq1, streq0): Remove functions.
41190         (STREQ): Remove macro.
41191         (is_cjk_encoding): Remove function.
41192         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41193         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41194         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41195         * NEWS: Document the change.
41196
41197 2007-09-01  Bruno Haible  <bruno@clisp.org>
41198
41199         * lib/streq.h: Add double-inclusion guard.
41200
41201 2007-09-01  Karl Berry  <karl@gnu.org>
41202
41203         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41204
41205 2007-08-28  Jim Meyering  <jim@meyering.net>
41206
41207         Rename mreadlink_with_size to areadlink_with_size.
41208         * NEWS: Document the change.
41209         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41210         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41211         * lib/mreadlink.h: Rename this to...
41212         * lib/areadlink.h: ...this.
41213         * modules/mreadlink-with-size: Rename this to...
41214         * modules/areadlink-with-size: ...this.
41215         * lib/canonicalize.c: Reflect the renaming.
41216         * modules/canonicalize: Likewise.
41217
41218 2007-08-26  Bruno Haible  <bruno@clisp.org>
41219
41220         * gnulib-tool (func_import): When deciding which files to remove,
41221         consider also dangling symbolic links.
41222         Reported by Eric Blake.
41223
41224 2007-08-26  Bruno Haible  <bruno@clisp.org>
41225
41226         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41227
41228 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41229
41230         * lib/readline.c: Don't include getline.h, the prototype is now
41231         found in stdio.h.
41232
41233 2007-08-23  Jim Meyering  <jim@meyering.net>
41234
41235         Getdelim touchup.
41236         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41237         around the funlockfile call, since funlockfile never sets errno.
41238         Don't set errno upon failed realloc.
41239
41240 2007-08-22  Eric Blake  <ebb9@byu.net>
41241
41242         Getline touchups.
41243         * lib/getdelim.c (getdelim): Revert regression that required *n to
41244         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41245         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41246         getdelim, rather than whether implementation is missing.
41247         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41248         * lib/stdio_.h (getline): Also declare if replacement is
41249         required.
41250         * doc/functions/getdelim.texi: New file.
41251         * doc/functions/getline.texi: Likewise.
41252         * doc/gnulib.texi (Function Substitutes): Add new files.
41253         Reported by Bruno Haible.
41254
41255 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41256
41257         * users.txt: Add Guile.
41258
41259 2007-08-22  Eric Blake  <ebb9@byu.net>
41260
41261         * tests/test-getdelim.c (main): Use remove, not unlink.
41262         * tests/test-getline.c (main): Likewise.
41263
41264         Move getline and getdelim into stdio.h, per POSIX 200x.
41265         * modules/getline (Files): Remove getline.h.
41266         (Depends-on): Add stdio.
41267         (configure.ac): Add module indicator.
41268         * modules/getdelim (Files): Remove getdelim.h.
41269         (Depends-on): Add stdio.
41270         (configure.ac): Add module indicator.
41271         * modules/stdio (Makefile.am): Work with new indicators.
41272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41275         * lib/getdelim.h: Delete.
41276         * lib/getline.h: Delete.
41277         * lib/stdio_.h (getdelim, getline): Declare.
41278         * modules/getdelim-tests: New module.
41279         * modules/getline-tests: Likewise.
41280         * tests/test-getdelim.c: New file.
41281         * tests/test-getline.c: Likewise.
41282         * NEWS: Document the change.
41283         * lib/getline.c: Update choice of header.
41284         * lib/csharpcomp.c: Likewise.
41285         * lib/getpass.c: Likewise.
41286         * lib/javacomp.c: Likewise.
41287         * lib/javaversion.c: Likewise.
41288         * lib/yesno.c: Likewise.
41289         * lib/getdelim.c: Likewise.
41290         (getdelim): Set errno on failure, and avoid memory leak.
41291
41292 2007-08-19  Bruno Haible  <bruno@clisp.org>
41293
41294         * modules/closein (Depends-on): Add freadahead.
41295         * lib/closein.c: Include freadahead.h.
41296         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41297         is zero.
41298
41299 2007-08-19  Bruno Haible  <bruno@clisp.org>
41300
41301         * modules/freadahead-tests: New file.
41302         * tests/test-freadahead.sh: New file.
41303         * tests/test-freadahead.c: New file.
41304
41305         * modules/freadahead: New file.
41306         * lib/freadahead.h: New file.
41307         * lib/freadahead.c: New file.
41308         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41309         fbufmode, fpurge, freadable, fwritable.
41310
41311 2007-08-19  Eric Blake  <ebb9@byu.net>
41312
41313         Test yesno in combination with closein.
41314         * lib/yesno.c (yesno): Document use of stdin.
41315         * modules/yesno-tests (Files): New module.
41316         * tests/test-yesno.c (main): New file.
41317         * tests/test-yesno.sh: Likewise.
41318
41319 2007-08-19  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41322         * lib/fseeko.c (rpl_fseeko): Likewise.
41323         * lib/fseterr.c (fseterr): Likewise.
41324
41325 2007-08-19  Bruno Haible  <bruno@clisp.org>
41326
41327         * tests/test-lseek.c (main): Disable a test for BeOS.
41328         * doc/functions/lseek.texi: Document the BeOS bug.
41329
41330 2007-08-19  Bruno Haible  <bruno@clisp.org>
41331             Eric Blake  <ebb9@byu.net>
41332
41333         * lib/lseek.c: Include <sys/stat.h>.
41334         (rpl_lseek): Add workaround code also for Unix platforms.
41335         Needed for BeOS.
41336         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41337         * doc/functions/lseek.texi: Document BeOS definiency.
41338
41339 2007-08-18  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/fstrcmp-tests: New file.
41342         * tests/test-fstrcmp.c: New file.
41343
41344 2007-08-18  Bruno Haible  <bruno@clisp.org>
41345
41346         * modules/fstrcmp: New file, from GNU gettext with modifications.
41347         * lib/fstrcmp.h: New file, from GNU gettext.
41348         * lib/fstrcmp.c: New file, from GNU gettext.
41349         * MODULES.html.sh (String handling): Add fstrcmp.
41350
41351 2007-08-18  Bruno Haible  <bruno@clisp.org>
41352
41353         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41354         'bool'.
41355         (diag, compareseq): Remove const from the ctxt argument.
41356         (USE_HEURISTIC): Undefine at the end.
41357
41358 2007-08-18  Jim Meyering  <jim@meyering.net>
41359
41360         New file: lib/idcache.h
41361         * NEWS: Mention the addition.
41362         * modules/idcache (Files): Add lib/idcache.h
41363         * lib/idcache.c: Include "idcache.h".
41364         Don't include <sys/types.h>.
41365         Add a FIXME comment.
41366         Move file-scoped "static" declarations to the top.
41367         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41368
41369 2007-08-17  Bruno Haible  <bruno@clisp.org>
41370         and Paul Eggert  <eggert@cs.ucla.edu>
41371
41372         * MODULES.html.sh: Add diffseq.
41373         * modules/diffseq: New file.
41374         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41375         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41376
41377 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41378
41379         Import changes from coreutils for bootstrap script.
41380
41381         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41382
41383         * build-aux/bootstrap (slurp): Work even in environments where
41384         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41385         current code does not slurp files whose names start with ".", and
41386         this looks like it might be a troublesome area.
41387
41388         2007-07-11  Jim Meyering  <jim@meyering.net>
41389
41390         If there's a GPL vN copyright comment, require that N == 3.
41391
41392         2007-07-08  Jim Meyering  <jim@meyering.net>
41393
41394         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41395         * build-aux/bootstrap (mam_template): Move definition out of loop.
41396
41397         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41398
41399         * build-aux/bootstrap (symlink_to_dir): Rename function from
41400         symlink_to_gnulib.  Add a directory parameter.  Update all
41401         callers.
41402         (cp_mark_as_generated): Also check for -- and link to -- files in
41403         gl/.
41404
41405         2007-07-08  Jim Meyering  <jim@meyering.net>
41406
41407         Adapt to deeper hierarchy in gnulib.
41408         * build-aux/bootstrap (symlink_to_dir): If the destination
41409         directory doesn't exist, create it. This is required at least for
41410         "lib/uniwidth/cjk.h".
41411
41412         2007-05-15  Jim Meyering  <jim@meyering.net>
41413
41414         * build-aux/bootstrap: Now that generated Makefile.am files
41415         are no longer under version control, they must be created at
41416         bootstrap time.
41417
41418 2007-08-14  Ben Pfaff  <blp@gnu.org>
41419
41420         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41421
41422 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41425         given the changes below.
41426         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41427         even on hosts that have padding bits beyond the supported 64.
41428
41429 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41430
41431         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41432         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41433         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41434         depends on it.
41435         (xstrtol_error): Remove.
41436         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41437         but with a different signature.
41438         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41439         * lib/xstrtol-error.c: Include exitfail.h.
41440         (xstrtol_fatal): New function, with a different signature from the
41441         old xstrtol_error, so that the caller need not worry about passing
41442         in an exit status, or about storage management of the option argument.
41443         (xstrtol_error): Now a static function.  Redo signature to
41444         implement xstrtol_fatal.  Output the correct number of hyphens in
41445         front of the option so that the caller need not worry about
41446         storage management.
41447         (N_): New macro.
41448         (_): Remove; not used now.
41449         * modules/xstrtol: Depend on getopt.
41450         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41451         of old STRTOL_FATAL_ERROR macro.
41452         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41453         of test program.
41454         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41455         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41456
41457 2007-08-08  Eric Blake  <ebb9@byu.net>
41458
41459         * lib/xstrtol-error.c: Add missing include.
41460
41461         Move xstrtol messages into gnulib domain, when --pobase is used.
41462         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41463         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41464         * modules/xstrtol (Files): Distribute new file.
41465         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
41466         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
41467         * tests/test-xstrtol.c: ...into new file.
41468         * tests/test-xstrtoul.c: Also test xstrtoul.
41469         * tests/test-xstrtoimax.c: Also test xstrtoimax.
41470         * tests/test-xstrtoumax.c: Also test xstrtoumax.
41471         * tests/test-xstrtol.sh: Drive the tests.
41472         * tests/test-xstrtoimax.sh: Likewise.
41473         * tests/test-xstrtoumax.sh: Likewise.
41474         * modules/xstrtol-tests: New module.
41475         * modules/xstrtoimax-tests: Likewise.
41476         * modules/xstrtoumax-tests: Likewise.
41477
41478 2007-08-08  Jim Meyering  <jim@meyering.net>
41479
41480         New function: mfile_name_concat.
41481         * lib/filenamecat.c (mfile_name_concat): New function, just like
41482         file_name_concat, but return NULL upon failure rather than exiting
41483         with a diagnostic.
41484         * lib/filenamecat.h: Declare it.
41485
41486 2007-08-07  Bruno Haible  <bruno@clisp.org>
41487
41488         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
41489         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
41490         warning from gcc.
41491         Reported by Eric Blake.
41492
41493 2007-08-07  Simon Josefsson  <simon@josefsson.org>
41494
41495         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
41496         * modules/crypto/arcfour (License): Likewise.
41497         * modules/crypto/des-tests (License): Likewise.
41498         * modules/crypto/gc-arctwo-tests (License): Likewise.
41499         * modules/crypto/gc-des-tests (License): Likewise.
41500         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
41501         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
41502         * modules/crypto/gc-md2-tests (License): Likewise.
41503         * modules/crypto/gc-md4-tests (License): Likewise.
41504         * modules/crypto/gc-md5-tests (License): Likewise.
41505         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
41506         * modules/crypto/gc-rijndael-tests (License): Likewise.
41507         * modules/crypto/gc-sha1-tests (License): Likewise.
41508         * modules/crypto/gc-tests (License): Likewise.
41509         * modules/crypto/hmac-md5 (License): Likewise.
41510         * modules/crypto/hmac-sha1 (License): Likewise.
41511         * modules/crypto/md2-tests (License): Likewise.
41512         * modules/crypto/md4-tests (License): Likewise.
41513         * modules/crypto/md5 (License): Likewise.
41514         * modules/crypto/rijndael (License): Likewise.
41515         * modules/crypto/sha1 (License): Likewise.
41516         * modules/memxor (License): Likewise.
41517
41518 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41519         and Bruno Haible  <bruno@clisp.org>
41520
41521         * NEWS: Describe interface changes to human, xstrtol.
41522         * lib/human.h: Include <xstrtol.h>.
41523         (human_options): Return enum strtol_error, not int.  Remove
41524         bool arg; take int * instead.
41525         * lib/human.c: Don't include "gettext.h".
41526         (_): Remove; no longer used.
41527         Don't include <xstrtol.h>, since human.h does it.
41528         (human_options): Adjust to abovementioned interface changes.
41529         Do not report error to stderr; that's now the caller's
41530         responsibility.
41531         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
41532         interface change.
41533         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
41534         Str, Argument_type_string.  All uses changed.  Put " argument"
41535         in diagnostics to make them clearer.  Change wording of suffix
41536         message for clarity.
41537         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
41538         Argument_type_string.
41539         (STRTOL_FATAL_WARN): Remove; no longer used.
41540         * modules/human (Depends-on): Remove gettext-h.
41541
41542 2007-08-06  Simon Josefsson  <simon@josefsson.org>
41543
41544         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
41545
41546 2007-07-31  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
41549         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
41550         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
41551
41552 2007-07-31  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
41555         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
41556
41557 2007-07-30  Bruno Haible  <bruno@clisp.org>
41558
41559         * modules/base64 (License): Use the synonymous term "LGPLv2+".
41560         * modules/c-ctype (License): Likewise.
41561         * modules/c-strcase (License): Likewise.
41562         * modules/check-version (License): Likewise.
41563         * modules/iconv (License): Likewise.
41564         * modules/iconv_open (License): Likewise.
41565         * modules/read-file (License): Likewise.
41566         * modules/striconv (License): Likewise.
41567         * modules/strverscmp (License): Likewise.
41568         * modules/vasprintf (License): Likewise.
41569         * modules/crypto/des (License): Likewise.
41570         * modules/crypto/gc (License): Likewise.
41571         * modules/crypto/gc-arcfour (License): Likewise.
41572         * modules/crypto/gc-arctwo (License): Likewise.
41573         * modules/crypto/gc-des (License): Likewise.
41574         * modules/crypto/gc-hmac-md5 (License): Likewise.
41575         * modules/crypto/gc-hmac-sha1 (License): Likewise.
41576         * modules/crypto/gc-md2 (License): Likewise.
41577         * modules/crypto/gc-md4 (License): Likewise.
41578         * modules/crypto/gc-md5 (License): Likewise.
41579         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
41580         * modules/crypto/gc-random (License): Likewise.
41581         * modules/crypto/gc-rijndael (License): Likewise.
41582         * modules/crypto/gc-sha1 (License): Likewise.
41583         * modules/crypto/md2 (License): Likewise.
41584         * modules/crypto/md4 (License): Likewise.
41585
41586 2007-07-30  Jim Meyering  <jim@meyering.net>
41587
41588         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
41589         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
41590         it has valid stat data.  This bug would cause du not to count the
41591         sizes of inaccessible directories.
41592         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
41593         in <http://bugzilla.redhat.com/250077>.
41594
41595 2007-07-25  Peter O'Gorman  <peter@pogma.com>
41596             Bruno Haible  <bruno@clisp.org>
41597
41598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
41599         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
41600         #include_next, gives a diagnostic about it, but reports no error in
41601         the exit code.
41602         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41603
41604 2007-07-24  Ben Pfaff  <blp@gnu.org>
41605
41606         Improve name: "count-one-bits" is better than "popcount".
41607         * MODULES.html.sh: Update name.
41608         * lib/popcount.h: Renamed lib/count-one-bits.h.
41609         (popcount): Renamed count_one_bits.
41610         (popcountl): Renamed count_one_bits_l.
41611         (popcountll): Renamed count_one_bits_ll.
41612         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
41613         * modules/popcount: Renamed module/count-one-bits.
41614         * modules/popcount-tests: Renamed module/count-one-bits-tests.
41615         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
41616
41617 2007-07-23  Ben Pfaff  <blp@gnu.org>
41618
41619         * lib/popcount.h (popcount32): Reduce size of constants, to allow
41620         better code generation, and add U to large constants to avoid
41621         warnings, in non-GCC case.
41622         Suggested by Bruno Haible.
41623
41624 2007-07-23  Ben Pfaff  <blp@gnu.org>
41625
41626         * lib/popcount.h: Use verify_true instead of if...abort.
41627         * modules/popcount: Depend on verify module.
41628         Suggested by Jim Meyering.
41629
41630 2007-07-23  Bruno Haible  <bruno@clisp.org>
41631
41632         * gnulib-tool (func_import): Create a .cvsignore file also when the
41633         directory is not yet in CVS but the toplevel directory is. When
41634         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
41635         Reported by Karl Berry.
41636
41637 2007-07-22  Ben Pfaff  <blp@gnu.org>
41638
41639         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
41640         case.
41641         Suggested by Eric Blake.
41642
41643 2007-07-22  Ben Pfaff  <blp@gnu.org>
41644
41645         New module: popcount.
41646         * MODULES.html.sh: Add popcount.
41647         * modules/popcount: New file.
41648         * modules/popcount-tests: New file.
41649         * tests/test-popcount.c: New file.
41650         * lib/popcount.h: New file.
41651         * m4/popcount.m4: New file.
41652
41653 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41654
41655         * build-aux/announce-gen: Update to GPLv3.
41656
41657         * build-aux/config.guess: Update from config.
41658
41659 2007-07-21  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
41662         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
41663
41664 2007-07-20  Jim Meyering  <jim@meyering.net>
41665
41666         * check-module: Diagnose a self-dependency.
41667
41668 2007-07-19  Bruno Haible  <bruno@clisp.org>
41669
41670         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
41671         empty.
41672         Reported by Eric Blake.
41673
41674 2007-07-18  Bruno Haible  <bruno@clisp.org>
41675
41676         * gnulib-tool: New options --po-base, --po-domain.
41677         (func_usage): Document them.
41678         (pobase, po_domain): New variables.
41679         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
41680         DEFAULT_TEXT_DOMAIN.
41681         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
41682         (func_import): Consider pobase and po_domain. Create a po/ directory.
41683         (func_create_testdir): Set pobase and po_domain to empty.
41684         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
41685         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
41686
41687 2007-07-18  Bruno Haible  <bruno@clisp.org>
41688
41689         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41690         EXTRA_DIST augmentation for files in build-aux/.
41691
41692 2007-07-16  Bruno Haible  <bruno@clisp.org>
41693
41694         * modules/lseek (License): Use the synonymous term "LGPLv2+".
41695         * modules/getdelim (License): Likewise.
41696
41697 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41698
41699         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
41700         * modules/d-type (License): Likewise.
41701         * modules/extensions (License): Likewise.
41702         * modules/fnmatch (License): Likewise.
41703         * modules/fseeko (License): Likewise.
41704         * modules/getaddrinfo (License): Likewise.
41705         * modules/getline (License): Likewise.
41706         * modules/getlogin_r (License): Likewise.
41707         * modules/getpass (License): Likewise.
41708         * modules/gettimeofday (License): Likewise.
41709         * modules/glob (License): Likewise.
41710         * modules/inet_ntop (License): Likewise.
41711         * modules/malloc (License): Likewise.
41712         * modules/malloca (License): Likewise.
41713         * modules/memmem (License): Likewise.
41714         * modules/mempcpy (License): Likewise.
41715         * modules/memset (License): Likewise.
41716         * modules/minmax (License): Likewise.
41717         * modules/mktime (License): Likewise.
41718         * modules/netinet_in (License): Likewise.
41719         * modules/pathmax (License): Likewise.
41720         * modules/poll (License): Likewise.
41721         * modules/regex (License): Likewise.
41722         * modules/snprintf (License): Likewise.
41723         * modules/stdbool (License): Likewise.
41724         * modules/stdint (License): Likewise.
41725         * modules/stdio (License): Likewise.
41726         * modules/strcase (License): Likewise.
41727         * modules/strcasestr (License): Likewise.
41728         * modules/strdup (License): Likewise.
41729         * modules/string (License): Likewise.
41730         * modules/strndup (License): Likewise.
41731         * modules/strnlen (License): Likewise.
41732         * modules/strpbrk (License): Likewise.
41733         * modules/strptime (License): Likewise.
41734         * modules/strsep (License): Likewise.
41735         * modules/sys_select (License): Likewise.
41736         * modules/sys_socket (License): Likewise.
41737         * modules/sys_stat (License): Likewise.
41738         * modules/sys_time (License): Likewise.
41739         * modules/time (License): Likewise.
41740         * modules/time_r (License): Likewise.
41741         * modules/timegm (License): Likewise.
41742         * modules/unistd (License): Likewise.
41743         * modules/vsnprintf (License): Likewise.
41744         * modules/wctype (License): Likewise.
41745
41746 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41747
41748         * modules/argz (License): LGPLv2+.
41749
41750 2007-07-15  Karl Berry  <karl@gnu.org>
41751
41752         * doc/gnulib.texi: revise node structure per new fdl.texi.
41753
41754 2007-07-14  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
41757         the output file.
41758         * lib/uniname/uninames.h: Regenerated.
41759
41760 2007-07-14  Karl Berry  <karl@gnu.org>
41761
41762         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
41763         omitting sectioning and index commands.
41764
41765 2007-07-13  Bruno Haible  <bruno@clisp.org>
41766
41767         New gnulib-tool option --more-symlinks.
41768         * gnulib-tool (func_usage): Document --more-symlinks.
41769         (do_copyrights): New variable.
41770         Recognize option --more-symlinks.
41771         (func_import): Don't add a copyright notice transform to
41772         sed_transform_lib_file if do_copyrights is empty.
41773
41774 2007-07-13  Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/vasnprintf.c (decimal_point_char): Define also if
41777         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
41778         && !NEED_PRINTF_DIRECTIVE_A.
41779         Reported by Clemens Koller <clemens.koller@anagramm.de> via
41780         Gary V. Vaughan <gary@gnu.org>.
41781
41782 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         * lib/inttypes_.h: Undo previous change, since it was fixed
41785         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
41786
41787 2007-07-13  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
41790         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
41791
41792 2007-07-13  Jim Meyering  <jim@meyering.net>
41793
41794         df: Don't fail for Tru64's "file-on-file mount".
41795         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
41796         so we fall through and use statfs instead.  Details here:
41797         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
41798         Reported by Albert Chin.
41799
41800 2007-07-13  Bruno Haible  <bruno@clisp.org>
41801
41802         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
41803         * modules/configmake (License): Likewise.
41804         * modules/gettext (License): Likewise.
41805         * modules/gettext-h (License): Likewise.
41806         * modules/include_next (License): Likewise.
41807         * modules/link-warning (License): Likewise.
41808         * modules/localcharset (License): Likewise.
41809         * modules/localename (License): Likewise.
41810         * modules/lock (License): Likewise.
41811         * modules/relocatable-lib-lgpl (License): Likewise.
41812         * modules/size_max (License): Likewise.
41813         * modules/vasnprintf (License): Likewise.
41814         * modules/wchar (License): Likewise.
41815         * modules/xsize (License): Likewise.
41816
41817 2007-07-13  Bruno Haible  <bruno@clisp.org>
41818
41819         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
41820         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
41821
41822 2007-07-12  Bruno Haible  <bruno@clisp.org>
41823
41824         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
41825         in the modules files.
41826
41827 2007-07-11  Karl Berry  <karl@gnu.org>
41828
41829         * MODULES.html.sh (func_module): use
41830          sed -e '\|^'"${includefile}"'$|d'
41831          instead of /.../d, to avoid errors on $includefile's containing /.
41832
41833 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41834
41835         * gnulib-tool (func_import): Avoid duplication of --avoid
41836         statements
41837         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
41838         names to `_' in variable names.
41839
41840 2007-07-10  Eric Blake  <ebb9@byu.net>
41841
41842         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
41843         * NEWS: Document this change.
41844
41845 2007-07-08  Bruno Haible  <bruno@clisp.org>
41846
41847         Update to Unicode 5.0.
41848         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
41849         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
41850         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
41851         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
41852         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
41853         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
41854         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
41855         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
41856         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
41857         U+10A3F, U+1D242..U+1D244.
41858         (nonspacing_table_ind): Update.
41859         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
41860         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
41861
41862 2007-07-08  Bruno Haible  <bruno@clisp.org>
41863
41864         Update to Unicode 5.0.
41865         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
41866         code transform. Extend the name index field of unicode_name_to_code and
41867         unicode_code_to_name from 16 to 24 bits.
41868         * lib/uniname/uniname.c (unicode_character_name,
41869         unicode_name_character): Add the range 0x12xxx to the code transform.
41870         * lib/uniname/uninames.h: Regenerated.
41871         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
41872
41873 2007-07-07  Bruno Haible  <bruno@clisp.org>
41874
41875         * modules/wcwidth-tests: New file.
41876         * tests/test-wcwidth.c: New file.
41877
41878         Work around MacOS X wcwidth() bug.
41879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
41880         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
41881         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
41882         original wcwidth in non-UTF-8 locales.
41883         * modules/wcwidth (Depends-on): Add localcharset, streq,
41884         uniwidth/width.
41885         * doc/functions/wcwidth.texi: Update.
41886
41887 2007-07-07  Bruno Haible  <bruno@clisp.org>
41888
41889         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
41890         (wcwidth): New declaration.
41891         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
41892         macros.
41893         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
41894         here. Prepare for creating <wchar.h> unconditionally.
41895         * modules/wchar (Depends-on): Add link-warning.
41896         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
41897         REPLACE_WCWIDTH, and GL_LINK_WARNING.
41898         * lib/wcwidth.h: Remove file.
41899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
41900         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
41901         * modules/wcwidth (Files): Remove lib/wcwidth.h.
41902         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
41903         (Include): Replace wcwidth.h with <wchar.h>.
41904         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
41905         * lib/mbchar.h: Don't include wcwidth.h.
41906         * lib/mbswidth.c: Likewise.
41907         * NEWS: Mention the change.
41908
41909 2007-07-07  Bruno Haible  <bruno@clisp.org>
41910
41911         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
41912         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
41913         definition with an external declaration.
41914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
41915         defined as a function. Remove AC_C_INLINE requirement.
41916         * modules/wcwidth (Files): Add lib/wcwidth.c.
41917         (Makefile.am): Remove redundant statement.
41918
41919 2007-07-07  Bruno Haible  <bruno@clisp.org>
41920
41921         * MODULES.html.sh (Unicode string functions): Add the new modules.
41922
41923         * tests/uniwidth/test-u32-strwidth.c: New file.
41924         * modules/uniwidth/u32-strwidth-tests: New file.
41925
41926         * lib/uniwidth/u32-strwidth.c: New file.
41927         * modules/uniwidth/u32-strwidth: New file.
41928
41929         * tests/uniwidth/test-u16-strwidth.c: New file.
41930         * modules/uniwidth/u16-strwidth-tests: New file.
41931
41932         * lib/uniwidth/u16-strwidth.c: New file.
41933         * modules/uniwidth/u16-strwidth: New file.
41934
41935         * tests/uniwidth/test-u8-strwidth.c: New file.
41936         * modules/uniwidth/u8-strwidth-tests: New file.
41937
41938         * lib/uniwidth/u8-strwidth.c: New file.
41939         * modules/uniwidth/u8-strwidth: New file.
41940
41941         * tests/uniwidth/test-u32-width.c: New file.
41942         * modules/uniwidth/u32-width-tests: New file.
41943
41944         * lib/uniwidth/u32-width.c: New file.
41945         * modules/uniwidth/u32-width: New file.
41946
41947         * tests/uniwidth/test-u16-width.c: New file.
41948         * modules/uniwidth/u16-width-tests: New file.
41949
41950         * lib/uniwidth/u16-width.c: New file.
41951         * modules/uniwidth/u16-width: New file.
41952
41953         * tests/uniwidth/test-u8-width.c: New file.
41954         * modules/uniwidth/u8-width-tests: New file.
41955
41956         * lib/uniwidth/u8-width.c: New file.
41957         * modules/uniwidth/u8-width: New file.
41958
41959         * tests/uniwidth/test-uc_width.c: New file.
41960         * modules/uniwidth/width-tests: New file.
41961
41962         * lib/uniwidth/width.c: New file, from GNU libiconv.
41963         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
41964         * modules/uniwidth/width: New file.
41965
41966         * lib/uniwidth.h: New file, from GNU libiconv.
41967         * modules/uniwidth/base: New file.
41968
41969 2007-07-07  Bruno Haible  <bruno@clisp.org>
41970
41971         * lib/uniname.h: New file, from GNU gettext.
41972         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
41973         * lib/uniname/uninames.h: New file, from GNU gettext.
41974         * lib/uniname/uniname.c: New file, from GNU gettext.
41975         * tests/uniname/test-uninames.sh: New file.
41976         * tests/uniname/test-uninames.c: New file, from GNU gettext.
41977         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
41978         * modules/uniname/base: New file.
41979         * modules/uniname/uniname: New file.
41980         * modules/uniname/uniname-tests: New file.
41981         * MODULES.html.sh (Unicode string functions): Add the new modules.
41982
41983 2007-07-06  Bruno Haible  <bruno@clisp.org>
41984
41985         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
41986
41987 2007-07-06  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
41990         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
41991         includes <cygwin/sys_time.h> which includes <sys/select.h> which
41992         include <sys/time.h>.
41993         Reported by Eric Blake.
41994
41995 2007-07-06  Eric Blake  <ebb9@byu.net>
41996
41997         Fix testing canonicalize on cygwin.
41998         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41999         Revert patch from 2007-06-19.
42000         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42001         canonicalize module is also in use.
42002         * tests/test-canonicalize.c: New file.
42003         * tests/test-canonicalize.sh: Likewise.
42004         * modules/canonicalize-tests: Likewise.
42005
42006 2007-07-06  Jim Meyering  <jim@meyering.net>
42007
42008         * lib/getugroups.c (getugroups): Detect getgrent failure.
42009         Adjust comment to reflect reality: this function may return -1.
42010
42011 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42012
42013         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42014         the new TP address.
42015         (usage): Fix typo
42016         (gnulib_mk): New variable.
42017
42018 2007-07-05  Jim Meyering  <jim@meyering.net>
42019
42020         Don't let endgrent clobber errno, no matter how improbable.
42021         * lib/getugroups.c (getugroups): Save and restore errno around
42022         endgrent call.
42023
42024         Close the group DB even when failing with 2^31 or more members.
42025         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42026
42027 2007-07-04  Jim Meyering  <jim@meyering.net>
42028
42029         * lib/getugroups.h: New file.
42030         * lib/getugroups.c: Include "getugroups.h".
42031         Remove uses of "register" keyword.
42032         Move local variable, "cp", down into scope where used.
42033         Give "username" parameter the "const" attribute.
42034         * modules/getugroups (Files): Add lib/getugroups.h
42035
42036 2007-07-04  Karl Berry  <karl@gnu.org>
42037
42038         * MODULES.html.sh (func_all_modules): Complete rename of
42039         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42040
42041 2007-07-02  Bruno Haible  <bruno@clisp.org>
42042
42043         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42044         mode, when inttypes.h comes from gnulib.
42045         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42046
42047 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42048
42049         * NEWS: Mention lgpl module name change.
42050
42051         * modules/lgpl-2.1: Renamed from lgpl.
42052
42053         * NEWS: Mention gpl module name change.
42054
42055         * modules/gpl-3.0: New file, based on gpl-2.0.
42056
42057         * modules/gpl-2.0: Renamed from gpl.
42058
42059         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42060         doc/gpl-2.0.texi.
42061
42062 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42063
42064         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42065         #define __STDC_LIMIT_MACROS temporarily while including
42066         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42067         Problem reported by Joel E. Denny in
42068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42069
42070 2007-07-01  Bruno Haible  <bruno@clisp.org>
42071
42072         * lib/unistdio.h: New file.
42073         * lib/unistdio/u-asnprintf.h: New file.
42074         * lib/unistdio/u-asprintf.h: New file.
42075         * lib/unistdio/u-printf-args.c: New file.
42076         * lib/unistdio/u-printf-args.h: New file.
42077         * lib/unistdio/u-printf-parse.h: New file.
42078         * lib/unistdio/u-snprintf.h: New file.
42079         * lib/unistdio/u-sprintf.h: New file.
42080         * lib/unistdio/u-vasprintf.h: New file.
42081         * lib/unistdio/u-vsnprintf.h: New file.
42082         * lib/unistdio/u-vsprintf.h: New file.
42083         * lib/unistdio/ulc-asnprintf.c: New file.
42084         * lib/unistdio/ulc-asprintf.c: New file.
42085         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42086         * lib/unistdio/ulc-printf-parse.c: New file.
42087         * lib/unistdio/ulc-snprintf.c: New file.
42088         * lib/unistdio/ulc-sprintf.c: New file.
42089         * lib/unistdio/ulc-vasnprintf.c: New file.
42090         * lib/unistdio/ulc-vasprintf.c: New file.
42091         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42092         * lib/unistdio/ulc-vsnprintf.c: New file.
42093         * lib/unistdio/ulc-vsprintf.c: New file.
42094         * lib/unistdio/u8-asnprintf.c: New file.
42095         * lib/unistdio/u8-asprintf.c: New file.
42096         * lib/unistdio/u8-printf-parse.c: New file.
42097         * lib/unistdio/u8-snprintf.c: New file.
42098         * lib/unistdio/u8-sprintf.c: New file.
42099         * lib/unistdio/u8-vasnprintf.c: New file.
42100         * lib/unistdio/u8-vasprintf.c: New file.
42101         * lib/unistdio/u8-vsnprintf.c: New file.
42102         * lib/unistdio/u8-vsprintf.c: New file.
42103         * lib/unistdio/u8-u8-asnprintf.c: New file.
42104         * lib/unistdio/u8-u8-asprintf.c: New file.
42105         * lib/unistdio/u8-u8-snprintf.c: New file.
42106         * lib/unistdio/u8-u8-sprintf.c: New file.
42107         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42108         * lib/unistdio/u8-u8-vasprintf.c: New file.
42109         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42110         * lib/unistdio/u8-u8-vsprintf.c: New file.
42111         * lib/unistdio/u16-asnprintf.c: New file.
42112         * lib/unistdio/u16-asprintf.c: New file.
42113         * lib/unistdio/u16-printf-parse.c: New file.
42114         * lib/unistdio/u16-snprintf.c: New file.
42115         * lib/unistdio/u16-sprintf.c: New file.
42116         * lib/unistdio/u16-vasnprintf.c: New file.
42117         * lib/unistdio/u16-vasprintf.c: New file.
42118         * lib/unistdio/u16-vsnprintf.c: New file.
42119         * lib/unistdio/u16-vsprintf.c: New file.
42120         * lib/unistdio/u16-u16-asnprintf.c: New file.
42121         * lib/unistdio/u16-u16-asprintf.c: New file.
42122         * lib/unistdio/u16-u16-snprintf.c: New file.
42123         * lib/unistdio/u16-u16-sprintf.c: New file.
42124         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42125         * lib/unistdio/u16-u16-vasprintf.c: New file.
42126         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42127         * lib/unistdio/u16-u16-vsprintf.c: New file.
42128         * lib/unistdio/u32-asnprintf.c: New file.
42129         * lib/unistdio/u32-asprintf.c: New file.
42130         * lib/unistdio/u32-printf-parse.c: New file.
42131         * lib/unistdio/u32-snprintf.c: New file.
42132         * lib/unistdio/u32-sprintf.c: New file.
42133         * lib/unistdio/u32-vasnprintf.c: New file.
42134         * lib/unistdio/u32-vasprintf.c: New file.
42135         * lib/unistdio/u32-vsnprintf.c: New file.
42136         * lib/unistdio/u32-vsprintf.c: New file.
42137         * lib/unistdio/u32-u32-asnprintf.c: New file.
42138         * lib/unistdio/u32-u32-asprintf.c: New file.
42139         * lib/unistdio/u32-u32-snprintf.c: New file.
42140         * lib/unistdio/u32-u32-sprintf.c: New file.
42141         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42142         * lib/unistdio/u32-u32-vasprintf.c: New file.
42143         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42144         * lib/unistdio/u32-u32-vsprintf.c: New file.
42145         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42146         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42147         * tests/unistdio/test-ulc-printf1.h: New file.
42148         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42149         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42150         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42151         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42152         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42153         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42154         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42155         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42156         * tests/unistdio/test-u8-asnprintf1.c: New file.
42157         * tests/unistdio/test-u8-asnprintf1.h: New file.
42158         * tests/unistdio/test-u8-printf1.h: New file.
42159         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42160         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42161         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42162         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42163         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42164         * tests/unistdio/test-u8-vasprintf1.c: New file.
42165         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42166         * tests/unistdio/test-u8-vsprintf1.c: New file.
42167         * tests/unistdio/test-u16-asnprintf1.c: New file.
42168         * tests/unistdio/test-u16-asnprintf1.h: New file.
42169         * tests/unistdio/test-u16-printf1.h: New file.
42170         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42171         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42172         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42173         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42174         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42175         * tests/unistdio/test-u16-vasprintf1.c: New file.
42176         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42177         * tests/unistdio/test-u16-vsprintf1.c: New file.
42178         * tests/unistdio/test-u32-asnprintf1.c: New file.
42179         * tests/unistdio/test-u32-asnprintf1.h: New file.
42180         * tests/unistdio/test-u32-printf1.h: New file.
42181         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42182         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42183         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42184         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42185         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42186         * tests/unistdio/test-u32-vasprintf1.c: New file.
42187         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42188         * tests/unistdio/test-u32-vsprintf1.c: New file.
42189         * modules/unistdio/base: New file.
42190         * modules/unistdio/u-printf-args: New file.
42191         * modules/unistdio/ulc-asnprintf: New file.
42192         * modules/unistdio/ulc-asprintf: New file.
42193         * modules/unistdio/ulc-fprintf: New file.
42194         * modules/unistdio/ulc-printf-parse: New file.
42195         * modules/unistdio/ulc-snprintf: New file.
42196         * modules/unistdio/ulc-sprintf: New file.
42197         * modules/unistdio/ulc-vasnprintf: New file.
42198         * modules/unistdio/ulc-vasprintf: New file.
42199         * modules/unistdio/ulc-vfprintf: New file.
42200         * modules/unistdio/ulc-vsnprintf: New file.
42201         * modules/unistdio/ulc-vsprintf: New file.
42202         * modules/unistdio/u8-asnprintf: New file.
42203         * modules/unistdio/u8-asprintf: New file.
42204         * modules/unistdio/u8-printf-parse: New file.
42205         * modules/unistdio/u8-snprintf: New file.
42206         * modules/unistdio/u8-sprintf: New file.
42207         * modules/unistdio/u8-vasnprintf: New file.
42208         * modules/unistdio/u8-vasprintf: New file.
42209         * modules/unistdio/u8-vsnprintf: New file.
42210         * modules/unistdio/u8-vsprintf: New file.
42211         * modules/unistdio/u8-u8-asnprintf: New file.
42212         * modules/unistdio/u8-u8-asprintf: New file.
42213         * modules/unistdio/u8-u8-snprintf: New file.
42214         * modules/unistdio/u8-u8-sprintf: New file.
42215         * modules/unistdio/u8-u8-vasnprintf: New file.
42216         * modules/unistdio/u8-u8-vasprintf: New file.
42217         * modules/unistdio/u8-u8-vsnprintf: New file.
42218         * modules/unistdio/u8-u8-vsprintf: New file.
42219         * modules/unistdio/u16-asnprintf: New file.
42220         * modules/unistdio/u16-asprintf: New file.
42221         * modules/unistdio/u16-printf-parse: New file.
42222         * modules/unistdio/u16-snprintf: New file.
42223         * modules/unistdio/u16-sprintf: New file.
42224         * modules/unistdio/u16-vasnprintf: New file.
42225         * modules/unistdio/u16-vasprintf: New file.
42226         * modules/unistdio/u16-vsnprintf: New file.
42227         * modules/unistdio/u16-vsprintf: New file.
42228         * modules/unistdio/u16-u16-asnprintf: New file.
42229         * modules/unistdio/u16-u16-asprintf: New file.
42230         * modules/unistdio/u16-u16-snprintf: New file.
42231         * modules/unistdio/u16-u16-sprintf: New file.
42232         * modules/unistdio/u16-u16-vasnprintf: New file.
42233         * modules/unistdio/u16-u16-vasprintf: New file.
42234         * modules/unistdio/u16-u16-vsnprintf: New file.
42235         * modules/unistdio/u16-u16-vsprintf: New file.
42236         * modules/unistdio/u32-asnprintf: New file.
42237         * modules/unistdio/u32-asprintf: New file.
42238         * modules/unistdio/u32-printf-parse: New file.
42239         * modules/unistdio/u32-snprintf: New file.
42240         * modules/unistdio/u32-sprintf: New file.
42241         * modules/unistdio/u32-vasnprintf: New file.
42242         * modules/unistdio/u32-vasprintf: New file.
42243         * modules/unistdio/u32-vsnprintf: New file.
42244         * modules/unistdio/u32-vsprintf: New file.
42245         * modules/unistdio/u32-u32-asnprintf: New file.
42246         * modules/unistdio/u32-u32-asprintf: New file.
42247         * modules/unistdio/u32-u32-snprintf: New file.
42248         * modules/unistdio/u32-u32-sprintf: New file.
42249         * modules/unistdio/u32-u32-vasnprintf: New file.
42250         * modules/unistdio/u32-u32-vasprintf: New file.
42251         * modules/unistdio/u32-u32-vsnprintf: New file.
42252         * modules/unistdio/u32-u32-vsprintf: New file.
42253         * modules/unistdio/ulc-asnprintf-tests: New file.
42254         * modules/unistdio/ulc-vasnprintf-tests: New file.
42255         * modules/unistdio/ulc-vasprintf-tests: New file.
42256         * modules/unistdio/ulc-vsnprintf-tests: New file.
42257         * modules/unistdio/ulc-vsprintf-tests: New file.
42258         * modules/unistdio/u8-asnprintf-tests: New file.
42259         * modules/unistdio/u8-vasnprintf-tests: New file.
42260         * modules/unistdio/u8-vasprintf-tests: New file.
42261         * modules/unistdio/u8-vsnprintf-tests: New file.
42262         * modules/unistdio/u8-vsprintf-tests: New file.
42263         * modules/unistdio/u16-asnprintf-tests: New file.
42264         * modules/unistdio/u16-vasnprintf-tests: New file.
42265         * modules/unistdio/u16-vasprintf-tests: New file.
42266         * modules/unistdio/u16-vsnprintf-tests: New file.
42267         * modules/unistdio/u16-vsprintf-tests: New file.
42268         * modules/unistdio/u32-asnprintf-tests: New file.
42269         * modules/unistdio/u32-vasnprintf-tests: New file.
42270         * modules/unistdio/u32-vasprintf-tests: New file.
42271         * modules/unistdio/u32-vsnprintf-tests: New file.
42272         * modules/unistdio/u32-vsprintf-tests: New file.
42273         * MODULES.html.sh (Unicode string functions): Add the new modules.
42274
42275 2007-07-01  Bruno Haible  <bruno@clisp.org>
42276
42277         * lib/sprintf.c (sprintf): Limit the available length estimation,
42278         to avoid address wraparound.
42279         * lib/vsprintf.c (vsprintf): Likewise.
42280         * modules/sprintf-posix (Dependencies): Add stdint.
42281         * modules/vsprintf-posix (Dependencies): Likewise.
42282
42283 2007-07-01  Bruno Haible  <bruno@clisp.org>
42284
42285         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42286         Windows PATH as well. Conservative double-quoting. Comments.
42287
42288 2007-07-01  Bruno Haible  <bruno@clisp.org>
42289             Eric Blake  <ebb9@byu.net>
42290             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42291
42292         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42293         empty components in $PATH, denoting '.'.
42294
42295 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42296
42297         * gnulib-tool: Fix indentation.
42298         (func_create_megatestdir): Likewise.
42299         Report by Bruno Haible.
42300
42301 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42302
42303         Sync from Automake.
42304         * build-aux/gnupload: Fix shell portability issues with for loops.
42305         Report by Karl Berry.
42306
42307 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42308
42309         * build-aux/maint.mk (POURL): Use translationproject.org.
42310
42311 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42312             Bruno Haible  <bruno@clisp.org>
42313
42314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42315         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42316         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42317         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42318         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42319
42320 2007-06-27  Bruno Haible  <bruno@clisp.org>
42321
42322         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42323         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42324
42325 2007-06-26  Karl Berry  <karl@gnu.org>
42326
42327         * MODULES.html.sh: remove xreadlink-with-size.
42328
42329 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42330
42331         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42332         method that I hope also handles the double-include problem noted
42333         by Bruno Haible in
42334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42335
42336 2007-06-23  Bruno Haible  <bruno@clisp.org>
42337
42338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42339         Don't let the 'mostlyclean' target fail if the last subdirectory could
42340         not be removed.
42341         Reported by Karl Berry.
42342
42343 2007-06-23  Bruno Haible  <bruno@clisp.org>
42344
42345         * gnulib-tool (echo): Add a speedier workaround for ksh.
42346         * tests/test-echo.sh: Likewise.
42347
42348 2007-06-23  Bruno Haible  <bruno@clisp.org>
42349
42350         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42351         * tests/test-echo.sh: Likewise.
42352
42353 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42354
42355         * gnulib-tool (IFS): Initialize early, so we don't set it to
42356         empty later.
42357         (self_abspathname): Rewrite algorithm to set it, reindent.
42358         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42359         (func_create_megatestdir): Merge some sed scripts.
42360
42361 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42362
42363         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42364         exposed by Sun Studio 11 cc on Solaris 8.
42365
42366 2007-06-22  Bruno Haible  <bruno@clisp.org>
42367
42368         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42369         backslashes.
42370         * tests/test-echo.sh: New file.
42371
42372 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42373
42374         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42375         simplify `sed_replace_build_aux' scripts, they are portable but
42376         echoing them with `echo' is not.
42377         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42378
42379 2007-06-21  Karl Berry  <karl@gnu.org>
42380
42381         * config/srclist.txt: guess we can't handle the licenses via
42382         srclist at the moment.
42383
42384 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42385
42386         * MODULES.html.sh: Add include_next.
42387         * modules/include_next: New file.
42388
42389 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42390
42391         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42392         INCLUDE_NEXT.
42393         (gl_CHECK_NEXT_HEADERS): New macro.
42394         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42395         the obsolescent gl_ABSOLUTE_HEADER.
42396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42397         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42398         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42399         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42400         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42401         * m4/math_h.m4 (gl_MATH_H): Likewise.
42402         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42403         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42404         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42405         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42406         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42407         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42408         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42413         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42414         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42415         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42416         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42417         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42418         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42419         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42420         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42421         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42422         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42423         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42424         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42425         * lib/float_.h: Likewise.
42426         * lib/inttypes_.h: Likewise.
42427         * lib/math_.h: Likewise.
42428         * lib/search_.h: Likewise.
42429         * lib/signal_.h: Likewise.
42430         * lib/stdint_.h: Likewise.
42431         * lib/stdio_.h: Likewise.
42432         * lib/stdlib_.h: Likewise.
42433         * lib/string_.h: Likewise.
42434         * lib/sys_stat_.h: Likewise.
42435         * lib/sys_time_.h: Likewise.
42436         * lib/time_.h: Likewise.
42437         * lib/unistd_.h: Likewise.
42438         * lib/wchar_.h: Likewise.
42439         * lib/wctype_.h: Likewise.
42440         * lib/dirent_.h: Likewise.
42441         * lib/iconv_.h: Likewise.
42442         * lib/locale_.h: Likewise.
42443         * lib/netinet_in_.h: Likewise.
42444         * lib/sys_select_.h: Likewise.
42445         * lib/sys_socket_.h: Likewise.
42446         * lib/sysexits_.h: Likewise.
42447         * modules/fcntl (Depends-on): Depend on include_next, not
42448         absolute_header.
42449         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42450         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42451         * modules/fchdir: Likewise.
42452         * modules/float: Likewise.
42453         * modules/iconv_open: Likewise.
42454         * modules/inttypes: Likewise.
42455         * modules/locale: Likewise.
42456         * modules/math: Likewise.
42457         * modules/netinet_in: Likewise.
42458         * modules/search: Likewise.
42459         * modules/signal: Likewise.
42460         * modules/stdint: Likewise.
42461         * modules/stdio: Likewise.
42462         * modules/stdlib: Likewise.
42463         * modules/string: Likewise.
42464         * modules/sys_select: Likewise.
42465         * modules/sys_socket: Likewise.
42466         * modules/sys_stat: Likewise.
42467         * modules/sys_time: Likewise.
42468         * modules/sysexits: Likewise.
42469         * modules/time: Likewise.
42470         * modules/unistd: Likewise.
42471         * modules/wchar: Likewise.
42472         * modules/wctype: Likewise.
42473         * modules/sys_stat: Change maintainer to "all".
42474         * modules/unistd: Likewise.
42475
42476 2007-06-20  Karl Berry  <karl@gnu.org>
42477
42478         * config/srclist.txt: track www changes in license files.
42479
42480 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
42481
42482         * build-aux/bootstrap: Remove stray dot.
42483         Make sure build_aux settings are honored when linking
42484         gnulib_extra_files.
42485
42486 2007-06-19  Eric Blake  <ebb9@byu.net>
42487
42488         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42489         Allow compilation on cygwin.
42490
42491 2007-06-19  Jim Meyering  <jim@meyering.net>
42492
42493         xreadlink-with-size: Remove module.  No longer used.
42494         Ex-callers now use xreadlink or mreadlink-with-size.
42495         * modules/xreadlink-with-size: Remove module.
42496         * lib/xreadlink-with-size.c: Remove file.
42497         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
42498         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
42499         just before the function definition *is* accurate.
42500
42501         Eliminate one way canonicalize_filename_mode could exit.
42502         * lib/canonicalize.c (canonicalize_filename_mode):
42503         Use mreadlink_with_size, not xreadlink_with_size.
42504
42505 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
42506
42507         Detect porting problems to FreeBSD/arm, which has time_t wider than
42508         long int.  Original problem reported for GNU diff by Xin Li in
42509         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
42510         * modules/getdate (Depends-on): Add intprops, verify.
42511         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
42512         is an integer type no wider than long int.
42513
42514 2007-06-18  Jim Meyering  <jim@meyering.net>
42515
42516         New module: mreadlink-with-size.
42517         * MODULES.html.sh: Add mreadlink-with-size.
42518         * modules/mreadlink-with-size: New module
42519         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
42520         not xreadlink-with-size.
42521         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
42522
42523 2007-06-16  Bruno Haible  <bruno@clisp.org>
42524
42525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
42526         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
42527         Reported by Gary V. Vaughan <gary@gnu.org>.
42528
42529 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
42530
42531         Revamp lchown so that it lives in unistd.h where it belongs.
42532         * lib/lchown.h: Remove.
42533         * lib/dirchownmod.c: Don't include lib/lchown.h.
42534         * lib/fchownat.c: Likewise.
42535         * lib/openat.c: Likewise.
42536         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
42537         does not follow symlinks.
42538         (EOPNOTSUPP): Define if not defined.
42539         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
42540         is defined to 0.
42541         (lchown): New decl.
42542         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
42543         Do not check for lchown decl.
42544         Set REPLACE_LCHOWN.
42545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
42546         REPLACE_LCHOWN.
42547         * modules/chown: Make it clear it follows symlinks.
42548         * modules/lchown: Make it clear it doesn't follow symlinks.
42549         (Files): Remove lib/lchown.h
42550         (Depends-on): Add unistd.
42551         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
42552         (Include): Include <unistd.h>, not "lchown.h".
42553         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
42554         REPLACE_LCHOWN.
42555
42556 2007-06-15  Jim Meyering  <jim@meyering.net>
42557
42558         Change license (GPL to LGPL) of fsusage and dependents.
42559         * modules/fsusage (License): Change to LGPL.
42560         * modules/full-read (License): Likewise.
42561         * modules/full-write (License): Likewise.
42562         * modules/safe-read (License): Likewise.
42563         * modules/safe-write (License): Likewise.
42564
42565 2007-06-14  Ben Pfaff  <blp@gnu.org>
42566
42567         Missing part of allocsa -> malloca transition.
42568         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
42569         gl_MALLOCA.
42570
42571 2007-06-12  Bruno Haible  <bruno@clisp.org>
42572
42573         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
42574         to ia64, x86_64, i386.
42575         Reported by Eric Blake.
42576
42577 2007-06-12  Bruno Haible  <bruno@clisp.org>
42578
42579         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
42580         cross-compiling to x86_64.
42581
42582 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
42583
42584         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
42585         glitch reported by Ralf Wildenhues in
42586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
42587
42588         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
42589         Vin Shelton.
42590
42591 2007-06-11  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
42594         replacement string.
42595         Reported by Eric Blake.
42596
42597 2007-06-10  Bruno Haible  <bruno@clisp.org>
42598
42599         Prepare vasnprintf code for use with Unicode strings.
42600         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
42601         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
42602         TYPE_U32_STRING.
42603         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
42604         a_u32_string variants.
42605         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42606         * lib/printf-args.c: Don't include config.h and the specification
42607         header if PRINTF_FETCHARGS is already defined.
42608         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42609         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
42610         TYPE_U16_STRING, TYPE_U32_STRING.
42611         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
42612         u16_directive, u16_directives, u32_directive, u32_directives): New
42613         types.
42614         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
42615         New declarations.
42616         * lib/printf-parse.c: Don't include config.h and the specification
42617         header if PRINTF_PARSE is already defined. Eliminate the set of
42618         parameters for WIDE_CHAR_VERSION; the user of this file must provide
42619         them now. Include c-ctype.h.
42620         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
42621         directive and CHAR_T_ONLY_ASCII.
42622         * lib/vasnprintf.c: Don't include config.h and the specification header
42623         if VASNPRINTF is already defined.
42624         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
42625         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
42626         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
42627         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
42628         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
42629         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
42630         code accordingly.
42631         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
42632         pad_ourselves also in this case, with the 'c' and 's' directives, and
42633         with a different notion of "width".
42634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
42635
42636 2007-06-10  Bruno Haible  <bruno@clisp.org>
42637
42638         * modules/unistr/u32-mbsnlen: New file.
42639         * lib/unistr/u32-mbsnlen.c: New file.
42640
42641         * modules/unistr/u16-mbsnlen: New file.
42642         * lib/unistr/u16-mbsnlen.c: New file.
42643
42644         * modules/unistr/u8-mbsnlen: New file.
42645         * lib/unistr/u8-mbsnlen.c: New file.
42646
42647         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
42648         declarations.
42649
42650 2007-06-10  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/string_.h (mbsnlen): New declaration.
42653         * lib/mbsnlen.c: New file.
42654         * m4/mbsnlen.m4: New file.
42655         * modules/mbsnlen: New file.
42656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
42657         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
42658         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
42659
42660 2007-06-10  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
42663
42664 2007-06-10  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
42667         * lib/mbuiter.h: Likewise.
42668
42669 2007-06-10  Bruno Haible  <bruno@clisp.org>
42670
42671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
42672         declaration.
42673
42674 2007-06-10  Karl Berry  <karl@gnu.org>
42675
42676         * config/srclist.txt: remove gettext entries, Bruno prefers
42677         to update individually.
42678
42679 2007-06-10  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
42682         'maxlen'. Ensure only length + width bytes are allocated, not
42683         length + 1 + width.
42684
42685 2007-06-09  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
42688         (CHAR_T): Remove macro.
42689         (VASNPRINTF): Update.
42690
42691 2007-06-09  Bruno Haible  <bruno@clisp.org>
42692
42693         * MODULES.html.sh (Unicode string functions): Add the new modules.
42694
42695         * modules/uniconv/u32-conv-to-enc: New file.
42696         * lib/uniconv/u32-conv-to-enc.c: New file.
42697         * modules/uniconv/u32-conv-to-enc-tests: New file.
42698         * tests/uniconv/test-u32-conv-to-enc.c: New file.
42699
42700         * modules/uniconv/u16-conv-to-enc: New file.
42701         * lib/uniconv/u16-conv-to-enc.c: New file.
42702         * lib/uniconv/u-conv-to-enc.h: New file.
42703         * modules/uniconv/u16-conv-to-enc-tests: New file.
42704         * tests/uniconv/test-u16-conv-to-enc.c: New file.
42705
42706         * modules/uniconv/u8-conv-to-enc: New file.
42707         * lib/uniconv/u8-conv-to-enc.c: New file.
42708         * modules/uniconv/u8-conv-to-enc-tests: New file.
42709         * tests/uniconv/test-u8-conv-to-enc.c: New file.
42710
42711         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42712         u32_conv_to_encoding): New declarations.
42713
42714 2007-06-09  Bruno Haible  <bruno@clisp.org>
42715
42716         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
42717
42718 2007-06-09  Bruno Haible  <bruno@clisp.org>
42719
42720         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
42721         * modules/malloca: Renamed from modules/allocsa, updated.
42722         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
42723         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
42724         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
42725         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
42726         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
42727         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
42728         * modules/xmalloca: Renamed from modules/xallocsa, updated.
42729         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
42730         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
42731         * modules/c-strcasestr (Depends-on): Update.
42732         * lib/c-strcasestr.c: Update.
42733         * modules/c-strstr (Depends-on): Update.
42734         * lib/c-strstr.c: Update.
42735         * modules/canonicalize-lgpl (Depends-on): Update.
42736         * lib/canonicalize-lgpl.c: Update.
42737         * modules/clean-temp (Depends-on): Update.
42738         * lib/clean-temp.c: Update.
42739         * modules/csharpcomp (Depends-on): Update.
42740         * lib/csharpcomp.c: Update.
42741         * modules/csharpexec (Depends-on): Update.
42742         * lib/csharpexec.c: Update.
42743         * modules/javacomp (Depends-on): Update.
42744         * lib/javacomp.c: Update.
42745         * modules/javaexec (Depends-on): Update.
42746         * lib/javaexec.c: Update.
42747         * modules/mbscasestr (Depends-on): Update.
42748         * lib/mbscasestr.c: Update.
42749         * modules/mbsstr (Depends-on): Update.
42750         * lib/mbsstr.c: Update.
42751         * modules/setenv (Depends-on): Update.
42752         * lib/setenv.c: Update.
42753         * modules/strcasestr (Depends-on): Update.
42754         * lib/strcasestr.c: Update.
42755         * modules/striconveha (Depends-on): Update.
42756         * lib/striconveha.c: Update.
42757         * modules/relocatable-prog-wrapper (Files): Update.
42758         * lib/relocwrapper.c: Update.
42759         * build-aux/install-reloc: Update.
42760         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
42761
42762 2007-06-08  Bruno Haible  <bruno@clisp.org>
42763
42764         Port to uClibc.
42765         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
42766         * lib/fpurge.c (fpurge): Likewise.
42767         * lib/freading.c (freading): Likewise.
42768         * lib/fseeko.c (rpl_fseeko): Likewise.
42769         * lib/fseterr.c (fseterr): Likewise.
42770         * lib/fwriting.c (fwriting): Likewise.
42771         * tests/test-fflush.c (main): Avoid a failure on uClibc.
42772
42773 2007-06-08  Bruno Haible  <bruno@clisp.org>
42774
42775         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
42776         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
42777         * modules/gettext (Files): Add m4/intlmacosx.m4.
42778
42779 2007-06-07  Bruno Haible  <bruno@clisp.org>
42780
42781         * modules/localename-tests: New file.
42782         * tests/test-localename.c: New file.
42783
42784         New module 'localename'.
42785         * lib/localename.h: New file.
42786         * lib/localename.c: New file, from GNU gettext.
42787         * m4/localename.m4: New file.
42788         * modules/localename: New file.
42789
42790 2007-06-07  Bruno Haible  <bruno@clisp.org>
42791
42792         Work around the lack of <wchar.h> on some builds of uClibc.
42793         * doc/headers/wchar.texi: Update.
42794         * lib/wchar_.h: Include <wchar.h> only if it exists.
42795         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
42796         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
42797         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
42798         doesn't exist.
42799         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
42800         * modules/mbfile (Depends-on): Add wchar.
42801         * modules/mbiter (Depends-on): Likewise.
42802         * modules/mbuiter (Depends-on): Likewise.
42803         Reported by Simon Josefsson.
42804
42805 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
42806
42807         Work around problem reported by Steven M. Schweda in
42808         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
42809         Tru64 5.1B with the Compaq compiler environment installed declares
42810         an 'isblank' function but does not define it in the C library.
42811         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
42812         * lib/regex_internal.h (isblank): Likewise.
42813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
42814         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42815
42816 2007-06-05  Bruno Haible  <bruno@clisp.org>
42817
42818         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
42819         ia64.
42820         * modules/printf-safe: New file.
42821         * modules/fprintf-posix (Depends-on): Add printf-safe.
42822         * modules/printf-posix (Depends-on): Likewise.
42823         * modules/snprintf-posix (Depends-on): Likewise.
42824         * modules/sprintf-posix (Depends-on): Likewise.
42825         * modules/vasnprintf-posix (Depends-on): Likewise.
42826         * modules/vasprintf-posix (Depends-on): Likewise.
42827         * modules/vfprintf-posix (Depends-on): Likewise.
42828         * modules/vprintf-posix (Depends-on): Likewise.
42829         * modules/vsnprintf-posix (Depends-on): Likewise.
42830         * modules/vsprintf-posix (Depends-on): Likewise.
42831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42832         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
42833         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
42834         "no" on i386, x86_64, ia64.
42835         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
42836         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42837         on i386, x86_64, ia64.
42838         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
42839         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42840         on i386, x86_64, ia64.
42841         * tests/test-vasnprintf-posix.c: Include float.h.
42842         (LDBL80_WORDS): New macro.
42843         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42844         on i386, x86_64, ia64.
42845         * tests/test-vasprintf-posix.c: Include float.h.
42846         (LDBL80_WORDS): New macro.
42847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42848         on i386, x86_64, ia64.
42849         * tests/test-snprintf-posix.c: Include float.h.
42850         * tests/test-sprintf-posix.c: Likewise.
42851         * tests/test-vsnprintf-posix.c: Likewise.
42852         * tests/test-vsprintf-posix.c: Likewise.
42853
42854 2007-06-05  Bruno Haible  <bruno@clisp.org>
42855
42856         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
42857         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
42858         non-IEEE numbers on i386, x86_64, ia64.
42859         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
42860         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
42861         * tests/test-isnanl.h: Include float.h.
42862         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
42863
42864 2007-06-05  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
42867         also the %a / %A. Handle the %a / %A code before this extra handling.
42868
42869 2007-06-05  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
42872         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
42873
42874 2007-06-05  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
42877         typo in variable name.
42878
42879 2007-06-05  Eric Blake  <ebb9@byu.net>
42880
42881         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
42882         Reported by Simon Josefsson.
42883
42884 2007-06-04  Bruno Haible  <bruno@clisp.org>
42885
42886         Avoid test failures on some PowerPC platforms.
42887         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
42888         Define differently for PowerPC.
42889         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
42890         Reported by Gary V. Vaughan <gary@gnu.org>.
42891
42892 2007-06-02  Bruno Haible  <bruno@clisp.org>
42893
42894         Fix test-stdint failure on FreeBSD/ia64.
42895         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
42896         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
42897         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
42898         * doc/headers/stdint.texi: Update.
42899
42900 2007-06-01  Bruno Haible  <bruno@clisp.org>
42901
42902         * tests/test-binary-io.c (main): Pass a third argument to open().
42903         Reported by Gary V. Vaughan <gary@gnu.org>.
42904
42905 2007-06-01  Bruno Haible  <bruno@clisp.org>
42906
42907         * doc/functions/frexpl.texi: Update for mingw.
42908
42909 2007-06-01  Bruno Haible  <bruno@clisp.org>
42910
42911         * tests/test-lseek.c (main): Disable test of errno for invalid third
42912         argument.
42913         * doc/functions/lseek.texi: Update.
42914         Reported by Gary V. Vaughan <gary@gnu.org>.
42915
42916 2007-05-28  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
42919
42920 2007-05-31  Eric Blake  <ebb9@byu.net>
42921
42922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
42923         cross compiling.
42924
42925 2007-05-30  Eric Blake  <ebb9@byu.net>
42926         and Bruno Haible  <bruno@clisp.org>
42927
42928         Work around mingw test failures exposed by m4-1.4.9b.
42929         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
42930         * tests/test-unistd.c: Disable uid_t and git_t tests for the
42931         moment.
42932
42933 2007-05-30  Bruno Haible  <bruno@clisp.org>
42934
42935         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
42936         assuming that they are closed. Needed on HP-UX 11.
42937
42938 2007-05-29  Bruno Haible  <bruno@clisp.org>
42939
42940         Fix a problem with #include_next.
42941         * lib/dirent_.h: Split the double-inclusion guard.
42942         * lib/fcntl_.h: Likewise.
42943         * lib/float_.h: Likewise.
42944         * lib/iconv_.h: Likewise.
42945         * lib/inttypes_.h: Likewise.
42946         * lib/locale_.h: Likewise.
42947         * lib/math_.h: Likewise.
42948         * lib/netinet_in_.h: Likewise.
42949         * lib/search_.h: Likewise.
42950         * lib/signal_.h: Likewise.
42951         * lib/stdint_.h: Likewise.
42952         * lib/stdio_.h: Likewise.
42953         * lib/stdlib_.h: Likewise.
42954         * lib/string_.h: Likewise.
42955         * lib/sys_select_.h: Likewise.
42956         * lib/sys_socket_.h: Likewise.
42957         * lib/sys_stat_.h: Likewise.
42958         * lib/sys_time_.h: Likewise.
42959         * lib/sysexits_.h: Likewise.
42960         * lib/time_.h: Likewise.
42961         * lib/unistd_.h: Likewise.
42962         * lib/wchar_.h: Likewise.
42963         * lib/wctype_.h: Likewise.
42964
42965 2007-05-29  Bruno Haible  <bruno@clisp.org>
42966
42967         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
42968         for the moment.
42969
42970 2007-05-29  Bruno Haible  <bruno@clisp.org>
42971
42972         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
42973         invocation.
42974         Reported by Eric Blake.
42975
42976 2007-05-29  Bruno Haible  <bruno@clisp.org>
42977
42978         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
42979         compiling case.
42980
42981 2007-05-29  Eric Blake  <ebb9@byu.net>
42982             Bruno Haible  <bruno@clisp.org>
42983
42984         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
42985         cross compiles.
42986
42987 2007-05-28  Eric Blake  <ebb9@byu.net>
42988
42989         * modules/closein-tests (test_closein_LDADD): Support test on
42990         cygwin with libtool.
42991
42992 2007-05-28  Bruno Haible  <bruno@clisp.org>
42993
42994         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
42995         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42996         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42997         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42998         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42999         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43000         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43001         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43002         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43003
43004 2007-05-28  Eric Blake  <ebb9@byu.net>
43005
43006         Unconditionally include <config.h> in unit tests.
43007         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43008         * tests/test-allocsa.c, tests/test-arcfour.c,
43009         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43010         tests/test-array_list.c, tests/test-array_oset.c,
43011         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43012         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43013         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43014         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43015         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43016         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43017         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43018         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43019         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43020         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43021         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43022         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43023         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43024         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43025         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43026         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43027         test-md5.c, test-memmem.c, test-printf-posix.c,
43028         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43029         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43030         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43031         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43032         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43033         test-vasnprintf-posix2.c, test-vasnprintf.c,
43034         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43035         test-vfprintf-posix.c, test-vprintf-posix.c,
43036         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43037         test-xvasprintf.c: Likewise.
43038
43039 2007-05-28  Bruno Haible  <bruno@clisp.org>
43040
43041         * gnulib-tool (func_import): Remember the --with-tests command-line
43042         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43043         Reported by Eric Blake.
43044
43045 2007-05-28  Bruno Haible  <bruno@clisp.org>
43046
43047         * modules/ftell-tests: New file.
43048         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43049         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43050
43051         * lib/ftell.c: New file.
43052         * modules/ftell: New file.
43053         * m4/ftell.m4: New file.
43054         * doc/functions/ftell.texi: Update.
43055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43056         REPLACE_FTELL.
43057         * lib/stdio_.h (rpl_ftell): New declaration.
43058         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43059         REPLACE_FTELL.
43060
43061 2007-05-28  Eric Blake  <ebb9@byu.net>
43062
43063         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43064
43065 2007-05-28  Bruno Haible  <bruno@clisp.org>
43066
43067         * modules/fseek-tests: New file.
43068         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43069         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43070
43071         * lib/fseek.c: New file.
43072         * modules/fseek: New file.
43073         * m4/fseek.m4: New file.
43074         * doc/functions/fseek.texi: Update.
43075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43076         REPLACE_FSEEK.
43077         * lib/stdio_.h (rpl_fseek): New declaration.
43078         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43079         REPLACE_FSEEK.
43080
43081 2007-05-28  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/stdio_.h (fflush): More comments.
43084
43085 2007-05-28  Bruno Haible  <bruno@clisp.org>
43086
43087         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43088         runtime test.
43089
43090 2007-05-28  Eric Blake  <ebb9@byu.net>
43091
43092         Improve lseek module.
43093         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43094         * lib/unistd_.h (lseek): Scale back link warning message.
43095         * tests/test-lseek.c: Beef up test.
43096         * tests/test-lseek.sh: Exercise more facets of lseek.
43097         Reported by Bruno Haible.
43098
43099 2007-05-28  Bruno Haible  <bruno@clisp.org>
43100
43101         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43102         to define.
43103
43104 2007-05-27  Bruno Haible  <bruno@clisp.org>
43105
43106         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43107
43108 2007-05-27  Bruno Haible  <bruno@clisp.org>
43109
43110         * modules/openmp: New file.
43111         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43112         Noah Misch.
43113
43114 2007-05-26  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/chdir-long (Depends-on): Add fchdir.
43117         * modules/chdir-safer (Depends-on): Likewise.
43118         * modules/fts (Depends-on): Likewise.
43119         * modules/fts-lgpl (Depends-on): Likewise.
43120         * modules/openat (Depends-on): Likewise.
43121         * modules/savewd (Depends-on): Likewise.
43122
43123 2007-05-24  Eric Blake  <ebb9@byu.net>
43124
43125         Fix lseek on mingw.
43126         * modules/lseek: New module.
43127         * m4/lseek.m4: New file.
43128         * lib/lseek.c: New file.
43129         * modules/lseek-tests: New file.
43130         * tests/test-lseek.c: New file.
43131         * tests/test-lseek.sh: New file.
43132         * MODULES.html.sh: Document lseek module.
43133         * modules/fflush (Depends-on): Add lseek, fseeko.
43134         * modules/fseeko (Depends-on): Likewise.
43135         * modules/ftello (Depends-on): Likewise.
43136         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43137         broken.
43138         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43139         broken.
43140         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43141         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43142         * lib/ftello.c (rpl_ftello): Likewise.
43143         * tests/test-fseeko.c (main): Test this.
43144         * tests/test-fseeko.sh: Likewise.
43145         * tests/test-ftello.c (main): Likewise.
43146         * tests/test-ftello.sh: Likewise.
43147         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43148         implies replacing fseek.
43149         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43150         HAVE_FTELLO.
43151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43152         * modules/unistd (Makefile.am): Likewise.
43153         * lib/unistd_.h (lseek): Declare a replacement.
43154         * doc/functions/lseek.texi (lseek): Document this fix.
43155         * doc/functions/fseek.texi (fseek): Likewise.
43156         * doc/functions/ftell.texi (ftell): Likewise.
43157
43158 2007-05-24  Bruno Haible  <bruno@clisp.org>
43159
43160         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43161         in the printed representation of a NaN.
43162         * tests/test-vasprintf-posix.c (test_function): Likewise.
43163         * tests/test-snprintf-posix.h (test_function): Likewise.
43164         * tests/test-sprintf-posix.h (test_function): Likewise.
43165         Reported by Eric Blake.
43166
43167 2007-05-23  Eric Blake  <ebb9@byu.net>
43168
43169         Fix fseeko/ftello on cygwin 1.5.24.
43170         * doc/functions/fseeko.texi (fseeko): Document the fix.
43171         * doc/functions/ftello.texi (ftello): Document the fix.
43172         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43173         * doc/functions/stdout.text (stdout): New file.
43174         * doc/functions/stderr.text (stderr): New file.
43175         * doc/gnulib.texi (Function Substitutes): Use new files.
43176         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43177         prior to 1.7.0.
43178         * tests/test-ftello.c (main): Likewise for ftello.
43179         * tests/test-fseeko.sh: New file.
43180         * tests/test-ftello.sh: New file.
43181         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43182         with seekable stdin.
43183         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43184         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43185         (gl_REPLACE_FSEEKO): New macro.
43186         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43187         * modules/fseeko (Files): Distribute fseeko.c.
43188         * modules/ftello (Files): Distribute ftello.c.
43189         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43190         mode.
43191         * lib/ftello.c (rpl_ftello): New file.
43192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43193         fseeko, ftello.
43194         (gl_STDIN_LARGE_OFFSET): New macro.
43195         * modules/stdio (Makefile.am): Perform the replacement.
43196         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43197
43198 2007-05-23  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43201         GNULIB_POSIXCHECK is defined.
43202
43203 2007-05-21  Bruno Haible  <bruno@clisp.org>
43204
43205         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43206         Check also the output for NaN arguments. When cross-compiling, guess
43207         no on IRIX.
43208         * lib/vasnprintf.c: Update comments.
43209         * tests/test-vasnprintf-posix.c (strisnan): New function.
43210         (test_function): Use it.
43211         * tests/test-vasprintf-posix.c (strisnan): New function.
43212         (test_function): Use it.
43213         * tests/test-snprintf-posix.h (strisnan): New function.
43214         (test_function): Use it.
43215         * tests/test-sprintf-posix.h (strisnan): New function.
43216         (test_function): Use it.
43217         Reported by Eric Blake.
43218
43219 2007-05-20  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43222         numbers that fails on BeOS.
43223         * doc/functions/frexpl.texi: Update.
43224
43225 2007-05-20  Jim Meyering  <jim@meyering.net>
43226
43227         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43228         forced upon us by glibc-2.6.
43229
43230 2007-05-20  Bruno Haible  <bruno@clisp.org>
43231
43232         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43233         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43234         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43235         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43236         NEED_PRINTF_INFINITE.
43237         (is_infinitel): New function.
43238         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43240         gl_PREREQ_VASNPRINTF_INFINITE.
43241         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43243         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43244         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43245         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43246         gl_PREREQ_VASNPRINTF_INFINITE.
43247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43254         * doc/functions/fprintf.texi: Update.
43255         * doc/functions/printf.texi: Update.
43256         * doc/functions/snprintf.texi: Update.
43257         * doc/functions/sprintf.texi: Update.
43258         * doc/functions/vfprintf.texi: Update.
43259         * doc/functions/vprintf.texi: Update.
43260         * doc/functions/vsnprintf.texi: Update.
43261         * doc/functions/vsprintf.texi: Update.
43262
43263 2007-05-20  Bruno Haible  <bruno@clisp.org>
43264
43265         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43266         was not found in libc.
43267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43268
43269 2007-05-20  Bruno Haible  <bruno@clisp.org>
43270
43271         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43272         printed as "-nan" instead of "nan".
43273         * tests/test-vasprintf-posix.c (test_function): Likewise.
43274         * tests/test-snprintf-posix.h (test_function): Likewise.
43275         * tests/test-sprintf-posix.h (test_function): Likewise.
43276         Needed for HP-UX 11.
43277
43278 2007-05-20  Jim Meyering  <jim@meyering.net>
43279
43280         Fix buggy test for the fchownat-deref bug.
43281         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43282         symlink required for the run-test.  Without it, this test would
43283         always declare that fchownat doesn't work, and client code would
43284         unnecessarily use the replacement function with fixed libc.
43285         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43286         Reported by Greg Schafer.
43287
43288 2007-05-19  Bruno Haible  <bruno@clisp.org>
43289
43290         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43291         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43292         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43293         Needed for IRIX 6.5 and Solaris 2.5.1.
43294
43295 2007-05-19  Bruno Haible  <bruno@clisp.org>
43296
43297         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43298         (test_function): Skip tests involving -0.0 on platforms where
43299         -0.0 = 0.0.
43300         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43301         (test_function): Skip tests involving -0.0 on platforms where
43302         -0.0 = 0.0.
43303         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43304         (test_function): Skip tests involving -0.0 on platforms where
43305         -0.0 = 0.0.
43306         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43307         (test_function): Skip tests involving -0.0 on platforms where
43308         -0.0 = 0.0.
43309         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43310         tests.
43311         * tests/test-printf-posix.h (test_function): Likewise.
43312         * tests/test-printf-posix.output: Remove all -0.0 related results.
43313         Needed for IRIX 6.5.
43314
43315 2007-05-19  Bruno Haible  <bruno@clisp.org>
43316
43317         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43318         printed as "nan0x7fffffff" instead of "nan".
43319         * tests/test-vasprintf-posix.c (test_function): Likewise.
43320         * tests/test-snprintf-posix.h (test_function): Likewise.
43321         * tests/test-sprintf-posix.h (test_function): Likewise.
43322         * tests/test-fprintf-posix.h (NaN): Remove macro.
43323         (test_function): Remove all NaN related tests.
43324         * tests/test-printf-posix.h (NaN): Remove macro.
43325         (test_function): Remove all NaN related tests.
43326         * tests/test-printf-posix.output: Remove all NaN related results.
43327         Needed for IRIX 6.5.
43328
43329 2007-05-19  Bruno Haible  <bruno@clisp.org>
43330
43331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43333
43334 2007-05-19  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/float_.h: New file.
43337         * m4/float_h.m4: New file.
43338         * modules/float: New file.
43339         * modules/isnanl (Dependencies): Add float.
43340         * modules/isnanl-nolibm (Dependencies): Likewise.
43341         * modules/mathl (Dependencies): Likewise.
43342         * modules/printf-frexpl (Dependencies): Likewise.
43343         * modules/signbit (Dependencies): Likewise.
43344         * modules/vasnprintf (Dependencies): Likewise.
43345         * doc/headers/float.texi: Update.
43346
43347 2007-05-19  Jim Meyering  <jim@meyering.net>
43348
43349         * lib/utimens.c (gl_futimens): Rename from futimens,
43350         now that glibc-2.6 declares futimens.
43351         * lib/utimens.h: Likewise.
43352
43353 2007-05-19  Bruno Haible  <bruno@clisp.org>
43354
43355         Avoid test failures on mingw.
43356         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43357         * tests/test-printf-posix.sh: Likewise.
43358         * tests/test-vfprintf-posix.sh: Likewise.
43359         * tests/test-vprintf-posix.sh: Likewise.
43360
43361 2007-05-19  Bruno Haible  <bruno@clisp.org>
43362
43363         Fix *printf result for NaN, Inf, -0.0 on mingw.
43364         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43365         * lib/vasnprintf.c: Include math.h and isnan.h.
43366         (is_infinite_or_zero): New function.
43367         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43368         values in the %f, %F, %e, %E, %g, %G directives.
43369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43371         gl_PRINTF_INFINITE and test its result. Invoke
43372         gl_PREREQ_VASNPRINTF_INFINITE.
43373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43380         * doc/functions/fprintf.texi: Update.
43381         * doc/functions/printf.texi: Update.
43382         * doc/functions/snprintf.texi: Update.
43383         * doc/functions/sprintf.texi: Update.
43384         * doc/functions/vfprintf.texi: Update.
43385         * doc/functions/vprintf.texi: Update.
43386         * doc/functions/vsnprintf.texi: Update.
43387         * doc/functions/vsprintf.texi: Update.
43388
43389 2007-05-19  Bruno Haible  <bruno@clisp.org>
43390
43391         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43392         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43393         Instead of multiplying with 10^k, set extra_zeroes to k.
43394         (scale10_round_long_double): Remove function.
43395
43396 2007-05-18  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43399         introduced on 2007-05-06.
43400
43401 2007-05-18  Bruno Haible  <bruno@clisp.org>
43402
43403         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43404         %g directives.
43405         * tests/test-vasprintf-posix.c (test_function): Likewise.
43406         * tests/test-snprintf-posix.h (test_function): Likewise.
43407         * tests/test-sprintf-posix.h (test_function): Likewise.
43408
43409 2007-05-18  Bruno Haible  <bruno@clisp.org>
43410
43411         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43412         (strmatch): New function.
43413         (test_function): Test the %f directive on numbers of various exponents.
43414         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43415         (strmatch): New function.
43416         (test_function): Test the %f directive on numbers of various exponents.
43417         * tests/test-snprintf-posix.h (strmatch): New function.
43418         (test_function): Test the %f directive on numbers of various exponents.
43419         * tests/test-sprintf-posix.h (strmatch): New function.
43420         (test_function): Test the %f directive on numbers of various exponents.
43421         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43422         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43423         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43424         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43425
43426 2007-05-18  Bruno Haible  <bruno@clisp.org>
43427
43428         Add support for 'long double' number output.
43429         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43430         * lib/vasnprintf.c: Include math.h and float+.h.
43431         (mp_limb_t): New type.
43432         (GMP_LIMB_BITS): New macro.
43433         (mp_twolimb_t): New type.
43434         (GMP_TWOLIMB_BITS): New macro.
43435         (mpn_t): New type.
43436         (multiply, divide, convert_to_decimal, decode_long_double,
43437         scale10_round_long_double, scale10_round_decimal_long_double,
43438         floorlog10l): New functions.
43439         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43440         for the %f, %F, %e, %E, %g, %G directives.
43441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43443         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43444         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43452         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43453         * modules/snprintf-posix (Depends-on): Likewise.
43454         * modules/sprintf-posix (Depends-on): Likewise.
43455         * modules/vasnprintf-posix (Depends-on): Likewise.
43456         * modules/vasprintf-posix (Depends-on): Likewise.
43457         * modules/vfprintf-posix (Depends-on): Likewise.
43458         * modules/vsnprintf-posix (Depends-on): Likewise.
43459         * modules/vsprintf-posix (Depends-on): Likewise.
43460         * modules/vasnprintf (Files): Add lib/float+.h.
43461         * doc/functions/fprintf.texi: Update.
43462         * doc/functions/printf.texi: Update.
43463         * doc/functions/snprintf.texi: Update.
43464         * doc/functions/sprintf.texi: Update.
43465         * doc/functions/vfprintf.texi: Update.
43466         * doc/functions/vprintf.texi: Update.
43467         * doc/functions/vsnprintf.texi: Update.
43468         * doc/functions/vsprintf.texi: Update.
43469
43470 2007-05-18  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
43473
43474 2007-05-18  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
43477         for printing 64-bit integers. Needed for mingw.
43478
43479 2007-05-18  Bruno Haible  <bruno@clisp.org>
43480
43481         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43482         gl_FUNC_FREXPL_WORKS.
43483         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
43484
43485 2007-05-18  Bruno Haible  <bruno@clisp.org>
43486
43487         * modules/frexpl-nolibm-tests: New file.
43488
43489         * modules/frexpl-nolibm: New file.
43490         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
43491
43492 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43493
43494         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
43495         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43496         GCC 4.2, which otherwise issues a lot of warnings.
43497         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
43498         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
43499         Likewise.
43500         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
43501         * modules/iconv_open (iconv.h): Likewise.
43502         * modules/locale (locale.h): Likewise.
43503         * modules/netinet_in (netinet/in.h): Likewise.
43504         * modules/sys_select (sys_select.h): Likewise.
43505         * modules/sys_socket (sys/socket.h): Likewise.
43506         * modules/sys_stat (sys/stat.h): Likewise.
43507         * modules/sysexits (sysexits.h): Likewise.
43508         * modules/unistd (unistd.h): Likewise.
43509
43510 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43511
43512         * modules/closein-tests (Makefile.am): Distribute
43513         `test-closein.sh'.
43514
43515 2007-05-17  Bruno Haible  <bruno@clisp.org>
43516
43517         * tests/test-printf-posix.output: Renamed from
43518         tests/test-fprintf-posix.out.
43519         * modules/fprintf-posix-tests: Update.
43520         * modules/printf-posix-tests: Update.
43521         * modules/vfprintf-posix-tests: Update.
43522         * modules/vprintf-posix-tests: Update.
43523         * tests/test-fprintf-posix.sh: Update.
43524         * tests/test-printf-posix.sh: Update.
43525         * tests/test-vfprintf-posix.sh: Update.
43526         * tests/test-vprintf-posix.sh: Update.
43527         Reported by Ralf Wildenhues.
43528
43529 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43530
43531         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
43532         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43533         GCC 4.2, which otherwise issues a lot of warnings.
43534         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
43535         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
43536         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
43537         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
43538         it should no longer be needed.
43539         * lib/string_.h: Likewise.
43540         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
43541         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
43542         * modules/inttypes (inttypes.h): Likewise.
43543         * modules/math (math.h): Likewise.
43544         * modules/search (search.h): Likewise.
43545         * modules/signal (signal.h): Likewise.
43546         * modules/stdint (stdint.h): Likewise.
43547         * modules/stdio (stdio.h): Likewise.
43548         * modules/stdlib (stdlib.h): Likewise.
43549         * modules/string (string.h): Likewise.
43550         * modules/sys_time (sys/time.h): Likewise.
43551         * modules/time (time.h): Likewise.
43552         * modules/wchar (wchar.h): Likewise.
43553         * modules/wctype (wtype.h): Likewise.
43554
43555 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43556
43557         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
43558
43559 2007-05-13  Bruno Haible  <bruno@clisp.org>
43560
43561         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
43562         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43563         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
43564         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43565         (gl_PREREQ_STRTOK_R): Don't require it here.
43566
43567 2007-05-13  Bruno Haible  <bruno@clisp.org>
43568
43569         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
43570         when used in C++ mode.
43571
43572 2007-05-12  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/linebuffer.h: Tweak doc.
43575         * lib/linebuffer.c: Likewise.
43576
43577 2007-05-12  James Youngman  <jay@gnu.org>
43578
43579         * lib/linebuffer.c (readlinebuffer_delim): New function,
43580         like readlinebuffer, but use a caller-specified delimiter.
43581         (readlinebuffer): Just call readlinebuffer_delim with '\n'
43582         as the delimiter.
43583         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
43584
43585 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43586
43587         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
43588         * modules/openat (Files): Remove openat-die.c.
43589         (Depends-on): Add openat-die.
43590         * modules/openat-die: New module.
43591
43592 2007-05-06  Bruno Haible  <bruno@clisp.org>
43593
43594         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
43595         Update with info about Cygwin.
43596         * doc/functions/fprintf.texi: Update.
43597         * doc/functions/printf.texi: Update.
43598         * doc/functions/snprintf.texi: Update.
43599         * doc/functions/sprintf.texi: Update.
43600         * doc/functions/vfprintf.texi: Update.
43601         * doc/functions/vprintf.texi: Update.
43602         * doc/functions/vsnprintf.texi: Update.
43603         * doc/functions/vsprintf.texi: Update.
43604         Reported by Eric Blake.
43605
43606 2007-05-06  Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
43609         padding ourselves for the floating-point directives.
43610         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
43611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
43612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43613         gl_PRINTF_FLAG_ZERO and test its result. Invoke
43614         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
43615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43622         * tests/test-snprintf-posix.h (test_function): Also check the width
43623         and some flags in the %f directive.
43624         * tests/test-sprintf-posix.h (test_function): Likewise.
43625         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43626         * tests/test-vasprintf-posix.c (test_function): Likewise.
43627         * doc/functions/fprintf.texi: Update.
43628         * doc/functions/printf.texi: Update.
43629         * doc/functions/snprintf.texi: Update.
43630         * doc/functions/sprintf.texi: Update.
43631         * doc/functions/vfprintf.texi: Update.
43632         * doc/functions/vprintf.texi: Update.
43633         * doc/functions/vsnprintf.texi: Update.
43634         * doc/functions/vsprintf.texi: Update.
43635
43636 2007-05-06  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
43639         pass the ' flag character to sprintf or snprintf.
43640         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
43641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
43642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43643         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
43644         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
43645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43652         * tests/test-snprintf-posix.h (test_function): Also check the grouping
43653         flag.
43654         * tests/test-sprintf-posix.h (test_function): Likewise.
43655         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43656         * tests/test-vasprintf-posix.c (test_function): Likewise.
43657         * doc/functions/fprintf.texi: Update.
43658         * doc/functions/printf.texi: Update.
43659         * doc/functions/snprintf.texi: Update.
43660         * doc/functions/sprintf.texi: Update.
43661         * doc/functions/vfprintf.texi: Update.
43662         * doc/functions/vprintf.texi: Update.
43663         * doc/functions/vsnprintf.texi: Update.
43664         * doc/functions/vsprintf.texi: Update.
43665
43666 2007-05-01  Bruno Haible  <bruno@clisp.org>
43667
43668         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
43669
43670 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
43671
43672         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
43673         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
43674
43675 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43676
43677         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
43678         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
43679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
43680
43681 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
43682
43683         * lib/argp-help.c (struct hol_entry): New member `ord'.
43684         (HOL_ENTRY_PTRCMP): Use ord for comparison
43685         (hol_sort): Initialize ord.
43686
43687 2007-05-01  Bruno Haible  <bruno@clisp.org>
43688
43689         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
43690         Reported by Eric Blake.
43691         * doc/gnulib.texi (Function Substitutes): Update.
43692
43693 2007-05-01  Bruno Haible  <bruno@clisp.org>
43694
43695         * doc/functions.texi: Remove file, now redundant through
43696         doc/functions/*.texi.
43697
43698 2007-05-01  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/argp (Depends-on): Add sleep.
43701
43702 2007-05-01  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/sleep-tests: New file.
43705         * tests/test-sleep.c: New file.
43706
43707         * modules/sleep: New file.
43708         * lib/sleep.c: New file.
43709         * m4/sleep.m4: New file.
43710         * lib/unistd_.h (sleep): New declaration.
43711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
43712         HAVE_SLEEP.
43713         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
43714         * doc/functions/sleep.texi: Document the sleep module.
43715
43716 2007-05-01  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/sigprocmask.h: Remove file.
43719         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
43720         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
43721         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
43722         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
43723         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
43724         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
43725         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
43726         HAVE_SIGSET_T as a shell variable.
43727         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
43728         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
43729         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
43730         (Depends-on): Add signal. Remove verify.
43731         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
43732         (Include): Mention <signal.h> instead of sigprocmask.h.
43733         * NEWS: Mention the change.
43734         * lib/fatal-signal.c: Don't include sigprocmask.h.
43735
43736 2007-05-01  Bruno Haible  <bruno@clisp.org>
43737
43738         * modules/signal: New file.
43739         * lib/signal_.h: New file.
43740         * m4/signal_h.m4: New file.
43741
43742 2007-05-01  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
43745         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
43746         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
43747         HAVE_WCTYPE_CTMP_BUG into wctype.h.
43748
43749 2007-05-01  Bruno Haible  <bruno@clisp.org>
43750
43751         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
43752         configure time.
43753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
43754         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
43755         * modules/sys_stat (Makefile.am): Substitute their values into
43756         sys/stat.h.
43757
43758 2007-05-01  Bruno Haible  <bruno@clisp.org>
43759
43760         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
43761         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
43762         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
43763
43764 2007-05-01  Bruno Haible  <bruno@clisp.org>
43765
43766         * doc/header/assert.texi: Undo last change: don't mention the gnulib
43767         'assert' module here.
43768
43769 2007-05-01  Bruno Haible  <bruno@clisp.org>
43770
43771         * doc/functions/*.texi: New files.
43772         * doc/functions/google-ranking.txt: New file.
43773         * doc/gnulib.texi (Function Substitutes): New chapter.
43774         (ctime, inet_ntoa): Remove sections.
43775         * doc/ctime.texi: Remove file.
43776         * doc/inet_ntoa.texi: Remove file.
43777         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
43778         dependencies.
43779         (%.info): New rule, specifying a --reference-limit.
43780
43781 2007-05-01  Bruno Haible  <bruno@clisp.org>
43782
43783         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
43784
43785 2007-05-01  Bruno Haible  <bruno@clisp.org>
43786
43787         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
43788         the portability of 'mkdir' to mingw systems.
43789
43790 2007-05-01  Bruno Haible  <bruno@clisp.org>
43791
43792         * doc/headers/google-ranking.txt: New file.
43793
43794 2007-04-30  Eric Blake  <ebb9@byu.net>
43795
43796         Prefer fseeko to fseek.
43797         * modules/getpass (Depends-on): Add fseeko.
43798         * lib/getpass.c (getpass): Use fseeko, not fseek.
43799
43800 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
43801
43802         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
43803         assumes the sorting is stable, while most qsort implementations
43804         are not.  Use argument addresses to ensure they never compare as
43805         equal.
43806
43807         * tests/test-argp-2.sh (usage-indent test): Fix output
43808         (func_compare): Restore diff options
43809         * tests/test-argp.c: Restore #include "progname.h"
43810
43811 2007-04-29  Bruno Haible  <bruno@clisp.org>
43812
43813         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
43814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43815         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
43816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43817         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
43818         (configure.ac): Define CHECK_SNPRINTF_POSIX.
43819         (TESTS, check_PROGRAMS): Add test-snprintf.
43820         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
43821         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
43822         (TESTS, check_PROGRAMS): Add test-vsnprintf.
43823         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
43824         assertions that fail on HP-UX, OSF/1, or IRIX.
43825         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
43826
43827 2007-04-29  Bruno Haible  <bruno@clisp.org>
43828
43829         * MODULES.html.sh (posix_functions): Remove 'contents'.
43830
43831 2007-04-29  Karl Berry  <karl@gnu.org>
43832
43833         * config/srclist.txt (gendocs_template_min): new entry.
43834
43835 2007-04-29  Bruno Haible  <bruno@clisp.org>
43836
43837         Work around fpurge bug on BSD systems.
43838         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
43839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
43840         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
43841         fpurge to rpl_fpurge if the system already has this function.
43842         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
43843         the case where the system already has this function. Correct invariants
43844         on BSD systems.
43845         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
43846         BSD systems.
43847
43848 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43849
43850         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
43851         proposed by Sven Verdoolaege.
43852
43853         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
43854         options.
43855         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
43856         (usage and help tests): Update
43857
43858 2007-04-29  Bruno Haible  <bruno@clisp.org>
43859
43860         * tests/test-fflush.c (main): Use a file of size 17, not 10.
43861         Print more information in case of failure. Disable a test on BeOS.
43862
43863 2007-04-29  Bruno Haible  <bruno@clisp.org>
43864
43865         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
43866         This helps debugging on systems on which no gdb is available.
43867
43868 2007-04-29  Bruno Haible  <bruno@clisp.org>
43869
43870         * lib/freading.h: Improve comments.
43871         * lib/fwriting.h: Likewise.
43872         * tests/test-freading.c (main): Don't check freading immediately after
43873         repositioning. Needed for glibc.
43874
43875 2007-04-29  Bruno Haible  <bruno@clisp.org>
43876
43877         * lib/freading.c (freading): Trivial simplification.
43878
43879 2007-04-28  Bruno Haible  <bruno@clisp.org>
43880
43881         * tests/test-fwriting.c (main): Also test the interaction between
43882         fflush and fwriting.
43883         * modules/fwriting-tests (Depends-on): Add fflush.
43884
43885         * tests/test-freading.c (main): Also test the interaction between
43886         fflush and freading.
43887         * modules/freading-tests (Depends-on): Add fflush.
43888
43889 2007-04-28  Bruno Haible  <bruno@clisp.org>
43890
43891         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
43892         fseeko and ftello.
43893         Suggested by Eric Blake.
43894
43895 2007-04-28  Jim Meyering  <jim@meyering.net>
43896
43897         Avoid false-negative in gl_STDINT_H's C99 conformance test.
43898         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
43899         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
43900
43901 2007-04-27  Eric Blake  <ebb9@byu.net>
43902
43903         * doc/headers/assert.texi (assert.h): Document assert module use.
43904
43905 2007-04-27  Bruno Haible  <bruno@clisp.org>
43906
43907         * doc/headers/*.texi: New files.
43908         * doc/gnulib.texi (Header File Substitutes): New chapter.
43909         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
43910         dependencies.
43911         (standards.info ,standards.html, standards.dvi): Update dependencies.
43912         (mostlyclean, clean): New targets.
43913
43914 2007-04-27  Bruno Haible  <bruno@clisp.org>
43915
43916         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
43917         * modules/sysexits (Files, Makefile.am): Update.
43918
43919         * lib/sys_socket_.h: Renamed from lib/socket_.h.
43920         * modules/sys_socket (Files, Makefile.am): Update.
43921
43922         * lib/sys_stat_.h: Renamed from lib/stat_.h.
43923         * modules/sys_stat (Files, Makefile.am): Update.
43924
43925 2007-04-27  Eric Blake  <ebb9@byu.net>
43926
43927         * lib/freading.h: Improve comments.
43928         * lib/fwriting.h: Likewise.
43929         * lib/fflush.c: Likewise.
43930
43931         Fix closein for mingw.
43932         * modules/closein-tests: Add tests for closein.
43933         * tests/test-closein.c: New file.
43934         * tests/test-closein.sh: Likewise.
43935         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
43936         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
43937
43938 2007-04-27  Bruno Haible  <bruno@clisp.org>
43939
43940         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
43941         version is < 6.
43942         * lib/math_.h [__DECC]: Likewise.
43943         * lib/stdio_.h [__DECC]: Likewise.
43944         * lib/stdlib_.h [__DECC]: Likewise.
43945         * lib/string_.h [__DECC]: Likewise.
43946         * lib/time_.h [__DECC]: Likewise.
43947         * lib/wchar_.h [__DECC]: Likewise.
43948         * lib/wctype_.h [__DECC]: Likewise.
43949
43950 2007-04-27  Bruno Haible  <bruno@clisp.org>
43951
43952         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
43953
43954 2007-04-27  Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/fflush.c: Add comments.
43957         * modules/fpurge-tests (Depends-on): Add fflush.
43958         * modules/freadable-tests (Depends-on): Likewise.
43959         * modules/fwritable-tests (Depends-on): Likewise.
43960
43961 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
43962
43963         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
43964         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
43965         Report by Bruno Haible <bruno@clisp.org>.
43966
43967 2007-04-26  Eric Blake  <ebb9@byu.net>
43968
43969         Fix fflush on mingw.
43970         * modules/fflush (Depends-on): Add freading.
43971         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
43972         but unread data.
43973
43974 2007-04-26  Eric Blake  <ebb9@byu.net>
43975         and Bruno Haible  <bruno@clisp.org>
43976
43977         Implement freading and fwriting.
43978         * lib/freading.c: New file.
43979         * lib/freading.h: Likewise.
43980         * m4/freading.m4: Likewise.
43981         * modules/freading: Likewise.
43982         * modules/freading-tests: Likewise.
43983         * tests/test-freading.c: Likewise.
43984         * lib/fwriting.c: New file.
43985         * lib/fwriting.h: Likewise.
43986         * m4/fwriting.m4: Likewise.
43987         * modules/fwriting: Likewise.
43988         * modules/fwriting-tests: Likewise.
43989         * tests/test-fwriting.c: Likewise.
43990         * MODULES.html.sh (File stream based Input/Output): Mention them.
43991
43992 2007-04-26  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
43995         'long' when we assume it.
43996         Suggested by Eric Blake.
43997
43998 2007-04-26  Bruno Haible  <bruno@clisp.org>
43999
44000         Ensure fseeko, ftello are declared on glibc systems.
44001         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44002         * modules/fseeko (configure.ac-early): Likewise.
44003         * modules/ftello (configure.ac-early): Likewise.
44004         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44005         AC_FUNC_FSEEKO for this.
44006         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44007         (gl_CHECK_FSEEKO): Remove macro.
44008
44009 2007-04-26  Bruno Haible  <bruno@clisp.org>
44010
44011         * tests/test-fflush.c (main): Also check the ftell result after
44012         fflush and fseek/fseeko.
44013         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44014         file descriptor position cache in the stream.
44015         * lib/fseeko.c (rpl_fseeko): Likewise.
44016
44017 2007-04-26  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/fflush-tests (Depends-on): Add fseeko.
44020
44021 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44022             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44023
44024         * lib/argz_.h: ensure error_t definition is obtained in same
44025         mechanism system argz.h would have.
44026         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44027         argz facilities are known bad.  Err on the side of caution if
44028         cross-compiling.
44029
44030 2007-04-25  Eric Blake  <ebb9@byu.net>
44031
44032         * lib/fpurge.c (includes): Use stdlib.h for free.
44033         * tests/test-fflush.c (main): Also test fflush-fseeko.
44034
44035 2007-04-25  Bruno Haible  <bruno@clisp.org>
44036
44037         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44038         * lib/fseeko.c: New file.
44039         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44040         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44041         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44042         gl_FUNC_FSEEKO.
44043         (gl_FUNC_FSEEKO): Invoke it.
44044         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44045         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44046         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44047
44048 2007-04-25  Bruno Haible  <bruno@clisp.org>
44049
44050         * modules/fflush (Depends-on): Add ftello.
44051
44052 2007-04-25  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/ftello-tests: New file.
44055         * tests/test-ftello.c: New file.
44056
44057         * modules/ftello: New file.
44058         * m4/ftello.m4: New file.
44059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44060         HAVE_FTELLO.
44061         * lib/stdio_.h (ftello): New declaration.
44062         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44063         HAVE_FTELLO.
44064
44065 2007-04-25  Bruno Haible  <bruno@clisp.org>
44066
44067         * modules/fseeko-tests: New file.
44068         * tests/test-fseeko.c: New file.
44069
44070         * modules/fseeko: New file.
44071         * m4/fseeko.m4: New file.
44072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44073         HAVE_FSEEKO.
44074         * lib/stdio_.h (fseeko): New declaration.
44075         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44076         HAVE_FSEEKO.
44077
44078 2007-04-25  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44081
44082 2007-04-25  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44085         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44086         * tests/test-unistd.c: Likewise.
44087         * tests/test-fcntl.c: Likewise.
44088
44089 2007-04-23  Eric Blake  <ebb9@byu.net>
44090
44091         * lib/fflush.c: Fix missing include.
44092         Reported by Bruno Haible.
44093
44094 2007-04-23  Bruno Haible  <bruno@clisp.org>
44095
44096         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44097         Reported by Eric Blake.
44098
44099 2007-04-23  Bruno Haible  <bruno@clisp.org>
44100
44101         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44102
44103 2007-04-23  Bruno Haible  <bruno@clisp.org>
44104
44105         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44106
44107 2007-04-23  Bruno Haible  <bruno@clisp.org>
44108
44109         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44110         Needed on HP-UX 11.
44111
44112 2007-04-16  Eric Blake  <ebb9@byu.net>
44113
44114         Make fflush rely on fpurge.
44115         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44116         open coding all variants.
44117         * modules/fflush (Depends-on): Add fpurge and unistd.
44118         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44119         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44120
44121         Fix --with-tests compilation on cygwin.
44122         * modules/argmatch-tests (Makefile.am): List gnulib library first
44123         in LDADD.
44124         * modules/argp-tests (Makefile.am): Likewise.
44125         * modules/array-list-tests (Makefile.am): Likewise.
44126         * modules/array-oset-tests (Makefile.am): Likewise.
44127         * modules/avltree-list-tests (Makefile.am): Likewise.
44128         * modules/avltree-oset-tests (Makefile.am): Likewise.
44129         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44130         * modules/carray-list-tests (Makefile.am): Likewise.
44131         * modules/dirname-tests (Makefile.am): Likewise.
44132         * modules/frexp-tests (Makefile.am): Likewise.
44133         * modules/isnanl-tests (Makefile.am): Likewise.
44134         * modules/linked-list-tests (Makefile.am): Likewise.
44135         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44136         * modules/lock-tests (Makefile.am): Likewise.
44137         * modules/rbtree-list-tests (Makefile.am): Likewise.
44138         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44139         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44140         * modules/tls-tests (Makefile.am): Likewise.
44141         * modules/tsearch-tests (Makefile.am): Likewise.
44142         * modules/xvasprintf-tests (Makefile.am): Likewise.
44143
44144         Fix fpurge for cygwin.
44145         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44146         value.
44147         * modules/fpurge-tests (Depends-on): Clean up trash.
44148
44149 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44150
44151         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44152
44153         * m4/autobuild.m4: Re-indent.
44154
44155 2007-04-13  Bruno Haible  <bruno@clisp.org>
44156
44157         * modules/fpurge-tests: New file.
44158         * tests/test-fpurge.c: New file.
44159
44160         * modules/fpurge: New file.
44161         * lib/fpurge.h: New file.
44162         * lib/fpurge.c: New file.
44163         * m4/fpurge.m4: New file.
44164
44165 2007-04-13  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/fbufmode-tests: New file.
44168         * tests/test-fbufmode.c: New file.
44169
44170         * modules/fbufmode: New file.
44171         * lib/fbufmode.h: New file.
44172         * lib/fbufmode.c: New file.
44173         * m4/fbufmode.m4: New file.
44174
44175 2007-04-13  Bruno Haible  <bruno@clisp.org>
44176
44177         * modules/fwritable-tests: New file.
44178         * tests/test-fwritable.c: New file.
44179
44180         * modules/fwritable: New file.
44181         * lib/fwritable.h: New file.
44182         * lib/fwritable.c: New file.
44183         * m4/fwritable.m4: New file.
44184
44185 2007-04-13  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/freadable-tests: New file.
44188         * tests/test-freadable.c: New file.
44189
44190         * modules/freadable: New file.
44191         * lib/freadable.h: New file.
44192         * lib/freadable.c: New file.
44193         * m4/freadable.m4: New file.
44194
44195 2007-04-13  Bruno Haible  <bruno@clisp.org>
44196
44197         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44198         MOSTLYCLEANFILES.
44199
44200 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44201
44202         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44203         gzip bootstrap.conf to avoid dragging in i18n machinery.
44204         (gnulib_tool_option): Use it.
44205
44206 2007-04-13  Bruno Haible  <bruno@clisp.org>
44207
44208         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44209         %F directives.
44210         * tests/test-vasprintf-posix.c (test_function): Likewise.
44211         * tests/test-snprintf-posix.h (test_function): Likewise.
44212         * tests/test-sprintf-posix.h (test_function): Likewise.
44213         * tests/test-fprintf-posix.h (test_function): Likewise.
44214         * tests/test-printf-posix.h (test_function): Likewise.
44215         * tests/test-fprintf-posix.out: Likewise.
44216
44217 2007-04-13  Bruno Haible  <bruno@clisp.org>
44218
44219         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44220         * modules/tls-tests (configure.ac): Likewise.
44221         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44222
44223 2007-04-13  Bruno Haible  <bruno@clisp.org>
44224
44225         * lib/tls.c (glthread_tls_get): Fix return type.
44226         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44227
44228 2007-04-12  Eric Blake  <ebb9@byu.net>
44229
44230         * modules/gettime (Depends-on): Remove gettime.
44231         Reported by Dmitry V. Levin.
44232
44233 2007-04-12  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/fflush (Include): Mention <stdio.h>.
44236         * modules/strtoimax (Include): Mention <inttypes.h>.
44237         * modules/strtoumax (Include): Likewise.
44238
44239 2007-04-12  Eric Blake  <ebb9@byu.net>
44240
44241         * .cvsignore: New file.
44242         * .gitignore: Likewise.
44243
44244 2007-04-12  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44247         not before, since $(LDADD) often contains libgnu.a.
44248         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44249         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44250         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44251         Needed on Cygwin.
44252
44253 2007-04-12  Eric Blake  <ebb9@byu.net>
44254
44255         Work around glibc's failure to flush stdin on fclose.
44256         * lib/closein.c (close_stdin): Flush stdin before closing.
44257
44258         Work around glibc's failure to reset seekable stdin on exit.
44259         * modules/closein: New module.
44260         * lib/closein.c: New file.
44261         * lib/closein.h: Likewise.
44262         * m4/closein.m4: Likewise.
44263         * MODULES.html.sh (File stream based Input/Output): Document it.
44264
44265 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44266
44267         * gnulib-tool: Rename generated 'autobuild' script to
44268         'do-autobuild' in --create-megatestdir output.
44269
44270         * doc/gnulib.texi (Build robot for gnulib): Fix.
44271
44272 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44273
44274         * modules/sysexits (Depends-on): Add absolute-header.
44275
44276 2007-04-12  Eric Blake  <ebb9@byu.net>
44277
44278         No need to preserve errno on success.
44279         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44280         Reported by Bruno Haible.
44281
44282 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44283
44284         * MODULES.html.sh (Support for maintaining and releasing
44285         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44286
44287 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44288
44289         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44290
44291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44292
44293         * modules/autobuild: New module.
44294
44295         * m4/autobuild.m4: New file.
44296
44297 2007-04-11  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44300         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44303         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44304         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44305         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44307         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44308         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44327         Reported by Eric Blake.
44328
44329 2007-04-11  Bruno Haible  <bruno@clisp.org>
44330
44331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44332
44333 2007-04-10  Bruno Haible  <bruno@clisp.org>
44334
44335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44336         for NaN and Infinity. Needed on FreeBSD 6.1.
44337         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44338         regarding results for "%010a" of Infinity and NaN.
44339         * tests/test-vasprintf-posix.c (test_function): Likewise.
44340         * tests/test-snprintf-posix.h (test_function): Likewise.
44341         * tests/test-sprintf-posix.h (test_function): Likewise.
44342         * tests/test-fprintf-posix.h (test_function): Likewise.
44343         * tests/test-printf-posix.h (test_function): Likewise.
44344         * tests/test-fprintf-posix.out: Likewise.
44345
44346 2007-04-10  Bruno Haible  <bruno@clisp.org>
44347
44348         * modules/locale-tests: New file.
44349         * tests/test-locale.c: New file.
44350
44351         * modules/locale: New file.
44352         * lib/locale_.h: New file.
44353         * m4/locale_h.m4: New file.
44354
44355 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44359         be determined, test for availability of the copysignf, copysign,
44360         copysignl functions.
44361         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44362         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44363         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44364
44365 2007-04-09  Eric Blake  <ebb9@byu.net>
44366
44367         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44368         * modules/stdio (Makefile.am): Support fflush.
44369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44370         * modules/fflush: New file.
44371         * lib/fflush.c: Likewise.
44372         * m4/fflush.m4: Likewise.
44373         * modules/fflush-tests: New test.
44374         * tests/test-fflush.c: Likewise.
44375         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44376
44377 2007-04-06  Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44380         (VASNPRINTF): Use signbit for faster determination whether to print a
44381         minus sign.
44382         * modules/vasnprintf (Files): Remove lib/float+.h.
44383         * modules/fprintf-posix (Depends-on): Add signbit.
44384         * modules/snprintf-posix (Depends-on): Likewise.
44385         * modules/sprintf-posix (Depends-on): Likewise.
44386         * modules/vasnprintf-posix (Depends-on): Likewise.
44387         * modules/vasprintf-posix (Depends-on): Likewise.
44388         * modules/vfprintf-posix (Depends-on): Likewise.
44389         * modules/vsnprintf-posix (Depends-on): Likewise.
44390         * modules/vsprintf-posix (Depends-on): Likewise.
44391
44392 2007-04-06  Bruno Haible  <bruno@clisp.org>
44393
44394         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44395         * tests/test-frexpl.c (main): Likewise.
44396         * tests/test-ldexpl.c (main): Likewise.
44397         * modules/frexp-tests (Depends-on): Add signbit.
44398         * modules/frexpl-tests (Depdends-on): Likewise.
44399         * modules/ldexpl-tests (Depdends-on): Likewise.
44400
44401 2007-04-06  Bruno Haible  <bruno@clisp.org>
44402
44403         * modules/signbit-tests: New file.
44404         * tests/test-signbit.c: New file.
44405
44406         * modules/signbit: New file.
44407         * lib/signbitf.c: New file.
44408         * lib/signbitd.c: New file.
44409         * lib/signbitl.c: New file.
44410         * m4/signbit.m4: New file.
44411         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44412         (signbit): New macro.
44413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44414         REPLACE_SIGNBIT.
44415         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44416         REPLACE_FREXPL into math.h.
44417
44418 2007-04-06  Bruno Haible  <bruno@clisp.org>
44419
44420         * modules/isnanf-nolibm-tests: New file.
44421         * tests/test-isnanf.c: New file.
44422
44423         * modules/isnanf-nolibm: New file.
44424         * lib/isnanf.h: New file.
44425         * lib/isnanf.c: New file.
44426         * lib/isnan.c: Consider the USE_FLOAT macro.
44427         * m4/isnanf.m4: New file.
44428
44429 2007-04-06  Bruno Haible  <bruno@clisp.org>
44430
44431         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44432         (Link): New section.
44433
44434         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44435
44436 2007-04-06  Bruno Haible  <bruno@clisp.org>
44437
44438         Assume the 'long double' type.
44439         * m4/longdouble.m4: Remove file.
44440         * config/srclist.txt: Don't mention longdouble.m4.
44441         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44442         * lib/float+.h: Likewise.
44443         * lib/frexp.c: Likewise.
44444         * lib/printf-args.h: Likewise.
44445         * lib/printf-args.c: Likewise.
44446         * lib/printf-frexp.c: Likewise.
44447         * lib/printf-parse.c: Likewise.
44448         * lib/vasnprintf.c: Likewise.
44449         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44450         * m4/intl.m4: Likewise.
44451         * m4/isnanl.m4: Likewise.
44452         * m4/printf.m4: Likewise.
44453         * m4/printf-frexpl.m4: Likewise.
44454         * m4/vasnprintf.m4: Likewise.
44455         * modules/allocsa (Files): Remove m4/longdouble.m4.
44456         * modules/gettext (Files): Likewise.
44457         * modules/relocatable-prog-wrapper (Files): Likewise.
44458         * modules/vasnprintf (Files): Likewise.
44459         * modules/isnanl (Files): Likewise.
44460         (Include): Simplify.
44461         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44462         (Include): Simplify.
44463         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44464         (Include): Simplify.
44465         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
44466         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44467         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
44468         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44469         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44471         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
44472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44473         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44475         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
44476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44477         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
44478         * tests/test-isnanl.c: Likewise.
44479         * tests/test-snprintf-posix.h: Likewise.
44480         * tests/test-sprintf-posix.h: Likewise.
44481         * tests/test-vasnprintf-posix.c: Likewise.
44482         * tests/test-vasnprintf-posix2.c: Likewise.
44483         * tests/test-vasprintf-posix.c: Likewise.
44484
44485 2007-04-06  Bruno Haible  <bruno@clisp.org>
44486
44487         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
44488         * lib/math_.h [__DECC]: Include the overridden include file through
44489         #include_next, outside the double-inclusion guard.
44490         * lib/stdio_.h [__DECC]: Likewise.
44491         * lib/stdlib_.h [__DECC]: Likewise.
44492         * lib/string_.h [__DECC]: Likewise.
44493         * lib/time_.h [__DECC]: Likewise.
44494         * lib/wchar_.h [__DECC]: Likewise.
44495         * lib/wctype_.h [__DECC]: Likewise.
44496         * lib/inttypes_.h [__DECC]: Likewise.
44497         Reported by Albert Chin <china@thewrittenword.com> in
44498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
44499
44500 2007-04-04  Eric Blake  <ebb9@byu.net>
44501
44502         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
44503         1.5.x.
44504
44505 2007-04-04  Bruno Haible  <bruno@clisp.org>
44506
44507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
44508         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
44509
44510 2007-04-04  Bruno Haible  <bruno@clisp.org>
44511
44512         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
44513         results for "%010a" of Infinity and NaN.
44514         * tests/test-vasprintf-posix.c (test_function): Likewise.
44515         * tests/test-snprintf-posix.h (test_function): Likewise.
44516         * tests/test-sprintf-posix.h (test_function): Likewise.
44517         * tests/test-fprintf-posix.h (test_function): Remove these tests.
44518         * tests/test-printf-posix.h (test_function): Likewise.
44519         * tests/test-fprintf-posix.out: Update.
44520         Needed for FreeBSD 6.1.
44521
44522 2007-04-04  Bruno Haible  <bruno@clisp.org>
44523
44524         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
44525         directly used by the gnulib modules nor by gnulib-tool.
44526
44527 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44528
44529         * DEPENDENCIES: Give overall description of version dependency
44530         desirability.  Use more-typical names for apps.
44531         Add shell, coreutils, diffutils, grep, tar, gzip.
44532
44533 2007-04-04  Simon Josefsson  <simon@josefsson.org>
44534
44535         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
44536
44537 2007-04-04  Karl Berry  <karl@gnu.org>
44538
44539         * MODULES.html.sh (func_module): missing '.
44540
44541 2007-04-03  Bruno Haible  <bruno@clisp.org>
44542
44543         * modules/argmatch-tests (Makefile.am): New variable
44544         test_argmatch_LDADD.
44545         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
44546         * modules/array-list-tests (Makefile.am): New variable
44547         test_array_list_LDADD.
44548         * modules/array-oset-tests (Makefile.am): New variable
44549         test_array_oset_LDADD.
44550         * modules/avltree-list-tests (Makefile.am): New variable
44551         test_avltree_list_LDADD.
44552         * modules/avltree-oset-tests (Makefile.am): New variable
44553         test_avltree_oset_LDADD.
44554         * modules/avltreehash-list-tests (Makefile.am): New variable
44555         test_avltreehash_list_LDADD.
44556         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
44557         test_canonicalize_lgpl_LDADD.
44558         * modules/carray-list-tests (Makefile.am): New variable
44559         test_carray_list_LDADD.
44560         * modules/dirname-tests (Makefile.am): New variable
44561         test_dirname_LDADD.
44562         * modules/linked-list-tests (Makefile.am): New variable
44563         test_linked_list_LDADD.
44564         * modules/linkedhash-list-tests (Makefile.am): New variable
44565         test_linkedhash_list_LDADD.
44566         * modules/rbtree-list-tests (Makefile.am): New variable
44567         test_rbtree_list_LDADD.
44568         * modules/rbtree-oset-tests (Makefile.am): New variable
44569         test_rbtree_oset_LDADD.
44570         * modules/rbtreehash-list-tests (Makefile.am): New variable
44571         test_rbtreehash_list_LDADD.
44572         * modules/xvasprintf-tests (Makefile.am): New variable
44573         test_xvasprintf_LDADD.
44574         Reported by Eric Blake.
44575
44576 2007-04-03  Eric Blake  <ebb9@byu.net>
44577
44578         * DEPENDENCIES: Weaken m4 requirements.
44579
44580 2007-04-03  Bruno Haible  <bruno@clisp.org>
44581
44582         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
44583         * modules/isnanl-tests (configure.ac): Likewise.
44584
44585 2007-04-03  Ben Pfaff  <blp@gnu.org>
44586
44587         * modules/iconv_open: Add $(srcdir)/ to source directory
44588         references in Makefile fragments that call gperf, to fix VPATH
44589         builds.
44590
44591 2007-04-03  Bruno Haible  <bruno@clisp.org>
44592
44593         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
44594         * lib/ldexpl.c: Undo last change.
44595
44596 2007-04-03  Bruno Haible  <bruno@clisp.org>
44597
44598         * modules/printf-frexpl (Depends-on): Undo last change.
44599         (Files): Add m4/ldexpl.m4.
44600
44601 2007-04-03  Bruno Haible  <bruno@clisp.org>
44602
44603         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
44604         * modules/isnanl (Link): New section.
44605
44606         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
44607         * modules/frexp (Link): New section.
44608
44609         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
44610         * modules/frexpl (Link): New section.
44611
44612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
44613         * modules/ldexpl (Link): New section.
44614
44615 2007-04-03  Bruno Haible  <bruno@clisp.org>
44616
44617         * modules/TEMPLATE-EXTENDED: New file.
44618         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
44619
44620 2007-04-03  Bruno Haible  <bruno@clisp.org>
44621
44622         * DEPENDENCIES: New file.
44623         Suggested by Simon Josefsson.
44624
44625 2007-04-03  Bruno Haible  <bruno@clisp.org>
44626
44627         * doc/gnulib.texi: Escape @.
44628
44629 2007-04-03  James Youngman  <jay@gnu.org>
44630         and Paul Eggert  <eggert@cs.ucla.edu>
44631
44632         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
44633         birthtime on all systems that have birthtime, not just those which
44634         use st_birthtimensec rather than st_birthtim.  Putting zero in
44635         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
44636         that the birth time is not available for files on an NFS mount.
44637
44638 2007-04-03  Simon Josefsson  <simon@josefsson.org>
44639
44640         * modules/memxor: Move back from crypto/, suggested by Bruno.
44641         * modules/crypto/hmac-sha1: Fix memxor dependency.
44642
44643         * modules/crypto/gc: Moved from ../.
44644
44645 2007-04-02  Eric Blake  <ebb9@byu.net>
44646
44647         * lib/ldexpl.c (includes): Avoid libm.
44648
44649         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
44650
44651 2007-04-02  Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
44654         on IRIX.
44655
44656 2007-04-02  Bruno Haible  <bruno@clisp.org>
44657
44658         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
44659         x86 or x86_64 platforms running MacOS X.
44660         Reported by Ryan Schmidt <@ryandesign.com>.
44661
44662 2007-04-02  Bruno Haible  <bruno@clisp.org>
44663
44664         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
44665         i386.
44666
44667 2007-04-01  Simon Josefsson  <simon@josefsson.org>
44668
44669         * modules/crypto/arcfour: Moved from ../.
44670         * modules/crypto/arcfour-tests: Moved from ../.
44671         * modules/crypto/arctwo: Moved from ../.
44672         * modules/crypto/arctwo-tests: Moved from ../.
44673         * modules/crypto/des: Moved from ../.
44674         * modules/crypto/des-tests: Moved from ../.
44675         * modules/crypto/gc-arcfour: Moved from ../.
44676         * modules/crypto/gc-arcfour-tests: Moved from ../.
44677         * modules/crypto/gc-arctwo: Moved from ../.
44678         * modules/crypto/gc-arctwo-tests: Moved from ../.
44679         * modules/crypto/gc-des: Moved from ../.
44680         * modules/crypto/gc-des-tests: Moved from ../.
44681         * modules/crypto/gc-hmac-md5: Moved from ../.
44682         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
44683         * modules/crypto/gc-hmac-sha1: Moved from ../.
44684         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
44685         * modules/crypto/gc-md2: Moved from ../.
44686         * modules/crypto/gc-md2-tests: Moved from ../.
44687         * modules/crypto/gc-md4: Moved from ../.
44688         * modules/crypto/gc-md4-tests: Moved from ../.
44689         * modules/crypto/gc-md5: Moved from ../.
44690         * modules/crypto/gc-md5-tests: Moved from ../.
44691         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
44692         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
44693         * modules/crypto/gc-random: Moved from ../.
44694         * modules/crypto/gc-rijndael: Moved from ../.
44695         * modules/crypto/gc-rijndael-tests: Moved from ../.
44696         * modules/crypto/gc-sha1: Moved from ../.
44697         * modules/crypto/gc-sha1-tests: Moved from ../.
44698         * modules/crypto/gc-tests: Moved from ../.
44699         * modules/crypto/hmac-md5: Moved from ../.
44700         * modules/crypto/hmac-md5-tests: Moved from ../.
44701         * modules/crypto/hmac-sha1: Moved from ../.
44702         * modules/crypto/hmac-sha1-tests: Moved from ../.
44703         * modules/crypto/md2: Moved from ../.
44704         * modules/crypto/md2-tests: Moved from ../.
44705         * modules/crypto/md4: Moved from ../.
44706         * modules/crypto/md4-tests: Moved from ../.
44707         * modules/crypto/md5: Moved from ../.
44708         * modules/crypto/md5-tests: Moved from ../.
44709         * modules/crypto/memxor: Moved from ../.
44710         * modules/crypto/rijndael: Moved from ../.
44711         * modules/crypto/rijndael-tests: Moved from ../.
44712         * modules/crypto/sha1: Moved from ../.
44713
44714 2007-03-30  James Youngman  <jay@gnu.org>
44715
44716         * tests/test-stat-time.c (prepare_test): use chmod() rather than
44717         rename() to change the ctime of a file (because ctime is unaffected
44718         by rename on jfs2 on AIX 5.1).
44719         (main): Start by doing cleanup, in case a previous run failed leaving
44720         test files behind.
44721
44722 2007-03-31  Bruno Haible  <bruno@clisp.org>
44723
44724         Support old proprietary implementations of iconv.
44725         * modules/iconv_open: New file.
44726         * lib/iconv_.h: New file.
44727         * m4/iconv_h.m4: New file.
44728         * lib/iconv_open.c: New file.
44729         * lib/iconv_open-aix.gperf: New file.
44730         * lib/iconv_open-hpux.gperf: New file.
44731         * lib/iconv_open-irix.gperf: New file.
44732         * lib/iconv_open-osf.gperf: New file.
44733         * m4/iconv_open.m4: New file.
44734         * modules/linebreak (Depends-on): Add iconv_open.
44735         * modules/striconv (Depends-on): Likewise.
44736         * modules/striconveh (Depends-on): Likewise.
44737         * modules/unicodeio (Depends-on): Likewise.
44738         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
44739         (iconv_t)(-1).
44740         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
44741         conversion if cd is (iconv_t)(-1).
44742         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
44743         is not possible.
44744
44745 2007-03-31  Bruno Haible  <bruno@clisp.org>
44746
44747         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44748         work on Solaris either. Protect also second use of "autodetect_jp".
44749
44750 2007-03-31  Bruno Haible  <bruno@clisp.org>
44751
44752         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
44753         the function is not present.
44754
44755 2007-03-31  Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
44758         the function is not present.
44759
44760 2007-03-31  Bruno Haible  <bruno@clisp.org>
44761
44762         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
44763         a bug in HP-UX iconv_open().
44764
44765 2007-03-31  Bruno Haible  <bruno@clisp.org>
44766
44767         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
44768         (Mathematics <math.h>): New section, add fpieee.
44769         (Input/output <stdio.h>): Add fseterr.
44770         (Mathematics <math.h>): New section, add printf-frexp.
44771         (Container data structures): Add sublist.
44772         (Core language properties): Add fpucw, inline.
44773         (Functions for greatest-width integer types <inttypes.h>): Add
44774         imaxabs, imaxdiv, inttypes.
44775         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
44776         isnanl-nolibm, ldexp.
44777         (Mathematics <math.h>): New section, add printf-frexpl.
44778         (Support for systems lacking POSIX:2001): Add fprintf-posix,
44779         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
44780         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
44781         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
44782         (Unicode string functions): Add unistr/u*-mbtoucr.
44783         (Java): Add javacomp-script, javaexec-script.
44784         (C#): Add csharpcomp-script, csharpexec-script.
44785         (Support for building libraries and executables): Add havelib,
44786         relocatable-*.
44787         (Support for maintaining and releasing projects): Renamed from
44788         'Support for maintaining and release projects'. Add announce-gen.
44789
44790 2007-03-31  Bruno Haible  <bruno@clisp.org>
44791
44792         * README: Talk primarily about git.
44793         (git and CVS): Renamed from CVS.
44794         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
44795         gnulib is available through git.
44796         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
44797
44798 2007-03-30  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
44801         * lib/poll_.h: Likewise.
44802         * lib/stat_.h: Likewise.
44803         * lib/sys_time_.h: Likewise.
44804         * lib/sysexit_.h: Likewise.
44805         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
44806         * lib/stdbool_.h: Likewise.
44807         * lib/byteswap_.h: Add double-inclusion guard.
44808
44809 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
44810
44811         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
44812
44813 2007-03-30  Karl Berry  <karl@gnu.org>
44814
44815         * config/srclist-update: double space after USA in the license
44816         substitution, since that's how it's usually (?) written.
44817
44818 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44819
44820         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
44821         reported by Bruno Haible.
44822
44823 2007-03-29  Bruno Haible  <bruno@clisp.org>
44824
44825         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
44826         a bug in AIX iconv().
44827
44828 2007-03-29  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/ldexpl-tests: New file.
44831         * tests/test-ldexpl.c: New file.
44832
44833 2007-03-29  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/ldexpl.c: Include fpucw.h.
44836         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
44837         multiplication.
44838         * modules/ldexpl (Depends-on): Add fpucw.
44839
44840 2007-03-29  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/ldexpl: New file.
44843         * m4/ldexpl.m4: New file.
44844         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
44845         set.
44846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
44847         REPLACE_LDEXPL.
44848         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
44849         REPLACE_LDEXPL.
44850         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44851         gl_FUNC_LDEXPL_WORKS.
44852         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
44853         * modules/mathl (Files): Remove lib/ldexpl.c.
44854         (Depends-on): Add ldexpl.
44855
44856 2007-03-29  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
44859
44860 2007-03-29  Bruno Haible  <bruno@clisp.org>
44861
44862         * tests/test-striconveh.c (main): Don't assume that a direct conversion
44863         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
44864         and possibly also HP-UX.
44865         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44866         work on AIX, IRIX, HP-UX, OSF/1.
44867         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44868         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44869         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44870         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44871         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
44872         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44873
44874 2007-03-29  Bruno Haible  <bruno@clisp.org>
44875
44876         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
44877
44878 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
44881         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
44882
44883 2007-03-29  Eric Blake  <ebb9@byu.net>
44884
44885         * lib/acl-internal.h: Remove redundant include.
44886         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
44887         Cygwin when a file is locked.
44888
44889 2007-03-29  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
44892         file.
44893         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
44894
44895 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
44898         try to remove a parent directory if the child couldn't be removed
44899         (except for the first rmdir, which could fail because the child
44900         doesn't exist).  Problem reported by Jeff Blaine in
44901         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
44902
44903 2007-03-28  Bruno Haible  <bruno@clisp.org>
44904
44905         * lib/striconveh.c (utf8conv_carefully): New function.
44906         (mem_cd_iconveh_internal): Invoke it.
44907
44908 2007-03-28  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
44911         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
44912         input.
44913         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
44914         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
44915         unistr/u8-uctomb.
44916
44917 2007-03-28  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/unistr/u8-mbtoucr: New file.
44920         * lib/unistr/u8-mbtoucr.c: New file.
44921         * modules/unistr/u16-mbtoucr: New file.
44922         * lib/unistr/u16-mbtoucr.c: New file.
44923         * modules/unistr/u16-mbtoucr: New file.
44924         * lib/unistr/u16-mbtoucr.c: New file.
44925         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
44926
44927 2007-03-27  Simon Josefsson  <simon@josefsson.org>
44928             Bruno Haible  <bruno@clisp.org>
44929
44930         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
44931         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
44932         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
44933
44934         * m4/stdio_h.m4: Add stubs for vasprintf too.
44935
44936         * modules/stdio: Support vasprintf in sed command.
44937
44938         * modules/vasprintf: Depend on stdio for prototypes.  Remove
44939         vasprintf.h.  Add stdio module indicator.
44940
44941         * lib/stdio_.h: Declare asprintf and vasprintf, based on
44942         vasprintf.h.
44943
44944         * lib/vasprintf.h: File removed.
44945
44946         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
44947         * lib/vasprintf.c: Ditto.
44948         * lib/xvasprintf.c: Ditto.
44949         * tests/test-vasprintf-posix.c: Ditto.
44950         * tests/test-vasprintf.c: Ditto.
44951
44952 2007-03-27  Bruno Haible  <bruno@clisp.org>
44953
44954         Make vasnprintf multithread-safe.
44955         * lib/vasnprintf.c (decimal_point_char): New function.
44956         (VASNPRINTF): Use it.
44957         Suggested by Simon Josefsson.
44958
44959 2007-03-27  Eric Blake  <ebb9@byu.net>
44960
44961         Support sub-second birthtime on cygwin.
44962         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
44963         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
44964         (get_stat_birthtime): Also work with st_birthtim.
44965
44966 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         * lib/stat-time.h (USE_BIRTHTIME): Remove.
44969         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
44970         (get_stat_birthtime_ns): Do not try to use "spare" fields.
44971         (get_stat_birthtime_ns): Simplify compile-time tests.
44972         (get_stat_birthtime): Change the API to look like
44973         get_stat_mtime etc., except return a negative tv_nsec on error.
44974         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
44975         Don't check for "spare" fields.
44976         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
44977         or for struct stat.st_birthtime, as these tests aren't used.
44978         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
44979
44980 2007-03-27  Bruno Haible  <bruno@clisp.org>
44981
44982         * lib/stat-time.h: Include <sys/stat.h>.
44983
44984 2007-03-27  James Youngman  <jay@gnu.org>
44985
44986         * lib/stat-time.h (get_stat_birthtime): New function for
44987           retrieving st_birthtime as provided by UFS2 (hence *BSD).
44988         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
44989           and its variants.
44990         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
44991         * modules/stat-time-test: New file.
44992         * tests/test-stat-time.c: New test, devised by Bruno Haible.
44993
44994 2007-03-26  Bruno Haible  <bruno@clisp.org>
44995
44996         Better support of signalling NaNs.
44997         * lib/atanl.c: Include isnanl.h.
44998         (atanl): Perform test for NaN at the beginning of the function and
44999         through a call to isnanl.
45000         * lib/cosl.c: Include isnanl.h.
45001         (cosl): Perform test for NaN at the beginning of the function and
45002         through a call to isnanl.
45003         * lib/ldexpl.c: Include isnanl.h.
45004         (ldexpl): Perform test for NaN through a call to isnanl.
45005         * lib/logl.c: Include isnanl.h.
45006         (logl): Perform test for NaN at the beginning of the function and
45007         through a call to isnanl.
45008         * lib/sinl.c: Include isnanl.h.
45009         (sinl): Perform test for NaN at the beginning of the function and
45010         through a call to isnanl.
45011         * lib/sqrtl.c: Include isnanl.h.
45012         (sqrtl): Perform test for NaN at the beginning of the function and
45013         through a call to isnanl.
45014         * lib/tanl.c: Include isnanl.h.
45015         (tanl): Perform test for NaN at the beginning of the function and
45016         through a call to isnanl.
45017         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45018         * modules/mathl (Depends-on): Add isnanl.
45019
45020 2007-03-26  Eric Blake  <ebb9@byu.net>
45021
45022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45023         regression in logic sense of previous patch.
45024
45025 2007-03-26  Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45028         unportable shell command "if ! ...".
45029         Reported by Ralf Wildenhues.
45030
45031 2007-03-25  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45034         <sysexits.h> file, and only add EX_CONFIG.
45035         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45036         absolute file name and whether it is sufficient. Substitute also
45037         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45038         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45039         ABSOLUTE_SYSEXITS_H into sysexits.h.
45040
45041 2007-03-25  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45044         hints is NULL.
45045
45046 2007-03-25  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45049         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45050
45051 2007-03-25  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/vasnprintf.c: Include langinfo.h.
45054         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45055         multithread-safe.
45056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45065         Reported by Simon Josefsson.
45066
45067 2007-03-25  Bruno Haible  <bruno@clisp.org>
45068
45069         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45070         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45071         * modules/vasnprintf (Depends-on): Add stdint.
45072
45073 2007-03-25  Bruno Haible  <bruno@clisp.org>
45074
45075         * modules/fpieee: New file.
45076         * m4/fpieee.m4: New file.
45077         * modules/isnan-nolibm (Depends-on): Add fpieee.
45078         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45079         * modules/isnanl (Depends-on): Add fpieee.
45080
45081 2007-03-25  Bruno Haible  <bruno@clisp.org>
45082
45083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45084
45085 2007-03-25  Bruno Haible  <bruno@clisp.org>
45086
45087         Avoid test failures on IRIX 6.5.
45088         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45089         (main): Use it.
45090         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45091         macros.
45092         (main): Use them.
45093
45094 2007-03-25  Bruno Haible  <bruno@clisp.org>
45095
45096         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45097         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45098         exists but doesn't work.
45099         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45100         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45102         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45103
45104 2007-03-25  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45107         returns inf. Needed on IRIX 6.5.
45108
45109 2007-03-25  Bruno Haible  <bruno@clisp.org>
45110
45111         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45112         (main): Use isnanl instead of x != x idiom.
45113         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45114
45115         * tests/test-frexp.c: Include isnan.h.
45116         (main): Use isnan instead of x != x idiom.
45117         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45118
45119 2007-03-25  Bruno Haible  <bruno@clisp.org>
45120
45121         * tests/test-frexp.c (NaN): New function/macro.
45122         (main): Use it instead of 0.0 / 0.0.
45123         * tests/test-isnan.c (NaN): New function/macro.
45124         (main): Use it instead of 0.0 / 0.0.
45125         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45126         (test_function): Use it instead of 0.0 / 0.0.
45127         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45128         (test_function): Use it instead of 0.0 / 0.0.
45129         * tests/test-snprintf-posix.h (NaN): New function/macro.
45130         (test_function): Use it instead of 0.0 / 0.0.
45131         * tests/test-sprintf-posix.h (NaN): New function/macro.
45132         (test_function): Use it instead of 0.0 / 0.0.
45133         * tests/test-fprintf-posix.h (NaN): New function/macro.
45134         (test_function): Use it instead of 0.0 / 0.0.
45135         * tests/test-printf-posix.h (NaN): New function/macro.
45136         (test_function): Use it instead of 0.0 / 0.0.
45137
45138         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45139
45140 2007-03-25  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45143
45144 2007-03-25  Bruno Haible  <bruno@clisp.org>
45145
45146         * lib/regexec.c (merge_state_with_log): Make static.
45147
45148 2007-03-25  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/trigl.c (kernel_rem_pio2): Make static.
45151
45152 2007-03-25  Bruno Haible  <bruno@clisp.org>
45153
45154         * lib/sincosl.c (sincosl_table): Make static.
45155
45156 2007-03-25  Bruno Haible  <bruno@clisp.org>
45157
45158         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45159         if the compiler does not support C99.
45160
45161 2007-03-25  Bruno Haible  <bruno@clisp.org>
45162
45163         * modules/time (Makefile.am): Ensure all rule action lines start with a
45164         tab.
45165
45166 2007-03-24  Bruno Haible  <bruno@clisp.org>
45167
45168         * modules/tsearch-tests: New file.
45169         * tests/test-tsearch.sh: New file.
45170         * tests/test-tsearch.c: New file, mostly copied from glibc.
45171
45172         * modules/search-tests: New file.
45173         * tests/test-search.c: New file.
45174
45175         * modules/search: New file.
45176         * lib/search_.h: New file, incorporating lib/tsearch.h.
45177         * m4/search_h.m4: New file.
45178         * lib/tsearch.h: Remove file.
45179         * lib/tsearch.c: Include search.h instead of tsearch.h.
45180         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45181         HAVE_TSEARCH.
45182         * modules/tsearch (Files): Remove lib/tsearch.h.
45183         (Depends-on): Add search.
45184         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45185         (Include): Change tsearch.h into search.h.
45186
45187 2007-03-24  Bruno Haible  <bruno@clisp.org>
45188
45189         * modules/fpucw: New file.
45190         * lib/fpucw.h: New file.
45191         * lib/frexp.c: Include fpucw.h.
45192         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45193         (FUNC): Use them.
45194         * lib/printf-frexp.c: Include fpucw.h.
45195         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45196         (FUNC): Use them.
45197         * lib/vasnprintf.c: Include fpucw.h.
45198         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45199         'long double' calculations.
45200         * tests/test-frexpl.c: Include fpucw.h.
45201         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45202         * tests/test-printf-frexpl.c: Include fpucw.h.
45203         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45204         * modules/frexpl (Depends-on): Add fpucw.
45205         * modules/printf-frexpl (Depends-on): Likewise.
45206         * modules/fprintf-posix (Depends-on): Likewise.
45207         * modules/snprintf-posix (Depends-on): Likewise.
45208         * modules/sprintf-posix (Depends-on): Likewise.
45209         * modules/vasnprintf-posix (Depends-on): Likewise.
45210         * modules/vasprintf-posix (Depends-on): Likewise.
45211         * modules/vfprintf-posix (Depends-on): Likewise.
45212         * modules/vsnprintf-posix (Depends-on): Likewise.
45213         * modules/vsprintf-posix (Depends-on): Likewise.
45214         * modules/frexpl-tests (Depends-on): Likewise.
45215         * modules/printf-frexpl-tests (Depends-on): Likewise.
45216
45217 2007-03-24  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/float+.h: New file.
45220         * lib/isnan.c: Include float+.h.
45221         (SIZE): New macro.
45222         (FUNC): Compare only SIZE bytes of the value.
45223         * lib/vasnprintf.c: Include float+.h.
45224         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45225         SIZEOF_LDBL or SIZEOF_DBL bytes.
45226         * modules/isnan-nolibm (Files): Add lib/float+.h.
45227         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45228         * modules/isnanl (Files): Add lib/float+.h.
45229         * modules/vasnprintf (Files): Add lib/float+.h.
45230
45231 2007-03-24  Bruno Haible  <bruno@clisp.org>
45232
45233         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45234         include isnanl-nolibm.h.
45235
45236 2007-03-24  Bruno Haible  <bruno@clisp.org>
45237
45238         * tests/test-read-file.c (main): Don't produce spurious output for
45239         expected situations. Make the test fail if it encountered unexpected
45240         results.
45241
45242 2007-03-24  Bruno Haible  <bruno@clisp.org>
45243
45244         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45245         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45246
45247 2007-03-24  Bruno Haible  <bruno@clisp.org>
45248
45249         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45250
45251 2007-03-24  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45254         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45255
45256         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45257         * modules/utf8-ucs4: Turn into a symbolic link to module
45258         unistr/u8-mbtouc.
45259
45260         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45261         utf8-ucs4-unsafe.
45262         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45263         unistr/u8-mbtouc-unsafe.
45264
45265         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45266         * modules/utf16-ucs4: Turn into a symbolic link to module
45267         unistr/u16-mbtouc.
45268
45269         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45270         utf16-ucs4-unsafe.
45271         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45272         unistr/u16-mbtouc-unsafe.
45273
45274         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45275         * modules/ucs4-utf8: Turn into a symbolic link to module
45276         unistr/u8-ubtomb.
45277
45278         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45279         * modules/ucs4-utf16: Turn into a symbolic link to module
45280         unistr/u16-ubtomb.
45281
45282 2007-03-24  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45285         Enable the function only if HAVE_INLINE.
45286         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45287         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45288         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45289         Enable the function only if HAVE_INLINE.
45290         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45291         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45292         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45293         Enable the function only if HAVE_INLINE.
45294         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45295         Enable the function only if HAVE_INLINE.
45296         * modules/utf8-ucs4: Update.
45297         * modules/utf8-ucs4-unsafe: Update.
45298         * modules/utf16-ucs4: Update.
45299         * modules/utf16-ucs4-unsafe: Update.
45300         * modules/ucs4-utf8: Update.
45301         * modules/ucs4-utf16: Update.
45302
45303 2007-03-24  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/utf8-ucs4.h: Remove file.
45306         * lib/utf8-ucs4-unsafe.h: Remove file.
45307         * lib/utf16-ucs4.h: Remove file.
45308         * lib/utf16-ucs4-unsafe.h: Remove file.
45309         * lib/ucs4-utf8.h: Remove file.
45310         * lib/ucs4-utf16.h: Remove file.
45311         * lib/unistr.h: Include their previous contents.
45312         * m4/utf-ucs4.m4: Remove file.
45313         * m4/ucs4-utf.m4: Remove file.
45314         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45315         (Depends-on): Add unistr/base.
45316         (configure.ac): Remove gl_UTF_UCS4.
45317         (Makefile.am): Update.
45318         (Include): Change to unistr.h.
45319         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45320         (Depends-on): Add unistr/base.
45321         (configure.ac): Remove gl_UTF_UCS4.
45322         (Makefile.am): Update.
45323         (Include): Change to unistr.h.
45324         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45325         (Depends-on): Add unistr/base.
45326         (configure.ac): Remove gl_UTF_UCS4.
45327         (Makefile.am): Update.
45328         (Include): Change to unistr.h.
45329         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45330         (Depends-on): Add unistr/base.
45331         (configure.ac): Remove gl_UTF_UCS4.
45332         (Makefile.am): Update.
45333         (Include): Change to unistr.h.
45334         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45335         (Depends-on): Add unistr/base.
45336         (configure.ac): Remove gl_UCS4_UTF.
45337         (Makefile.am): Update.
45338         (Include): Change to unistr.h.
45339         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45340         (Depends-on): Add unistr/base.
45341         (configure.ac): Remove gl_UCS4_UTF.
45342         (Makefile.am): Update.
45343         (Include): Change to unistr.h.
45344         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45345         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45346         utf8-ucs4-unsafe.h.
45347         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45348         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45349         utf16-ucs4-unsafe.h.
45350         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45351         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45352         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45353         * lib/unistr/u8-strchr.c: Likewise.
45354         * lib/unistr/u8-strrchr.c: Likewise.
45355         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45356         * lib/unistr/u16-strchr.c: Likewise.
45357         * lib/unistr/u16-strrchr.c: Likewise.
45358         * lib/striconveh.c: Update.
45359         * lib/linebreak.c: Update.
45360
45361 2007-03-24  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45364         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45365
45366 2007-03-22  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45369
45370 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45371
45372         * MODULES.html.sh (File system functions): New module write-any-file.
45373         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45374         * m4/write-any-file.m4: New files.
45375
45376 2007-03-23  Eric Blake  <ebb9@byu.net>
45377
45378         * gnulib-tool: Rearrange space-tab sequences, since some editors
45379         like to eat them.
45380
45381 2007-03-23  Eric Blake  <ebb9@byu.net>
45382
45383         * lib/version-etc.c (version_etc_va): Update license wording to
45384         be more concise.  Recommended by Richard Stallman.
45385
45386 2007-03-22  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/poll.c (MSG_PEEK): New fallback definition.
45389
45390 2007-03-22  Bruno Haible  <bruno@clisp.org>
45391
45392         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45393         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45394         (main): Update.
45395         Fixes a compilation error on BeOS.
45396
45397 2007-03-22  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/frexpl-tests: New file.
45400         * tests/test-frexpl.c: New file.
45401
45402         * modules/frexpl: New file.
45403         * m4/frexpl.m4: New file.
45404         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45405         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45407         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45408         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45409         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45410
45411 2007-03-22  Bruno Haible  <bruno@clisp.org>
45412
45413         * lib/frexpl.c: Share code with lib/frexp.c.
45414         * modules/mathl (Files): Add lib/frexp.c.
45415         (Depends-on): Add isnanl-nolibm.
45416
45417 2007-03-22  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/printf-frexp (Files): Add m4/frexp.m4.
45420         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45421         only if the found frexp function actually works.
45422
45423 2007-03-22  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/frexp.c: Remove older implementation that uses divisions.
45426
45427 2007-03-21  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/frexp-tests: New file.
45430         * tests/test-frexp.c: New file.
45431
45432         * modules/frexp: New file.
45433         * lib/frexp.c: New file.
45434         * m4/frexp.m4: New file.
45435         * lib/math_.h (frexp): New declaration.
45436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45437         REPLACE_FREXP.
45438         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45439
45440 2007-03-21  Bruno Haible  <bruno@clisp.org>
45441
45442         * modules/isnanl-tests: New file.
45443         * tests/test-isnanl.c: New file.
45444
45445         * modules/isnanl: New file.
45446         * lib/isnanl.h: New file.
45447         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45448         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45449         gl_FUNC_ISNANL_WORKS.
45450         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45451         New macros.
45452
45453 2007-03-21  Bruno Haible  <bruno@clisp.org>
45454
45455         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45456         lib/isnanl.h.
45457         (Include): Update.
45458         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45459         * lib/vasnprintf.c: Update.
45460         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45461         tests/test-isnanl.h, remove tests/test-isnanl.c.
45462         (Makefile.am): Update.
45463         * tests/test-isnanl-nolibm.c: New file.
45464         * tests/test-isnanl.h: New file.
45465         * tests/test-isnanl.c: Remove file.
45466
45467 2007-03-21  Jim Meyering  <jim@meyering.net>
45468
45469         When trying to open ".", treat ESTALE like EACCES.
45470         * lib/savewd.c (savewd_save): Resort to forking not just upon
45471         failure with EACCES, but also when errno is ESTALE.
45472
45473 2007-03-20  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
45476         Needed on AIX 5.1. Reported by Matthew Woehlke.
45477
45478 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45479
45480         Suggestions by Bruno Haible:
45481         * lib/acl-internal.h: Include "gettext.h" rather than rolling
45482         our own.
45483         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
45484         * modules/acl (Depends-on): Add gettext.
45485
45486 2007-03-19  Bruno Haible  <bruno@clisp.org>
45487
45488         * modules/iconvme: Remove file.
45489         * lib/iconvme.h: Remove file.
45490         * lib/iconvme.c: Remove file.
45491         * m4/iconvme.m4: Remove file.
45492
45493 2007-03-19  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/relocatable-maint.texi: Break long shell script line.
45496         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45497
45498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
45501         handle file_has_acl.
45502         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
45503         * lib/acl.c: Move header inclusions and related macro defns into
45504         lib/acl-internal.h.
45505         (S_ISLNK): Remove defn, since that's now done for us.
45506         (file_has_acl): Move to lib/file-has-acl.c.
45507         Call acl_trivial if available.  This is the crucial part of the fix.
45508         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
45509         shared within the library.  Rewrite a bit, partly to make it compatible
45510         with the GNU coding style.
45511         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
45512         Remove unnecessary double-quotes.
45513         Don't test for acl_to_text; the build will catch that.
45514         Replace acl_entries if it doesn't exist and it is needed.
45515         Check for -lsec and acl_trivial (as used on Solaris 10).
45516         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
45517         lib/file-has-acl.c.
45518         (Depends-on): Add sys_stat, for S_ISLNK.
45519
45520 2007-03-19  Ben Pfaff  <blp@gnu.org>
45521
45522         * doc/gnulib.texi: Fix typos.
45523         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45524
45525 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45526
45527         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
45528         If size is zero here, buf must be zero.
45529
45530 2007-03-19  Simon Josefsson  <simon@josefsson.org>
45531
45532         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
45533         <bruno@clisp.org>.
45534
45535 2007-03-18  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
45538         Suggested by Eric Blake.
45539
45540 2007-03-18  Ben Pfaff  <blp@gnu.org>
45541
45542         * doc/relocatable.texi: Recommend using as prefix a directory
45543         that does not exist and will never be created.  Based on
45544         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
45545         and others.
45546
45547 2007-03-17  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/fchownat.c: Include lchown.h.
45550
45551 2007-03-17  Bruno Haible  <bruno@clisp.org>
45552
45553         Fix endless loop when the given allocated size was > INT_MAX.
45554         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
45555         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
45556         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
45557         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
45558         * lib/sprintf.c (sprintf): Likewise.
45559
45560 2007-03-17  Bruno Haible  <bruno@clisp.org>
45561
45562         * tests/test-argp-2.sh (func_compare): Output a context diff.
45563
45564 2007-03-17  Bruno Haible  <bruno@clisp.org>
45565
45566         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
45567         locale's decimal-point character.
45568
45569 2007-03-17  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
45572         before comparing it. Needed because on some platforms (e.g. x86) a
45573         'long double' occupies less bytes than sizeof (long double).
45574
45575 2007-03-17  Bruno Haible  <bruno@clisp.org>
45576
45577         * tests/test-crc.c (main): Make printf statements 64-bit clean.
45578         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
45579         * tests/test-getaddrinfo.c (simple): Likewise.
45580         * tests/test-read-file.c (main): Likewise.
45581
45582 2007-03-17  Bruno Haible  <bruno@clisp.org>
45583
45584         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
45585
45586 2007-03-17  Bruno Haible  <bruno@clisp.org>
45587
45588         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
45589         unused variable.
45590
45591 2007-03-17  Bruno Haible  <bruno@clisp.org>
45592
45593         * tests/test-c-strcasecmp.c: Include c-strcase.h.
45594         * tests/test-c-strncasecmp.c: Likewise.
45595
45596 2007-03-17  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/stdlib (Depends-on): Add unistd.
45599         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
45600         Needed for MacOS X 10.3.
45601
45602 2007-03-17  Bruno Haible  <bruno@clisp.org>
45603
45604         * lib/unistr/u-strdup.h: Include <stdlib.h>.
45605
45606 2007-03-17  Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
45609
45610 2007-03-17  Bruno Haible  <bruno@clisp.org>
45611
45612         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
45613         to reflect files copied from gnulib (with or without modifications).
45614         Suggested by Jim Meyering.
45615
45616 2007-03-17  Eric Blake  <ebb9@byu.net>
45617
45618         * NEWS: Document stdlib change from 2007-02-18.
45619
45620 2007-03-17  Jim Meyering  <jim@meyering.net>
45621
45622         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
45623         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
45624         someone uses a name containing shell meta-characters.
45625         Reported by Alfred M. Szmidt.
45626
45627         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
45628
45629 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45630
45631         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
45632         and copy gettext configuration files only if configure.ac contains
45633         a use of AM_GNU_GETTEXT_VERSION.
45634
45635 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45636
45637         * build-aux/bootstrap (gnulib_name): New variable.
45638         (gnulib_tool_options): Use it.
45639
45640 2007-03-13  Simon Josefsson  <simon@josefsson.org>
45641
45642         * tests/test-des.c: Use new namespace.
45643
45644 2007-03-15  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
45647         Reported by James Youngman <jay@gnu.org>.
45648
45649 2007-03-15  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
45652         declared prototype. Needed with cc on OSF/1 5.1.
45653
45654 2007-03-15  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
45657         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
45658         (struct gl_list_implementation): Add dispose_fn argument to the
45659         'create_empty', 'create' methods.
45660         (struct gl_list_impl_base): Add field 'dispose_fn'.
45661         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
45662         argument.
45663         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
45664         dispose_fn argument.
45665         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
45666         dispose_fn on the dropped values.
45667         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
45668         dispose_fn argument.
45669         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
45670         dropped values.
45671         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
45672         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45673         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
45674         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45675         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
45676         argument.
45677         (gl_tree_list_free): Call dispose_fn on the dropped values.
45678         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
45679         the dropped values.
45680         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45681         Add dispose_fn argument.
45682         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
45683         Call dispose_fn on the dropped values.
45684         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
45685         Add dispose_fn argument.
45686         (gl_sublist_create): Initialize the 'dispose_fn' field.
45687         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
45688         * tests/test-array_list.c (main): Update.
45689         * tests/test-carray_list.c (main): Update.
45690         * tests/test-avltree_list.c (main): Update.
45691         * tests/test-rbtree_list.c (main): Update.
45692         * tests/test-avltreehash_list.c (main): Update.
45693         * tests/test-rbtreehash_list.c (main): Update.
45694         * tests/test-linked_list.c (main): Update.
45695         * tests/test-linkedhash_list.c (main): Update.
45696         * tests/test-array_oset.c (main): Update.
45697
45698 2007-03-15  Bruno Haible  <bruno@clisp.org>
45699
45700         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
45701         (gl_oset_create_empty): Add dispose_fn argument.
45702         (struct gl_oset_implementation): Add dispose_fn argument to
45703         'create_empty' method.
45704         (struct gl_oset_impl_base): Add dispose_fn field.
45705         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
45706         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
45707         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
45708         values.
45709         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
45710         (gl_tree_oset_free): Call dispose_fn on the dropped values.
45711         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45712         dropped value.
45713         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45714         dropped value.
45715         * tests/test-array_oset.c (main): Update.
45716         * tests/test-avltree_oset.c (main): Update.
45717         * tests/test-rbtree_oset.c (main): Update.
45718         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
45719
45720 2007-03-13  Bruno Haible  <bruno@clisp.org>
45721
45722         * tests/test-stdbool.c (i): Update after last patch.
45723
45724 2007-03-12  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/quotearg.c: Include <wctype.h> early, before the definition of
45727         the iswprint macro. Needed on Solaris 2.5.1.
45728
45729 2007-03-12  Bruno Haible  <bruno@clisp.org>
45730
45731         * tests/test-printf-frexp.c (main): Declare x as volatile.
45732
45733 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45734
45735         * doc/gnulib.texi (Build robot for gnulib): New section.
45736
45737 2007-03-12  Jim Meyering  <jim@meyering.net>
45738
45739         * build-aux/bootstrap: New file.
45740         * build-aux/bootstrap.conf: New file, from coreutils.
45741
45742 2007-03-11  Bruno Haible  <bruno@clisp.org>
45743
45744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
45745
45746 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45747
45748         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
45749         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
45750         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
45751
45752 2007-03-11  Bruno Haible  <bruno@clisp.org>
45753
45754         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
45755         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
45756
45757 2007-03-11  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
45760         formula. Needed for SunPRO C 5.0.
45761
45762 2007-03-11  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/long-options (Depends-on): Add getopt.
45765
45766 2007-03-11  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/modechange (Depends-on): Add stdbool.
45769
45770 2007-03-11  Bruno Haible  <bruno@clisp.org>
45771
45772         * modules/i-ring (Depends-on): Add stdbool.
45773
45774 2007-03-11  Bruno Haible  <bruno@clisp.org>
45775
45776         * modules/gc-des (Depends-on): Add stdbool.
45777
45778 2007-03-11  Bruno Haible  <bruno@clisp.org>
45779
45780         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
45781
45782 2007-03-11  Bruno Haible  <bruno@clisp.org>
45783
45784         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
45785
45786 2007-03-11  Bruno Haible  <bruno@clisp.org>
45787
45788         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
45789
45790 2007-03-11  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/vasnprintf.c (sprintf): Undefine.
45793
45794 2007-03-11  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
45797         initializers in SunPRO C and Compaq C compilers.
45798
45799 2007-03-11  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
45802         decrementing code ANSI C compliant.
45803
45804 2007-03-11  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
45807         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
45808
45809 2007-03-11  Bruno Haible  <bruno@clisp.org>
45810
45811         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
45812         <stdbool.h> substitute doesn't pass.
45813
45814 2007-03-11  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
45817
45818 2007-03-11  Bruno Haible  <bruno@clisp.org>
45819
45820         * gnulib-tool (func_create_megatestdir): Create also an autobuild
45821         script, for submission to autobuild.josefsson.org.
45822
45823 2007-03-10  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/canonicalize-lgpl-tests: New file.
45826         * tests/test-canonicalize-lgpl.sh: New file.
45827         * tests/test-canonicalize-lgpl.c: New file.
45828
45829         * modules/c-strcase-tests: New file.
45830         * tests/test-c-strcase.sh: New file.
45831         * tests/test-c-strcasecmp.c: New file.
45832         * tests/test-c-strncasecmp.c: New file.
45833
45834         * modules/atexit-tests: New file.
45835         * tests/test-atexit.sh: New file.
45836         * tests/test-atexit.c: New file.
45837
45838 2007-03-10  Bruno Haible  <bruno@clisp.org>
45839
45840         * tests/test-binary-io.sh: Use temporary filenames that are not so
45841         likely to clash with those of other tests (in a parallel make).
45842         * tests/test-binary-io.c: Likewise.
45843
45844 2007-03-10  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
45847         fallback; use #error instead.
45848         Suggested by Simon Josefsson.
45849
45850 2007-03-10  Bruno Haible  <bruno@clisp.org>
45851
45852         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
45853         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
45854         first and the last.
45855
45856 2007-03-10  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
45859
45860 2007-03-10  Bruno Haible  <bruno@clisp.org>
45861
45862         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
45863         "make distcheck".
45864         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
45865         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
45866         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
45867
45868 2007-03-10  Bruno Haible  <bruno@clisp.org>
45869
45870         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
45871         variable.
45872         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
45873         variable.
45874
45875 2007-03-09  Eric Blake  <ebb9@byu.net>
45876         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
45877
45878         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
45879         types are not being provided by gnulib.
45880         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
45881         types are supported.
45882
45883 2007-03-10  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/stdio_.h (__attribute__): New macro.
45886         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
45887         vsprintf): Specify __attribute__ __format__ for GCC.
45888         Suggested by Eric Blake.
45889
45890 2007-03-09  Bruno Haible  <bruno@clisp.org>
45891
45892         * modules/printf-posix-tests: New file.
45893         * tests/test-printf-posix.sh: New file.
45894         * tests/test-printf-posix.c: New file.
45895
45896         * modules/printf-posix: New file.
45897         * lib/printf.c: New file.
45898         * m4/printf-posix-rpl.m4: New file.
45899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
45900         REPLACE_PRINTF.
45901         * lib/stdio_.h (printf): New declaration.
45902         (format, __format__, ____printf____, ____scanf____, ____strftime____,
45903         ____strfmon____): New macros.
45904         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
45905         REPLACE_PRINTF.
45906
45907 2007-03-09  Bruno Haible  <bruno@clisp.org>
45908
45909         * tests/test-vasnprintf-posix2.sh: New file.
45910         * tests/test-vasnprintf-posix2.c: New file.
45911         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
45912         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45913         (Makefile.am): Activate test-vasnprintf-posix2.sh.
45914
45915         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
45916         a locale dependent decimal point, rather than always '.'.
45917
45918 2007-03-09  Eric Blake  <ebb9@byu.net>
45919
45920         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
45921         spite of platforms like Tandem/NSK that define it to -1.
45922
45923 2007-03-08  Bruno Haible  <bruno@clisp.org>
45924
45925         * modules/vprintf-posix-tests: New file.
45926         * tests/test-vprintf-posix.sh: New file.
45927         * tests/test-vprintf-posix.c: New file.
45928         * tests/test-printf-posix.h: New file.
45929
45930         * modules/vprintf-posix: New file.
45931         * lib/vprintf.c: New file.
45932         * m4/vprintf-posix.m4: New file.
45933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
45934         REPLACE_VPRINTF.
45935         * lib/stdio_.h (vprintf): New declaration.
45936         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
45937         REPLACE_VPRINTF.
45938
45939 2007-03-08  Bruno Haible  <bruno@clisp.org>
45940
45941         * modules/fprintf-posix-tests: New file.
45942         * tests/test-fprintf-posix.sh: New file.
45943         * tests/test-fprintf-posix.c: New file.
45944
45945         * modules/fprintf-posix: New file.
45946         * lib/fprintf.c: New file.
45947         * m4/fprintf-posix.m4: New file.
45948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
45949         REPLACE_FPRINTF.
45950         * lib/stdio_.h (fprintf): New declaration.
45951         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
45952         REPLACE_FPRINTF.
45953
45954 2007-03-08  Bruno Haible  <bruno@clisp.org>
45955
45956         * modules/vfprintf-posix-tests: New file.
45957         * tests/test-vfprintf-posix.sh: New file.
45958         * tests/test-vfprintf-posix.c: New file.
45959         * tests/test-fprintf-posix.h: New file.
45960         * tests/test-fprintf-posix.out: New file.
45961
45962         * modules/vfprintf-posix: New file.
45963         * lib/vfprintf.c: New file.
45964         * m4/vfprintf-posix.m4: New file.
45965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
45966         REPLACE_VFPRINTF.
45967         * lib/stdio_.h (vfprintf): New declaration.
45968         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
45969         REPLACE_VFPRINTF.
45970
45971 2007-03-08  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
45974
45975 2007-03-08  Bruno Haible  <bruno@clisp.org>
45976
45977         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
45978         instead of 'expr' invocations.
45979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45984         Suggested by Paul Eggert.
45985
45986 2007-03-08  Bruno Haible  <bruno@clisp.org>
45987
45988         * modules/fseterr-tests: New file.
45989         * tests/test-fseterr.c: New file.
45990
45991         * modules/fseterr: New file.
45992         * lib/fseterr.h: New file.
45993         * lib/fseterr.c: New file.
45994
45995 2007-03-08  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
45998         * lib/getopt_.h: Likewise.
45999         * lib/mbswidth.h: Likewise.
46000         * lib/setenv.h: Likewise.
46001         * lib/vasnprintf.h: Likewise.
46002         * lib/vasprintf.h: Likewise.
46003         * lib/verror.h: Likewise.
46004         * lib/xsetenv.h: Likewise.
46005         * lib/xvasprintf.h: Likewise.
46006
46007 2007-03-08  Jim Meyering  <jim@meyering.net>
46008
46009         * users.txt: Add parted.
46010
46011         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46012
46013 2007-03-07  Bruno Haible  <bruno@clisp.org>
46014
46015         * m4/printf.m4: Make the shell script snippets copy&pastable.
46016
46017 2007-03-02  Bruno Haible  <bruno@clisp.org>
46018
46019         * lib/netinet_in_.h: New file.
46020         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46021         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46022         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46023         (Depends-on): Add absolute-header.
46024         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46025         into netinet/in.h.
46026
46027 2007-03-03  Bruno Haible  <bruno@clisp.org>
46028
46029         * lib/sys_select_.h: New file.
46030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46031         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46032         * modules/sys_select (Files): Add lib/sys_select_.h.
46033         (Depends-on): Add absolute-header.
46034         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46035         into sys/select.h.
46036
46037 2007-03-02  Bruno Haible  <bruno@clisp.org>
46038
46039         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46040         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46041         values.
46042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46043         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46044         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46045         * modules/sys_socket (Depends-on): Add absolute-header.
46046         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46047         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46048         (Include): Remove requirement of inclusion of <sys/types.h>.
46049
46050 2007-03-02  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/byteswap_.h (bswap_32): Fix formula.
46053
46054 2007-03-06  Bruno Haible  <bruno@clisp.org>
46055
46056         * modules/sprintf-posix-tests: New file.
46057         * tests/test-sprintf-posix.c: New file.
46058
46059         * modules/sprintf-posix: New file.
46060         * lib/sprintf.c: New file.
46061         * m4/sprintf-posix.m4: New file.
46062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46063         REPLACE_SPRINTF.
46064         * lib/stdio_.h (sprintf): New declaration.
46065         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46066         REPLACE_SPRINTF.
46067
46068 2007-03-06  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/vsprintf-posix-tests: New file.
46071         * tests/test-vsprintf-posix.c: New file.
46072         * tests/test-sprintf-posix.h: New file.
46073
46074         * modules/vsprintf-posix: New file.
46075         * lib/vsprintf.c: New file.
46076         * m4/vsprintf-posix.m4: New file.
46077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46078         REPLACE_VSPRINTF.
46079         * lib/stdio_.h (vsprintf): New declaration.
46080         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46081         REPLACE_VSPRINTF.
46082
46083 2007-03-06  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/vsnprintf (Depend-on): Remove minmax.
46086
46087 2007-03-06  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/snprintf-posix-tests: New file.
46090         * tests/test-snprintf-posix.c: New file.
46091
46092         * modules/snprintf-posix: New file.
46093         * m4/snprintf-posix.m4: New file.
46094         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46095         gl_FUNC_SNPRINTF.
46096         (gl_FUNC_SNPRINTF): Invoke it.
46097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46098         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46099         is set.
46100         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46101
46102 2007-03-06  Bruno Haible  <bruno@clisp.org>
46103
46104         * modules/vsnprintf-posix-tests: New file.
46105         * tests/test-vsnprintf-posix.c: New file.
46106         * tests/test-snprintf-posix.h: New file.
46107
46108         * modules/vsnprintf-posix: New file.
46109         * m4/vsnprintf-posix.m4: New file.
46110         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46111         gl_FUNC_VSNPRINTF.
46112         (gl_FUNC_VSNPRINTF): Invoke it.
46113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46114         * lib/stdio_.h (vsnprintf): Define as a replacement if
46115         REPLACE_VSNPRINTF is set.
46116         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46117
46118 2007-03-06  Bruno Haible  <bruno@clisp.org>
46119
46120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46122
46123 2007-03-06  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46126         (asinl): Declare also if HAVE_DECL_ASINL is set.
46127         (atanl): Declare also if HAVE_DECL_ATANL is set.
46128         (ceill): Declare also if HAVE_DECL_CEILL is set.
46129         (cosl): Declare also if HAVE_DECL_COSL is set.
46130         (expl): Declare also if HAVE_DECL_EXPL is set.
46131         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46132         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46133         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46134         (logl): Declare also if HAVE_DECL_LOGL is set.
46135         (sinl): Declare also if HAVE_DECL_SINL is set.
46136         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46137         (tanl): Declare also if HAVE_DECL_TANL is set.
46138         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46141         declaration of frexpl, ldexpl.
46142         * modules/printf-frexpl (Depends-on): Add math.
46143         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46144
46145 2007-03-05  Bruno Haible  <bruno@clisp.org>
46146
46147         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46148         frexpl and ldexpl are declared.
46149         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46150
46151 2007-03-05  Bruno Haible  <bruno@clisp.org>
46152
46153         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46154         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46155
46156 2007-03-05  Bruno Haible  <bruno@clisp.org>
46157
46158         * lib/stdio_.h: Include <stddef.h>.
46159
46160 2007-03-05  Bruno Haible  <bruno@clisp.org>
46161
46162         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46163
46164 2007-03-05  Bruno Haible  <bruno@clisp.org>
46165
46166         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46167         NetBSD 4, from Ralf Wildenhues.
46168
46169 2007-03-04  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/vasprintf.h: Update #if logic for the case when the functions
46172         exist but are overridden.
46173
46174 2007-03-04  Bruno Haible  <bruno@clisp.org>
46175
46176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46177         implementations: glibc-2.4 and MacOS X 10.3.
46178         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46179         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46180         * tests/test-vasprintf-posix.c (test_function): Likewise.
46181
46182 2007-03-04  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/vasprintf-posix-tests: New file.
46185         * tests/test-vasprintf-posix.c: New file.
46186
46187         * modules/vasprintf-posix: New file.
46188         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46189         defined.
46190         * m4/vasprintf-posix.m4: New file.
46191         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46192         gl_FUNC_VASPRINTF.
46193         (gl_FUNC_VASPRINTF): Invoke it.
46194         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46195         here.
46196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46197
46198 2007-03-04  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46201         REPLACE_GETTIMEOFDAY.
46202         * modules/sys_time (Makefile.am): Likewise.
46203         * m4/sys_time_h.m4: Likewise.
46204         * m4/gettimeofday.m4: Likewise.
46205
46206 2007-03-04  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/vasnprintf-posix-tests: New file.
46209         * tests/test-vasnprintf-posix.c: New file.
46210
46211         * modules/vasnprintf-posix: New file.
46212         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46213         printf-frexpl.h.
46214         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46215         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46216         REPLACE_VASNPRINTF is defined.
46217         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46218         gl_FUNC_VASNPRINTF.
46219         (gl_FUNC_VASNPRINTF): Invoke it.
46220         * m4/vasnprintf-posix.m4: New file.
46221         * m4/printf.m4: New file.
46222
46223 2007-03-04  Bruno Haible  <bruno@clisp.org>
46224
46225         Compile progreloc.c only if --enable-relocatable is specified.
46226         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46227         if --enable-relocatable was specified.
46228         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46229         lib_SOURCES.
46230
46231 2007-03-04  Jim Meyering  <jim@meyering.net>
46232
46233         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46234         Use it consistently, rather than enumerating errno constants.
46235
46236 2007-03-04  Bruno Haible  <bruno@clisp.org>
46237
46238         * modules/xvasprintf-tests: New file.
46239         * tests/test-xvasprintf.c: New file.
46240
46241         * modules/vasprintf-tests: New file.
46242         * tests/test-vasprintf.c: New file.
46243
46244         * modules/vasnprintf-tests: New file.
46245         * tests/test-vasnprintf.c: New file.
46246
46247         * modules/vsnprintf-tests: New file.
46248         * tests/test-vsnprintf.c: New file.
46249
46250         * modules/snprintf-tests: New file.
46251         * tests/test-snprintf.c: New file.
46252
46253 2007-03-04  Bruno Haible  <bruno@clisp.org>
46254
46255         Compile relocatable.c only if --enable-relocatable is specified.
46256         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46257         gl_RELOCATABLE_LIBRARY.
46258         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46259         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46260         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46261         gl_RELOCATABLE_LIBRARY.
46262         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46263         (Makefile.am): Remove lib_SOURCES.
46264         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46265         gl_RELOCATABLE_LIBRARY.
46266         (Makefile.am): Remove lib_SOURCES.
46267         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46268         always.
46269         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46270         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46271
46272 2007-03-04  Bruno Haible  <bruno@clisp.org>
46273
46274         * modules/argmatch-tests: New file.
46275         * tests/test-argmatch.c: New file.
46276
46277         * tests/test-allocsa.c (main): Halve the number of loop runs.
46278
46279         * modules/alloca-opt-tests: New file.
46280         * tests/test-alloca-opt.c: New file.
46281
46282 2007-03-04  Jim Meyering  <jim@meyering.net>
46283
46284         Work around difference between Linux ACLs and Solaris 10 ZFS.
46285         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46286         for EINVAL.
46287
46288 2007-03-03  Bruno Haible  <bruno@clisp.org>
46289
46290         * modules/relocatable-prog (Depends-on): Add back progreloc's
46291         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46292
46293 2007-03-03  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46296         * modules/relocatable-lib: New file.
46297
46298 2007-03-03  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/relocatable-prog: Renamed from modules/relocatable.
46301         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46302
46303 2007-03-03  Bruno Haible  <bruno@clisp.org>
46304
46305         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46306         m4/relocatable-lib.m4.
46307         (Depends-on): Remove 'relocatable'.
46308         (configure.ac): Add gl_RELOCATABLE_NOP.
46309
46310 2007-03-03  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/relocatable-prog-wrapper: New file.
46313         * modules/relocatable (Depends-on): Add it. Remove all other
46314         dependencies except progname.
46315         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46316
46317         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46318         (gl_FUNC_STRERROR): Nop.
46319         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46320
46321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46322         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46323
46324         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46325         (gl_FUNC_READLINK): Update.
46326
46327         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46328
46329 2007-03-03  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46332         * modules/xreadlink (Depends-on): Add unistd.
46333         * modules/xreadlink-with-size (Depends-on): Likewise.
46334
46335 2007-03-03  Bruno Haible  <bruno@clisp.org>
46336
46337         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46338         extracted from gt_FUNC_SETENV.
46339         (gt_FUNC_SETENV): Remove macro.
46340         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46341         remove gt_FUNC_SETENV.
46342
46343 2007-03-03  Bruno Haible  <bruno@clisp.org>
46344
46345         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46346         ENABLE_RELOCATABLE here.
46347         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46348
46349 2007-03-03  Bruno Haible  <bruno@clisp.org>
46350
46351         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46352         * tests/test-rbtreehash_list.c: Include progname.h.
46353         (main): Call set_program_name.
46354
46355         * modules/rbtree-oset-tests (Depends-on): Add progname.
46356         * tests/test-rbtree_oset.c: Include progname.h.
46357         (main): Call set_program_name.
46358
46359         * modules/rbtree-list-tests (Depends-on): Add progname.
46360         * tests/test-rbtree_list.c: Include progname.h.
46361         (main): Call set_program_name.
46362
46363         * modules/linked-list-tests (Depends-on): Add progname.
46364         * tests/test-linked_list.c: Include progname.h.
46365         (main): Call set_program_name.
46366
46367 2007-03-03  Bruno Haible  <bruno@clisp.org>
46368
46369         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46370         All uses of __restrict changed to _Restrict_.
46371         * lib/glob_.h (__restrict): Remove macro.
46372
46373 2007-03-02  Bruno Haible  <bruno@clisp.org>
46374
46375         * modules/gettext (configure.ac): Require gettext infrastructure
46376         from version 0.16.1.
46377
46378 2007-03-02  Bruno Haible  <bruno@clisp.org>
46379
46380         * modules/linkedhash-list-tests (Depends-on): Add progname.
46381         * tests/test-linkedhash_list.c: Include progname.h.
46382         (main): Call set_program_name.
46383
46384         * modules/carray-list-tests (Depends-on): Add progname.
46385         * tests/test-carray_list.c: Include progname.h.
46386         (main): Call set_program_name.
46387
46388         * modules/avltreehash-list-tests (Depends-on): Add progname.
46389         * tests/test-avltreehash_list.c: Include progname.h.
46390         (main): Call set_program_name.
46391
46392         * modules/avltree-oset-tests (Depends-on): Add progname.
46393         * tests/test-avltree_oset.c: Include progname.h.
46394         (main): Call set_program_name.
46395
46396         * modules/avltree-list-tests (Depends-on): Add progname.
46397         * tests/test-avltree_list.c: Include progname.h.
46398         (main): Call set_program_name.
46399
46400         * modules/array-oset-tests (Depends-on): Add progname.
46401         * tests/test-array_oset.c: Include progname.h.
46402         (main): Call set_program_name.
46403
46404         * modules/array-list-tests (Depends-on): Add progname.
46405         * tests/test-array_list.c: Include progname.h.
46406         (main): Call set_program_name.
46407
46408         * modules/argp-tests (Depends-on): Add progname.
46409         * tests/test-argp.c: Include argp.h first. Include progname.h.
46410         (main): Call set_program_name.
46411
46412 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46413
46414         * doc/gnulib-tool.texi (Initial import): Reword description of
46415         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46416         limited effect even if defined after the first system include.
46417
46418 2007-03-01  Bruno Haible  <bruno@clisp.org>
46419
46420         * build-aux/config.libpath: Update to libtool-1.5.22.
46421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46422
46423 2007-03-01  Bruno Haible  <bruno@clisp.org>
46424
46425         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46426         foo_CFLAGS.
46427         Reported by Ralf Wildenhues.
46428
46429 2007-03-01  Bruno Haible  <bruno@clisp.org>
46430
46431         * build-aux/install-reloc: Remove object files left over by some
46432         compilers.
46433         Reported by Ralf Wildenhues.
46434
46435 2007-03-01  Bruno Haible  <bruno@clisp.org>
46436
46437         * build-aux/install-reloc: Break long lines.
46438
46439 2007-03-01  Bruno Haible  <bruno@clisp.org>
46440
46441         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46442         Reported by Ralf Wildenhues.
46443
46444 2007-03-01  Bruno Haible  <bruno@clisp.org>
46445
46446         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46447         include ordering constraints.
46448
46449 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46453         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46454         as another example.
46455         * lib/time_.h: Fix misspelling.
46456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46457         Require gl_HEADER_TIME_H_DEFAULTS.
46458         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46459         * m4/time_r.m4 (gl_TIME_R): Likewise.
46460         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46461
46462 2007-03-01  Bruno Haible  <bruno@clisp.org>
46463
46464         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
46465         * m4/utimens.m4 (gl_UTIMENS): Likewise.
46466
46467 2007-03-01  Jim Meyering  <jim@meyering.net>
46468
46469         * modules/xreadlink (Maintainer): Add my name.
46470         * modules/xreadlink-with-size (Depends-on): Alphabetize.
46471
46472 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
46473             Bruno Haible  <bruno@clisp.org>
46474
46475         * build-aux/install-reloc: Compile also c-ctype.c.
46476         * build-aux/relocatable.sh.in: New file.
46477         * doc/relocatable.texi: New file.
46478         * doc/relocatable-maint.texi: New file.
46479         * doc/gnulib.texi: Include relocatable-maint.texi.
46480         * lib/progreloc.c: Include unistd.h unconditionally.
46481         * lib/relocwrapper.c: Include unistd.h unconditionally.
46482         Include c-ctype.h.
46483         (add_dotbin): Use c_tolower.
46484         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
46485         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
46486         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
46487         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
46488         to m4/relocatable-lib.m4.
46489         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
46490         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
46491         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
46492         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
46493         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
46494         * modules/relocatable: New file.
46495         * modules/relocatable-lib: New file.
46496         * modules/relocatable-script: New file.
46497
46498 2007-02-28  Bruno Haible  <bruno@clisp.org>
46499
46500         Import --enable-relocatable infrastructure.
46501         * build-aux/config.libpath: New file, from GNU gettext.
46502         * build-aux/install-reloc: New file, from GNU gettext.
46503         * build-aux/reloc-ldflags: New file, from GNU gettext.
46504         * lib/relocatable.h: New file, from GNU gettext.
46505         * lib/relocatable.c: New file, from GNU gettext.
46506         * lib/relocwrapper.c: New file, from GNU gettext.
46507         * m4/relocatable.m4: New file, from GNU gettext.
46508
46509 2007-02-28  Bruno Haible  <bruno@clisp.org>
46510
46511         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
46512
46513         * modules/xreadlink: New file, from GNU gettext with modifications.
46514         * lib/xreadlink.c: New file, from GNU gettext.
46515         * lib/xreadlink.h: Add comments.
46516         (xreadlink): New declaration.
46517
46518         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
46519         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
46520         lib/xreadlink-with-size.c.
46521         (configure.ac): Remove gl_XREADLINK invocation.
46522         (Makefile.am): Augment lib_SOURCES.
46523         * m4/xreadlink.m4: Remove file.
46524         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
46525         (xreadlink_with_size): Renamed from xreadink.
46526         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
46527         * modules/canonicalize (Depends-on): Replace xreadlink with
46528         xreadlink-with-size.
46529         * lib/canonicalize.c (canonicalize_filename_mode): Update.
46530
46531 2007-02-25  Jim Meyering  <jim@meyering.net>
46532
46533         * build-aux/announce-gen: When complaining about excess arguments,
46534         list them.
46535
46536 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46537
46538         * README: Document signed integer overflow situation more
46539         accurately.
46540
46541 2007-02-25  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
46544         'a' or 'A' conversion.
46545
46546 2007-02-25  Bruno Haible  <bruno@clisp.org>
46547
46548         * modules/filename: Renamed from modules/pathname.
46549         (Files): Replace lib/pathname.h with lib/filename.h. Replace
46550         lib/concatpath.c with lib/concat-filename.c.
46551         (Makefile.am): Update.
46552         (Include): Replace pathname.h with filename.h.
46553         * lib/filename.h: Renamed from lib/pathname.h.
46554         (concatenated_filename): Renamed from concatenated_pathname.
46555         * lib/concat-filename.c: Renamed from lib/concatpath.c.
46556         (concatenated_filename): Renamed from concatenated_pathname.
46557         * lib/findprog.c: Include filename.h instead of pathname.h.
46558         (find_in_path): Update.
46559         * lib/javacomp.c: Include filename.h instead of pathname.h.
46560         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46561         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46562         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46563         is_oldgcj_14_13_usable, is_javac_usable): Update.
46564         * lib/javaexec.c: Include filename.h instead of pathname.h.
46565         (execute_java_class): Update.
46566         * modules/findprog: Update.
46567         * modules/javacomp: Update.
46568         * modules/javaexec: Update.
46569         * MODULES.html.sh (File system functions): Add 'filename', remove
46570         'pathname'.
46571
46572 2007-02-25  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/printf-frexpl-tests: New file.
46575         * tests/test-printf-frexpl.c: New file.
46576
46577         * modules/printf-frexpl: New file.
46578         * lib/printf-frexpl.h: New file.
46579         * lib/printf-frexpl.c: New file.
46580         * m4/printf-frexpl.m4: New file.
46581
46582 2007-02-25  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/printf-frexp-tests: New file.
46585         * tests/test-printf-frexp.c: New file.
46586
46587         * modules/printf-frexp: New file.
46588         * lib/printf-frexp.h: New file.
46589         * lib/printf-frexp.c: New file.
46590         * m4/printf-frexp.m4: New file.
46591
46592 2007-02-25  Bruno Haible  <bruno@clisp.org>
46593
46594         Assume automake >= 1.10 for the tests.
46595         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
46596         * modules/arctwo-tests: Likewise.
46597         * modules/argp-tests: Likewise.
46598         * modules/avltree-list-tests: Likewise.
46599         * modules/avltree-oset-tests: Likewise.
46600         * modules/avltreehash-list-tests: Likewise.
46601         * modules/carray-list-tests: Likewise.
46602         * modules/crc-tests: Likewise.
46603         * modules/des-tests: Likewise.
46604         * modules/gc-arcfour-tests: Likewise.
46605         * modules/gc-arctwo-tests: Likewise.
46606         * modules/gc-des-tests: Likewise.
46607         * modules/gc-hmac-md5-tests: Likewise.
46608         * modules/gc-hmac-sha1-tests: Likewise.
46609         * modules/gc-md2-tests: Likewise.
46610         * modules/gc-md4-tests: Likewise.
46611         * modules/gc-md5-tests: Likewise.
46612         * modules/gc-pbkdf2-sha1-tests: Likewise.
46613         * modules/gc-rijndael-tests: Likewise.
46614         * modules/gc-sha1-tests: Likewise.
46615         * modules/gc-tests: Likewise.
46616         * modules/getaddrinfo-tests: Likewise.
46617         * modules/hmac-md5-tests: Likewise.
46618         * modules/hmac-sha1-tests: Likewise.
46619         * modules/linked-list-tests: Likewise.
46620         * modules/linkedhash-list-tests: Likewise.
46621         * modules/lock-tests: Likewise.
46622         * modules/md2-tests: Likewise.
46623         * modules/md4-tests: Likewise.
46624         * modules/md5-tests: Likewise.
46625         * modules/rbtree-list-tests: Likewise.
46626         * modules/rbtree-oset-tests: Likewise.
46627         * modules/rbtreehash-list-tests: Likewise.
46628         * modules/read-file-tests: Likewise.
46629         * modules/rijndael-tests: Likewise.
46630         * modules/stdint-tests: Likewise.
46631         * modules/tls-tests: Likewise.
46632
46633 2007-02-24  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
46636         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
46637         function; instead check whether isnan with a double argument links.
46638         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
46639         function; instead check whether isnan with a 'long double' argument
46640         links.
46641         Reported by Eric Blake <ebb9@byu.net>.
46642
46643 2007-02-24  Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
46646         defined.
46647         * lib/isnanl.c: Remove all code. Just include isnan.c.
46648         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
46649
46650 2007-02-25  Jim Meyering  <jim@meyering.net>
46651
46652         Avoid conflicting types for 'unsetenv' on FreeBSD.
46653         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
46654         conflicting with FreeBSD's (5.0 and 6.1) function declaration
46655         in stdlib.h.
46656
46657 2007-02-24  Bruno Haible  <bruno@clisp.org>
46658
46659         * modules/isnanl-nolibm-tests: New file.
46660         * tests/test-isnanl.c: New file.
46661
46662         * modules/isnanl-nolibm: New file.
46663         * lib/isnanl.h: New file.
46664         * lib/isnanl.c: New file.
46665         * m4/isnanl.m4: New file.
46666
46667 2007-02-24  Bruno Haible  <bruno@clisp.org>
46668
46669         * modules/isnan-nolibm-tests: New file.
46670         * tests/test-isnan.c: New file.
46671
46672         * modules/isnan-nolibm: New file.
46673         * lib/isnan.h: New file.
46674         * lib/isnan.c: New file.
46675         * m4/isnan.m4: New file.
46676
46677 2007-02-24  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
46680         assume that an exponent fits in 20 bits.
46681
46682 2007-02-24  Jim Meyering  <jim@meyering.net>
46683
46684         * m4/regex.m4: Update the description of the configure-time option,
46685         --without-included-regex, to state accurately what the defaults are,
46686         and perhaps to give people an idea why using this option is risky.
46687
46688 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46689
46690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
46691         loops on small arguments.  This attempts to avoid the problem
46692         Bruno Haible reported for AIX 4.3.2 in
46693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
46694
46695 2007-02-23  Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
46698         Needed for help2man.
46699
46700 2007-02-23  Karl Berry  <karl@gnu.org>
46701
46702         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
46703         exists, foo.h should be cvs-ignored, not committed.
46704
46705 2007-02-23  Eric Blake  <ebb9@byu.net>
46706
46707         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
46708         * lib/stat-time.h (includes): Likewise.
46709         * lib/utimecmp.c (includes): Likewise.
46710         * lib/utimens.h (includes): Likewise.
46711         * lib/getdate.y (includes): Also include "timespec.h" for use
46712         internal to the module.
46713         * modules/utimens (Depends-on): Revert yesterday's patch.
46714         * modules/nanosleep (Depends-on): Add missing dependency.
46715
46716 2007-02-22  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/glob.c: Don't include getlogin_r.h.
46719
46720 2007-02-22  Jim Meyering  <jim@meyering.net>
46721
46722         * modules/utimens (Depends-on): Add timespec, required for
46723         utimens.h's inclusion of timespec.h.
46724
46725 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
46726
46727         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
46728         long unreadable paths in GNU/Linux.  Problem reported by Andreas
46729         Schwab in
46730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
46731         I'll try to think of a better way to fix the Solaris problem.
46732
46733         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
46734         like glibc; on Solaris 10, it fails with errno == EINVAL.
46735         POSIX says the behavior is unspecified if the first argument is NULL,
46736         so play it safe and never pass NULL to the system getcwd.
46737
46738 2007-02-21  Jim Meyering  <jim@meyering.net>
46739
46740         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
46741         of gettimeofday.  It would conflict with the one now always
46742         provided via sys_time_.h.  Reported by Matthew Woehlke, as
46743         an IRIX 6.5 build failure.
46744
46745 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46746
46747         Minor fixups to port to Solaris 10 with Sun C 5.8.
46748         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
46749         * modules/getcwd (Depends-on): Add dirfd.
46750         * lib/putenv.c (putenv): #undef it.
46751         (rpl_putenv): New decl.
46752         (malloc, free): Include <stdlib.h> rather than prototyping separately.
46753
46754 2007-02-20  Bruno Haible  <bruno@clisp.org>
46755
46756         * modules/stdio-tests: New file.
46757         * tests/test-stdio.c: New file.
46758
46759         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
46760         (Depends-on): Add stdio.
46761         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46762         (Include): Use <stdio.h> instead of vsnprintf.h.
46763         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46764         HAVE_DECL_VSNPRINTF.
46765         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
46766
46767         * modules/snprintf (Files): Remove lib/snprintf.h.
46768         (Depends-on): Add stdio.
46769         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46770         (Include): Use <stdio.h> instead of snprintf.h.
46771         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46772         HAVE_DECL_SNPRINTF.
46773         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
46774         * lib/getaddrinfo.c: Likewise.
46775
46776         * modules/stdio: New file.
46777         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
46778         * lib/snprintf.h: Remove file.
46779         * lib/vsnprintf.h: Remove file.
46780         * lib/.cppi-disable: Remove snprintf.h.
46781         * m4/stdio_h.m4: New file.
46782         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
46783
46784 2007-02-20  Jim Meyering  <jim@meyering.net>
46785
46786         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
46787         used by e.g., mingw.  From Bruno Haible.
46788
46789 2007-02-19  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
46792         warnings.
46793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46794
46795 2007-02-19  Bruno Haible  <bruno@clisp.org>
46796
46797         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
46798         from mingw users.
46799
46800 2007-02-19  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
46803         warnings.
46804         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
46805
46806 2007-02-19  Jim Meyering  <jim@meyering.net>
46807
46808         Don't use FD after a successful "fdopendir (fd)".
46809         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
46810         Reset it by calling dirfd on the just-obtained DIR*.
46811
46812         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
46813         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
46814
46815 2007-02-18  Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/readlink.c: Include <unistd.h>.
46818         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
46819         HAVE_READLINK.
46820         * modules/readlink (Depends-on): Add unistd.
46821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46822         (Include): Add <unistd.h>.
46823
46824         * lib/getlogin_r.h: Remove file.
46825         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
46826         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
46827         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
46828         HAVE_DECL_GETLOGIN_R.
46829         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
46830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46831         (Include): Use <unistd.h> instead of getlogin_r.h.
46832
46833         * lib/getcwd.h: Remove file.
46834         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
46835         * lib/xgetcwd.c: Likewise.
46836         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
46837         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
46838         * modules/getcwd (Files): Remove lib/getcwd.h.
46839         (Depends-on): Add unistd.
46840         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46841         (Include): Use <unistd.h> instad of getcwd.h.
46842
46843         * lib/ftruncate.c: Include <unistd.h> first.
46844         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
46845         Set HAVE_FTRUNCATE.
46846         * modules/ftruncate (Depends-on): Add unistd.
46847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46848
46849         * lib/fchdir.c: Include <unistd.h> first.
46850         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
46851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
46852         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
46853         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46854         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
46855
46856         * lib/dup2.c: Include <unistd.h> first.
46857         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
46858         HAVE_DUP2.
46859         * modules/dup2 (Depends-on): Add unistd.
46860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46861
46862         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
46863         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
46864         REPLACE_CHOWN. Don't define chown as a macro here.
46865         * modules/chown (Depends-on): Add unistd.
46866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46867
46868         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
46869         Add definition for GL_LINK_WARNING.
46870         (chown, dup2): New declarations.
46871         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
46872         link warning.
46873         (ftruncate): New declaration.
46874         (getcwd): New declaration, taken from old getcwd.h.
46875         (getlogin_r): New declaration, taken from old getlogin_r.h.
46876         (readlink): New declaration.
46877         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
46878         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
46879         (gl_PREREQ_UNISTD): Remove macro.
46880         (gl_UNISTD_MODULE_INDICATOR): New macro.
46881         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
46882         many new variables. Don't set UNISTD_H.
46883         * modules/unistd (Description): Change.
46884         (Depends-on): Add link-warning.
46885         (configure.ac): Update.
46886         (Makefile.am): Create unistd.h always. Substitute many new variables
46887         into it.
46888
46889 2007-02-18  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
46892         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
46893         HAVE_GETSUBOPT.
46894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
46895         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
46896         * lib/getsubopt.h: Remove file.
46897         * modules/getsubopt (Files): Remove lib/getsubopt.h.
46898         (Depends-on): Add stdlib.
46899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46900         (Includes): Use <stdlib.h> instead of getsubopt.h.
46901         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
46902         Set HAVE_GETSUBOPT.
46903         * lib/getsubopt.c: Don't include getsubopt.h.
46904
46905 2007-02-18  Bruno Haible  <bruno@clisp.org>
46906
46907         * modules/fchdir (Depends-on): Add dup2.
46908
46909 2007-02-18  Bruno Haible  <bruno@clisp.org>
46910
46911         * lib/stdlib_.h: Handle glibc's special invocation convention
46912         specially.
46913
46914 2007-02-18  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/stdlib-tests: New file.
46917         * tests/test-stdlib.c: New file.
46918
46919         * modules/mkstemp (Files): Remove lib/mkstemp.h.
46920         (Depends-on): Add stdlib.
46921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46922         (Includes): Use <stdlib.h> instead of mkstemp.h.
46923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46924         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
46925         * lib/mkstemp.c: Don't include mkstemp.h.
46926         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
46927         * lib/stdlib--.h: Don't include mkstemp.h.
46928
46929         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
46930         (Depends-on): Add stdlib.
46931         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46932         (Includes): Use <stdlib.h> instead of mkdtemp.h.
46933         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46934         HAVE_MKDTEMP.
46935         * lib/mkdtemp.c: Don't include mkdtemp.h.
46936         * lib/clean-temp.c: Don't include mkdtemp.h.
46937
46938         * modules/exit (Files): Remove lib/exit.h.
46939         (Depends-on): Add stdlib.
46940         (Makefile.am): Remove lib_SOURCES.
46941         (Include): Use <stdlib.h> instead of exit.h.
46942         * lib/argmatch.c: Don't include exit.h.
46943         * lib/execute.c: Likewise.
46944         * lib/pagealign_alloc.c: Likewise.
46945         * lib/pipe.c: Likewise.
46946         * lib/wait-process.c: Likewise.
46947         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
46948         * lib/exitfail.c: Likewise.
46949         * lib/savewd.c: Likewise.
46950         * lib/xsetenv.c: Likewise.
46951
46952         * modules/stdlib: New file.
46953         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
46954         and extra comments about mkstemp().
46955         * lib/exit.h: Remove file.
46956         * lib/mkdtemp.h: Remove file.
46957         * lib/mkstemp.h: Remove file.
46958         * m4/stdlib_h.m4: New file.
46959         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
46960
46961 2007-02-18  Bruno Haible  <bruno@clisp.org>
46962
46963         * modules/math-tests: New file.
46964         * tests/test-math.c: New file.
46965
46966         * modules/math: New file.
46967         * modules/mathl (Files): Remove lib/mathl.h.
46968         (Depends-on): Add math.
46969         (Makefile.am): Don't mention mathl.h.
46970         (Include): Use <math.h> instead of mathl.h.
46971         * lib/math_.h: New file.
46972         * lib/mathl.h: Remove file.
46973         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
46974         mathl.h.
46975         * lib/asinl.c: Likewise.
46976         * lib/atanl.c: Likewise.
46977         * lib/ceill.c: Likewise.
46978         * lib/cosl.c: Likewise.
46979         * lib/expl.c: Likewise.
46980         * lib/floorl.c: Likewise.
46981         * lib/frexpl.c: Likewise.
46982         * lib/ldexpl.c: Likewise.
46983         * lib/logl.c: Likewise.
46984         * lib/sincosl.c: Likewise.
46985         * lib/sinl.c: Likewise.
46986         * lib/sqrtl.c: Likewise.
46987         * lib/tanl.c: Likewise.
46988         * lib/trigl.c: Likewise.
46989         * m4/math_h.m4: New file.
46990         * MODULES.html.sh (Mathematics): Add math.
46991
46992 2007-02-17  Bruno Haible  <bruno@clisp.org>
46993
46994         * modules/wctype-tests: New file.
46995         * tests/test-wctype.c: New file.
46996
46997         * modules/wchar-tests: New file.
46998         * tests/test-wchar.c: New file.
46999
47000         * modules/unistd-tests: New file.
47001         * tests/test-unistd.c: New file.
47002
47003         * modules/time-tests: New file.
47004         * tests/test-time.c: New file.
47005
47006         * modules/sysexits-tests: New file.
47007         * tests/test-sysexits.c: New file.
47008
47009         * modules/sys_time-tests: New file.
47010         * tests/test-sys_time.c: New file.
47011
47012         * modules/sys_stat-tests: New file.
47013         * tests/test-sys_stat.c: New file.
47014
47015         * modules/sys_socket-tests: New file.
47016         * tests/test-sys_socket.c: New file.
47017
47018         * modules/sys_select-tests: New file.
47019         * tests/test-sys_select.c: New file.
47020
47021         * modules/string-tests: New file.
47022         * tests/test-string.c: New file.
47023
47024         * modules/stdbool-tests: New file.
47025         * tests/test-stdbool.c: New file.
47026
47027         * modules/netinet_in-tests: New file.
47028         * tests/test-netinet_in.c: New file.
47029
47030         * modules/inttypes-tests: New file.
47031         * tests/test-inttypes.c: New file.
47032
47033         * modules/fcntl-tests: New file.
47034         * tests/test-fcntl.c: New file.
47035
47036         * modules/byteswap-tests: New file.
47037         * tests/test-byteswap.c: New file.
47038
47039         * modules/arpa_inet-tests: New file.
47040         * tests/test-arpa_inet.c: New file.
47041
47042 2007-02-17  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47045         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47046         if the corresponding module is not enabled. Emit link warnings if
47047         the function is used nevertheless.
47048         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47049         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47050         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47051         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47052         * modules/inttypes (Depends-on): Add link-warning.
47053         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47054         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47055         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47056         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47057         * modules/imaxdiv (configure.ac): Likewise.
47058         * modules/strtoimax (configure.ac): Likewise.
47059         * modules/strtoumax (configure.ac): Likewise.
47060
47061 2007-02-17  Bruno Haible  <bruno@clisp.org>
47062
47063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47064         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47065         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47066         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47067
47068 2007-02-17  Bruno Haible  <bruno@clisp.org>
47069
47070         * modules/link-warning: New file.
47071         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47072         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47073         * modules/string (Depends-on): Add link-warning.
47074         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47075         string.h.
47076         * MODULES.html.sh (Support for building libraries and executables): Add
47077         link-warning.
47078
47079 2007-02-17  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47082         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47083         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47084         long lines.
47085
47086 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47087             Bruno Haible  <bruno@clisp.org>
47088
47089         * modules/tmpfile: New file.
47090         * lib/tmpfile.c: New file.
47091         * m4/tmpfile.m4: New file.
47092         * MODULES.html.sh (func_all_modules): New section "Input/output".
47093
47094 2007-02-15  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47097         (supports_delete_on_close): New function.
47098         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47099
47100 2007-02-14  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/mbspcasecmp-tests: New file.
47103         * tests/test-mbspcasecmp.sh: New file.
47104         * tests/test-mbspcasecmp.c: New file.
47105
47106         New module mbspcasecmp.
47107         * modules/mbspcasecmp: New file.
47108         * lib/mbspcasecmp.c: New file.
47109         * lib/string_.h (strncasecmp): Change warning message.
47110         (mbspcasecmp): New declaration.
47111         * m4/mbspcasecmp.m4: New file.
47112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47113         GNULIB_MBSPCASECMP.
47114         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47115         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47116
47117 2007-02-14  Bruno Haible  <bruno@clisp.org>
47118
47119         * modules/mbsncasecmp-tests: New file.
47120         * tests/test-mbsncasecmp.sh: New file.
47121         * tests/test-mbsncasecmp.c: New file.
47122
47123         New module mbsncasecmp.
47124         * modules/mbsncasecmp: New file.
47125         * lib/mbsncasecmp.c: New file.
47126         * lib/string_.h (mbsncasecmp): New declaration.
47127         * m4/mbsncasecmp.m4: New file.
47128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47129         GNULIB_MBSNCASECMP.
47130         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47131         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47132
47133 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47136         Verify that it doesn't overlap with our flags.
47137         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47138         do not have the desired effect in multibyte locales; instead, use
47139         mbscasecmp.
47140         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47141         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47142         we don't require GNU fnmatch ourselves (if our users require it, they
47143         should do so explicitly).
47144
47145         Fix regex code so it doesn't rely on strcasecmp.
47146         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47147         Otherwise, include gnulib's langinfo.h.
47148         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47149         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47150         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47151         * modules/regex (FILES): Remove m4/codeset.m4.
47152         (Depends-on): Add localcharset.  Remove strcase.
47153
47154 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47155
47156         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47157         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47158
47159 2007-02-13  Bruno Haible  <bruno@clisp.org>
47160
47161         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47163
47164 2007-02-12  Bruno Haible  <bruno@clisp.org>
47165
47166         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47167         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47168         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47169         time warning rather than a link error.
47170
47171 2007-02-12  Bruno Haible  <bruno@clisp.org>
47172
47173         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47176
47177 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47178
47179         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47180         args, not 2.
47181
47182 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47183
47184         New module 'time', so that apps can include <time.h> as per
47185         POSIX and GNU instead of separate include files like time_r.h
47186         and timegm.h.  This implementation tries out a simpler approach
47187         for replacing decls in standard include files (as compared to
47188         the string module), somewhat as an experiment.
47189
47190         * config/srclist.txt: Comment out mktime.c for now.
47191         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47192         since it doesn't apply any more.  Use generic wording instead.
47193         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47194         'time'.
47195         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47196         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47197         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47198         Don't include <sys/types.h>; no longer needed since we assume C89.
47199         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47200         * lib/strftime.c: Likewise.
47201         * lib/time_r.c: Likewise.
47202         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47203         * lib/nanosleep.c: Include <time.h> first, to check interface.
47204         * lib/strptime.c: Likewise.
47205         * lib/time_r.c: Likewise.
47206         * lib/timegm.c: Likewise.
47207         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47208         needed.
47209         * lib/timegm.c: Don't include timegm.h; no longer needed.
47210         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47211         time.h now handles any problems in that area.
47212         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47213         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47214         that time.h defines struct timespec.
47215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47216         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47217         handles that.
47218         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47219         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47220         needed.  Set REPLACE_LOCALTIME.
47221         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47222         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47223         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47224         nanosleep; time_h.m4 now does that.  Don't require
47225         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47226         module handles this now.
47227         * modules/getdate (Depends-on): Remove timespec.  Add time.
47228         * modules/nanosleep (Depends-on): Likewise.
47229         * modules/stat-time (Depends-on): Likewise.
47230         * modules/nanosleep (Include): Include time.h, not timespec.h.
47231         * modules/strptime (Files): Remove lib/strptime.h.
47232         (Depends-on): Add extensions, time.
47233         (Include): Include time.h, not strptime.h.
47234         * modules/time_r (Files): Remove lib/time_r.h.
47235         (Depends-on): Add time.
47236         (Include): Include time.h, not time_r.h.
47237         * modules/timegm: Likewise.
47238         * modules/timespec (Description): Now does timespec-related decls
47239         of our own, instead of struct timespec itself.
47240         (Depends-on): Add time; remove extensions.
47241         (Maintainer): Add self.
47242         * modules/utimecmp (Depends-on): Add time; remove timespec.
47243         * modules/utimens (Depends-on): Likewise.
47244         * modules/xnanosleep (Depends-on): Likewise.
47245
47246 2007-02-11  Bruno Haible  <bruno@clisp.org>
47247
47248         * lib/c-strstr.c: Include allocsa.h.
47249         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47250         * lib/c-strcasestr.c: Include allocsa.h.
47251         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47252         * lib/strcasestr.c: Include allocsa.h.
47253         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47254         * lib/mbsstr.c: Include allocsa.h.
47255         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47256         allocsa/freesa instead of malloc/free.
47257         * lib/mbscasestr.c: Include allocsa.h.
47258         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47259         allocsa/freesa instead of malloc/free.
47260         * modules/c-strstr (Depends-on): Add allocsa.
47261         * modules/c-strcasestr (Depends-on): Likewise.
47262         * modules/strcasestr (Depends-on): Likewise.
47263         * modules/mbsstr (Depends-on): Likewise.
47264         * modules/mbscasestr (Depends-on): Likewise.
47265
47266 2007-02-11  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47269
47270         * modules/mbsspn-tests: New file.
47271         * tests/test-mbsspn.sh: New file.
47272         * tests/test-mbsspn.c: New file.
47273
47274 2007-02-11  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47277
47278         * modules/mbspbrk-tests: New file.
47279         * tests/test-mbspbrk.sh: New file.
47280         * tests/test-mbspbrk.c: New file.
47281
47282 2007-02-11  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47285         unneeded cast.
47286
47287         * modules/mbscspn-tests: New file.
47288         * tests/test-mbscspn.sh: New file.
47289         * tests/test-mbscspn.c: New file.
47290
47291 2007-02-11  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/mbscasecmp-tests: New file.
47294         * tests/test-mbscasecmp.sh: New file.
47295         * tests/test-mbscasecmp.c: New file.
47296
47297 2007-02-11  Bruno Haible  <bruno@clisp.org>
47298
47299         Ensure O(n) worst-case complexity of mbscasestr.
47300         * lib/mbscasestr.c: Include stdbool.h.
47301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47302         functions.
47303         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47304         the bookkeeping indicates that it's worth it.
47305         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47306
47307         * modules/mbscasestr-tests: New file.
47308         * tests/test-mbscasestr1.c: New file.
47309         * tests/test-mbscasestr2.sh: New file.
47310         * tests/test-mbscasestr2.c: New file.
47311         * tests/test-mbscasestr3.sh: New file.
47312         * tests/test-mbscasestr3.c: New file.
47313         * tests/test-mbscasestr4.sh: New file.
47314         * tests/test-mbscasestr4.c: New file.
47315         * m4/locale-tr.m4: New file.
47316
47317 2007-02-11  Bruno Haible  <bruno@clisp.org>
47318
47319         Ensure O(n) worst-case complexity of mbsstr.
47320         * lib/mbsstr.c: Include stdbool.h.
47321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47322         functions.
47323         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47324         bookkeeping indicates that it's worth it.
47325         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47326
47327         * modules/mbsstr-tests: New file.
47328         * tests/test-mbsstr1.c: New file.
47329         * tests/test-mbsstr2.sh: New file.
47330         * tests/test-mbsstr2.c: New file.
47331         * tests/test-mbsstr3.sh: New file.
47332         * tests/test-mbsstr3.c: New file.
47333         * m4/locale-fr.m4: New file.
47334
47335 2007-02-11  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/mbsrchr.c (mbsrchr): Fix bug.
47338
47339         * modules/mbsrchr-tests: New file.
47340         * tests/test-mbsrchr.sh: New file.
47341         * tests/test-mbsrchr.c: New file.
47342
47343 2007-02-11  Bruno Haible  <bruno@clisp.org>
47344
47345         * lib/mbschr.c (mbschr): Fix bug.
47346
47347         * modules/mbschr-tests: New file.
47348         * tests/test-mbschr.sh: New file.
47349         * tests/test-mbschr.c: New file.
47350         * m4/locale-zh.m4: New file.
47351
47352 2007-02-11  Bruno Haible  <bruno@clisp.org>
47353
47354         Support for copying multibyte string iterators.
47355         * lib/mbiter.h: Include <string.h>.
47356         (mbiter_multi_copy): New function.
47357         (mbi_copy): New macro.
47358         * lib/mbuiter.h: Include <string.h>.
47359         (mbuiter_multi_copy): New function.
47360         (mbui_copy): New macro.
47361
47362 2007-02-11  Bruno Haible  <bruno@clisp.org>
47363
47364         New module mbslen.
47365         * modules/mbslen: New file.
47366         * lib/mbslen.c: New file.
47367         * lib/string_.h (mbslen): New declaration.
47368         * m4/mbslen.m4: New file.
47369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47370         GNULIB_MBSLEN.
47371         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47372         * MODULES.html.sh (Internationalization functions): Add mbslen.
47373
47374 2007-02-11  Bruno Haible  <bruno@clisp.org>
47375
47376         Ensure O(n) worst-case complexity of strcasestr substitute.
47377         * lib/strcasestr.c: Include stdbool.h.
47378         (knuth_morris_pratt): New function.
47379         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47380         bookkeeping indicates that it's worth it.
47381         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47382
47383         * modules/strcasestr-tests: New file.
47384         * tests/test-strcasestr.c: New file.
47385
47386 2007-02-11  Bruno Haible  <bruno@clisp.org>
47387
47388         Ensure O(n) worst-case complexity of c_strcasestr.
47389         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47390         (knuth_morris_pratt): New function.
47391         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47392         the bookkeeping indicates that it's worth it.
47393         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47394
47395         * modules/c-strcasestr-tests: New file.
47396         * tests/test-c-strcasestr.c: New file.
47397
47398 2007-02-11  Bruno Haible  <bruno@clisp.org>
47399
47400         Ensure O(n) worst-case complexity of c_strstr.
47401         * lib/c-strstr.c: Include stdbool.h, string.h.
47402         (knuth_morris_pratt): New function.
47403         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47404         bookkeeping indicates that it's worth it.
47405         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47406
47407         * lib/c-strstr.c: Complete rewrite for maintainability.
47408
47409         * modules/c-strstr-tests: New file.
47410         * tests/test-c-strstr.c: New file.
47411
47412 2007-02-11  Bruno Haible  <bruno@clisp.org>
47413
47414         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47415         5.2.1 and earlier, whereby \055 was treated just like the range
47416         delimiter '-'.
47417         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47418
47419 2007-02-08  Bruno Haible  <bruno@clisp.org>
47420
47421         * modules/regex (Depends-on): Add stdbool.
47422         Reported by Dalibor Topic <robilad@kaffe.org>.
47423
47424 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47425
47426         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47427         Prefer returning from main to exiting from it.
47428         Remove unnecessary parens after sizeof.
47429
47430 2007-02-05  Bruno Haible  <bruno@clisp.org>
47431
47432         New module mbssep.
47433         * modules/mbssep: New file.
47434         * lib/mbssep.c: New file.
47435         * lib/string_.h (strsep): Add a conditional link warning.
47436         (mbssep): New declaration.
47437         * m4/mbssep.m4: New file.
47438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47439         GNULIB_MBSSEP.
47440         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47441         * MODULES.html.sh (Internationalization functions): Add mbssep.
47442
47443 2007-02-05  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47446         Optimize search in case of 1 delimiter.
47447
47448 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47449
47450         * lib/acl.h: Include sys/types.h before sys/acl.h.
47451
47452 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47453
47454         Merge upstream fix for glibc bugzilla #3957:
47455
47456         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47457
47458         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47459         bit for RE_HAT_LISTS_NOT_NEWLINE.
47460         (build_charclass_op): Remove bogus comment.
47461
47462 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47463
47464         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47465
47466 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47467
47468         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
47469         * lib/memmem.c [!defined _LIBC]: Include config.h.
47470
47471 2007-02-04  Bruno Haible  <bruno@clisp.org>
47472
47473         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
47474         warning message.
47475
47476 2007-02-04  Bruno Haible  <bruno@clisp.org>
47477
47478         New module mbstok_r.
47479         * modules/mbstok_r: New file.
47480         * lib/mbstok_r.c: New file.
47481         * lib/string_.h (strtok_r): Change argument names to match the
47482         comments. Add a conditional link warning.
47483         (mbstok_r): New declaration.
47484         * m4/mbstok_r.m4: New file.
47485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47486         GNULIB_MBSTOK_R.
47487         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
47488         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
47489
47490 2007-02-04  Bruno Haible  <bruno@clisp.org>
47491
47492         New module mbsspn.
47493         * modules/mbsspn: New file.
47494         * lib/mbsspn.c: New file.
47495         * lib/string_.h (strspn): Add a conditional link warning.
47496         (mbsspn): New declaration.
47497         * m4/mbsspn.m4: New file.
47498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47499         GNULIB_MBSSPN.
47500         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
47501         * MODULES.html.sh (Internationalization functions): Add mbsspn.
47502
47503 2007-02-04  Bruno Haible  <bruno@clisp.org>
47504
47505         New module mbspbrk.
47506         * modules/mbspbrk: New file.
47507         * lib/mbspbrk.c: New file.
47508         * lib/string_.h (strpbrk): Add a conditional link warning.
47509         (mbspbrk): New declaration.
47510         * m4/mbspbrk.m4: New file.
47511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47512         GNULIB_MBSPBRK.
47513         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
47514         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
47515
47516 2007-02-04  Bruno Haible  <bruno@clisp.org>
47517
47518         New module mbscspn.
47519         * modules/mbscspn: New file.
47520         * lib/mbscspn.c: New file.
47521         * lib/string_.h (strcspn): Add a conditional link warning.
47522         (mbscspn): New declaration.
47523         * m4/mbscspn.m4: New file.
47524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47525         GNULIB_MBSCSPN.
47526         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
47527         * MODULES.html.sh (Internationalization functions): Add mbscspn.
47528
47529 2007-02-04  Bruno Haible  <bruno@clisp.org>
47530
47531         New module mbscasestr, reduced goal of strcasestr.
47532         * modules/mbscasestr: New file.
47533         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
47534         (mbscasestr): Renamed from strcasestr.
47535         * lib/strcasestr.c: Don't include mbuiter.h.
47536         (strcasestr): Remove support for multibyte locales.
47537         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
47538         Change the conditional link warning.
47539         (mbscasestr): New declaration.
47540         * m4/mbscasestr.m4: New file.
47541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
47542         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
47543         REPLACE_STRCASESTR.
47544         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
47545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47546         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47547         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
47548         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
47549         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47550         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
47551         (Depends-on): Remove mbuiter.
47552         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
47553
47554 2007-02-04  Bruno Haible  <bruno@clisp.org>
47555
47556         Simplify handling of strncasecmp.
47557         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
47558         the conditional link warning.
47559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47560         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
47561         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
47562         * modules/strcase (configure.ac): Don't invoke
47563         gl_STRING_MODULE_INDICATOR.
47564         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
47565
47566 2007-02-04  Bruno Haible  <bruno@clisp.org>
47567
47568         New module mbscasecmp, reduced goal of strcasecmp.
47569         * modules/mbscasecmp: New file.
47570         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
47571         (mbscasecmp): Renamed from strcasecmp.
47572         * lib/strcasecmp.c: Don't include mbuiter.h.
47573         (strcasecmp): Remove support for multibyte locales.
47574         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
47575         Change the conditional link warning.
47576         (mbscasecmp): New declaration.
47577         * m4/mbscasecmp.m4: New file.
47578         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
47579         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
47580         REPLACE_STRCASECMP.
47581         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
47582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47583         GNULIB_MBSCASECMP.
47584         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
47585         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
47586         * modules/strcase (Files): Remove m4/mbrtowc.m4.
47587         (Depends-on): Remove mbuiter.
47588         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
47589
47590 2007-02-04  Bruno Haible  <bruno@clisp.org>
47591
47592         New module mbsstr. Remove module strstr.
47593         * modules/mbsstr: New file.
47594         * modules/strstr: Remove file.
47595         * lib/mbsstr.c: Renamed from lib/strstr.c.
47596         (mbsstr): Renamed from strstr.
47597         * lib/string_.h (strstr): Remove declaration. Change the conditional
47598         link warning.
47599         (mbsstr): New declaration.
47600         * m4/mbsstr.m4: New file.
47601         * m4/strstr.m4: Remove file.
47602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47603         REPLACE_STRSTR.
47604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
47605         Don't initialize GNULIB_STRSTR.
47606         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
47607         substitute GNULIB_STRSTR and REPLACE_STRSTR.
47608         * MODULES.html.sh (Internationalization functions): Add mbsstr.
47609         (Support for systems lacking ANSI C 89): Remove strstr.
47610
47611 2007-02-04  Bruno Haible  <bruno@clisp.org>
47612
47613         New module mbsrchr.
47614         * modules/mbsrchr: New file.
47615         * lib/mbsrchr.c: New file.
47616         * lib/string_.h (strrchr): Add a conditional link warning.
47617         (mbsrchr): New declaration.
47618         * m4/mbsrchr.m4: New file.
47619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47620         GNULIB_MBSRCHR.
47621         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
47622         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
47623
47624 2007-02-04  Bruno Haible  <bruno@clisp.org>
47625
47626         New module mbschr.
47627         * modules/mbschr: New file.
47628         * lib/mbschr.c: New file.
47629         * lib/string_.h (strchr): Add a conditional link warning.
47630         (mbschr): New declaration.
47631         * m4/mbschr.m4: New file.
47632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47633         GNULIB_MBSCHR.
47634         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
47635         * MODULES.html.sh (Internationalization functions): Add mbschr.
47636
47637 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47638
47639         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
47640
47641         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
47642
47643 2007-02-04  Bruno Haible  <bruno@clisp.org>
47644
47645         New module description section 'configure.ac-early'.
47646         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
47647         (func_get_autoconf_early_snippet): New function.
47648         (func_import, func_create_testdir): Use it. Remove special cases for
47649         modules 'extensions' and 'lock'.
47650         * modules/extensions (configure.ac-early): Require
47651         gl_USE_SYSTEM_EXTENSIONS.
47652         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
47653
47654 2007-02-04  Bruno Haible  <bruno@clisp.org>
47655
47656         Make use of gcj-4.3's -fsource and -ftarget option.
47657         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
47658         and if so try the options -fsource and -ftarget.
47659         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
47660         source_version, ftarget_option, target_version arguments.
47661         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
47662         (is_envjavac_oldgcj_14_14_usable): Renamed from
47663         is_envjavac_gcj_14_14_usable.
47664         (is_envjavac_oldgcj_14_13_usable): Renamed from
47665         is_envjavac_gcj_14_13_usable.
47666         (is_gcj_present): Update.
47667         (is_gcj_43, is_gcj43_usable): New functions.
47668         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
47669         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
47670         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
47671         try the options -fsource and -ftarget.
47672
47673 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
47676         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
47677         larger value.
47678
47679 2007-02-03  Jim Meyering  <jim@meyering.net>
47680
47681         Give tools a better chance to allocate space for very large buffers.
47682         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
47683
47684         Make pwd and readlink work also when run with an unreadable parent dir
47685         on systems with openat support.
47686         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
47687         provided getcwd function, even when we have openat support.
47688         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
47689
47690 2007-02-02  Bruno Haible  <bruno@clisp.org>
47691
47692         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47693         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
47694         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
47695         portability problems if one of these functions is only used on specific
47696         platforms.
47697         Reported by Paul Eggert.
47698
47699 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
47702         is causing more trouble than it's curing.
47703         * lib/regex_internal.h (__mempcpy): Remove.
47704         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
47705         (and make the code a tad smaller to boot).
47706         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
47707
47708 2007-02-02  Jim Meyering  <jim@meyering.net>
47709
47710         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
47711         section, not in the Makefile.am: one.
47712
47713 2007-02-02  Eric Blake  <ebb9@byu.net>
47714
47715         * lib/strchrnul.c: Always include config.h first.
47716
47717         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
47718         gnulib strstr is not necessary here.
47719
47720 2007-02-02  Simon Josefsson  <simon@josefsson.org>
47721
47722         * m4/socklen.m4: Fix typo.
47723
47724 2007-02-02  Eric Blake  <ebb9@byu.net>
47725
47726         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
47727         * modules/netinet_in (Makefile.am): Likewise.
47728
47729 2007-02-01  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/string_.h (GL_LINK_WARNING): New macro.
47732         (strcasecmp, strstr, strcasestr): If provided by the system,
47733         conditionally define as a macro that leads to a warning instead of to
47734         an error.
47735         (strncasecmp): Conditionally define as a macro that leads to a warning.
47736
47737 2007-02-01  Karl Berry  <karl@gnu.org>
47738
47739         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
47740
47741 2007-02-01  Bruno Haible  <bruno@clisp.org>
47742
47743         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
47744         renamings.
47745
47746 2007-02-01  Eric Blake  <ebb9@byu.net>
47747
47748         * modules/regex (Depends-on): Revert dependence on mempcpy.
47749         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
47750         module's definition of mempcpy.
47751         Reported by Paul Eggert.
47752
47753 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
47754
47755         * lib/string_.h: If the gnulib module XYZ is not present, undefine
47756         the symbol XYZ before redefining it.  This fixes a problem with
47757         programs that don't use XYZ, when compiled on systems that define
47758         XYZ to something else.
47759
47760 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
47761
47762         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
47763         occurs when "mkdir -m foo" creates a setgid directory that is (1)
47764         writeable to group or other and (2) is intended to have a special
47765         mode bit that is set or cleared.  In such a case, the directory
47766         should be neither group- nor other-writeable until the special
47767         mode bits are right.
47768
47769 2007-01-31  Eric Blake  <ebb9@byu.net>
47770
47771         * modules/mountlist (Depends-on): Add strstr.
47772
47773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
47774         bug.
47775         * modules/string (Makefile.am): Remove redundant replacement.
47776         * modules/regex (Depends-on): Add mempcpy.
47777
47778 2007-01-31  Bruno Haible  <bruno@clisp.org>
47779
47780         New module description field 'Link'.
47781         * gnulib-tool (func_usage): Document --extract-link-directive.
47782         (sed_extract_prog): Recognize 'Link' directive.
47783         (func_get_link_directive): New function.
47784         (func_import): Show summary of link directives.
47785         Handle --extract-link-directive option.
47786         * modules/acl (Link): New section.
47787         * modules/clock-time (Link): New section.
47788         * modules/euidaccess (Link): New section.
47789         * modules/gettext (Link): New section.
47790         * modules/iconv (Link): New section.
47791         * modules/lock (Link): New section.
47792         * modules/nanosleep (Link): New section.
47793         * modules/readline (Link): New section.
47794
47795 2007-01-27  Bruno Haible  <bruno@clisp.org>
47796
47797         Enforce the use of gnulib modules for unportable <string.h> functions.
47798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
47799         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
47800         (gl_HEADER_STRING_H_BODY): Require it.
47801         * lib/string_.h: If the gnulib module XYZ is not present, redefine
47802         the symbol XYZ to one that gives a link error.
47803         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
47804         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
47805         * modules/mempcpy (configure.ac): Likewise.
47806         * modules/memrchr (configure.ac): Likewise.
47807         * modules/stpcpy (configure.ac): Likewise.
47808         * modules/stpncpy (configure.ac): Likewise.
47809         * modules/strcase (configure.ac): Likewise.
47810         * modules/strcasestr (configure.ac): Likewise.
47811         * modules/strchrnul (configure.ac): Likewise.
47812         * modules/strdup (configure.ac): Likewise.
47813         * modules/strndup (configure.ac): Likewise.
47814         * modules/strnlen (configure.ac): Likewise.
47815         * modules/strpbrk (configure.ac): Likewise.
47816         * modules/strsep (configure.ac): Likewise.
47817         * modules/strstr (configure.ac): Likewise.
47818         * modules/strtok_r (configure.ac): Likewise.
47819
47820 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
47821
47822         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
47823
47824 2007-01-30  Jim Meyering  <jim@meyering.net>
47825
47826         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
47827
47828 2007-01-29  Bruno Haible  <bruno@clisp.org>
47829
47830         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
47831         * lib/execute.c: Likewise.
47832         * lib/pipe.c: Likewise.
47833         * lib/printf-args.h: Likewise.
47834         * lib/printf-args.c: Likewise.
47835         * lib/printf-parse.c: Likewise.
47836         * lib/vasnprintf.c: Likewise.
47837
47838 2007-01-29  Eric Blake  <ebb9@byu.net>
47839
47840         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
47841         declaration.
47842
47843 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
47844
47845         * lib/strptime.h (strptime): Use 'restrict' for args where
47846         POSIX requires this.
47847         * lib/strptime.c (strptime): Likewise.
47848         Change license notice from LGPL to GPL, since gnulib-tool will
47849         change this as needed.
47850         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
47851         defined.
47852         Include "strptime.h" first, to check interface.
47853         Do not #undef _LIBC and _NL_CURRENT.
47854         Do not include <stdlib.h>; no longer needed.
47855         Include "time_r.h" and declare ptime_locale_status
47856         only if _LIBC is not defined.
47857         (__P): Remove unused macro.
47858         (match_string): Bring back glibc version, but use it only if _LIBC
47859         is defined.
47860         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
47861         Remove unnecessary assertion and abort() call.
47862         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
47863         * m4/strptime.m4: Fix serial number comment.
47864         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
47865         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
47866         (Depends-on): Add time_r.
47867
47868 2007-01-29  Bruno Haible  <bruno@clisp.org>
47869
47870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47871         strptime.
47872         * modules/strptime (Depends-on): Add stdbool.
47873         * lib/strptime.h: Include <time.h> always. Add comments.
47874
47875 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47876
47877         * modules/strptime: New file.
47878         * lib/strptime.h: New file.
47879         * lib/strptime.c: New file.
47880         * m4/strptime.m4: New file.
47881
47882 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47883
47884         * MODULES.html.sh: New module mpsort.
47885         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
47886
47887         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
47888         a circularity problem with HP-UX ia64 reported by Bob Proulx in
47889         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
47890         All uses changed.
47891         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
47892         All uses changed.
47893         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
47894         to _Restrict_.
47895         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
47896         the parameter matches the prototype.
47897
47898 2007-01-28  Jim Meyering  <jim@meyering.net>
47899
47900         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
47901         sys/time.h here, reverting that part of the previous patch:
47902         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
47903
47904 2007-01-28  Bruno Haible  <bruno@clisp.org>
47905
47906         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
47907         value of $(SYS_TIME_H).
47908         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
47909         remove it conditionally, too. [added by Jim Meyering]
47910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
47911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47912         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
47913         GETTIMEOFDAY_REPLACEMENT to 1.
47914
47915 2007-01-28  Bruno Haible  <bruno@clisp.org>
47916
47917         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
47918         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
47919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
47920         Set UNISTD_H instead of UNISTD_H2.
47921         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
47922
47923 2007-01-28  Bruno Haible  <bruno@clisp.org>
47924
47925         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
47926         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
47927
47928 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47929
47930         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47931         (func_create_testdir): Ensure C locale for `grep' and `tr'
47932         character ranges.
47933         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
47934         ACLOCAL_AMFLAGS parsing state machine.
47935
47936 2007-01-27  Bruno Haible  <bruno@clisp.org>
47937
47938         * modules/unistr/base: Update.
47939
47940 2007-01-27  Bruno Haible  <bruno@clisp.org>
47941
47942         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
47943         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47944         * modules/unistr/u32-mbtouc-unsafe: Renamed from
47945         modules/unistr/u32-mbtouc.
47946         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
47947         * lib/unistr.h: Update.
47948         * lib/linebreak.c: Update.
47949         * modules/unistr/u32-mbtouc: Renamed from
47950         modules/unistr/u32-mbtouc-safe.
47951         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
47952         * lib/unistr.h: Update.
47953         * lib/unistr/u32-to-u8.c: Update.
47954         * lib/unistr/u32-to-u16.c: Update.
47955
47956 2007-01-27  Bruno Haible  <bruno@clisp.org>
47957
47958         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
47959         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
47960         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
47961         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
47962         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
47963         * modules/unistr/u16-mbtouc-unsafe: Renamed from
47964         modules/unistr/u16-mbtouc.
47965         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
47966         * lib/unistr.h: Update.
47967         * lib/linebreak.c: Update.
47968         * modules/linebreak: Update.
47969         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
47970         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
47971         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
47972         * modules/unistr/u16-mbtouc: Renamed from
47973         modules/unistr/u16-mbtouc-safe.
47974         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
47975         * lib/unistr.h: Update.
47976         * lib/unistr/u16-to-u8.c: Update.
47977         * modules/unistr/u16-to-u8: Update.
47978         * lib/unistr/u16-to-u32.c: Update.
47979         * modules/unistr/u16-to-u32: Update.
47980
47981 2007-01-27  Bruno Haible  <bruno@clisp.org>
47982
47983         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
47984         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
47985         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
47986         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
47987         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
47988         * modules/unistr/u8-mbtouc-unsafe: Renamed from
47989         modules/unistr/u8-mbtouc.
47990         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
47991         * lib/unistr.h: Update.
47992         * lib/striconveh.c: Update.
47993         * modules/striconveh: Update.
47994         * lib/linebreak.c: Update.
47995         * modules/linebreak: Update.
47996         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
47997         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
47998         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
47999         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48000         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48001         * lib/unistr.h: Update.
48002         * lib/striconveh.c: Update.
48003         * modules/striconveh: Update.
48004         * lib/unistr/u8-to-u16.c: Update.
48005         * modules/unistr/u8-to-u16: Update.
48006         * lib/unistr/u8-to-u32.c: Update.
48007         * modules/unistr/u8-to-u32: Update.
48008
48009 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48010
48011         Sync from Libtool.
48012         * lib/argz.c: Do not include strings.h nor memory.h, include
48013         string.h unconditionally.  Patch by Simon Josefsson.
48014
48015 2007-01-27  Bruno Haible  <bruno@clisp.org>
48016
48017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48018         from gl_HEADER_STRING_H_BODY.
48019         (gl_HEADER_STRING_H_BODY): Require it.
48020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48021         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48023         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48025         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48027         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48028         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48029         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48030         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48031         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48032         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48033         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48035
48036 2007-01-27  Bruno Haible  <bruno@clisp.org>
48037
48038         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48039         check_PROGRAMS into noinst_PROGRAMS.
48040         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48041         check_PROGRAMS in this case.
48042         (func_import): Set for_test to false.
48043         (func_create_testdir): Set for_test to true.
48044
48045 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48046             Bruno Haible  <bruno@clisp.org>
48047
48048         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48049         (Depends-on): Add string.
48050         (Includes): Use <string.h> instead of strcasestr.h.
48051         * modules/string (Makefile.am): Also substitute the value of
48052         REPLACE_STRCASESTR.
48053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48054         assume strcasestr is declared in <string.h> not <strings.h>. Also
48055         set REPLACE_STRCASESTR.
48056         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48057         REPLACE_STRCASESTR.
48058         * lib/strcasestr.h: Remove file.
48059         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48060         * lib/string_.h (strcasestr): New declaration.
48061
48062 2007-01-27  Bruno Haible  <bruno@clisp.org>
48063
48064         * lib/string_.h: Use 'extern'.
48065
48066 2007-01-27  Jim Meyering  <jim@meyering.net>
48067
48068         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48069         of set-but-not-used local, "q".
48070
48071         * lib/mempcpy.c: Include <config.h> before <string.h>.
48072         This fixes a compilation error on HP-UX, due to the system's
48073         "restrict"-using mempcpy prototype.
48074
48075 2007-01-26  Bruno Haible  <bruno@clisp.org>
48076
48077         Small optimization.
48078         * lib/javacomp.c: Include c-strstr.h.
48079          (is_envjavac_gcj): Use c_strstr instead of strstr.
48080         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48081
48082 2007-01-26  Bruno Haible  <bruno@clisp.org>
48083
48084         * MODULES.html.sh (Unicode string functions): Add the new modules.
48085
48086         * modules/uniconv/u32-strconv-to-locale: New file.
48087         * lib/uniconv/u32-strconv-to-locale.c: New file.
48088
48089         * modules/uniconv/u16-strconv-to-locale: New file.
48090         * lib/uniconv/u16-strconv-to-locale.c: New file.
48091
48092         * modules/uniconv/u8-strconv-to-locale: New file.
48093         * lib/uniconv/u8-strconv-to-locale.c: New file.
48094
48095         * modules/uniconv/u32-strconv-from-locale: New file.
48096         * lib/uniconv/u32-strconv-from-locale.c: New file.
48097
48098         * modules/uniconv/u16-strconv-from-locale: New file.
48099         * lib/uniconv/u16-strconv-from-locale.c: New file.
48100
48101         * modules/uniconv/u8-strconv-from-locale: New file.
48102         * lib/uniconv/u8-strconv-from-locale.c: New file.
48103
48104         * modules/uniconv/u32-strconv-to-enc: New file.
48105         * lib/uniconv/u32-strconv-to-enc.c: New file.
48106         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48107         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48108
48109         * modules/uniconv/u16-strconv-to-enc: New file.
48110         * lib/uniconv/u16-strconv-to-enc.c: New file.
48111         * lib/uniconv/u-strconv-to-enc.h: New file.
48112         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48113         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48114
48115         * modules/uniconv/u8-strconv-to-enc: New file.
48116         * lib/uniconv/u8-strconv-to-enc.c: New file.
48117         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48118         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48119
48120         * modules/uniconv/u32-strconv-from-enc: New file.
48121         * lib/uniconv/u32-strconv-from-enc.c: New file.
48122         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48123         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48124
48125         * modules/uniconv/u16-strconv-from-enc: New file.
48126         * lib/uniconv/u16-strconv-from-enc.c: New file.
48127         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48128         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48129
48130         * modules/uniconv/u8-strconv-from-enc: New file.
48131         * lib/uniconv/u8-strconv-from-enc.c: New file.
48132         * lib/uniconv/u-strconv-from-enc.h: New file.
48133         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48134         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48135
48136         * modules/uniconv/u32-conv-from-enc: New file.
48137         * lib/uniconv/u32-conv-from-enc.c: New file.
48138         * modules/uniconv/u32-conv-from-enc-tests: New file.
48139         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48140
48141         * modules/uniconv/u16-conv-from-enc: New file.
48142         * lib/uniconv/u16-conv-from-enc.c: New file.
48143         * lib/uniconv/u-conv-from-enc.h: New file.
48144         * modules/uniconv/u16-conv-from-enc-tests: New file.
48145         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48146
48147         * modules/uniconv/u8-conv-from-enc: New file.
48148         * lib/uniconv/u8-conv-from-enc.c: New file.
48149         * modules/uniconv/u8-conv-from-enc-tests: New file.
48150         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48151
48152         * modules/uniconv/base: New file.
48153         * lib/uniconv.h: New file.
48154
48155 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48156
48157         * doc/gnulib-tool.texi (Initial import): Update to match current
48158         behavior with strdup module.
48159         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48160         * lib/memmem.h: Remove; all uses removed.  This is now done
48161         by <string.h>.
48162         * lib/mempcpy.h: Likewise.
48163         * lib/memrchr.h: Likewise.
48164         * lib/stpcpy.h: Likewise.
48165         * lib/stpncpy.h: Likewise.
48166         * lib/strcase.h: Likewise.
48167         * lib/strchrnul.h: Likewise.
48168         * lib/strdup.h: Likewise.
48169         * lib/strndup.h: Likewise.
48170         * lib/strnlen.h: Likewise.
48171         * lib/strpbrk.h: Likewise.
48172         * lib/strsep.h: Likewise.
48173         * lib/strstr.h: Likewise.
48174         * lib/strtok_r.h: Likewise.
48175         * lib/string_.h: New file.
48176         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48177         Rely on <string.h> instead.
48178         * lib/canon-host.c: Likewise.
48179         * lib/chdir-long.c: Likewise.
48180         * lib/concatpath.c: Likewise.
48181         * lib/exclude.c: Likewise.
48182         * lib/fchdir.c: Likewise.
48183         * lib/getaddrinfo.c: Likewise.
48184         * lib/getcwd.c: Likewise.
48185         * lib/getsubopt.c: Likewise.
48186         * lib/glob.c: Likewise.
48187         * lib/hard-locale.c: Likewise.
48188         * lib/iconvme.c: Likewise.
48189         * lib/javacomp.c: Likewise.
48190         * lib/mempcpy.c: Likewise.
48191         * lib/memrchr.c: Likewise.
48192         * lib/regex_internal.h: Likewise.
48193         * lib/stpncpy.c: Likewise.
48194         * lib/strcasecmp.c: Likewise.
48195         * lib/strchrnul.c: Likewise.
48196         * lib/strdup.c: Likewise.
48197         * lib/striconv.c: Likewise.
48198         * lib/striconveh.c: Likewise.
48199         * lib/striconveha.c: Likewise.
48200         * lib/strncasecmp.c: Likewise.
48201         * lib/strndup.c: Likewise.
48202         * lib/strnlen.c: Likewise.
48203         * lib/strsep.c: Likewise.
48204         * lib/strstr.c: Likewise.
48205         * lib/strtok_r.c: Likewise.
48206         * lib/userspec.c: Likewise.
48207         * lib/w32spawn.h: Likewise.
48208         * lib/xstrndup.c: Likewise.
48209         * lib/mountlist.c (strstr): Remove decl.
48210         * m4/string_h.m4: New file.
48211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48212         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48213         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48214         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48215         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48216         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48217         Set REPLACE_STRCASECMP if necessary.
48218         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48219         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48220         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48221         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48222         HAVE_DECL_STRDUP if necessary.
48223         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48224         since gl_FUNC_STRNDUP does that now.
48225         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48226         Check for decl here...
48227         (gl_PREREQ_STRNLEN): ... not here.
48228         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48229         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48230         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48231         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48232         necessary.
48233         * modules/string: New file.
48234         * modules/memmem (Files): Remove special-purpose include file.
48235         (Depends-on): Add string.
48236         (Include): Include <string.h>, not the removed file.
48237         * modules/mempcpy: Likewise.
48238         * modules/memrchr: Likewise.
48239         * modules/stpcpy: Likewise.
48240         * modules/stpncpy: Likewise.
48241         * modules/strcase: Likewise.
48242         * modules/strchrnul: Likewise.
48243         * modules/strdup: Likewise.
48244         * modules/strndup: Likewise.
48245         * modules/strnlen: Likewise.
48246         * modules/strpbrk: Likewise.
48247         * modules/strsep: Likewise.
48248         * modules/strstr: Likewise.
48249         * modules/strtok_r: Likewise.
48250         * tests/test-dirname.c: Don't include "strdup.h", since
48251         <string.h> now suffices.
48252         * tests/test-memmem.c: Don't include "memmem.h", since
48253         <string.h> now suffices.
48254
48255 2007-01-25  Bruno Haible  <bruno@clisp.org>
48256
48257         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48258         *resultp is 0.
48259
48260         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48261         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48262         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48263         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48264
48265         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48266         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48267         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48268         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48269         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48270         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48271
48272 2007-01-24  Bruno Haible  <bruno@clisp.org>
48273
48274         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48276         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48277         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48278         gl_FUNC_FTS_CORE.
48279         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48280         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48281         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48282         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48283         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48284         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48285         gl_FUNC_FCHOWNAT.
48286         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48287         gl_FUNC_STRFTIME.
48288         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48289         Reported by Ralf Wildenhues.
48290
48291 2007-01-24  Bruno Haible  <bruno@clisp.org>
48292
48293         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48294         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48295         gl_GETADDRINFO.
48296         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48297         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48298         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48299
48300 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48303         Don't use 'exit'; just return from 'main'.
48304         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48305
48306         * lib/fnmatch_.h: Readjust white space and comments to match
48307         glibc, to avoid spurious diffs.
48308
48309 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48312         2004-12-01 change by Jakub Jelinek, since this code won't compile
48313         if !LIBC.  Problem reported by Bob Proulx.
48314
48315 2007-01-23  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/striconveh.c: Include c-strcaseeq.h.
48318         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48319         * modules/striconveh (Depends-on): Add c-strcaseeq.
48320
48321 2007-01-23  Bruno Haible  <bruno@clisp.org>
48322
48323         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48324
48325         * modules/c-strcaseeq: New file.
48326         * lib/c-strcaseeq.h: New file.
48327
48328         * modules/streq: New file.
48329         * lib/streq.h: New file.
48330
48331 2007-01-23  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/striconveha-tests: New file.
48334         * tests/test-striconveha.c: New file.
48335
48336         * lib/striconveha.h: Include <stdbool.h>.
48337         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48338         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48339         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48340         (mem_iconveha): New function.
48341         (str_iconveha_notranslit): Renamed from str_iconveha.
48342         (str_iconveha): New function.
48343         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48344         c-strcase.
48345
48346 2007-01-23  Bruno Haible  <bruno@clisp.org>
48347
48348         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48349         encodings without forgiving before trying any encoding with handler.
48350         (str_iconveha): Try all encodings without forgiving before trying any
48351         encoding with handler.
48352
48353 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48354
48355         Import the following changes from libc.
48356
48357         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48358
48359         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48360
48361         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48362
48363         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48364         normal_bracket label.
48365
48366         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48367
48368         [BZ #361]
48369         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48370         to normal_bracket after fetching the next character.
48371
48372 2007-01-22  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48375         argument.
48376         * lib/striconveh.c (iconv_carefully_1): New function.
48377         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48378         argument.
48379         (str_cd_iconveh): Update.
48380         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48381         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48382         * tests/test-striconveh.c (MAGIC): New macro.
48383         (new_offsets): New function.
48384         (main): Test call with and without offsets.
48385
48386 2007-01-22  Bruno Haible  <bruno@clisp.org>
48387
48388         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48389         * modules/sys_select (Makefile.am): Likewise.
48390         * modules/sys_socket (Makefile.am): Likewise.
48391         * modules/sys_time (Makefile.am): Likewise.
48392
48393 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         * modules/gettimeofday (License): Change from GPL to LGPL, since
48396         gettimeofday is a library function.
48397
48398 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48399
48400         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48401
48402 2007-01-21  Bruno Haible  <bruno@clisp.org>
48403
48404         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48405
48406 2007-01-21  Bruno Haible  <bruno@clisp.org>
48407
48408         * modules/striconveha: New file.
48409         * lib/striconveha.h: New file.
48410         * lib/striconveha.c: New file.
48411         * MODULES.html.sh (Internationalization functions): Add striconveha.
48412         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48413         string.
48414         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48415
48416 2007-01-21  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48419         * lib/striconveh.c (str_iconveh): Likewise.
48420
48421 2007-01-21  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/striconveh.h (mem_iconveh): New declaration.
48424         * lib/striconveh.c (mem_iconveh): New function.
48425         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48426
48427 2007-01-21  Bruno Haible  <bruno@clisp.org>
48428
48429         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48430
48431         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48432         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48433         original result buffer.
48434         (str_cd_iconveh): Update.
48435         * tests/test-striconveh.c (main): Update.
48436
48437         * lib/striconv.h (mem_cd_iconv): Change specification.
48438         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48439         result buffer.
48440         (str_cd_iconv): Update.
48441         * tests/test-striconv.c (main): Update.
48442
48443 2007-01-21  Bruno Haible  <bruno@clisp.org>
48444
48445         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48446
48447 2007-01-20  Jim Meyering  <jim@meyering.net>
48448
48449         * lib/userspec.c (parse_with_separator): If a user or group string
48450         starts with "+", skip the corresponding name-to-ID look-up, since
48451         such a look-up must fail: user and group names may not include "+".
48452
48453 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48456         since we now assume the sys_time module.
48457         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48458         check for sys/time.h; no longer needed.
48459         * modules/poll (Depends-on): Depend on sys_time.
48460
48461 2007-01-18  Bruno Haible  <bruno@clisp.org>
48462
48463         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48465
48466         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
48467         gettimeofday.
48468
48469         * tests/test-gettimeofday.c: Include <time.h>.
48470         (dummy): Remove variable.
48471
48472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
48473         gl_HEADER_SYS_TIME_H.
48474         (gl_HEADER_SYS_TIME_H): New macro.
48475
48476         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
48477         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
48479         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
48480         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
48482         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
48483         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48484         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
48485         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
48486         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48487
48488         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
48489         last change; it caused a compilation error when cross-compiling to
48490         Cygwin.
48491
48492 2007-01-18  Jim Meyering  <jim@meyering.net>
48493
48494         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
48495         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
48496         than the race-prone "test -d sys || mkdir sys".
48497         (configure.ac): Use AC_PROG_MKDIR_P.
48498         * modules/sys_select: Likewise.
48499         * modules/sys_socket: Likewise.
48500         * modules/sys_time: Likewise.
48501
48502 2007-01-18  Eric Blake  <ebb9@byu.net>
48503
48504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
48505         replace gettimeofday.
48506         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
48507         name, to avoid infinite recursion.
48508
48509 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
48510
48511         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
48512         module sys_time.
48513         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
48514         assume timespec.h defines struct timeval.
48515         * lib/settime.c: Likewise.
48516         * lib/utimens.c: Likewise.
48517         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
48518         since we now assume the gettimeofday module.
48519         * lib/tempname.c (__gen_tempname): Likewise.
48520         * lib/gettimeofday.h: Remove.
48521         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
48522         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
48523         Include <time.h>, for 'time()'.
48524         (localtime_buffer_addr): Also use this workaround if
48525         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
48526         to simplify the uses.  All uses changed.
48527         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
48528         that #undef is inside {}, and 'const' follows type name consistently.
48529         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
48530         (gettimeofday): Do not use the maximum possible value for
48531         tv->tv_usec, since that might break usages other than ls.c.
48532         Instead, we'll leave ls.c alone.  This undoes today's patch
48533         by Bruno.  Add a compile-time warning for 1s-clock resolution;
48534         we've never observed the problem but might as well keep the
48535         canary.
48536         * lib/nanosleep.c: Include timespec.h first, for interface check.
48537         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
48538         now assume the sys_time module.
48539         * lib/tempname.c: Likewise.
48540         * lib/timespec.h: Likewise.
48541         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
48542         needed.
48543         * lib/strftime.c: Likewise.
48544         * lib/timespec.h: Likewise.
48545         * lib/posixtm.c: Include posixtm.h first, for interface check.
48546         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
48547         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
48548         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
48549         * lib/sys_time_.h: New file.
48550         * lib/timespec.h (struct timespec): Use long int, not long.
48551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48552         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
48553         Remove obsolescent call to AC_HEADER_TIME.
48554         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48556         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48557         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
48558         Likewise.
48559         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
48560         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
48561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
48562         into the sys_time module.  Check for gettimeofday just once.
48563         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
48564         for gettimeofday signature to just check the signature.  Merely
48565         compile it, since linking doesn't test signature.  Improve test for
48566         whether gettimeofday.o is actually needed.
48567         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
48568         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
48569         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
48570         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48571         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
48572         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
48573         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
48574         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
48575         than worrying about sys/time.h.
48576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48577         Don't bother worrying about TIME_WITH_SYS_TIME.
48578         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
48579         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
48580         * m4/sys_time_h.m4: New file.
48581         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
48582         Don't include sys/time.h.  Return from main rather than exiting.
48583         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
48584         all uses changed.
48585         * modules/gethrxtime (Depends-on): Add sys_time.
48586         * modules/gettime (Depends-on): Likewise.
48587         * modules/gettimeofday (Depends-on): Likewise.
48588         * modules/nanosleep (Depends-on): Likewise.
48589         * modules/settime (Depends-on): Likewise.
48590         * modules/tempname (Depends-on): Likewise.
48591         * modules/utimens (Depends-on): Likewise.
48592         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
48593         (Include:) Change back to <sys/time.h>.
48594         (Maintainer:) Add self.
48595         * modules/sys_time: New file.
48596         * modules/tempname (Depends-on): Add gettimeofday.
48597         * tests/test-gettimeofday.c: Include <sys/time.h>
48598         rather than gettimeofday.h.
48599
48600 2007-01-17  Bruno Haible  <bruno@clisp.org>
48601
48602         * gnulib-tool (func_get_license): Revert last patch. Instead, let
48603         the license default to GPL.
48604         (func_create_testdir): Don't complain if a module is LGPL and its
48605         tests module depends on GPLed modules.
48606
48607 2007-01-17  Bruno Haible  <bruno@clisp.org>
48608
48609         * lib/gettimeofday.c (gettimeofday): Add code for the case
48610         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
48611         maximum possible value for tv->tv_usec, rather than the minimum one.
48612
48613 2005-10-08  Martin Lambers  <marlam@marlam.de>
48614 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48615 2007-01-16  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
48618         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
48619         gl_FUNC_GETTIMEOFDAY.
48620         (Include): Add gettimeofday.h.
48621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
48622         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
48623         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
48624         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
48625         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
48626         * lib/gettimeofday.h: New file.
48627         * lib/gettimeofday.c: Include <sys/timeb.h>.
48628         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
48629         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48630         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
48631         fall back on time().
48632
48633         * tests/test-gettimeofday.c: New file.
48634         * modules/gettimeofday-tests: New file.
48635
48636 2007-01-16  Eric Blake  <ebb9@byu.net>
48637
48638         * modules/fnmatch (Depends-on): Depend on wchar.
48639         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
48640         * m4/fnmatch.m4: Likewise.
48641         * modules/mbchar (Makefile.am): Assume <wchar.h>.
48642         * m4/mbchar.m4: Likewise.
48643         * modules/mbswidth (Depends-on): Depend on wchar.
48644         * lib/mbswidth.c: Assume <wchar.h>.
48645         * m4/mbswidth.m4: Likewise.
48646         * modules/quotearg (Depends-on): Depend on wchar.
48647         * lib/quotearg.c: Assume <wchar.h>.
48648         * m4/quotearg.m4: Likewise.
48649         * modules/regex (Depends-on): Depend on wchar.
48650         * lib/regex_internal.h: Assume <wchar.h>.
48651         * m4/regex.m4: Likewise.
48652         * modules/stdint (Depends-on): Depend on wchar.
48653         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
48654         * m4/stdint.m4: Likewise.
48655         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
48656         * modules/strftime (Depends-on): Depend on wchar.
48657         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
48658         * modules/strtol (Depends-on): Depend on wchar.
48659         * lib/strtol.c: Assume <wchar.h>.
48660         * modules/wcwidth (Depends-on): Depend on wchar.
48661         * lib/wcwidth.h: Assume <wchar.h>.
48662         * m4/wcwidth.m4: Likewise.
48663
48664 2007-01-16  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/csharpexec-script: New, created from...
48667         * modules/csharpexec: ... this.
48668
48669 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48670
48671         * modules/javaexec-script: New, created from...
48672         * modules/javaexec: ... this.
48673
48674 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48675
48676         * modules/poll (Dependencies): Add sys_select.
48677
48678 2007-01-15  Jim Meyering  <jim@meyering.net>
48679
48680         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
48681         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
48682         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
48683         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
48684
48685 2007-01-15  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/striconveh: New file.
48688         * lib/striconveh.h: New file.
48689         * lib/striconveh.c: New file.
48690         * MODULES.html.sh (Internationalization functions): Add striconveh.
48691
48692         * modules/striconveh-tests: New file.
48693         * tests/test-striconveh.c: New file.
48694
48695 2007-01-15  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
48698         not from GNU libiconv or GNU libc.
48699
48700 2007-01-15  Bruno Haible  <bruno@clisp.org>
48701
48702         * doc/gnulib-intro.texi (Copyright): Explain the different license
48703         terms for module descriptions, autoconf macros, tests, documentation.
48704
48705 2007-01-14  Bruno Haible  <bruno@clisp.org>
48706
48707         * modules/striconv-tests: New file.
48708         * tests/test-striconv.c: New file.
48709
48710 2007-01-14  Bruno Haible  <bruno@clisp.org>
48711
48712         * modules/iconv-tests: New file.
48713         * tests/test-iconv.c: New file.
48714
48715 2007-01-14  Bruno Haible  <bruno@clisp.org>
48716
48717         * gnulib-tool (func_get_license): For test modules, use the license of
48718         the main module.
48719
48720 2007-01-14  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/iconv (Include): Clarify that <iconv.h> can only be included
48723         if iconv is found to exist.
48724
48725 2007-01-14  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/c-ctype-tests: New file.
48728         * tests/test-c-ctype.c: New file.
48729
48730 2007-01-14  Bruno Haible  <bruno@clisp.org>
48731
48732         * modules/binary-io-tests: New file.
48733         * tests/test-binary-io.sh: New file.
48734         * tests/test-binary-io.c: New file.
48735
48736 2007-01-14  Bruno Haible  <bruno@clisp.org>
48737
48738         * modules/array-oset-tests: New file.
48739         * tests/test-array_oset.c: New file.
48740
48741 2007-01-14  Bruno Haible  <bruno@clisp.org>
48742
48743         * modules/array-list-tests: New file.
48744         * tests/test-array_list.c: New file.
48745
48746 2007-01-14  Bruno Haible  <bruno@clisp.org>
48747
48748         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
48749         and make.
48750         Reported by Simon Josefsson in
48751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
48752
48753 2007-01-14  Bruno Haible  <bruno@clisp.org>
48754
48755         * modules/allocsa-tests: New file.
48756         * tests/test-allocsa.c: New file.
48757
48758 2007-01-14  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/fchdir (Depends-on): Add absolute-header.
48761         * modules/unistd (Depends-on): Likewise.
48762
48763 2006-12-30  Bruno Haible  <bruno@clisp.org>
48764
48765         * modules/fchdir: New file.
48766         * modules/unistd (Files): Add lib/unistd_.h.
48767         (Makefile.am): Generate unistd.h from unistd_.h.
48768         * lib/fchdir.c: New file.
48769         * lib/dirent_.h: New file.
48770         * lib/unistd_.h: New file.
48771         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
48772         * m4/fchdir.m4: New file.
48773         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
48774         (gl_HEADER_UNISTD): Invoke it.
48775         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
48776         function.
48777         * lib/backupfile.c (opendir, closedir): Undefine.
48778         * lib/chown.c (open, close): Undefine.
48779         * lib/clean-temp.c (open, close): Undefine.
48780         * lib/copy-file.c (open, close): Undefine.
48781         * lib/execute.c (open, close): Undefine.
48782         * lib/fsusage.c (open, close): Undefine.
48783         * lib/gc-gnulib.c (open, close): Undefine.
48784         * lib/getcwd.c (opendir, closedir): Undefine.
48785         * lib/glob.c (opendir, closedir): Undefine.
48786         * lib/javacomp.c (open, close): Undefine.
48787         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
48788         * lib/openat-proc.c (open, close): Undefine.
48789         * lib/pagealign_alloc.c (open, close): Undefine.
48790         * lib/pipe.c (open, close): Undefine.
48791         * lib/progreloc.c (open, close): Undefine.
48792         * lib/savedir.c (opendir, closedir): Undefine.
48793         * lib/utime.c (open, close): Undefine.
48794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
48795
48796 2007-01-10  Bruno Haible  <bruno@clisp.org>
48797
48798         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
48799
48800 2007-01-12  Eric Blake  <ebb9@byu.net>
48801
48802         Provide a robust <wchar.h>.  Further simplifications are now
48803         possible in other modules, but not included here.
48804         * modules/wchar: New module.
48805         * m4/wchar.m4: New file.
48806         * lib/wchar_.h: Likewise.
48807         * modules/mbchar (Depends-on): Depend on wchar, as the first use
48808         of the new module.
48809         * MODULES.html.sh (Extended multibyte and wide character utilities):
48810         New section.
48811
48812 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
48813
48814         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
48815         to a reasonable default for memory allocation.
48816         (xreadlink): Don't allocate a huge buffer, to work around a buggy
48817         file system that reports garbage st_size values for symlinks.
48818         Problem reported by Liyang Hu.
48819
48820 2007-01-11  Simon Josefsson  <simon@josefsson.org>
48821
48822         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
48823         Emacs .#* auto-save files).
48824
48825 2007-01-11  Bruno Haible  <bruno@clisp.org>
48826
48827         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
48828         directory.
48829
48830 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48831
48832         Use @...@ consistently in lib/wctype_.h.
48833         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
48834         on it being set to 1 or 0.
48835         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
48836         go back to AC_SUBSTing it.
48837         * modules/wctype (Makefile.am): Undo previous change.
48838
48839 2007-01-10  Eric Blake  <ebb9@byu.net>
48840
48841         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
48842         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
48843         * modules/wctype (Makefile.am): Likewise.
48844         Reported by Chris McGuire.
48845
48846 2007-01-10  Jim Meyering  <jim@meyering.net>
48847
48848         fts.c: a small readability/maintainability improvement
48849         * lib/fts.c (fts_read): Make this code slightly more readable and
48850         maintainable by hoisting the "sp->fts_cur = p" assignments to
48851         immediately follow the statements that set P.  Derived from
48852         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
48853
48854 2007-01-10  Eric Blake  <ebb9@byu.net>
48855
48856         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
48857         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
48858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48859         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48860         Reported by Chris McGuire.
48861
48862 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48863
48864         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
48865         in sed script.
48866
48867 2007-01-09  Bruno Haible  <bruno@clisp.org>
48868
48869         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
48870         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
48871         variables.
48872         (func_module): Use them.
48873
48874 2007-01-09  Bruno Haible  <bruno@clisp.org>
48875
48876         * modules/unistr/base: New file.
48877         * lib/unistr.h: New file.
48878
48879         * modules/unistr/u8-to-u16: New file.
48880         * lib/unistr/u8-to-u16.c: New file.
48881
48882         * modules/unistr/u8-to-u32: New file.
48883         * lib/unistr/u8-to-u32.c: New file.
48884
48885         * modules/unistr/u16-to-u8: New file.
48886         * lib/unistr/u16-to-u8.c: New file.
48887
48888         * modules/unistr/u16-to-u32: New file.
48889         * lib/unistr/u16-to-u32.c: New file.
48890
48891         * modules/unistr/u32-to-u8: New file.
48892         * lib/unistr/u32-to-u8.c: New file.
48893
48894         * modules/unistr/u32-to-u16: New file.
48895         * lib/unistr/u32-to-u16.c: New file.
48896
48897         * modules/unistr/u8-check: New file.
48898         * modules/unistr/u16-check: New file.
48899         * modules/unistr/u32-check: New file.
48900         * lib/unistr/u8-check.c: New file.
48901         * lib/unistr/u16-check.c: New file.
48902         * lib/unistr/u32-check.c: New file.
48903
48904         * modules/unistr/u8-chr: New file.
48905         * modules/unistr/u16-chr: New file.
48906         * modules/unistr/u32-chr: New file.
48907         * lib/unistr/u8-chr.c: New file.
48908         * lib/unistr/u16-chr.c: New file.
48909         * lib/unistr/u32-chr.c: New file.
48910
48911         * modules/unistr/u8-cmp: New file.
48912         * modules/unistr/u16-cmp: New file.
48913         * modules/unistr/u32-cmp: New file.
48914         * lib/unistr/u8-cmp.c: New file.
48915         * lib/unistr/u16-cmp.c: New file.
48916         * lib/unistr/u32-cmp.c: New file.
48917
48918         * modules/unistr/u8-cpy: New file.
48919         * modules/unistr/u16-cpy: New file.
48920         * modules/unistr/u32-cpy: New file.
48921         * lib/unistr/u8-cpy.c: New file.
48922         * lib/unistr/u16-cpy.c: New file.
48923         * lib/unistr/u32-cpy.c: New file.
48924         * lib/unistr/u-cpy.h: New file.
48925
48926         * modules/unistr/u8-cpy-alloc: New file.
48927         * modules/unistr/u16-cpy-alloc: New file.
48928         * modules/unistr/u32-cpy-alloc: New file.
48929         * lib/unistr/u8-cpy-alloc.c: New file.
48930         * lib/unistr/u16-cpy-alloc.c: New file.
48931         * lib/unistr/u32-cpy-alloc.c: New file.
48932         * lib/unistr/u-cpy-alloc.h: New file.
48933
48934         * modules/unistr/u8-endswith: New file.
48935         * modules/unistr/u16-endswith: New file.
48936         * modules/unistr/u32-endswith: New file.
48937         * lib/unistr/u8-endswith.c: New file.
48938         * lib/unistr/u16-endswith.c: New file.
48939         * lib/unistr/u32-endswith.c: New file.
48940         * lib/unistr/u-endswith.h: New file.
48941
48942         * modules/unistr/u8-mblen: New file.
48943         * modules/unistr/u16-mblen: New file.
48944         * modules/unistr/u32-mblen: New file.
48945         * lib/unistr/u8-mblen.c: New file.
48946         * lib/unistr/u16-mblen.c: New file.
48947         * lib/unistr/u32-mblen.c: New file.
48948
48949         * modules/unistr/u8-mbtouc: New file.
48950         * modules/unistr/u16-mbtouc: New file.
48951         * modules/unistr/u32-mbtouc: New file.
48952         * lib/unistr/u8-mbtouc.c: New file.
48953         * lib/unistr/u16-mbtouc.c: New file.
48954         * lib/unistr/u32-mbtouc.c: New file.
48955
48956         * modules/unistr/u8-mbtouc-safe: New file.
48957         * modules/unistr/u16-mbtouc-safe: New file.
48958         * modules/unistr/u32-mbtouc-safe: New file.
48959         * lib/unistr/u8-mbtouc-safe.c: New file.
48960         * lib/unistr/u16-mbtouc-safe.c: New file.
48961         * lib/unistr/u32-mbtouc-safe.c: New file.
48962
48963         * modules/unistr/u8-move: New file.
48964         * modules/unistr/u16-move: New file.
48965         * modules/unistr/u32-move: New file.
48966         * lib/unistr/u8-move.c: New file.
48967         * lib/unistr/u16-move.c: New file.
48968         * lib/unistr/u32-move.c: New file.
48969         * lib/unistr/u-move.h: New file.
48970
48971         * modules/unistr/u8-next: New file.
48972         * modules/unistr/u16-next: New file.
48973         * modules/unistr/u32-next: New file.
48974         * lib/unistr/u8-next.c: New file.
48975         * lib/unistr/u16-next.c: New file.
48976         * lib/unistr/u32-next.c: New file.
48977
48978         * modules/unistr/u8-prev: New file.
48979         * modules/unistr/u16-prev: New file.
48980         * modules/unistr/u32-prev: New file.
48981         * lib/unistr/u8-prev.c: New file.
48982         * lib/unistr/u16-prev.c: New file.
48983         * lib/unistr/u32-prev.c: New file.
48984
48985         * modules/unistr/u8-set: New file.
48986         * modules/unistr/u16-set: New file.
48987         * modules/unistr/u32-set: New file.
48988         * lib/unistr/u8-set.c: New file.
48989         * lib/unistr/u16-set.c: New file.
48990         * lib/unistr/u32-set.c: New file.
48991         * lib/unistr/u-set.h: New file.
48992
48993         * modules/unistr/u8-startswith: New file.
48994         * modules/unistr/u16-startswith: New file.
48995         * modules/unistr/u32-startswith: New file.
48996         * lib/unistr/u8-startswith.c: New file.
48997         * lib/unistr/u16-startswith.c: New file.
48998         * lib/unistr/u32-startswith.c: New file.
48999         * lib/unistr/u-startswith.h: New file.
49000
49001         * modules/unistr/u8-stpcpy: New file.
49002         * modules/unistr/u16-stpcpy: New file.
49003         * modules/unistr/u32-stpcpy: New file.
49004         * lib/unistr/u8-stpcpy.c: New file.
49005         * lib/unistr/u16-stpcpy.c: New file.
49006         * lib/unistr/u32-stpcpy.c: New file.
49007         * lib/unistr/u-stpcpy.h: New file.
49008
49009         * modules/unistr/u8-stpncpy: New file.
49010         * modules/unistr/u16-stpncpy: New file.
49011         * modules/unistr/u32-stpncpy: New file.
49012         * lib/unistr/u8-stpncpy.c: New file.
49013         * lib/unistr/u16-stpncpy.c: New file.
49014         * lib/unistr/u32-stpncpy.c: New file.
49015         * lib/unistr/u-stpncpy.h: New file.
49016
49017         * modules/unistr/u8-strcat: New file.
49018         * modules/unistr/u16-strcat: New file.
49019         * modules/unistr/u32-strcat: New file.
49020         * lib/unistr/u8-strcat.c: New file.
49021         * lib/unistr/u16-strcat.c: New file.
49022         * lib/unistr/u32-strcat.c: New file.
49023         * lib/unistr/u-strcat.h: New file.
49024
49025         * modules/unistr/u8-strchr: New file.
49026         * modules/unistr/u16-strchr: New file.
49027         * modules/unistr/u32-strchr: New file.
49028         * lib/unistr/u8-strchr.c: New file.
49029         * lib/unistr/u16-strchr.c: New file.
49030         * lib/unistr/u32-strchr.c: New file.
49031
49032         * modules/unistr/u8-strcmp: New file.
49033         * modules/unistr/u16-strcmp: New file.
49034         * modules/unistr/u32-strcmp: New file.
49035         * lib/unistr/u8-strcmp.c: New file.
49036         * lib/unistr/u16-strcmp.c: New file.
49037         * lib/unistr/u32-strcmp.c: New file.
49038
49039         * modules/unistr/u8-strcpy: New file.
49040         * modules/unistr/u16-strcpy: New file.
49041         * modules/unistr/u32-strcpy: New file.
49042         * lib/unistr/u8-strcpy.c: New file.
49043         * lib/unistr/u16-strcpy.c: New file.
49044         * lib/unistr/u32-strcpy.c: New file.
49045         * lib/unistr/u-strcpy.h: New file.
49046
49047         * modules/unistr/u8-strcspn: New file.
49048         * modules/unistr/u16-strcspn: New file.
49049         * modules/unistr/u32-strcspn: New file.
49050         * lib/unistr/u8-strcspn.c: New file.
49051         * lib/unistr/u16-strcspn.c: New file.
49052         * lib/unistr/u32-strcspn.c: New file.
49053         * lib/unistr/u-strcspn.h: New file.
49054
49055         * modules/unistr/u8-strdup: New file.
49056         * modules/unistr/u16-strdup: New file.
49057         * modules/unistr/u32-strdup: New file.
49058         * lib/unistr/u8-strdup.c: New file.
49059         * lib/unistr/u16-strdup.c: New file.
49060         * lib/unistr/u32-strdup.c: New file.
49061         * lib/unistr/u-strdup.h: New file.
49062
49063         * modules/unistr/u8-strlen: New file.
49064         * modules/unistr/u16-strlen: New file.
49065         * modules/unistr/u32-strlen: New file.
49066         * lib/unistr/u8-strlen.c: New file.
49067         * lib/unistr/u16-strlen.c: New file.
49068         * lib/unistr/u32-strlen.c: New file.
49069         * lib/unistr/u-strlen.h: New file.
49070
49071         * modules/unistr/u8-strmblen: New file.
49072         * modules/unistr/u16-strmblen: New file.
49073         * modules/unistr/u32-strmblen: New file.
49074         * lib/unistr/u8-strmblen.c: New file.
49075         * lib/unistr/u16-strmblen.c: New file.
49076         * lib/unistr/u32-strmblen.c: New file.
49077
49078         * modules/unistr/u8-strmbtouc: New file.
49079         * modules/unistr/u16-strmbtouc: New file.
49080         * modules/unistr/u32-strmbtouc: New file.
49081         * lib/unistr/u8-strmbtouc.c: New file.
49082         * lib/unistr/u16-strmbtouc.c: New file.
49083         * lib/unistr/u32-strmbtouc.c: New file.
49084
49085         * modules/unistr/u8-strncat: New file.
49086         * modules/unistr/u16-strncat: New file.
49087         * modules/unistr/u32-strncat: New file.
49088         * lib/unistr/u8-strncat.c: New file.
49089         * lib/unistr/u16-strncat.c: New file.
49090         * lib/unistr/u32-strncat.c: New file.
49091         * lib/unistr/u-strncat.h: New file.
49092
49093         * modules/unistr/u8-strncmp: New file.
49094         * modules/unistr/u16-strncmp: New file.
49095         * modules/unistr/u32-strncmp: New file.
49096         * lib/unistr/u8-strncmp.c: New file.
49097         * lib/unistr/u16-strncmp.c: New file.
49098         * lib/unistr/u32-strncmp.c: New file.
49099
49100         * modules/unistr/u8-strncpy: New file.
49101         * modules/unistr/u16-strncpy: New file.
49102         * modules/unistr/u32-strncpy: New file.
49103         * lib/unistr/u8-strncpy.c: New file.
49104         * lib/unistr/u16-strncpy.c: New file.
49105         * lib/unistr/u32-strncpy.c: New file.
49106         * lib/unistr/u-strncpy.h: New file.
49107
49108         * modules/unistr/u8-strnlen: New file.
49109         * modules/unistr/u16-strnlen: New file.
49110         * modules/unistr/u32-strnlen: New file.
49111         * lib/unistr/u8-strnlen.c: New file.
49112         * lib/unistr/u16-strnlen.c: New file.
49113         * lib/unistr/u32-strnlen.c: New file.
49114         * lib/unistr/u-strnlen.h: New file.
49115
49116         * modules/unistr/u8-strpbrk: New file.
49117         * modules/unistr/u16-strpbrk: New file.
49118         * modules/unistr/u32-strpbrk: New file.
49119         * lib/unistr/u8-strpbrk.c: New file.
49120         * lib/unistr/u16-strpbrk.c: New file.
49121         * lib/unistr/u32-strpbrk.c: New file.
49122         * lib/unistr/u-strpbrk.h: New file.
49123
49124         * modules/unistr/u8-strrchr: New file.
49125         * modules/unistr/u16-strrchr: New file.
49126         * modules/unistr/u32-strrchr: New file.
49127         * lib/unistr/u8-strrchr.c: New file.
49128         * lib/unistr/u16-strrchr.c: New file.
49129         * lib/unistr/u32-strrchr.c: New file.
49130
49131         * modules/unistr/u8-strspn: New file.
49132         * modules/unistr/u16-strspn: New file.
49133         * modules/unistr/u32-strspn: New file.
49134         * lib/unistr/u8-strspn.c: New file.
49135         * lib/unistr/u16-strspn.c: New file.
49136         * lib/unistr/u32-strspn.c: New file.
49137         * lib/unistr/u-strspn.h: New file.
49138
49139         * modules/unistr/u8-strstr: New file.
49140         * modules/unistr/u16-strstr: New file.
49141         * modules/unistr/u32-strstr: New file.
49142         * lib/unistr/u8-strstr.c: New file.
49143         * lib/unistr/u16-strstr.c: New file.
49144         * lib/unistr/u32-strstr.c: New file.
49145         * lib/unistr/u-strstr.h: New file.
49146
49147         * modules/unistr/u8-strtok: New file.
49148         * modules/unistr/u16-strtok: New file.
49149         * modules/unistr/u32-strtok: New file.
49150         * lib/unistr/u8-strtok.c: New file.
49151         * lib/unistr/u16-strtok.c: New file.
49152         * lib/unistr/u32-strtok.c: New file.
49153         * lib/unistr/u-strtok.h: New file.
49154
49155         * modules/unistr/u8-uctomb: New file.
49156         * modules/unistr/u16-uctomb: New file.
49157         * modules/unistr/u32-uctomb: New file.
49158         * lib/unistr/u8-uctomb.c: New file.
49159         * lib/unistr/u16-uctomb.c: New file.
49160         * lib/unistr/u32-uctomb.c: New file.
49161
49162         * MODULES.html.sh (Unicode string functions): Add the new modules.
49163
49164 2007-01-08  Bruno Haible  <bruno@clisp.org>
49165
49166         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49167         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49168         subdirectories.
49169
49170 2007-01-08  Karl Berry  <karl@gnu.org>
49171
49172         * doc/error.texi: mention that main() fns must set program_name
49173         when progname is used.
49174
49175 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49178         WCTYPE_H is empty, for the benefit of builds from non-distclean
49179         directories.  Problem reported by Eric Blake in
49180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49181
49182 2007-01-08  Bruno Haible  <bruno@clisp.org>
49183
49184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49185         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49186         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49187         PROVIDE_CANONICALIZE_FILENAME_MODE.
49188         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49189
49190 2007-01-08  Bruno Haible  <bruno@clisp.org>
49191
49192         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49193         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49194         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49195         * lib/fts.c: Likewise.
49196         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49197
49198 2006-12-25  Bruno Haible  <bruno@clisp.org>
49199
49200         * modules/utf8-ucs4-safe: New file.
49201         * lib/utf8-ucs4-safe.h: New file.
49202         * lib/unistr/utf8-ucs4-safe.c: New file.
49203
49204         * modules/utf16-ucs4-safe: New file.
49205         * lib/utf16-ucs4-safe.h: New file.
49206         * lib/unistr/utf16-ucs4-safe.c: New file.
49207
49208         * MODULES.html.sh (Unicode string functions): Add the new modules.
49209
49210 2007-01-08  Bruno Haible  <bruno@clisp.org>
49211
49212         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49213         (Depends-on): Add unitypes.
49214         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49215         (u8_mbtouc_aux): Move out to separate file.
49216         (u8_mbtouc): Use ucs4_t, uint8_t types.
49217         * lib/unistr/utf8-ucs4.c: New file.
49218
49219         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49220         (Depends-on): Add unitypes.
49221         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49222         (u16_mbtouc_aux): Move out to separate file.
49223         (u16_mbtouc): Use ucs4_t, uint16_t types.
49224         * lib/unistr/utf16-ucs4.c: New file.
49225
49226         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49227         (Depends-on): Add unitypes.
49228         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49229         (u8_uctomb_aux): Move out to separate file.
49230         (u8_uctomb): Use ucs4_t, uint8_t types.
49231         * lib/unistr/ucs4-utf8.c: New file.
49232
49233         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49234         (Depends-on): Add unitypes.
49235         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49236         (u16_uctomb_aux): Move out to separate file.
49237         (u16_uctomb): Use ucs4_t, uint16_t types.
49238         * lib/unistr/ucs4-utf16.c: New file.
49239
49240 2006-12-25  Bruno Haible  <bruno@clisp.org>
49241
49242         * modules/unitypes: New file.
49243         * lib/unitypes.h: New file.
49244         * MODULES.html.sh (func_all_modules): New section "Unicode string
49245         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49246         this section. Add unitypes.
49247
49248 2007-01-08  Bruno Haible  <bruno@clisp.org>
49249
49250         Avoid variable names that conflict with those from libtool.
49251         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49252         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49253         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49254         library_names_spec to acl_library_names_spec, hardcode_* to
49255         acl_hardcode_*.
49256         Reported by Ralf Wildenhues.
49257
49258 2007-01-08  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49261         definition.
49262         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49263         definition.
49264         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49265         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49266         definition.
49267         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49268         definition.
49269         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49270         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49271         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49272         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49273         definition.
49274         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49275         definition.
49276         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49277         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49278         GC_USE_<algorithm>.
49279         * lib/gc-libgcrypt.c: Likewise.
49280         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49281         * modules/gc-arctwo (configure.ac): Likewise.
49282         * modules/gc-des (configure.ac): Likewise.
49283         * modules/gc-hmac-md5 (configure.ac): Likewise.
49284         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49285         * modules/gc-md2 (configure.ac): Likewise.
49286         * modules/gc-md4 (configure.ac): Likewise.
49287         * modules/gc-md5 (configure.ac): Likewise.
49288         * modules/gc-random (configure.ac): Likewise.
49289         * modules/gc-rijndael (configure.ac): Likewise.
49290         * modules/gc-sha1 (configure.ac): Likewise.
49291
49292 2007-01-08  Bruno Haible  <bruno@clisp.org>
49293
49294         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49295         macro definition.
49296         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49297         definition.
49298         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49299         definition.
49300         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49301         * modules/fcntl-safer (configure.ac): Likewise.
49302         * modules/fopen-safer (configure.ac): Likewise.
49303         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49304         GNULIB_FWRITEERROR macro definition.
49305
49306 2007-01-08  Bruno Haible  <bruno@clisp.org>
49307
49308         * m4/gnulib-common.m4: New file.
49309         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49310         (func_get_filelist): Add m4/gnulib-common.m4.
49311
49312 2007-01-08  Bruno Haible  <bruno@clisp.org>
49313
49314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49315         command.
49316
49317 2007-01-08  Jim Meyering  <jim@meyering.net>
49318
49319         Use a more robust test for a "can't happen" condition.
49320         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49321         narrowed the st_size value.  Presuming the "can't happen" condition
49322         is true, that narrowing could conceivably convert an invalid st_size
49323         value into a valid one.  Instead, use a change based on Matthew
49324         Woehlke's original patch.
49325
49326         Slight readability improvement: use an assert-like macro
49327         in place of literal "abort ()" uses.
49328         * lib/fts.c (fts_assert): Define.
49329         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49330         Use this macro instead of a bare 'abort'.
49331
49332 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49335         simply work around them.
49336         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49337         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49338         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49339         declaring.
49340         Don't bother to define as macros, since the standard doesn't require it.
49341         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49342         longer worry about IRIX 5.3.
49343         (HAVE_WCTYPE_CTMP_BUG): Remove.
49344
49345 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49346
49347         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49348         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49349         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49350         Problems reported by Georg Schwarz for IRIX 5.3.
49351
49352         * gnulib-tool (autoconf_minversion): Take the maximum version number
49353         found, not the minimum.  Problem reported by James Youngman.
49354
49355 2007-01-03  Karl Berry  <karl@gnu.org>
49356
49357         * doc/error.texi: new file, explaining interaction with progname.
49358         * doc/gnulib.texi: include it.  Update copyright.
49359
49360 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49361
49362         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49363         AC_CANONICAL_HOST, to improve autobuild outputs.
49364
49365 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49366             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49367
49368         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49369         sockets, server sockets, and other file descriptors.  Count errors
49370         to compute the return value.  Reorder the code a bit to be easier
49371         to follow.  Don't set event bits that were not requested (except
49372         POLLERR and POLLHUP).
49373
49374 2007-01-01  Bruno Haible  <bruno@clisp.org>
49375
49376         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49377
49378 2007-01-03  Jim Meyering  <jim@meyering.net>
49379
49380         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49381
49382 2007-01-02  Bruno Haible  <bruno@clisp.org>
49383
49384         * modules/settime (Include): Require timespec.h.
49385         * modules/nanosleep (Include): Likewise.
49386
49387 2007-01-01  Bruno Haible  <bruno@clisp.org>
49388
49389         * gnulib-tool (func_emit_copyright_notice): Bump year.
49390         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49391
49392 2007-01-01  Bruno Haible  <bruno@clisp.org>
49393
49394         Improve support for OpenBSD.
49395         * build-aux/config.rpath (libname_spec): Export.
49396         (library_names_spec): New variable. Export.
49397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49398         library_names_spec from the config.rpath output. Locate shared library
49399         through the name pattern in library_names_spec.
49400
49401 2007-01-01  Eric Blake  <ebb9@byu.net>
49402
49403         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49404
49405 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49406
49407         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49408         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49409         assume the C locale, and avoid an "eval" that could cause trouble.
49410         Problem with SORT reported by Bob Proulx.
49411
49412         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49413         Define.  Trivial patch from Henning Nielsen Lund, originally
49414         sent to bug-grep@gnu.org today.
49415
49416 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49419         struct stat.  Problem reported by Henning Nielsen Lund.
49420         * lib/acl.c: Include acl.h first, to check interface.  Don't
49421         bother to include sys/types.h and sys/stat.h again.
49422
49423 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49424
49425         Import the following change from libc; problem reported by
49426         Sven Verdoolaege.
49427
49428         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49429
49430         [BZ #1373]
49431         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49432
49433 2006-12-28  Jim Meyering  <jim@meyering.net>
49434
49435         * build-aux/announce-gen: Do not assume that the package
49436         builds any of tar.gz, tar.bz2, and .xdelta files.
49437         Suggestion from Simon Josefsson.
49438
49439 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49440
49441         * modules/announce-gen: New file.
49442
49443 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49446         handles its gotchas now.
49447         * lib/mbswidth.c: Likewise.
49448         * lib/wcwidth.h: Likewise.
49449         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49450         and iswcntrl; the wctype module does this stuff now.
49451         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49453         * modules/mbchar (Depends-on): Add wctype.
49454         * modules/mbswidth (Depends-on): Likewise.
49455         * modules/wcwidth (Depends-on): Likewise.
49456
49457 2006-12-27  Eric Blake  <ebb9@byu.net>
49458
49459         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49460         module uses more than what <wctype.h> is required to provide.
49461
49462 2006-12-26  Eric Blake  <ebb9@byu.net>
49463
49464         * gnulib-tool (sed_extract_prog): Avoid space-tab.
49465
49466 2006-12-26  Eric Blake  <ebb9@byu.net>
49467
49468         * modules/absolute-header: New module.
49469         * modules/fcntl (Depends-on): Depend on it.
49470         * modules/inttypes (Depends-on): Likewise.
49471         * modules/stdint (Depends-on): Likewise.
49472         * modules/sys_stat (Depends-on): Likewise.
49473         * modules/wctype (Depends-on): Likewise.
49474         * MODULES.html.sh (Support for building libraries and
49475         executables): Document it.
49476
49477 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49478
49479         * gnulib-tool (SED): Remove, undoing previous change.
49480         The problem was that it broke coreutils on Solaris, because
49481         "sed --posix" leaked into a makefile.
49482         (sed): New alias, if 'alias' and GNU sed.
49483
49484 2006-12-24  Jim Meyering  <jim@meyering.net>
49485
49486         Work around an fchownat bug in glibc-2.4:
49487         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
49488         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
49489         in spite of the -P option.
49490         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
49491         New macros.
49492         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
49493         * modules/openat (Files): Add lib/fchownat.c.
49494         * lib/openat.c (fchownat): Don't define here.  Move to...
49495         * lib/fchownat.c: ...this new file.
49496
49497 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49498
49499         Fix bug reported by Bruno Haible in
49500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
49501         where quotearg.c didn't compile on Mac OS X 10.2 because it
49502         lacks <wchar.h> and wint_t.
49503         * lib/wctype_.h (__wctype_wint_t): New type.
49504         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
49505         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
49506         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
49507         Arg is now of type __wctype_wint_t, not wint_t.
49508         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
49509         substitute HAVE_WINT_T.
49510         * modules/wctype (Files): Add m4/wint_t.m4.
49511         (wctype.h): Substitute HAVE_WINT_T.
49512
49513 2006-12-23  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
49516
49517 2006-12-23  Bruno Haible  <bruno@clisp.org>
49518
49519         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
49520         S_ISLNK.
49521         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
49522         mingw.
49523
49524 2006-12-22  Bruno Haible  <bruno@clisp.org>
49525
49526         * lib/copy-file.c: Include acl.h.
49527         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
49528         Close the file descriptors only after being done with copy_acl.
49529         * modules/copy-file (Depends-on): Add acl.
49530
49531 2006-12-22  Bruno Haible  <bruno@clisp.org>
49532
49533         * gnulib-tool (SED): New variable.
49534         Use $SED instead of sed everywhere.
49535
49536 2006-12-22  Bruno Haible  <bruno@clisp.org>
49537
49538         * modules/no-c++: New file.
49539         * m4/no-c++.m4: New file.
49540         * MODULES.html.sh (Support for building libraries and executables):
49541         Add no-c++.
49542
49543 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
49544
49545         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49546         Include <limits.h>, and use its INT_MAX to rewrite the
49547         j loop so that it does not overflow 'int'.  Problem reported by
49548         Ralf Wildenhues in
49549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
49550         Play it safe by shifting left by 1 rather than multiplying by 2,
49551         as GCC is less likely to optimize this away when the value
49552         is signed (when it assumes overflow leads to undefined behavior).
49553         Also, don't assume time_t uses two's complement.
49554
49555 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * MODULES.html.sh: New module wctype.
49558         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
49559         * lib/fnmatch.c: Don't bother to include <wchar.h> before
49560         <wctype.h>, since the new wctype module should fix this.
49561         * lib/quotearg.c: Include <wctype.h> unconditionally, since
49562         the wctype module should arrange for it.
49563         * lib/regex_internal.h: Likewise.
49564         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
49565         since the wctype module should handle this now.
49566         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
49567         * modules/fnmatch (Depends-on): Add wctype.
49568         * modules/quotearg (Depends-on): Likewise.
49569         * modules/regex (Depends-on): Likewise.
49570
49571 2006-12-19  Bruno Haible  <bruno@clisp.org>
49572
49573         * lib/strdup.h [C++]: Wrap definitions in extern "C".
49574         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
49575
49576 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49577
49578         * modules/savewd (Depends-on): Fix dependency on fcntl.
49579
49580 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49581
49582         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
49583         conforms to C99, rather than relying on the user's environment
49584         setting of STDINT_H.
49585
49586 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49587         and Eric Blake  <ebb9@byu.net>
49588
49589         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
49590         This is more consistent with the other defines here.
49591         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
49592         Port to z/OS.  Problem reported by Paul Gilmartin.
49593         Change local vars to use gl_ prefix rather than ac_.
49594         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
49595         with other defines.
49596         * modules/double-slash-root: New module.
49597         * modules/dirname (Files): Remove m4/double-slash-root.m4.
49598         (Depends-on): Add double-slash-root.
49599         * MODULES.html.sh (File system functions): Mention new module.
49600
49601 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
49602
49603         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
49604         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
49605         This is for the benefit of gzip, which doesn't do i18n.
49606
49607 2006-12-12  Jim Meyering  <jim@meyering.net>
49608
49609         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
49610         Reported by Andreas Schwab <schwab@suse.de>.
49611
49612 2006-12-12  Bruno Haible  <bruno@clisp.org>
49613
49614         Merge these changes.
49615         2006-09-05  Bruno Haible  <bruno@clisp.org>
49616         * lib/iconvme.c (iconv_string): No need to save and restore errno when
49617         iconv_alloc succeeded.
49618         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
49619         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
49620         test for " && dest " at the end - dest is always != NULL there. Call
49621         iconv with 4xNULL arguments initially, to reset the state. Call iconv
49622         with 2xNULL arguments, also to flush the state storage. Handle the
49623         IRIX iconv behaviour. Realloc the final result, to throw away unused
49624         memory.
49625
49626 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
49627
49628         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
49629         and fchmodat unconditionally, since glibc 2.4 has them.
49630         Problem reported by Arkadiusz Miskiewicz.
49631
49632 2006-12-10  Bruno Haible  <bruno@clisp.org>
49633
49634         * gnulib-tool (func_import): Show the include files only for those
49635         modules that are copied and specified.
49636         Reported by Karl Berry.
49637
49638 2006-12-08  Jim Meyering  <jim@meyering.net>
49639
49640         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
49641         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
49642
49643         * build-aux/announce-gen: Add two new options, both optional:
49644         --bootstrap-tools=TOOL_LIST
49645               a comma-separated list of tools, e.g.,
49646               autoconf,automake,bison,gnulib
49647         --gnulib-snapshot-date=DATE
49648               if gnulib is in the bootstrap tool list,
49649               then report this as the snapshot date.
49650               If not specified, use the current date/time.
49651               If you specify a date here, be sure it's UTC.
49652
49653 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49654
49655         * tests/test-argp-2.sh: Fix test to match actual output.
49656         (func_compare): Fix sed script to be portable.
49657
49658 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
49661         workaround for this case.  It is not autoconfigured now; offhand
49662         it's hard to see how to autoconfigure it.
49663
49664 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49665
49666         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
49667         a directory that is about to be chowned.  Such a directory's
49668         initial file permissions should permit the owner only and this
49669         should not be changed until after the chown, since the group and
49670         other bits would be incorrect if they granted permission before
49671         the chown.
49672
49673         Fix porting problem for iswctype reported by Georg Schwarz in:
49674         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
49675         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
49676         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
49677         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
49678         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49679
49680 2006-12-03  Jim Meyering  <jim@meyering.net>
49681
49682         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
49683         p->fts_statp may not yet be defined.
49684         (fts_read): Instead, set it in the caller, once p->fts_statp is
49685         sure to be defined, and corresponds to a top-level directory.
49686         This bug made du -x fail.  Here's the coreutils test case:
49687         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
49688         Reported by Mike Frysinger.
49689
49690 2006-12-01  Jim Meyering  <jim@meyering.net>
49691
49692         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
49693         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
49694         Reported by Simon Josefsson.
49695
49696 2006-11-30  Jim Meyering  <jim@meyering.net>
49697
49698         * m4/warning.m4: Use the all-permissive copyright notice
49699         recommended by RMS (rather than LGPL).
49700         * m4/vararrays.m4: Likewise.
49701         * m4/flexmember.m4: Likewise.
49702
49703 2006-11-29  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49706         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
49707         using +=.
49708         Reported by Simon Josefsson <simon@josefsson.org>.
49709
49710 2006-11-28  James Youngman <jay@gnu.org>
49711
49712         * README: Advise users that they might find the bug-gnulib@gnu.org
49713         and autotools-announce@gnu.org mailing lists useful.
49714
49715 2006-11-28  Bruno Haible  <bruno@clisp.org>
49716
49717         * m4/ptrdiff_max.m4: Remove file.
49718
49719 2006-11-21  Bruno Haible  <bruno@clisp.org>
49720
49721         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
49722         _AC_COMPUTE_INT.
49723         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49724         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
49725         _AC_COMPUTE_INT.
49726         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
49728         _AC_COMPUTE_INT.
49729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49730
49731 2006-11-28  Jim Meyering  <jim@meyering.net>
49732
49733         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
49734         warning from "gcc -Wshadow" about shadowing the builtin.
49735
49736 2006-11-27  Bruno Haible  <bruno@clisp.org>
49737
49738         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
49739         _AC_COMPUTE_INT.
49740         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49741
49742 2006-11-27  Bruno Haible  <bruno@clisp.org>
49743             Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
49746
49747 2006-11-26  Bruno Haible  <bruno@clisp.org>
49748
49749         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49750         noinst_LTLIBRARIES.
49751
49752 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
49753             Bruno Haible  <bruno@clisp.org>
49754
49755         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
49756         if compiling with "gcc -ansi".
49757
49758 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         Fix some incompatibilities with gcc -ansi -pedantic.
49761         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
49762         if compiling pedantically with GCC, unless it's C99 or later.
49763         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
49764         it mishandles gcc -ansi -pedantic as well.
49765         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
49766         if gcc -pedantic.
49767         * lib/regexec.c (check_node_accept_bytes): Don't use auto
49768         initializers for struct if -pedantic, unless it's C99 or later.
49769
49770 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
49771
49772         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
49773         Don't close an fd more than once. Identical atimes indicate
49774         success, not failure.
49775
49776 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
49777
49778         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
49779
49780 2006-11-23  Jim Meyering  <jim@meyering.net>
49781
49782         * build-aux/announce-gen: New file.  From coreutils.
49783
49784 2006-11-22  Jim Meyering  <jim@meyering.net>
49785
49786         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
49787         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
49788         (fts_read): Use a temporary to narrow the overused st_size member
49789         before using it in a switch statement.  Reported by Matthew Woehlke.
49790
49791         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
49792         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
49793
49794 2006-11-20  Bruno Haible  <bruno@clisp.org>
49795
49796         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
49797         changequote instead of pairs of brackets.
49798         Reported by Andreas Schwab <schwab@suse.de>.
49799
49800 2006-11-21  Jim Meyering  <jim@meyering.net>
49801
49802         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
49803         so as to remain compatible with older compilers.
49804         Patch from Michael Deutschmann.
49805
49806 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49807
49808         * MODULES.html.sh (File system functions): Add openat.
49809
49810         * lib/openat.h (rpl_fstatat): New macro, if
49811         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
49812         (fstatat): Define to rpl_fstatat under the same conditions,
49813         unless COMPILING_FSTATAT.
49814         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
49815         seems to have the bug.
49816         * lib/fstatat.c: New file.
49817         * modules/openat (Files): Add it.
49818
49819 2006-11-20  Bruno Haible  <bruno@clisp.org>
49820
49821         * Makefile: New file.
49822
49823 2006-11-20  Jim Meyering  <jim@meyering.net>
49824
49825         The beginnings of syntax-related checks for gnulib.
49826         * lib/Makefile: New file.
49827         * lib/t-idcache: New script.  Ensure that the two halves of
49828         idcache.c stay in sync.
49829
49830         * lib/idcache.c: Adjust comments in user- and group- portions to
49831         be more accurate, and to be consistent with one another.
49832
49833 2006-11-20  Jim Meyering  <jim@meyering.net>
49834
49835         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
49836         continue using the flexible array member (thus, this module performs
49837         half as many malloc calls), with the addition that...
49838         (getgroup, getuser): Consistently record a non-match via an empty
49839         "name" string, and map an empty string match to a NULL return value.
49840         * modules/idcache (Depends-on): Re-add flexmember.
49841
49842         * lib/idcache.c (getuser): Remove all uses of the register keyword.
49843         (getuidbyname, getgroup, getgidbyname): Likewise.
49844
49845         Use cleaner syntax: NULL rather than 0.
49846         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
49847
49848 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49849
49850         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
49851         It mishandled the case where the group was missing.
49852         Problem reported by Greg Schafer.
49853         * modules/idcache: Likewise.
49854
49855 2006-11-18  Jim Meyering  <jim@meyering.net>
49856
49857         * check-module (%exempt_header): Add exception for some
49858         conditionally-included headers.
49859
49860         * modules/i-ring (Depends-on): Add verify.
49861         (License): Change to LGPL.
49862
49863 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49864
49865         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
49866         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
49867         and inttostr.h.  Use snprintf rather than uinttostr, so that
49868         LGPLed code doesn't depend on GPLed.
49869
49870 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49871
49872         * modules/inline (License): Change from GPL to LGPL.
49873
49874 2006-11-17  Jim Meyering  <jim@meyering.net>
49875
49876         * modules/d-type (License): Switch to LGPL.
49877
49878 2006-11-15  Bruno Haible  <bruno@clisp.org>
49879
49880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
49881
49882 2006-11-15  Eric Blake  <ebb9@byu.net>
49883
49884         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
49885         the module dependency.
49886
49887 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49888             Bruno Haible  <bruno@clisp.org>
49889
49890         * gnulib-tool (func_create_testdir): Add license consistency check.
49891
49892 2006-11-15  Eric Blake  <ebb9@byu.net>
49893
49894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
49895         random "(cached)" in configure output.
49896
49897 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49898
49899         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
49900         test for conforming inttypes.h is both announced and cached.
49901
49902         * MODULES.html.sh (seen_modules, seen_files): New variables.
49903         (func_module): Rewrite to use a few less gnulib-tool and sed
49904         invocations.  Avoid a couple of quadratic algorithms for ...
49905         (missed_modules, missed_files): ... these, with ...
49906         (func_append, func_tmpdir): ... these new functions, from
49907         gnulib-tool.  Analogously, install traps for cleanup.
49908
49909         * tests/test-gc.c (main): Remove unused variables.
49910         * tests/test-read-file.c: Include stdlib.h, for 'free'.
49911
49912 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
49913
49914         * modules/inttostr (License): Change to LGPL.
49915
49916 2006-11-14  Eric Blake  <ebb9@byu.net>
49917
49918         * modules/tempname (License): Change to LGPL.
49919
49920 2006-11-14  Eric Blake  <ebb9@byu.net>
49921
49922         * doc/functions.texi (Function Portability): *printf functions on
49923         Cygwin now understand all POSIX size specifiers.
49924
49925 2006-11-14  Bruno Haible  <bruno@clisp.org>
49926
49927         * modules/c-ctype (License): Change to LGPL.
49928
49929 2006-11-12  Bruno Haible  <bruno@clisp.org>
49930
49931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49932         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
49933         for GNOME libraries, for which the include files are installed in
49934         subdirectories of $prefix/include.
49935
49936 2006-11-12  Bruno Haible  <bruno@clisp.org>
49937
49938         * m4/lib-link.m4: Require at least autoconf-2.54.
49939         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
49940         name to underscores for the --with option.
49941
49942 2006-11-13  Bruno Haible  <bruno@clisp.org>
49943
49944         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
49945         the tests directory.
49946         Reported by Ralf Wildenhues.
49947
49948 2006-11-13  Bruno Haible  <bruno@clisp.org>
49949
49950         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
49951         (func_emit_initmacro_end): Undo the override here.
49952         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
49953         Works around the famous automake error in coreutils.
49954
49955 2006-11-13  Eric Blake  <ebb9@byu.net>
49956
49957         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
49958         element, not its node.
49959
49960 2006-11-12  Bruno Haible  <bruno@clisp.org>
49961
49962         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
49963         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
49964
49965 2006-11-12  Bruno Haible  <bruno@clisp.org>
49966
49967         * gnulib-tool: New option --local-symlink.
49968         (func_usage): Document it.
49969         (lsymbolic): New variable.
49970         (func_import, func_create_testdir): If --symlink was not specified,
49971         test whether --local-symlink was specified and the file comes from
49972         the local_gnulib_dir.
49973
49974 2006-11-12  Bruno Haible  <bruno@clisp.org>
49975
49976         * gnulib-tool (func_ln): New function.
49977         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
49978
49979 2006-11-12  Bruno Haible  <bruno@clisp.org>
49980
49981         Finish support for source files in subdirectories.
49982         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
49983         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
49984         AUTOMAKE_OPTIONS.
49985         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
49986
49987 2006-11-12  Bruno Haible  <bruno@clisp.org>
49988
49989         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49990         EXTRA_lib_SOURCES augmentation.
49991         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
49992
49993 2006-11-12  Jim Meyering  <jim@meyering.net>
49994
49995         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
49996         file descriptors.  This also averts a failure on systems with
49997         native openat support when a traversed directory lacks "x" access.
49998         * lib/fts_.h: Include "i-ring.h"
49999         (struct FTS) [fts_fd_ring]: New member.
50000         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50001         (FCHDIR): Add parentheses.
50002         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50003         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50004         When descending, rather than simply closing the previous
50005         fts_cwd_fd value, push that file descriptor onto the ring.
50006         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50007         (fts_open): Initialize the new fd_ring member.
50008         (fts_close): Clear the ring.
50009         (fts_safe_changedir): When possible, use our new fd_ring to skip
50010         the diropen and fstat and dev/ino comparison that would normally
50011         accompany a virtual `chdir ("..")'.
50012
50013         * modules/fts (Depends-on): Add i-ring.
50014         * modules/i-ring: New module.
50015         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50016         * m4/i-ring.m4: New file.
50017
50018 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50019
50020         * gnulib-tool (func_create_testdir): Fix replacement of
50021         `build-aux' in configure.ac.  Run autotools in gltests
50022         subdirectory.
50023         (func_create_testdir, func_create_megatestdir, test): There is
50024         no need for '--force' in most autotool invocations in a new
50025         tree.  Actually fail the whole test if any of the tools, or the
50026         configure or make stages fail.
50027
50028         Sync from Automake.
50029         * build-aux/gnupload: Revert last change.  Add pointer to upload
50030         instructions of the GNU Maintenance Instructions.
50031         Suggestion by Karl Berry.
50032
50033 2006-11-10  Jim Meyering  <jim@meyering.net>
50034
50035         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50036
50037 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50038
50039         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50040         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50041         (bind_textdomain_codeset) [! ENABLE_NLS]:
50042         Evaluate all the arguments.  That way, callers get compatible behavior
50043         if the arguments have side effects.  Also, it avoids some GCC
50044         diagnostics in some cases; Joel E. Denny reported problems when Bison
50045         was configured with --enable-gcc-warnigs.
50046
50047 2006-11-10  Jim Meyering  <jim@meyering.net>
50048
50049         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50050         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50051         account.
50052
50053 2006-11-10  Jim Meyering  <jim@meyering.net>
50054
50055         * modules/inline: New file/module.
50056         * modules/xalloc (Files): Remove m4/inline.m4.
50057         (Depends-on): Add inline, instead.
50058         * modules/oset: Likewise.
50059         * modules/list: Likewise.
50060
50061 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50064         Problem reported by Matthew Woehlke.
50065
50066 2006-11-09  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/tempname.c (gen_tempname): Remove variant that invokes
50069         __gen_tempname.
50070         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50071         __gen_tempname.
50072
50073 2006-11-08  Bruno Haible  <bruno@clisp.org>
50074
50075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50076         to 'yes' instead of 'cross-compiling'.
50077
50078 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50079
50080         * lib/quotearg.h (quotearg_free): New decl.
50081         * lib/quotearg.c (quotearg_free): New function.
50082         (slot0, nslots, slotvec0, slotvec):
50083         Now file-scope so that quotearg_free can get at them.
50084
50085 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50086
50087         Sync from Automake.
50088         * build-aux/gnupload: Add missing 'gnu' to example URL.
50089         Report by Karl Berry.
50090
50091 2006-11-08  Bruno Haible  <bruno@clisp.org>
50092
50093         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50094         Suggested by Paul Eggert.
50095
50096 2006-11-08  Jim Meyering  <jim@meyering.net>
50097
50098         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50099         It's already included if !_LIBC.
50100         (fts_safe_changedir): Add a comment.
50101
50102 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50103
50104         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50105         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50106         Matthew Woehlke.
50107
50108         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50109         definitions up, to avoid colliding with change below.
50110         (static_inline) [HAVE_INLINE]: New macro.
50111         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50112         Provide extern decls when !HAVE_INLINE.  Do not define unless
50113         static_inline is defined, either by us or by xmalloc.c.  Use
50114         static_inline rather than static inline.
50115         (XCALLOC): Optimize sizeof(T) = 1 case.
50116         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50117
50118 2006-11-07  Bruno Haible  <bruno@clisp.org>
50119
50120         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50121         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50122         AC_C_INLINE.
50123         * modules/xalloc (Files): Add m4/inline.m4.
50124
50125 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50126
50127         * README: Fix typo.
50128         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50129         (Miscellanous Notes): ...from this.
50130
50131 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50134         Mention that offsetof should be used instead of sizeof.
50135         From Bruno Haible.
50136
50137 2006-11-07  Bruno Haible  <bruno@clisp.org>
50138
50139         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50140
50141 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50142
50143         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50144         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50145         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50146         (gl_tree_add_before, gl_tree_add_after):
50147         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50148         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50149         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50150         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50151         (gl_linked_add_after, gl_linked_add_at): Likewise.
50152         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50153         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50154         (gl_tree_add_before, gl_tree_add_after): Likewise.
50155         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50156         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50157         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50158
50159 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50160
50161         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50162
50163 2006-11-06  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/inline.m4: New file.
50166         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50167         * modules/list (Files): Add m4/inline.m4.
50168         * modules/oset (Files): Likewise.
50169
50170 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * lib/idcache.c: Include <stddef.h>, for offsetof.
50173         (struct userid.name): Change from char * to a flexible array member.
50174         All uses changed.
50175         * modules/idcache (Depends-on): Add flexmember.
50176
50177         * MODULES.html.sh (Core language properties): New module flexmember.
50178         * modules/flexmember, m4/flexmember.m4: New files.
50179
50180         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50181         inline functions that are identical with the old xnmalloc_inline,
50182         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50183         that we can avoid some unnecessary integer multiplications and
50184         divisions in the common case where the element size is known at
50185         compile time.
50186         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50187         needed.
50188         (xnboundedmalloc): Remove.
50189         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50190         arguments, for consistency with rest of this header.
50191         (xcharalloc): Rewrite using XNMALLOC.
50192         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50193         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50194         versions have been moved to lib/xalloc.h and renamed to be the
50195         non-*_inline versions.
50196         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50197         and xnrealloc functions, since those functions are now inline and
50198         now call us.
50199         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50200         renaming described above.
50201         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50202         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50203         captures the dependency in AC_C_INLINE.
50204
50205         New module canonicalize-lgpl, proposed by Charles Wilson in
50206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50207         with a few small changes afterwards.
50208         * MODULES.html.sh (File system functions): New module
50209         canonicalize-lgpl.
50210         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50211         and canonicalize_file_name.
50212         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50213         * modules/canonicalize-lgpl: New files.
50214
50215 2006-11-05  Bruno Haible  <bruno@clisp.org>
50216
50217         * gnulib-tool (func_import, func_create_testdir): Create directories
50218         also for files in subdirectories of lib/.
50219
50220 2006-11-05  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50223         ANSI C compliant.
50224
50225 2006-11-03  Bruno Haible  <bruno@clisp.org>
50226
50227         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50228         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50229         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50230         (xnboundedmalloc): New inline function.
50231         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50232         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50233         xmalloc.
50234         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50235         xmalloc.
50236         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50237         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50238         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50239         xmalloc.
50240         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50241         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50242         xmalloc.
50243         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50244         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50245         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50246         xmalloc.
50247         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50248         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50249         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50250         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50251         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50252         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50253         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50254
50255 2006-11-03  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/c-ctype.h [C++]: Define functions without name mangling.
50258         * lib/fwriteerror.h [C++]: Likewise.
50259         * lib/gcd.h [C++]: Likewise.
50260         * lib/linebreak.h [C++]: Likewise.
50261
50262 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50263
50264         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50265         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50266         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50268         Check for functions and headers just once.
50269         Check for declaration of canonicalize_file_name.
50270         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50271
50272 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50273
50274         * gnulib-tool (func_import): Fix typo in actioncmd.
50275
50276 2006-11-02  Bruno Haible  <bruno@clisp.org>
50277
50278         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50279         newline sequence in the Makefile.am snippet as a space, like "make"
50280         does.
50281         Reported by Roger Persson <perrog@gmail.com>.
50282
50283 2006-11-01  Bruno Haible  <bruno@clisp.org>
50284
50285         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50286         already declared in <string.h>.
50287         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50288
50289 2006-11-01  Bruno Haible  <bruno@clisp.org>
50290
50291         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50292         * lib/strcase.h: Include <string.h>.
50293         (strcasecmp): Define to rpl_strcasecmp here.
50294
50295 2006-11-01  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50298
50299 2006-11-01  Eric Blake  <ebb9@byu.net>
50300
50301         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50302
50303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50304
50305 2006-10-29  Bruno Haible  <bruno@clisp.org>
50306
50307         Make it compile in C++ mode.
50308         * lib/full-write.c (full_rw): Add a cast.
50309
50310 2006-11-01  Bruno Haible  <bruno@clisp.org>
50311
50312         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50313         be POSIX compliant.
50314         Reported by Roger Persson <perrog@gmail.com>.
50315
50316 2006-11-01  Eric Blake  <ebb9@byu.net>
50317
50318         * lib/getopt_.h: Fix comments.
50319
50320 2006-10-31  Eric Blake  <ebb9@byu.net>
50321
50322         * modules/tmpdir (Depends-on): Add sys_stat.
50323         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50324         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50325         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50326         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50327         tempname.
50328
50329 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50330
50331         Avoid some C++ diagnostics reported by Bruno Haible.
50332         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50333         xmalloc.
50334         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50335         (struct slotvec): Move to top level.
50336         (quotearg_n_options): Rewrite to avoid xmalloc.
50337         * lib/xalloc.h (xcharalloc): New function.
50338         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50339         [defined __cplusplus]: Add function template that provides result
50340         type propagation.  This part of the change is from Bruno Haible.
50341
50342 2006-10-29  Bruno Haible  <bruno@clisp.org>
50343
50344         Make it compile in C++ mode.
50345         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50346         * lib/strnlen1.c (strnlen1): Cast memchr result.
50347         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50348         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50349         (create_temp_dir): Rename local variable 'template'.
50350         (compile_csharp_using_sscli): Add cast.
50351         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50352         * lib/findprog.c (find_in_path): Likewise.
50353         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50354         * lib/wait-process.c (register_slave_subprocess): Likewise.
50355
50356 2006-10-22  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/tsearch: New file.
50359         * lib/tsearch.h: New file.
50360         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50361         * m4/tsearch.m4: New file.
50362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50363
50364 2006-10-29  Eric Blake  <ebb9@byu.net>
50365
50366         * lib/arcfour.c: Assume config.h.
50367         * lib/arctwo.c: Likewise.
50368         * lib/base64.c: Likewise.
50369         * lib/check-version.c: Likewise.
50370         * lib/crc.c: Likewise.
50371         * lib/des.c: Likewise.
50372         * lib/gc-gnulib.c: Likewise.
50373         * lib/gc-libgcrypt.c: Likewise.
50374         * lib/gc-pbkdf2-sha1.c: Likewise.
50375         * lib/getaddrinfo.c: Likewise.
50376         * lib/getdelim.c: Likewise.
50377         * lib/getline.c: Likewise.
50378         * lib/hmac-md5.c: Likewise.
50379         * lib/hmac-sha1.c: Likewise.
50380         * lib/iconvme.c: Likewise.
50381         * lib/md2.c: Likewise.
50382         * lib/md4.c: Likewise.
50383         * lib/memxor.c: Likewise.
50384         * lib/read-file.c: Likewise.
50385         * lib/readline.c: Likewise.
50386         * lib/rijndael-alg-fst.c: Likewise.
50387         * lib/rijndael-api-fst.c: Likewise.
50388         * lib/xgetdomainname.c: Likewise.
50389
50390 2006-10-28  Eric Blake  <ebb9@byu.net>
50391
50392         * lib/xstrndup.c: Assume config.h.
50393
50394 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50397         stat-macros.h is now for our own macros, whereas stat_h is for
50398         macros in the <sys/stat.h> name space.
50399         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50400         (STAT_MACROS_H): Remove.
50401         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50402         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50403         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50404         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50405         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50406         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50407         Move these macros to ...
50408         * lib/stat_.h: here.  Don't include stat-macros.h.
50409         * lib/canonicalize.c: Don't include stat-macros.h.
50410         * lib/chown.c: Likewise.
50411         * lib/euidaccess.c: Likewise.
50412         * lib/file-type.c: Likewise.
50413         * lib/filemode.c: Likewise.
50414         * lib/glob.c: Likewise.
50415         * lib/isapipe.c: Likewise.
50416         * lib/lchown.c: Likewise.
50417         * lib/lstat.c: Likewise.
50418         * lib/mkdir-p.c: Likewise.
50419         * lib/rmdir.c: Likewise.
50420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50422         unless mkdir isn't declared, to speed up 'configure'.
50423         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50424         would define all the S_* symbols.
50425         * modules/canonicalize (Depends-on):
50426         Depend on sys_stat, not stat-macros.
50427         * modules/chown: Likewise.
50428         * modules/euidaccess: Likewise.
50429         * modules/filemode: Likewise.
50430         * modules/file-type: Likewise.
50431         * modules/glob: Likewise.
50432         * modules/isapipe: Likewise.
50433         * modules/lchown: Likewise.
50434         * modules/lstat: Likewise.
50435         * modules/mkancesdirs: Likewise.
50436         * modules/rmdir: Likewise.
50437         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50438         * modules/modechange: Likewise.
50439         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50440         (configure.ac): Remove gl_STAT_MACROS.
50441         * modules/sys_stat (Depends-on): Remove stat-macros.
50442
50443 2006-10-27  Bruno Haible  <bruno@clisp.org>
50444
50445         * m4/signed.m4: Remove file.
50446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50447         invocation.
50448         * modules/vasnprintf (Files): Remove m4/signed.m4.
50449
50450 2006-10-27  Bruno Haible  <bruno@clisp.org>
50451
50452         Update to GNU gettext 0.16.
50453         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50454         m4/inttypes-h.m4, m4/signed.m4.
50455         * m4/gettext.m4: Update to GNU gettext 0.16.
50456         * m4/intl.m4: New file, from GNU gettext.
50457         * m4/intldir.m4: New file, from GNU gettext.
50458         * config/srclist.txt: Update
50459
50460 2006-10-27  Eric Blake  <ebb9@byu.net>
50461
50462         * MODULES.html.sh: Document tempname.
50463         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50464         dependencies.
50465         (Files): Move lib/tempname.c...
50466         * modules/tempname: ...to this new module.
50467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
50468         (gl_PREREQ_TEMPNAME): Move...
50469         * m4/tempname.m4: ...to this new file.
50470         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
50471         * modules/sys_stat (Depends-on): Add stat-macros.
50472         * lib/stat_.h (includes): Pick up stat macros.
50473         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
50474         if stat macros are broken.
50475         * lib/tempname.c (includes): No need to include "stat-macros.h".
50476         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
50477         (direxists, __path_search) [!_LIBC]: Don't compile these in
50478         gnulib; the tmpdir module covers that.
50479         * lib/tempname.h: New file.
50480
50481 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * COPYING: Explain how gnulib-tool converts licence headers.
50484         Almost all wording by Eric Blake.
50485
50486 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
50487
50488         * lib/mbchar.h (is_basic_table): Make read-only.
50489         * lib/mbchar.c (is_basic_table): Likewise.
50490         Reported by John Darrington.
50491
50492 2006-10-25  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/progname.h (set_program_name): Undefine before defining.
50495
50496 2006-10-25  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
50499         false for non-gcc C++ compilers.
50500         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50501
50502 2006-10-24  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
50505         iconv implementations like Irix iconv.
50506
50507 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50508
50509         * modules/vararrays: New file.
50510         * m4/vararrays.m4: New file, taken from diffutils.
50511         * MODULES.html.sh: New module vararrays.
50512
50513 2006-10-24  Karl Berry  <karl@gnu.org>
50514
50515         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
50516         Don't call GNU Unix.
50517
50518 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50519
50520         * users.txt: Add Libtool.
50521
50522         Sync from Libtool:
50523
50524         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50525
50526         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
50527         to gnulib's policy of including config.h unconditionally.
50528
50529 2006-10-24  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/wcwidth (Files): Add m4/wint_t.m4.
50532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
50533         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
50534
50535 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50536
50537         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
50538         to pacify GCC with some -W flags enabled.  Problem reported by
50539         Bruno Haible.
50540
50541 2006-10-24  Jim Meyering  <jim@meyering.net>
50542
50543         * MODULES.html.sh: Remove uinttostr.  It's not a module.
50544         Reported by Karl Berry.
50545
50546 2006-10-23  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
50549
50550 2006-10-24  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/gl_list.h: Use C comment style, not C++ comment style.
50553
50554 2006-10-23  Eric Blake  <ebb9@byu.net>
50555
50556         * lib/getaddrinfo.c (includes): Add missing include.
50557
50558 2006-10-23  Bruno Haible  <bruno@clisp.org>
50559             Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         Ability to rename obstack_free.
50562         * lib/obstack.h (__obstack_free): New macro. Declare instead of
50563         obstack_free.
50564         (obstack_free): Invoke the __obstack_free macro.
50565         * lib/obstack.c (obstack_free): Use __obstack_free macro.
50566
50567 2006-10-23  Bruno Haible  <bruno@clisp.org>
50568             Paul Eggert  <eggert@cs.ucla.edu>
50569
50570         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
50571         __argc, __argv from the declaration. (They are defined as macros on
50572         mingw.)
50573
50574 2006-10-22  Bruno Haible  <bruno@clisp.org>
50575
50576         * doc/gnulib-intro.texi: New file.
50577         * doc/gnulib.texi: Include it.
50578
50579 2006-10-21  Bruno Haible  <bruno@clisp.org>
50580
50581         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
50582         "Introduction", "Miscellanous Notes", "Particular Modules".
50583
50584 2006-10-21  Bruno Haible  <bruno@clisp.org>
50585
50586         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50587         Change mostlyclean-local rule to avoid sh syntax error from bash
50588         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
50589
50590 2006-10-23  Jim Meyering  <jim@meyering.net>
50591
50592         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
50593         in place of snprintf.
50594
50595         * modules/inttostr (Files): Add lib/uinttostr.c.
50596         * lib/uinttostr.c (inttostr): New file/function.
50597         * lib/inttostr.h (uinttostr): Declare.
50598         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
50599         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50600         Add uinttostr.
50601         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
50602
50603 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50604
50605         * lib/canonicalize.c (ELOOP): Define if not already defined.
50606         Problem reported by Bruno Haible in
50607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
50608
50609 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
50612         Problem reported by Perry Smith and Ville Laurikari.
50613
50614         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
50615         uses.
50616
50617 2006-10-19  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
50620         for mingw.
50621
50622 2006-10-19  Bruno Haible  <bruno@clisp.org>
50623
50624         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
50625         Needed for mingw.
50626
50627 2006-10-19  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
50630
50631 2006-10-19  Bruno Haible  <bruno@clisp.org>
50632
50633         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
50634         it.
50635
50636 2006-10-19  Bruno Haible  <bruno@clisp.org>
50637
50638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
50639         invocation.
50640
50641 2006-10-19  Bruno Haible  <bruno@clisp.org>
50642
50643         * gnulib-tool (func_create_testdir): Don't include ftruncate and
50644         mountlist by default.
50645
50646 2006-10-16  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/c-strstr.c: Include c-strstr.h.
50649
50650 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50651
50652         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
50653         in a slash.
50654
50655 2006-10-18  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/lock.h [C++]: Wrap definitions in extern "C".
50658
50659 2006-10-18  Bruno Haible  <bruno@clisp.org>
50660
50661         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
50662         gl_LIBOBJS list.
50663
50664 2006-10-18  Bruno Haible  <bruno@clisp.org>
50665
50666         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
50667
50668 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
50669
50670         * lib/xstrtol.h: Include gettext.h.
50671         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
50672         Problem reported by Eric Blake.
50673         * modules/xstrtol (Depends-on): Add gettext-h.
50674
50675 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
50676
50677         * lib/strftime.c (advance): New macro.
50678         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
50679         incomplete type, so you can't add 0 to it.  Problem and patch
50680         reported by Eelco Dolstra for dietlibc.
50681
50682 2006-10-18  Jim Meyering  <jim@meyering.net>
50683
50684         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
50685         type for a local, and rename it: s/up/user_proc/.
50686
50687 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50688
50689         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
50690         READ_UTMP_USER_PROCESS.
50691         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
50692
50693 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
50696         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
50697
50698 2006-10-17  Eric Blake  <ebb9@byu.net>
50699
50700         * lib/sigprocmask.c (sigprocmask): Fix typo.
50701
50702         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
50703
50704         * modules/clean-temp (Makefile.am): Don't add to make output...
50705         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
50706         config.h.
50707
50708 2006-10-17  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
50711         differently if DEFAULT_TEXT_DOMAIN is set.
50712
50713 2006-10-16  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/clean-temp.c: Include fwriteerror.h.
50716
50717 2006-10-16  Bruno Haible  <bruno@clisp.org>
50718
50719         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
50720
50721 2006-10-16  Bruno Haible  <bruno@clisp.org>
50722
50723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
50724         * lib/sigprocmask.h: Include <sys/types.h>.
50725         (sigset_t): Use the system's definition if present.
50726
50727 2006-10-17  Eric Blake  <ebb9@byu.net>
50728
50729         * lib/xvasprintf.c (includes): Assume config.h.
50730         * lib/xasprintf.c (includes): Likewise.
50731
50732 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50733
50734         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
50735         at least as wide as intmax_t.
50736
50737 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
50738
50739         (Imported from Automake.)
50740         * build-aux/gnupload: Update to version 1.1 of directive file.
50741
50742 2006-10-16  Eric Blake  <ebb9@byu.net>
50743
50744         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
50745         match Automake 1.10a.
50746
50747 2006-10-14  Bruno Haible  <bruno@clisp.org>
50748
50749         * modules/sigprocmask: New file.
50750         * lib/sigprocmask.h: New file.
50751         * lib/sigprocmask.c: New file.
50752         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
50753         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
50754         request sigprocmask.o.
50755         (gl_PREREQ_SIGPROCMASK): New macro.
50756         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
50757         (Depends-on): Add sigprocmask.
50758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
50759         gt_SIGNALBLOCKING. Test for 'raise' only once.
50760         * lib/fatal-signal.c: Include sigprocmask.h.
50761         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
50762         unblock_fatal_signals): Define always.
50763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50764         sigprocmask.
50765
50766 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         Sync from Automake.
50769         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
50770         which incorrectly sets the mode of an existing destination
50771         directory.  In some cases the unpatched install-sh could do the
50772         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
50773         system.  We hope this is rare in practice, but it's clearly worth
50774         fixing.  Problem reported by Alex Unleashed in
50775         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
50776         Also, don't bother to check for -m bugs unless we're using -m;
50777         suggested by Stepan Kasal.
50778
50779 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50780
50781         Sync from Automake.
50782         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
50783         `-c' flag, so they appear at the same position as in %FASTDEP%
50784         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
50785         which ignores unknown options only after the first non-option.
50786         Bug report against M4 by Nelson H. F. Beebe.
50787
50788 2006-10-13  Jim Meyering  <jim@meyering.net>
50789
50790         Fix a bug in yesterday's change.
50791         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
50792         p->fts_statp->st_dev would be used uninitialized.
50793         Ensures that we always call fts_stat on the very first entry.
50794         Miklos Szeredi reported that find -xdev stopped working.
50795
50796 2006-10-12  Bruno Haible  <bruno@clisp.org>
50797
50798         * gnulib-tool (func_get_automake_snippet): Append an automatically
50799         computed EXTRA_DIST augmentation.
50800         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
50801         * modules/alloca-opt (Makefile.am): Likewise.
50802         * modules/allocsa (Makefile.am): Likewise.
50803         * modules/arcfour (Makefile.am): Likewise.
50804         * modules/arctwo (Makefile.am): Likewise.
50805         * modules/argmatch (Makefile.am): Likewise.
50806         * modules/argz (Makefile.am): Likewise.
50807         * modules/atexit (Makefile.am): Likewise.
50808         * modules/backupfile (Makefile.am): Likewise.
50809         * modules/byteswap (Makefile.am): Likewise.
50810         * modules/c-strtod (Makefile.am): Likewise.
50811         * modules/c-strtold (Makefile.am): Likewise.
50812         * modules/calloc (Makefile.am): Likewise.
50813         * modules/canon-host (Makefile.am): Likewise.
50814         * modules/canonicalize (Makefile.am): Likewise.
50815         * modules/chdir-long (Makefile.am): Likewise.
50816         * modules/chdir-safer (Makefile.am): Likewise.
50817         * modules/check-version (Makefile.am): Likewise.
50818         * modules/chown (Makefile.am): Likewise.
50819         * modules/cloexec (Makefile.am): Likewise.
50820         * modules/close-stream (Makefile.am): Likewise.
50821         * modules/closeout (Makefile.am): Likewise.
50822         * modules/crc (Makefile.am): Likewise.
50823         * modules/csharpexec (Makefile.am): Likewise.
50824         * modules/cycle-check (Makefile.am): Likewise.
50825         * modules/des (Makefile.am): Likewise.
50826         * modules/dev-ino (Makefile.am): Likewise.
50827         * modules/dirfd (Makefile.am): Likewise.
50828         * modules/dirname (Makefile.am): Likewise.
50829         * modules/dup2 (Makefile.am): Likewise.
50830         * modules/eealloc (Makefile.am): Likewise.
50831         * modules/error (Makefile.am): Likewise.
50832         * modules/euidaccess (Makefile.am): Likewise.
50833         * modules/exclude (Makefile.am): Likewise.
50834         * modules/exitfail (Makefile.am): Likewise.
50835         * modules/fcntl-safer (Makefile.am): Likewise.
50836         * modules/fcntl (Makefile.am): Likewise.
50837         * modules/file-type (Makefile.am): Likewise.
50838         * modules/fileblocks (Makefile.am): Likewise.
50839         * modules/filemode (Makefile.am): Likewise.
50840         * modules/filenamecat (Makefile.am): Likewise.
50841         * modules/fnmatch (Makefile.am): Likewise.
50842         * modules/fopen-safer (Makefile.am): Likewise.
50843         * modules/fpending (Makefile.am): Likewise.
50844         * modules/fprintftime (Makefile.am): Likewise.
50845         * modules/free (Makefile.am): Likewise.
50846         * modules/fsusage (Makefile.am): Likewise.
50847         * modules/ftruncate (Makefile.am): Likewise.
50848         * modules/fts (Makefile.am): Likewise.
50849         * modules/gc-arcfour (Makefile.am): Likewise.
50850         * modules/gc-des (Makefile.am): Likewise.
50851         * modules/gc-hmac-md5 (Makefile.am): Likewise.
50852         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
50853         * modules/gc-md4 (Makefile.am): Likewise.
50854         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50855         * modules/gc-sha1 (Makefile.am): Likewise.
50856         * modules/gc (Makefile.am): Likewise.
50857         * modules/getaddrinfo (Makefile.am): Likewise.
50858         * modules/getcwd (Makefile.am): Likewise.
50859         * modules/getdelim (Makefile.am): Likewise.
50860         * modules/getdomainname (Makefile.am): Likewise.
50861         * modules/getgroups (Makefile.am): Likewise.
50862         * modules/gethostname (Makefile.am): Likewise.
50863         * modules/gethrxtime (Makefile.am): Likewise.
50864         * modules/getline (Makefile.am): Likewise.
50865         * modules/getloadavg (Makefile.am): Likewise.
50866         * modules/getlogin_r (Makefile.am): Likewise.
50867         * modules/getndelim2 (Makefile.am): Likewise.
50868         * modules/getopt (Makefile.am): Likewise.
50869         * modules/getpagesize (Makefile.am): Likewise.
50870         * modules/getpass-gnu (Makefile.am): Likewise.
50871         * modules/getpass (Makefile.am): Likewise.
50872         * modules/getsubopt (Makefile.am): Likewise.
50873         * modules/gettime (Makefile.am): Likewise.
50874         * modules/gettimeofday (Makefile.am): Likewise.
50875         * modules/getugroups (Makefile.am): Likewise.
50876         * modules/getusershell (Makefile.am): Likewise.
50877         * modules/glob (Makefile.am): Likewise.
50878         * modules/group-member (Makefile.am): Likewise.
50879         * modules/hard-locale (Makefile.am): Likewise.
50880         * modules/hash (Makefile.am): Likewise.
50881         * modules/hmac-md5 (Makefile.am): Likewise.
50882         * modules/hmac-sha1 (Makefile.am): Likewise.
50883         * modules/human (Makefile.am): Likewise.
50884         * modules/idcache (Makefile.am): Likewise.
50885         * modules/imaxabs (Makefile.am): Likewise.
50886         * modules/imaxdiv (Makefile.am): Likewise.
50887         * modules/inet_ntop (Makefile.am): Likewise.
50888         * modules/inet_pton (Makefile.am): Likewise.
50889         * modules/intprops (Makefile.am): Likewise.
50890         * modules/inttostr (Makefile.am): Likewise.
50891         * modules/inttypes (Makefile.am): Likewise.
50892         * modules/isapipe (Makefile.am): Likewise.
50893         * modules/javaversion (Makefile.am): Likewise.
50894         * modules/lchmod (Makefile.am): Likewise.
50895         * modules/lchown (Makefile.am): Likewise.
50896         * modules/localcharset (Makefile.am): Likewise.
50897         * modules/long-options (Makefile.am): Likewise.
50898         * modules/lstat (Makefile.am): Likewise.
50899         * modules/malloc (Makefile.am): Likewise.
50900         * modules/mathl (Makefile.am): Likewise.
50901         * modules/mbchar (Makefile.am): Likewise.
50902         * modules/md2 (Makefile.am): Likewise.
50903         * modules/md4 (Makefile.am): Likewise.
50904         * modules/md5 (Makefile.am): Likewise.
50905         * modules/memcasecmp (Makefile.am): Likewise.
50906         * modules/memchr (Makefile.am): Likewise.
50907         * modules/memcmp (Makefile.am): Likewise.
50908         * modules/memcoll (Makefile.am): Likewise.
50909         * modules/memcpy (Makefile.am): Likewise.
50910         * modules/memmem (Makefile.am): Likewise.
50911         * modules/memmove (Makefile.am): Likewise.
50912         * modules/mempcpy (Makefile.am): Likewise.
50913         * modules/memrchr (Makefile.am): Likewise.
50914         * modules/memset (Makefile.am): Likewise.
50915         * modules/memxor (Makefile.am): Likewise.
50916         * modules/mkancesdirs (Makefile.am): Likewise.
50917         * modules/mkdir-p (Makefile.am): Likewise.
50918         * modules/mkdir (Makefile.am): Likewise.
50919         * modules/mkdtemp (Makefile.am): Likewise.
50920         * modules/mkstemp (Makefile.am): Likewise.
50921         * modules/mktime (Makefile.am): Likewise.
50922         * modules/modechange (Makefile.am): Likewise.
50923         * modules/mountlist (Makefile.am): Likewise.
50924         * modules/nanosleep (Makefile.am): Likewise.
50925         * modules/obstack (Makefile.am): Likewise.
50926         * modules/openat (Makefile.am): Likewise.
50927         * modules/pagealign_alloc (Makefile.am): Likewise.
50928         * modules/pathmax (Makefile.am): Likewise.
50929         * modules/physmem (Makefile.am): Likewise.
50930         * modules/poll (Makefile.am): Likewise.
50931         * modules/posixtm (Makefile.am): Likewise.
50932         * modules/posixver (Makefile.am): Likewise.
50933         * modules/putenv (Makefile.am): Likewise.
50934         * modules/quote (Makefile.am): Likewise.
50935         * modules/quotearg (Makefile.am): Likewise.
50936         * modules/raise (Makefile.am): Likewise.
50937         * modules/read-file (Makefile.am): Likewise.
50938         * modules/readline (Makefile.am): Likewise.
50939         * modules/readlink (Makefile.am): Likewise.
50940         * modules/readtokens (Makefile.am): Likewise.
50941         * modules/readutmp (Makefile.am): Likewise.
50942         * modules/realloc (Makefile.am): Likewise.
50943         * modules/regex (Makefile.am): Likewise.
50944         * modules/rename-dest-slash (Makefile.am): Likewise.
50945         * modules/rename (Makefile.am): Likewise.
50946         * modules/rijndael (Makefile.am): Likewise.
50947         * modules/rmdir (Makefile.am): Likewise.
50948         * modules/rpmatch (Makefile.am): Likewise.
50949         * modules/safe-read (Makefile.am): Likewise.
50950         * modules/safe-write (Makefile.am): Likewise.
50951         * modules/same-inode (Makefile.am): Likewise.
50952         * modules/same (Makefile.am): Likewise.
50953         * modules/save-cwd (Makefile.am): Likewise.
50954         * modules/savedir (Makefile.am): Likewise.
50955         * modules/setenv (Makefile.am): Likewise.
50956         * modules/settime (Makefile.am): Likewise.
50957         * modules/sha1 (Makefile.am): Likewise.
50958         * modules/sig2str (Makefile.am): Likewise.
50959         * modules/snprintf (Makefile.am): Likewise.
50960         * modules/stat-macros (Makefile.am): Likewise.
50961         * modules/stat-time (Makefile.am): Likewise.
50962         * modules/stdbool (Makefile.am): Likewise.
50963         * modules/stdint (Makefile.am): Likewise.
50964         * modules/stdlib-safer (Makefile.am): Likewise.
50965         * modules/stpcpy (Makefile.am): Likewise.
50966         * modules/stpncpy (Makefile.am): Likewise.
50967         * modules/strcase (Makefile.am): Likewise.
50968         * modules/strcasestr (Makefile.am): Likewise.
50969         * modules/strchrnul (Makefile.am): Likewise.
50970         * modules/strcspn (Makefile.am): Likewise.
50971         * modules/strdup (Makefile.am): Likewise.
50972         * modules/strerror (Makefile.am): Likewise.
50973         * modules/strftime (Makefile.am): Likewise.
50974         * modules/strndup (Makefile.am): Likewise.
50975         * modules/strnlen (Makefile.am): Likewise.
50976         * modules/strpbrk (Makefile.am): Likewise.
50977         * modules/strsep (Makefile.am): Likewise.
50978         * modules/strstr (Makefile.am): Likewise.
50979         * modules/strtod (Makefile.am): Likewise.
50980         * modules/strtoimax (Makefile.am): Likewise.
50981         * modules/strtok_r (Makefile.am): Likewise.
50982         * modules/strtol (Makefile.am): Likewise.
50983         * modules/strtoll (Makefile.am): Likewise.
50984         * modules/strtoul (Makefile.am): Likewise.
50985         * modules/strtoull (Makefile.am): Likewise.
50986         * modules/strtoumax (Makefile.am): Likewise.
50987         * modules/strverscmp (Makefile.am): Likewise.
50988         * modules/sys_socket (Makefile.am): Likewise.
50989         * modules/sys_stat (Makefile.am): Likewise.
50990         * modules/sysexits (Makefile.am): Likewise.
50991         * modules/time_r (Makefile.am): Likewise.
50992         * modules/timegm (Makefile.am): Likewise.
50993         * modules/timespec (Makefile.am): Likewise.
50994         * modules/tmpfile-safer (Makefile.am): Likewise.
50995         * modules/trim (Makefile.am): Likewise.
50996         * modules/unistd-safer (Makefile.am): Likewise.
50997         * modules/unlinkdir (Makefile.am): Likewise.
50998         * modules/unlocked-io (Makefile.am): Likewise.
50999         * modules/userspec (Makefile.am): Likewise.
51000         * modules/utime (Makefile.am): Likewise.
51001         * modules/utimecmp (Makefile.am): Likewise.
51002         * modules/utimens (Makefile.am): Likewise.
51003         * modules/vasnprintf (Makefile.am): Likewise.
51004         * modules/vasprintf (Makefile.am): Likewise.
51005         * modules/vsnprintf (Makefile.am): Likewise.
51006         * modules/xalloc (Makefile.am): Likewise.
51007         * modules/xgetcwd (Makefile.am): Likewise.
51008         * modules/xnanosleep (Makefile.am): Likewise.
51009         * modules/xreadlink (Makefile.am): Likewise.
51010         * modules/xstrtod (Makefile.am): Likewise.
51011         * modules/xstrtol (Makefile.am): Likewise.
51012         * modules/xstrtold (Makefile.am): Likewise.
51013         * modules/yesno (Makefile.am): Likewise.
51014         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51015
51016 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * modules/error (Makefile.am): Distribute files through
51019         EXTRA_DIST, not lib_SOURCES.
51020
51021 2006-10-12  Eric Blake  <ebb9@byu.net>
51022
51023         * modules/error (Makefile.am): Distribute files in /lib.
51024         * modules/obstack (Makefile.am): Likewise.
51025
51026 2006-10-12  Bruno Haible  <bruno@clisp.org>
51027
51028         * modules/acl (Makefile.am): Distribute all files in lib/ through
51029         EXTRA_DIST.
51030         * modules/arcfour (Makefile.am): Likewise.
51031         * modules/arctwo (Makefile.am): Likewise.
51032         * modules/argmatch (Makefile.am): Likewise.
51033         * modules/argz (Makefile.am): Likewise.
51034         * modules/atexit (Makefile.am): Likewise.
51035         * modules/backupfile (Makefile.am): Likewise.
51036         * modules/c-strtod (Makefile.am): Likewise.
51037         * modules/c-strtold (Makefile.am): Likewise.
51038         * modules/calloc (Makefile.am): Likewise.
51039         * modules/canon-host (Makefile.am): Likewise.
51040         * modules/canonicalize (Makefile.am): Likewise.
51041         * modules/chdir-long (Makefile.am): Likewise.
51042         * modules/chdir-safer (Makefile.am): Likewise.
51043         * modules/check-version (Makefile.am): Likewise.
51044         * modules/chown (Makefile.am): Likewise.
51045         * modules/cloexec (Makefile.am): Likewise.
51046         * modules/close-stream (Makefile.am): Likewise.
51047         * modules/closeout (Makefile.am): Likewise.
51048         * modules/crc (Makefile.am): Likewise.
51049         * modules/cycle-check (Makefile.am): Likewise.
51050         * modules/des (Makefile.am): Likewise.
51051         * modules/dirfd (Makefile.am): Likewise.
51052         * modules/dirname (Makefile.am): Likewise.
51053         * modules/dup2 (Makefile.am): Likewise.
51054         * modules/euidaccess (Makefile.am): Likewise.
51055         * modules/exclude (Makefile.am): Likewise.
51056         * modules/exitfail (Makefile.am): Likewise.
51057         * modules/fcntl-safer (Makefile.am): Likewise.
51058         * modules/file-type (Makefile.am): Likewise.
51059         * modules/fileblocks (Makefile.am): Likewise.
51060         * modules/filemode (Makefile.am): Likewise.
51061         * modules/filenamecat (Makefile.am): Likewise.
51062         * modules/fnmatch (Makefile.am): Likewise.
51063         * modules/fopen-safer (Makefile.am): Likewise.
51064         * modules/fpending (Makefile.am): Likewise.
51065         * modules/fprintftime (Makefile.am): Likewise.
51066         * modules/free (Makefile.am): Likewise.
51067         * modules/fsusage (Makefile.am): Likewise.
51068         * modules/ftruncate (Makefile.am): Likewise.
51069         * modules/fts (Makefile.am): Likewise.
51070         * modules/gc (Makefile.am): Likewise.
51071         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51072         * modules/getaddrinfo (Makefile.am): Likewise.
51073         * modules/getcwd (Makefile.am): Likewise.
51074         * modules/getdelim (Makefile.am): Likewise.
51075         * modules/getdomainname (Makefile.am): Likewise.
51076         * modules/getgroups (Makefile.am): Likewise.
51077         * modules/gethostname (Makefile.am): Likewise.
51078         * modules/gethrxtime (Makefile.am): Likewise.
51079         * modules/getline (Makefile.am): Likewise.
51080         * modules/getloadavg (Makefile.am): Likewise.
51081         * modules/getlogin_r (Makefile.am): Likewise.
51082         * modules/getopt (Makefile.am): Likewise.
51083         * modules/getpass (Makefile.am): Likewise.
51084         * modules/getpass-gnu (Makefile.am): Likewise.
51085         * modules/getsubopt (Makefile.am): Likewise.
51086         * modules/gettime (Makefile.am): Likewise.
51087         * modules/gettimeofday (Makefile.am): Likewise.
51088         * modules/getugroups (Makefile.am): Likewise.
51089         * modules/getusershell (Makefile.am): Likewise.
51090         * modules/glob (Makefile.am): Likewise.
51091         * modules/group-member (Makefile.am): Likewise.
51092         * modules/hard-locale (Makefile.am): Likewise.
51093         * modules/hash (Makefile.am): Likewise.
51094         * modules/hmac-md5 (Makefile.am): Likewise.
51095         * modules/hmac-sha1 (Makefile.am): Likewise.
51096         * modules/human (Makefile.am): Likewise.
51097         * modules/idcache (Makefile.am): Likewise.
51098         * modules/imaxabs (Makefile.am): Likewise.
51099         * modules/imaxdiv (Makefile.am): Likewise.
51100         * modules/inet_ntop (Makefile.am): Likewise.
51101         * modules/inet_pton (Makefile.am): Likewise.
51102         * modules/inttostr (Makefile.am): Likewise.
51103         * modules/isapipe (Makefile.am): Likewise.
51104         * modules/lchown (Makefile.am): Likewise.
51105         * modules/long-options (Makefile.am): Likewise.
51106         * modules/lstat (Makefile.am): Likewise.
51107         * modules/malloc (Makefile.am): Likewise.
51108         * modules/mathl (Makefile.am): Likewise.
51109         * modules/mbchar (Makefile.am): Likewise.
51110         * modules/md2 (Makefile.am): Likewise.
51111         * modules/md4 (Makefile.am): Likewise.
51112         * modules/md5 (Makefile.am): Likewise.
51113         * modules/memcasecmp (Makefile.am): Likewise.
51114         * modules/memchr (Makefile.am): Likewise.
51115         * modules/memcmp (Makefile.am): Likewise.
51116         * modules/memcoll (Makefile.am): Likewise.
51117         * modules/memcpy (Makefile.am): Likewise.
51118         * modules/memmem (Makefile.am): Likewise.
51119         * modules/memmove (Makefile.am): Likewise.
51120         * modules/mempcpy (Makefile.am): Likewise.
51121         * modules/memrchr (Makefile.am): Likewise.
51122         * modules/memset (Makefile.am): Likewise.
51123         * modules/memxor (Makefile.am): Likewise.
51124         * modules/mkancesdirs (Makefile.am): Likewise.
51125         * modules/mkdir (Makefile.am): Likewise.
51126         * modules/mkdir-p (Makefile.am): Likewise.
51127         * modules/mkdtemp (Makefile.am): Likewise.
51128         * modules/mkstemp (Makefile.am): Likewise.
51129         * modules/mktime (Makefile.am): Likewise.
51130         * modules/modechange (Makefile.am): Likewise.
51131         * modules/mountlist (Makefile.am): Likewise.
51132         * modules/nanosleep (Makefile.am): Likewise.
51133         * modules/openat (Makefile.am): Likewise.
51134         * modules/pagealign_alloc (Makefile.am): Likewise.
51135         * modules/physmem (Makefile.am): Likewise.
51136         * modules/poll (Makefile.am): Likewise.
51137         * modules/posixtm (Makefile.am): Likewise.
51138         * modules/posixver (Makefile.am): Likewise.
51139         * modules/putenv (Makefile.am): Likewise.
51140         * modules/quote (Makefile.am): Likewise.
51141         * modules/quotearg (Makefile.am): Likewise.
51142         * modules/raise (Makefile.am): Likewise.
51143         * modules/read-file (Makefile.am): Likewise.
51144         * modules/readline (Makefile.am): Likewise.
51145         * modules/readlink (Makefile.am): Likewise.
51146         * modules/readtokens (Makefile.am): Likewise.
51147         * modules/readutmp (Makefile.am): Likewise.
51148         * modules/realloc (Makefile.am): Likewise.
51149         * modules/regex (Makefile.am): Likewise.
51150         * modules/rename (Makefile.am): Likewise.
51151         * modules/rename-dest-slash (Makefile.am): Likewise.
51152         * modules/rijndael (Makefile.am): Likewise.
51153         * modules/rmdir (Makefile.am): Likewise.
51154         * modules/rpmatch (Makefile.am): Likewise.
51155         * modules/safe-read (Makefile.am): Likewise.
51156         * modules/safe-write (Makefile.am): Likewise.
51157         * modules/same (Makefile.am): Likewise.
51158         * modules/save-cwd (Makefile.am): Likewise.
51159         * modules/savedir (Makefile.am): Likewise.
51160         * modules/setenv (Makefile.am): Likewise.
51161         * modules/settime (Makefile.am): Likewise.
51162         * modules/sha1 (Makefile.am): Likewise.
51163         * modules/sig2str (Makefile.am): Likewise.
51164         * modules/snprintf (Makefile.am): Likewise.
51165         * modules/stdlib-safer (Makefile.am): Likewise.
51166         * modules/stpcpy (Makefile.am): Likewise.
51167         * modules/stpncpy (Makefile.am): Likewise.
51168         * modules/strcase (Makefile.am): Likewise.
51169         * modules/strcasestr (Makefile.am): Likewise.
51170         * modules/strchrnul (Makefile.am): Likewise.
51171         * modules/strcspn (Makefile.am): Likewise.
51172         * modules/strdup (Makefile.am): Likewise.
51173         * modules/strerror (Makefile.am): Likewise.
51174         * modules/strftime (Makefile.am): Likewise.
51175         * modules/strndup (Makefile.am): Likewise.
51176         * modules/strnlen (Makefile.am): Likewise.
51177         * modules/strpbrk (Makefile.am): Likewise.
51178         * modules/strsep (Makefile.am): Likewise.
51179         * modules/strstr (Makefile.am): Likewise.
51180         * modules/strtod (Makefile.am): Likewise.
51181         * modules/strtoimax (Makefile.am): Likewise.
51182         * modules/strtok_r (Makefile.am): Likewise.
51183         * modules/strtol (Makefile.am): Likewise.
51184         * modules/strtoll (Makefile.am): Likewise.
51185         * modules/strtoul (Makefile.am): Likewise.
51186         * modules/strtoull (Makefile.am): Likewise.
51187         * modules/strtoumax (Makefile.am): Likewise.
51188         * modules/strverscmp (Makefile.am): Likewise.
51189         * modules/time_r (Makefile.am): Likewise.
51190         * modules/timegm (Makefile.am): Likewise.
51191         * modules/tmpfile-safer (Makefile.am): Likewise.
51192         * modules/unistd-safer (Makefile.am): Likewise.
51193         * modules/unlinkdir (Makefile.am): Likewise.
51194         * modules/userspec (Makefile.am): Likewise.
51195         * modules/utime (Makefile.am): Likewise.
51196         * modules/utimecmp (Makefile.am): Likewise.
51197         * modules/utimens (Makefile.am): Likewise.
51198         * modules/vasnprintf (Makefile.am): Likewise.
51199         * modules/vasprintf (Makefile.am): Likewise.
51200         * modules/vsnprintf (Makefile.am): Likewise.
51201         * modules/xalloc (Makefile.am): Likewise.
51202         * modules/xgetcwd (Makefile.am): Likewise.
51203         * modules/xnanosleep (Makefile.am): Likewise.
51204         * modules/xreadlink (Makefile.am): Likewise.
51205         * modules/xstrtod (Makefile.am): Likewise.
51206         * modules/xstrtol (Makefile.am): Likewise.
51207         * modules/xstrtold (Makefile.am): Likewise.
51208         * modules/yesno (Makefile.am): Likewise.
51209
51210 2006-10-12  Jim Meyering  <jim@meyering.net>
51211
51212         * m4/getloadavg.m4: Revert the change below.
51213
51214         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51215         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51216         fail with a symlink, which is what coreutils' ./bootstrap now
51217         creates by default.
51218
51219 2006-10-12  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51222         mingw.
51223         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51224         MSVC and mingw explicitly.
51225
51226 2006-10-11  Simon Josefsson  <jas@extundo.com>
51227             Bruno Haible  <bruno@clisp.org>
51228
51229         Add support for multiple gnulib-tool invocations in the scope of a
51230         single configure.ac file.
51231         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51232         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51233         with the same contents as the _LIBADD variable.
51234         (func_emit_initmacro_start, func_emit_initmacro_end,
51235         func_emit_initmacro_done): New functions.
51236         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51237         gl_LIBOBJS and gl_LTLIBOBJS.
51238
51239 2006-10-11  Bruno Haible  <bruno@clisp.org>
51240
51241         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51242         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51243         autoreconf. Instead, invoke autopoint explicitly but move back the
51244         *.m4 files from gnulib.
51245
51246 2006-10-11  Bruno Haible  <bruno@clisp.org>
51247
51248         * gnulib-tool (func_usage): Make module names after --create-testdir
51249         optional.
51250         (func_create_testdir): If no module was specified, use nearly all
51251         modules.
51252
51253 2006-10-12  Jim Meyering  <jim@meyering.net>
51254
51255         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51256         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51257         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51258         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51259         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51260         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51261         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51262         (fts_set_stat_required): New function.
51263         (fts_open): Defer the calls to fts_stat, if possible or requested.
51264         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51265         into fts_stat itself.
51266         (fts_read): Perform any required (deferred) fts_stat call.
51267         (fts_build): Likewise, for the directory we're about to open and read.
51268         In the readdir loop, carefully decide whether each entry will require
51269         an eventual call to fts_stat, using dirent.d_type info if available.
51270         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51271         a command line argument into this function.  Update all callers.
51272         Map a return value of FTS_DOT to FTS_D for a command line argument.
51273         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51274         Thanks to Miklos Szeredi for his tenacity and for the initial
51275         bug report about "find" failing on a FUSE-based file system.
51276
51277         * lib/fts.c (fts_open): Use consistent indentation.
51278
51279 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51282         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51283         reported by Jim Meyering.  All uses of cache variables renamed
51284         to match Autoconf's.
51285         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51286         the other one.
51287
51288         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51289         Fix misspelling in diagnostic.
51290
51291 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51292
51293         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51294         defined.  Problem reported by Matthew Woehlke.
51295
51296         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51297         Add support for Tandem NonStop R series.
51298         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51299         Use new macro.
51300
51301         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51302         (has_trailing_slash): Omit size arg; all callers changed.
51303         Omit 'inline', since it doesn't help performance and we'd
51304         need to configure it.
51305         Don't count //, ///, etc. as having a trailing slash.
51306         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51307         (rpl_rename_dest_slash): On failure, use rename's errno rather
51308         than (in some cases) an incorrect or junk errno.
51309         Simplify code by removing need to compute length; this does
51310         cause it to make two passes instead of one over the file name,
51311         but it's worth it.
51312
51313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51314         change, since Autoconf's version may no longer be appropriate now
51315         that we are using CVS Autoconf's version.  Add support for Tandem.
51316
51317 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51318             Bruno Haible  <bruno@clisp.org>
51319
51320         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51321         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51322         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51323         gl_AC_TYPE_LONG_LONG.
51324
51325         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51326         instead of HAVE_LONG_LONG.
51327         * lib/printf-args.c (printf_fetchargs): Likewise.
51328         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51329         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51330         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51331         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51332         gl_AC_TYPE_LONG_LONG.
51333
51334 2006-10-11  Bruno Haible  <bruno@clisp.org>
51335
51336         * m4/longlong.m4: Add comments.
51337         * m4/ulonglong.m4: Likewise.
51338
51339 2006-10-10  Bruno Haible  <bruno@clisp.org>
51340
51341         Make it possible to #define stpcpy, strdup to aliases.
51342         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51343         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51344
51345 2006-10-10  Bruno Haible  <bruno@clisp.org>
51346
51347         Make it possible to #define gcd to an alias.
51348         * lib/gcd.c: Include config.h.
51349
51350 2006-10-10  Bruno Haible  <bruno@clisp.org>
51351
51352         Make it possible to #define c_isascii to an alias.
51353         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51354         defined. Undefine the macros before defining them, to avoid gcc
51355         warnings.
51356         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51357         define NO_C_CTYPE_MACROS early.
51358
51359 2006-10-10  Bruno Haible  <bruno@clisp.org>
51360
51361         Make it possible to #define set_program_name to an alias.
51362         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51363         ENABLE_RELOCATABLE early.
51364
51365 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51366
51367         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51368         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51369         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51370         More generally, don't assume that 64-bit signed int is available
51371         if unsigned int is, and vice versa.
51372         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51373         unsigned symbols, not on their signed counterparts.
51374         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51375         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51376         (UINT64_C, UINTMAX_C):
51377         Likewise.
51378         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51379         unsigned counterparts.
51380         (Have_long_long, Unsigned): New macros.
51381         (Int): Renamed from INT.
51382         (strtoimax): Use the new macros.
51383         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51384         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51385         * modules/inttypes (inttypes.h): Substitute
51386         HAVE_UNSIGNED_LONG_LONG_INT.
51387         * modules/stdint (stdint.h): Likewise.
51388         (Files): Add m4/ulonglong.m4.
51389
51390 2006-10-10  Bruno Haible  <bruno@clisp.org>
51391
51392         Fix a gcc -Wshadow warning.
51393         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51394         to 'bucket'.
51395         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51396         gl_linked_indexof_from_to): Likewise.
51397         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51398         Likewise.
51399         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51400         Likewise.
51401         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51402         Reported by Eric Blake.
51403
51404 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51407         for NetBSD.  Problem reported by Bruno Haible.
51408
51409 2006-10-09  Jim Meyering  <jim@meyering.net>
51410
51411         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51412         Patch from Bruno Haible.
51413
51414 2006-10-09  Jim Meyering  <jim@meyering.net>
51415
51416         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51417         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51418         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51419
51420 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51421
51422         Don't include <config.h> twice; this doesn't work in some cases,
51423         e.g., when config.h has "#define intmax_t long long int" and
51424         we include <config.h>, <inttypes.h>, <config.h> in that order.
51425         Problem reported by Matthew Woehlke in:
51426         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51427         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51428         * lib/fts-cycle.c: Don't include config.h.
51429         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51430         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51431         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51432         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51433         inttypes.h.
51434         * lib/xstrtoumax.c: Likewise.
51435         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51436         __strtol and the like, so that this module is more like its siblings.
51437         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51438         Remove; no longer needed now that we assume gnulib inttypes.h.
51439
51440 2006-10-08  Bruno Haible  <bruno@clisp.org>
51441
51442         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51443         option.
51444
51445 2006-10-07  Jim Meyering  <jim@meyering.net>
51446
51447         * modules/inttypes (inttypes.h): Revert what seems to have been
51448         an inadvertent part of today's change: use "|", not "/" in the
51449         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51450
51451 2006-10-07  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/sublist: New file.
51454
51455 2006-10-07  Bruno Haible  <bruno@clisp.org>
51456
51457         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51458         * modules/argz (argz.h): Likewise.
51459         * modules/arpa_inet (arpa/inet.h): Likewise.
51460         * modules/byteswap (byteswap.h): Likewise.
51461         * modules/configmake (configmake.h): Likewise.
51462         * modules/fcntl (fcntl.h): Likewise.
51463         * modules/fnmatch (fnmatch.h): Likewise.
51464         * modules/getopt (getopt.h): Likewise.
51465         * modules/glob (glob.h): Likewise.
51466         * modules/inttypes (inttypes.h): Likewise.
51467         * modules/netinet_in (netinet/in.h): Likewise.
51468         * modules/poll (poll.h): Likewise.
51469         * modules/stdbool (stdbool.h): Likewise.
51470         * modules/stdint (stdint.h): Likewise.
51471         * modules/sys_select (sys/select.h): Likewise.
51472         * modules/sys_socket (sys/socket.h): Likewise.
51473         * modules/sys_stat (sys/stat.h): Likewise.
51474         * modules/sysexits (sysexits.h): Likewise.
51475         * modules/unistd (unistd.h): Likewise.
51476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51477         Add a "DO NOT EDIT" comment to the generated file.
51478         (func_import): Likewise for gnulib-comp.m4.
51479
51480 2006-10-07  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/gl_sublist.h: New file.
51483         * lib/gl_sublist.c: New file.
51484
51485 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51486
51487         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
51488         name (relative to the original working directory) and the file
51489         name component (relative to the temporary working directory).  All
51490         callers changed.
51491         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
51492         * lib/mkdir-p.c (make_dir_parents): Likewise.
51493         * lib/mkdir-p.h (make_dir_parents): Likewise.
51494
51495 2006-10-06  Eric Blake  <ebb9@byu.net>
51496
51497         Define several macros for use by the clean-temp module.
51498         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
51499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
51500         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
51501
51502         * lib/clean-temp.h (close_stream_temp): New declaration.
51503         * lib/clean-temp.c (includes): Pull in headers according to what
51504         other modules are in use.
51505         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
51506
51507 2006-10-06  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
51510         instead of fopen, fwriteerror.
51511
51512 2006-10-06  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
51515         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
51516         int.
51517         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
51518         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
51519         Return an error indicator.
51520         Suggested by Eric Blake.
51521
51522 2006-10-06  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
51525         Reported by Eric Blake.
51526
51527 2006-10-06  Bruno Haible  <bruno@clisp.org>
51528
51529         * modules/closeout (Description): Mention stderr too.
51530
51531 2006-10-06  Bruno Haible  <bruno@clisp.org>
51532         and Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * lib/closeout.c (close_stdout): Also close stderr.
51535         * lib/closeout.h: Update comment.
51536
51537 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
51540         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
51541         * lib/dirchownmod.c: Include lchown.h.
51542         * lib/lchown.c: Don't include files that lchown.h now includes.
51543         Don't declare chown, since lchown.h now does that.
51544         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
51545         (lchown): Define to rpl_chown if lchown is declared but
51546         does not exist.  Declare using a prototype if lchown is not
51547         declared.  Add a copyright notice.
51548         * lib/mkstemp.h: Include <unistd.h>.
51549         * lib/openat.c: Include lchown.h.
51550
51551         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
51552         we now test for that separately.
51553         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
51554         rather than O_NOFOLLOW, when testing whether it's possible to
51555         avoid a race condition reliably.
51556         * lib/savewd.c (savewd_chdir): Likewise.
51557
51558         Remove macros that are no longer needed now that stdint.h is
51559         reliable.
51560         * lib/fsusage.c (UINTMAX_MAX): Remove.
51561         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
51562         * lib/utimecmp.c (SIZE_MAX): Remove.
51563
51564         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
51565
51566         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
51567         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
51568         O_NOATIME works.
51569
51570 2006-10-05  Bruno Haible  <bruno@clisp.org>
51571
51572         * lib/gl_list.h (gl_sortedlist_search_from_to,
51573         gl_sortedlist_indexof_from_to): New declarations.
51574         (gl_list_implementation): New fields sortedlist_search_from_to,
51575         sortedlist_indexof_from_to.
51576         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
51577         inline functions.
51578         * lib/gl_list.c (gl_sortedlist_search_from_to,
51579         gl_sortedlist_indexof_from_to): New functions.
51580         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
51581         function.
51582         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
51583         (gl_array_sortedlist_search_from_to): New function.
51584         (gl_array_list_implementation): Update.
51585         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
51586         function.
51587         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
51588         (gl_carray_sortedlist_search_from_to): New function.
51589         (gl_carray_list_implementation): Update.
51590         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
51591         gl_linked_sortedlist_indexof_from_to): New functions.
51592         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51593         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51594         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
51595         gl_tree_sortedlist_indexof_from_to): New functions.
51596         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51597         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51598         Update.
51599         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51600         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
51601         Update.
51602
51603 2006-10-05  Bruno Haible  <bruno@clisp.org>
51604
51605         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
51606         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
51607         (struct gl_list_implementation): Add fields search_from_to,
51608         indexof_from_to. Remove fields search, indexof.
51609         (gl_list_search): Use the search_from_to method.
51610         (gl_list_search_from, gl_list_search_from_to): New functions.
51611         (gl_list_indexof): Use the indexof_from_to method.
51612         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51613         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
51614         (gl_list_search_from, gl_list_search_from_to): New functions.
51615         (gl_list_indexof): Use the indexof_from_to method.
51616         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51617         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
51618         gl_array_indexof. Add start_index, end_index arguments.
51619         (gl_array_search_from_to): Renamed from gl_array_search. Add
51620         start_index, end_index arguments.
51621         (gl_array_remove, gl_array_list_implementation): Update.
51622         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
51623         gl_carray_indexof. Add start_index, end_index arguments.
51624         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
51625         start_index, end_index arguments.
51626         (gl_carray_remove, gl_carray_list_implementation): Update.
51627         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
51628         gl_linked_search. Add start_index, end_index arguments.
51629         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
51630         start_index, end_index arguments.
51631         (gl_linked_remove): Update.
51632         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51633         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51634         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
51635         field to 'size_t'.
51636         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
51637         gl_tree_search. Add start_index, end_index arguments.
51638         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51639         start_index, end_index arguments.
51640         (gl_tree_remove): Update.
51641         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51643         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
51644         function.
51645         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
51646         gl_tree_search. Add start_index, end_index arguments.
51647         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51648         start_index, end_index arguments.
51649         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51650         Update.
51651         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51652
51653 2006-10-05  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
51656
51657         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
51658         fwriteerror_temp): New declarations.
51659         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
51660         (descriptors): New variable.
51661         (cleanup): First, close the descriptors.
51662         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
51663         fclose_temp, fwriteerror_temp): New functions.
51664
51665 2006-10-04  Jim Meyering  <jim@meyering.net>
51666
51667         * lib/fts.c (fts_open): Tiny comment change.
51668
51669 2006-10-04  Bruno Haible  <bruno@clisp.org>
51670
51671         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
51672         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
51673         gl_LOCK_BODY.
51674         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
51675         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
51676         gl_LOCK_EARLY_BODY.
51677         (gl_LOCK): Require gl_LOCK_BODY.
51678
51679 2006-10-04  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
51682         (gl_oset_search_atleast): New declaration.
51683         (struct gl_oset_implementation): Add field 'search_atleast'.
51684         (gl_oset_search_atleast): New inline function.
51685         * lib/gl_oset.c (gl_oset_search_atleast): New function.
51686         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
51687         (gl_array_oset_implementation): Update.
51688         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
51689         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
51690         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
51691
51692 2006-10-04  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
51695
51696 2006-10-03  Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
51699         from gl_avltreehash_list_implementation.
51700
51701 2006-10-03  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/gl_oset.c (gl_oset_add): Fix return type.
51704
51705 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
51706
51707         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
51708
51709 2006-10-02  Eric Blake  <ebb9@byu.net>
51710
51711         * modules/strnlen (Depends-on): Add extensions.
51712
51713 2006-10-02  Eric Blake  <ebb9@byu.net>
51714
51715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
51716         definition in 2.60+.
51717
51718 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
51719
51720         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
51721         checks.
51722
51723 2006-10-02  Bruno Haible  <bruno@clisp.org>
51724
51725         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
51726         to the AUTOMAKE_OPTIONS.
51727         Reported by Jim Meyering.
51728
51729 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         Work around bug in Solaris 10 /proc file system:
51732         /proc/self/fd/NNN/.. isn't the parent directory of
51733         the directory whose file descriptor is NNN.  This needs to
51734         be worked around at run time, not compile time, since a
51735         program might be built on Solaris 8, where things work, and
51736         run on Solaris 10.
51737         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
51738         to use the following interface instead:
51739         (OPENAT_BUFFER_SIZE): New macro.
51740         (openat_proc_name): New function.
51741         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
51742         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
51743         Likewise.
51744         * lib/openat-proc.c: New file.
51745         * modules/openat (Files): Add lib/openat-proc.c.
51746         (Depends-on): Add same-inode, stdbool.
51747         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
51748
51749 2006-09-29  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
51752         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
51753         argument. Set stdout_closed before testing for ferror, not after.
51754         (fwriteerror, fwriteerror_no_ebadf): New functions.
51755
51756 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51757
51758         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
51759
51760 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
51761
51762         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
51763         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
51764
51765 2006-09-28  Jim Meyering  <jim@meyering.net>
51766
51767         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
51768         Include <unistd.h>.
51769
51770 2006-09-28  Bruno Haible  <bruno@clisp.org>
51771
51772         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
51773         * modules/linkedhash-list (Depends-on): Likewise.
51774         * modules/rbtreehash-list (Depends-on): Likewise.
51775
51776 2006-09-28  Bruno Haible  <bruno@clisp.org>
51777
51778         * lib/strndup.h: Simplify the redefinition of strndup.
51779         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
51780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
51781
51782 2006-09-28  Bruno Haible  <bruno@clisp.org>
51783
51784         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
51785         * lib/gl_linkedhash_list.c: Likewise.
51786         * lib/gl_rbtreehash_list.c: Likewise.
51787
51788 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
51789
51790         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
51791         getaddrinfo.
51792
51793         * lib/__fpending.h: Don't include <stdio_ext.h> unless
51794         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
51795         it causes <stdio_ext.h> to cause a compile-time error.
51796         Problem reported by Nelson H. F. Beebe.
51797         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
51798         of HAVE_DECL___PENDING.
51799
51800         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
51801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
51802         declaration.
51803
51804 2006-09-27  Jim Meyering  <jim@meyering.net>
51805
51806         This file could end up with a definition for a function
51807         named __strndup, rather than rpl_strndup on a system with
51808         incomplete weak_alias support.
51809         * lib/strndup.c (strndup): Rename from __strndup.
51810         Remove #defines that used to map __strndup to strndup.
51811         Don't use K&R prototypes.
51812         Remove LIBC-related code, since this file is not sync'd with glibc.
51813         * lib/strndup.h: Revamp, accordingly.
51814         * m4/strndup.m4: Modernize.
51815
51816 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
51817
51818         * modules/savewd (Depends-on): Add 'raise'.
51819         * lib/savewd.c: Include <signal.h>, for 'raise'.
51820
51821 2006-09-26  Jim Meyering  <jim@meyering.net>
51822
51823         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
51824         when we detect Darwin 8.7.0's acl_get_file bug.
51825         Rearrange to perform the new (below) run-test while $LIBS
51826         contains any acl-related library.  Set USE_ACL at the end.
51827         (gl_ACL_GET_FILE): New function.
51828
51829 2006-09-26  Eric Blake  <ebb9@byu.net>
51830
51831         * lib/verror.c: Include <config.h> unconditionally.
51832
51833 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * modules/clock-time (Maintainer): Add self.
51836         * modules/getlogin_r (Depends-on): Add extensions.
51837
51838 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51839
51840         * modules/clock-time: New module.
51841         * modules/nanosleep (Depends-on): Add clock-time.
51842         * modules/gethrxtime (Depends-on): Likewise.
51843         * modules/gettime (Depends-on): Likewise.
51844         * modules/settime (Depends-on): Likewise.
51845
51846         * modules/fts-lgpl: Depend on openat.
51847         * modules/mkancesdirs: Depend on savewd.
51848         * modules/mkdir-p: Likewise.
51849
51850 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51851
51852         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
51853
51854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
51855         `gl_have_arbitrary_file_name_length_limit' to
51856         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
51857         actually works between configure runs.
51858
51859 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51860             Bruno Haible  <bruno@clisp.org>
51861
51862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
51863
51864 2006-09-25  Jim Meyering  <jim@meyering.net>
51865
51866         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
51867         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
51868
51869 2006-09-25  Eric Blake  <ebb9@byu.net>
51870
51871         * gnulib-tool (func_import, func_create_testdir): Fix typos in
51872         exec's in 2006-09-18 patch when shuffling fds.
51873
51874 2006-09-25  Bruno Haible  <bruno@clisp.org>
51875
51876         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
51877         Reported by Jim Meyering.
51878
51879 2006-09-24  Jim Meyering  <jim@meyering.net>
51880
51881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
51882         compare a pointer against a literal "0".  That caused failures with
51883         at least HP-UX's hpcc.
51884
51885 2006-09-22  Simon Josefsson  <jas@extundo.com>
51886
51887         * modules/gc-sha1:
51888         * modules/gc-md4:
51889         * modules/gc-hmac-sha1:
51890         * modules/gc-hmac-md5:
51891         * modules/gc-des:
51892         * modules/gc-arcfour: Distribute more files.
51893
51894 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51895
51896         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
51897         (gl_linked_iterator_from_to): Initialize struct completely.
51898         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
51899         (gl_tree_iterator_from_to): Likewise
51900         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
51901         * lib/gl_array_list.c [lint] (gl_array_iterator)
51902         (gl_array_iterator_from_to): Likewise.
51903         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
51904         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
51905         (gl_carray_iterator_from_to): Likewise.
51906
51907         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
51908         * lib/md4.c (md4_process_block): Remove unused variable.
51909         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
51910         parentheses for clarity.
51911
51912 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51913
51914         * modules/bison-i18n (Depends-on): Add gettext.
51915
51916 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51917
51918         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
51919         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
51920         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
51921         also add missing comma that caused broken test.
51922         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
51923         stdlib.h, for `abort'.
51924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
51925         variables.
51926         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
51927         include unistd.h if present, for `rmdir'.
51928         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
51929         variables.
51930         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
51931         in the process include standard headers for prototypes.
51932         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
51933         gets declared on GNU/Linux.
51934         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
51935         unistd.h, for `rmdir'.
51936         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
51937
51938         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
51939         always true.
51940         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
51941
51942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
51943
51944 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51945
51946         * gnulib-tool (func_version): Create output all at once.  This
51947         may help avoid triggering unnecessary SIGPIPEs, and at any
51948         rate it doesn't hurt.
51949
51950 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51951             Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
51954         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51955         * m4/signed.m4 (bh_C_SIGNED): Likewise.
51956
51957         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
51958         (gl_FUNC_VASPRINTF): Invoke it.
51959
51960 2006-09-22  Bruno Haible  <bruno@clisp.org>
51961
51962         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
51963         getloadavg.c as first argument.
51964
51965 2006-09-22  Bruno Haible  <bruno@clisp.org>
51966
51967         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
51968         at the beginning of the gl_INIT macro.
51969         * modules/getloadavg (configure.ac): Pass $gl_source_base to
51970         gl_GETLOADAVG.
51971
51972 2006-09-22  Bruno Haible  <bruno@clisp.org>
51973
51974         * gnulib-tool (func_create_megatestdir): Don't include the config-h
51975         module.
51976         Suggested by Ralf Wildenhues.
51977
51978 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51979
51980         Import this patch from libc:
51981
51982         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
51983
51984         * lib/regex_internal.c (re_string_reconstruct): Handle
51985         offset < pstr->valid_raw_len && pstr->offsets_needed case.
51986         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
51987         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
51988         re_string_context_at.
51989
51990         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
51991         now requires it.
51992         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
51993         gl_REGEX now does it for us.
51994         (gl_REGEX): Add test taken from
51995         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
51996
51997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
51998         Check that large offsets work.  Modernize Autoconf usages.
51999         Prefer "yes" to mean a good thing rather than a bad.
52000         Don't put "#define mkstemp" in config.h, as this might interfere
52001         with standard system headers that "#define mkstemp mkstemp64".
52002
52003         * modules/mkstemp (Depends-on): Add extensions, so that
52004         mkstemp is visible on some platforms.
52005         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52006         (Include): Change to "mkstemp.h" from <stdlib.h>.
52007         (Files): Add mkstemp.h.
52008
52009         * lib/mkstemp.h: New file, since some standard headers
52010         #define mkstemp.
52011         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52012         Include "mkstemp.h".
52013         Make the _LIBC code resemble glibc original more,
52014         e.g., use K&R style.
52015         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52016         (mkstemp): Remove, since mkstemp.h does this for us.
52017         * lib/stdlib--.h: Include mkstemp.h.
52018
52019         Import this patch from libc:
52020
52021         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52022
52023         * lib/tempname.c (__gen_tempname): Change attempts_min
52024         into a macro.  Use preprocessor to decide how to initialize
52025         attempts [Coverity CID 67].
52026
52027 2006-09-20  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/mkdtemp.c: Import from libc.
52030         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52031                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52032                 attempts_min into a macro.  Use preprocessor to decide how to
52033                 initialize attempts [Coverity CID 67].
52034         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52035                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52036                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52037
52038 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52039
52040         * gnulib-tool (func_exit): New function, to allow to pass the
52041         exit status portably through the trap.  Use everywhere.
52042         (--help, --version): Signal a write error.
52043         (trap): catch SIGPIPE, for write errors.
52044         Exit at the end of the trap, with the correct exit status.
52045
52046 2006-09-19  Karl Berry  <karl@gnu.org>
52047
52048         * doc/gnulib.texi: note about the license texinfo files.
52049
52050 2006-09-19  Eric Blake  <ebb9@byu.net>
52051
52052         * gnulib-tool: Avoid space-tab.
52053
52054 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52055
52056         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52057         that prevented coreutils 6.1 from building.  Problem reported
52058         by Petter Reinholdtsen.
52059
52060 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52061
52062         * gnulib-tool (avoidlist): Fix typo that broke options like
52063         --avoid=lock that are used by coreutils bootstrap.
52064
52065 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52066
52067         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52068         more systematically.
52069
52070 2006-09-18  Jim Meyering  <jim@meyering.net>
52071
52072         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52073
52074 2006-09-18  Bruno Haible  <bruno@clisp.org>
52075
52076         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52077
52078 2006-09-18  Bruno Haible  <bruno@clisp.org>
52079
52080         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52081         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52082         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52083         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52084         * m4/gettext.m4: Require autoconf >= 2.52.
52085         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52086         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52087         of gl_cv_header_inttypes_h.
52088
52089 2006-09-18  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/javaversion.c: Include configmake.h.
52092
52093 2006-09-18  Bruno Haible  <bruno@clisp.org>
52094
52095         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52096         avoid that the while loops be executed in a subshell.
52097
52098 2006-09-18  Bruno Haible  <bruno@clisp.org>
52099
52100         * MODULES.html.sh (func_module): Break long lines.
52101         Suggested by Bruce Korb <bkorb@gnu.org>.
52102
52103 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52104
52105         Speed up by a factor of 1.12.
52106         * gnulib-tool (nl): New variable.
52107         (func_import): Rewrite include directive extraction to only read each
52108         directive once.
52109
52110 2006-09-17  Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/javaversion (Makefile.am): Remove DEFS setting.
52113         (Depends-on): Add configmake, for PKGDATADIR definition.
52114
52115 2006-09-17  Bruno Haible  <bruno@clisp.org>
52116
52117         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52118
52119 2006-09-17  Bruno Haible  <bruno@clisp.org>
52120
52121         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52122         (func_modules_transitive_closure, func_modules_add_dummy,
52123         func_modules_to_filelist, func_import, func_create_testdir,
52124         func_create_megatestdir, ...): Use it wherever possible.
52125         Suggested by Ralf Wildenhues.
52126
52127 2006-09-16  Karl Berry  <karl@gnu.org>
52128
52129         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52130         to avoid sectioning errors.
52131         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52132         [ifinfo]: blank line after @center-ed titles.
52133         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52134         Spell FSF address consistently with others.
52135         (These changes approved by rms.)
52136
52137 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52138
52139         Speed up by a factor of 1.61.
52140         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52141         already checked module names again.
52142
52143 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52144
52145         Speed up by a factor of 1.13.
52146         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52147         for new_files, and the input to func_add_or_update.
52148
52149 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52150
52151         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52152         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52153
52154 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52155
52156         * modules/mkancesdirs (Depends-on): Add fcntl.
52157         * modules/savewd: New file.
52158         * MODULES.html.sh (File system functions): Add savewd.
52159
52160         * modules/configmake (Makefile.am): Add support for the
52161         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52162
52163 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52164
52165         * m4/savewd.m4: New file.
52166
52167 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52170         (dirchownmod): New arg FD.  All callers changed.
52171         Use FD rather than opening the directory ourself, as opening is
52172         now the caller's responsibility.
52173         * lib/dirchownmod.h: Likewise.
52174         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52175         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52176         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52177         (test_dir): Remove.
52178         (mkancesdirs): Return length of prefix of FILE that has already
52179         been made, or -2 if there is a child doing the work.  Redo
52180         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52181         ".", and treat ".." specially since it might stray back into
52182         already-created areas.  Use a subprocess if necessary.  New arg
52183         WD; all users changed.  MAKE_DIR function should now return 1
52184         if it creates a directory that is not readable.  Return -2 if
52185         a child process is spun off.
52186         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52187         Adjust signature to match code.
52188         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52189         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52190         all users changed.
52191         * lib/savewd.c, lib/savewd.h: New files.
52192
52193 2006-09-15  Jim Meyering  <jim@meyering.net>
52194
52195         * modules/rename-dest-slash: New module.
52196         * MODULES.html.sh (posix_compat): Add it here.
52197
52198         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52199
52200 2006-09-15  Jim Meyering  <jim@meyering.net>
52201
52202         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52203         file.
52204
52205         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52206
52207 2006-09-15  Jim Meyering  <jim@meyering.net>
52208
52209         * lib/rename-dest-slash.c (has_trailing_slash): Use
52210         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52211         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52212         test before testing whether SRC is a directory.
52213         Suggestions from Bruno Haible.
52214
52215         Avoid a warning about an unused variable.
52216         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52217         into the #ifdef block where it's used.
52218
52219         * lib/rename-dest-slash.c: New file.
52220
52221 2006-09-14  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/allocsa.c: Include <config.h> unconditionally.
52224         * lib/asnprintf.c: Likewise.
52225         * lib/asprintf.c: Likewise.
52226         * lib/c-strcasecmp.c: Likewise.
52227         * lib/c-strcasestr.c: Likewise.
52228         * lib/c-strncasecmp.c: Likewise.
52229         * lib/c-strstr.c: Likewise.
52230         * lib/classpath.c: Likewise.
52231         * lib/clean-temp.c: Likewise.
52232         * lib/concatpath.c: Likewise.
52233         * lib/copy-file.c: Likewise.
52234         * lib/csharpcomp.c: Likewise.
52235         * lib/csharpexec.c: Likewise.
52236         * lib/execute.c: Likewise.
52237         * lib/fatal-signal.c: Likewise.
52238         * lib/findprog.c: Likewise.
52239         * lib/fwriteerror.c: Likewise.
52240         * lib/gl_array_list.c: Likewise.
52241         * lib/gl_array_oset.c: Likewise.
52242         * lib/gl_avltree_list.c: Likewise.
52243         * lib/gl_avltree_oset.c: Likewise.
52244         * lib/gl_avltreehash_list.c: Likewise.
52245         * lib/gl_carray_list.c: Likewise.
52246         * lib/gl_linked_list.c: Likewise.
52247         * lib/gl_linkedhash_list.c: Likewise.
52248         * lib/gl_list.c: Likewise.
52249         * lib/gl_oset.c: Likewise.
52250         * lib/gl_rbtree_list.c: Likewise.
52251         * lib/gl_rbtree_oset.c: Likewise.
52252         * lib/gl_rbtreehash_list.c: Likewise.
52253         * lib/imaxabs.c: Likewise.
52254         * lib/imaxdiv.c: Likewise.
52255         * lib/javacomp.c: Likewise.
52256         * lib/javaexec.c: Likewise.
52257         * lib/javaversion.c: Likewise.
52258         * lib/linebreak.c: Likewise.
52259         * lib/localcharset.c: Likewise.
52260         * lib/lock.c: Likewise.
52261         * lib/mbchar.c: Likewise.
52262         * lib/mbswidth.c: Likewise.
52263         * lib/mkdtemp.c: Likewise.
52264         * lib/pipe.c: Likewise.
52265         * lib/printf-args.c: Likewise.
52266         * lib/printf-parse.c: Likewise.
52267         * lib/progname.c: Likewise.
52268         * lib/progreloc.c: Likewise.
52269         * lib/readlink.c: Likewise.
52270         * lib/sh-quote.c: Likewise.
52271         * lib/stpcpy.c: Likewise.
52272         * lib/stpncpy.c: Likewise.
52273         * lib/strcasecmp.c: Likewise.
52274         * lib/strcasestr.c: Likewise.
52275         * lib/strcspn.c: Likewise.
52276         * lib/striconv.c: Likewise.
52277         * lib/strncasecmp.c: Likewise.
52278         * lib/strnlen1.c: Likewise.
52279         * lib/strstr.c: Likewise.
52280         * lib/strtok_r.c: Likewise.
52281         * lib/tls.c: Likewise.
52282         * lib/tmpdir.c: Likewise.
52283         * lib/unicodeio.c: Likewise.
52284         * lib/unsetenv.c: Likewise.
52285         * lib/vasnprintf.c: Likewise.
52286         * lib/vasprintf.c: Likewise.
52287         * lib/wait-process.c: Likewise.
52288         * lib/xallocsa.c: Likewise.
52289         * lib/xsetenv.c: Likewise.
52290         * lib/xstriconv.c: Likewise.
52291
52292 2006-09-13  Simon Josefsson  <jas@extundo.com>
52293
52294         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52295         that internally, suggested by Ralf Wildenhues
52296         <Ralf.Wildenhues@gmx.de>.
52297
52298 2006-09-13  Simon Josefsson  <jas@extundo.com>
52299
52300         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52301         @LIBOBJS@.
52302         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52303
52304 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52305
52306         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52307         longer worry about uses that don't define HAVE_CONFIG_H.
52308         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52309         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52310         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52311         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52312         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52313         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52314         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52315         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52316         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52317         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52318         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52319         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52320         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52321         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52322         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52323         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52324         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52325         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52326         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52327         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52328         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52329         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52330         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52331         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52332         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52333         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52334         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52335         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52336         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52337         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52338         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52339         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52340         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52341         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52342         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52343         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52344         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52345         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52346         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52347         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52348         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52349         Likewise.
52350
52351 2006-09-13  Eric Blake  <ebb9@byu.net>
52352
52353         * lib/getopt.c: Fix typo in last commit.
52354
52355 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52356
52357         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52358         dgettext.
52359
52360 2006-09-12  Jim Meyering  <jim@meyering.net>
52361
52362         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52363         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52364         Reported by Nelson H. F. Beebe.
52365
52366 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52367
52368         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52369         program_invocation_name and program_invocation_short_name are
52370         initialized.
52371         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52372         and program_invocation_short_name to argp.h, so they are visible
52373         to user programs.
52374         * lib/argp.h: Likewise
52375
52376 2006-09-10  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52379         m4/inttypes_h.m4, m4/uintmax_t.m4.
52380
52381 2006-09-10  Bruno Haible  <bruno@clisp.org>
52382
52383         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52384         gl_AC_TYPE_UINTMAX_T.
52385
52386 2006-09-10  Bruno Haible  <bruno@clisp.org>
52387
52388         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52389
52390 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52391
52392         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52393         convention.  Text proposed by Bruno Haible.
52394         (struct argp_option): Document the use of N_() wrappers.
52395
52396         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52397         '\v', and translate the two parts separately, instead of feeding
52398         the whole string to gettext.  This allows to exclude
52399         '\v' from the strings visible to the translator by writing doc
52400         strings as N_("..") "\v" N_("..").
52401
52402 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * config/srclist.txt: Undo latest change; the bug was fixed.
52405
52406 2006-09-09  Bruno Haible  <bruno@clisp.org>
52407
52408         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52409         assignments if building a library without libtool.
52410         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52411         in func_emit_lib_Makefile_am.
52412         (func_import): When building a static library libfoo.a, arrange to
52413         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52414         (func_create_testdir): Likewise.
52415         * modules/gc (configure.ac, Makefile.am): If building statically,
52416         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52417         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52418         * modules/striconv (configure.ac, Makefile.am): Likewise.
52419         Based on a suggestion by Ralf Wildenhues.
52420
52421 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52424         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52425         Also:
52426
52427         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52428         Add year_2050_test to catch glibc bug 2821
52429         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52430
52431         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52432         Prefer #ifdef to #if.
52433
52434         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52435         Return from 'main' instead of calling 'exit'.
52436
52437 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52440         returned the maximum time_t value rather than (time_t) -1.
52441         Problem originally reported by William Bardwell
52442         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52443
52444         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52445         Moved to here ...
52446         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52447         ... from here.
52448
52449 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52450
52451         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52452         2821 is fixed.
52453
52454 2006-09-08  Jim Meyering  <jim@meyering.net>
52455
52456         Don't make generated files read-only.  That would bother too many
52457         people.  However, do retain the ability to work when targets are
52458         read-only: remove the destination and temporary files before writing
52459         them (when generated via sed or echo), or by using the -f option for
52460         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52461         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52462         * modules/byteswap, modules/configmake, modules/fcntl:
52463         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52464         * modules/localcharset, modules/netinet_in, modules/poll:
52465         * modules/stdbool, modules/stdint, modules/sys_select:
52466         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52467
52468 2006-09-08  Jim Meyering  <jim@meyering.net>
52469
52470         Avoid new build failure on FreeBSD 6.0.
52471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
52472         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
52473         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
52474
52475 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52476
52477         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
52478
52479 2006-09-07  Jim Meyering  <jim@meyering.net>
52480
52481         Fix global typo in last change: use chmod u-w, not chmod u-x.
52482         Spotted by Paul Eggert and Bruce Korb.
52483         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52484         * modules/byteswap, modules/configmake, modules/fcntl:
52485         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52486         * modules/localcharset, modules/netinet_in, modules/poll:
52487         * modules/stdbool, modules/stdint, modules/sys_select:
52488         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52489
52490 2006-09-06  Jim Meyering  <jim@meyering.net>
52491
52492         Make generated files be read-only.
52493         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
52494         Ensure that each generated file is now read-only.
52495         * modules/argz: Likewise.
52496         * modules/arpa_inet: Likewise.
52497         * modules/byteswap: Likewise.
52498         * modules/configmake: Likewise.
52499         * modules/fcntl: Likewise.
52500         * modules/fnmatch: Likewise.
52501         * modules/getopt: Likewise.
52502         * modules/glob: Likewise.
52503         * modules/inttypes: Likewise.
52504         * modules/netinet_in: Likewise.
52505         * modules/poll: Likewise.
52506         * modules/stdbool: Likewise.
52507         * modules/stdint: Likewise.
52508         * modules/sys_select: Likewise.
52509         * modules/sys_socket: Likewise.
52510         * modules/sys_stat: Likewise.
52511         * modules/sysexits: Likewise.
52512         * modules/localcharset: Same as above, but continue using temporary
52513         file named "t-$@" (why different?) rather than the "$@-t" used
52514         everywhere else.
52515
52516         * modules/sysexits (Makefile.am): Replace literal occurrences
52517         of "sysexit.h" more readable, and more consistent, "$@".
52518
52519 2006-09-06  Bruno Haible  <bruno@clisp.org>
52520
52521         * modules/striconv: New file.
52522         * modules/xstriconv: New file.
52523         * MODULES.html.sh (Internationalization functions): Add striconv,
52524         xstriconv.
52525
52526 2006-09-06  Bruno Haible  <bruno@clisp.org>
52527
52528         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
52529         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
52530         not using libtool correctly.
52531
52532 2006-09-06  Bruno Haible  <bruno@clisp.org>
52533
52534         * lib/striconv.h: New file.
52535         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
52536         iconvstring.c.
52537         * lib/xstriconv.h: New file.
52538         * lib/xstriconv.c: New file.
52539
52540 2006-09-06  Bruno Haible  <bruno@clisp.org>
52541
52542         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52543         lib_..._LDFLAGS.
52544
52545 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52546
52547         * lib/argz_.h: Sync from Libtool.
52548
52549         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
52550                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52551
52552         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
52553
52554 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52555
52556         * modules/trim: New file.
52557
52558 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52559
52560         * lib/trim.h: New file.
52561         * lib/trim.c: New file.
52562
52563 2006-09-05  Bruno Haible  <bruno@clisp.org>
52564
52565         * MODULES.html.sh (String handling): Add trim.
52566
52567 2006-09-04  Karl Berry  <karl@gnu.org>
52568
52569         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
52570         until next release.
52571
52572 2006-09-03  Bruno Haible  <bruno@clisp.org>
52573
52574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
52575         correctly.
52576
52577 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
52580         not gl_GETLOADAVG.  Omit unneeded semicolons.
52581         Problems reported by Ralf Wildenhues in
52582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52583         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
52584         at the end, which is the usual gnulib style.
52585
52586         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
52587         of doing all the work ourselves.
52588         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
52589         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
52590
52591 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52592
52593         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
52594         Problem reported by Ralf Wildenhues in
52595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52596
52597         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
52598         HAVE_STRUCT_STATFS_F_FSTYPENAME.
52599
52600 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
52603         yesterday's patch by changing test -n to test -z.
52604
52605 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * modules/getloadavg (Files): Add m4/getloadavg.m4.
52608         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
52609         the former is now obsolescent.
52610
52611         * modules/chdir-long (Depends-on): Add fcntl.
52612
52613 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
52616         obsolescent, and programs should use gnulib instead.
52617         * m4/getloadavg.m4: New file, with contents taken from Autoconf
52618         but with prefixes changed.
52619
52620 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52621
52622         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
52623         or stdbool.h, because they might not exist while configuring.
52624
52625         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
52626         Don't include unistd.h or limits.h; not needed, since chdir-long.h
52627         does that for us.
52628         (O_DIRECTORY): Remove.
52629
52630 2006-08-31  Eric Blake  <ebb9@byu.net>
52631
52632         * gnulib-tool: Don't let emacs change spaces to TAB.
52633
52634 2006-08-31  Bruno Haible  <bruno@clisp.org>
52635
52636         * gnulib-tool: When calling func_import more than once, do it in a
52637         subshell.
52638         Reported by Eric Blake <ebb9@byu.net>.
52639
52640 2006-08-31  Bruno Haible  <bruno@clisp.org>
52641
52642         * gnulib-tool (nl): Remove variable.
52643         (sed_transform_lib_file): Use more robust test for config-h module.
52644         (func_import): Fix typo in 2006-08-25 patch.
52645
52646 2006-08-31  Bruno Haible  <bruno@clisp.org>
52647
52648         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
52649         specified, augment Makefile.am variables instead of assigning them.
52650
52651 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52652
52653         Work around a bug in both the Linux and SunOS 64-bit kernels:
52654         nanosleep mishandles sleeps for longer than 2**31 seconds.
52655         Problem reported by Frank v Waveren in
52656         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
52658         Check for nanosleep bug.
52659         (LIB_NANOSLEEP): Append clock_gettime library if needed.
52660
52661 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52662
52663         Work around a bug in both the Linux and SunOS 64-bit kernels:
52664         nanosleep mishandles sleeps for longer than 2**31 seconds.
52665         Problem reported by Frank v Waveren in
52666         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52667         * lib/nanosleep.c (BILLION): New constant.
52668         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
52669         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
52670         implementation.
52671
52672 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         * modules/nanosleep (Depends-on): Add gettime.
52675
52676 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52677         and Simon Josefsson  <jas@extundo.com>
52678         and Oskar Liljeblad  <oskar@osk.mine.nu>
52679
52680         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
52681         * gnulib-tool (func_import): New license type 'unmodifiable license
52682         text'.
52683         * modules/fdl: Use it.  Longer description.
52684         * module/gpl, module/lgpl: New files.
52685
52686 2006-08-30  Jim Meyering  <jim@meyering.net>
52687
52688         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
52689         shadowing the parameter.
52690
52691 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52692
52693         Sync from Libtool:
52694
52695         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52696
52697         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
52698         sharing with gnulib.  Report by Eric Blake.
52699
52700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52701
52702         * modules/isapipe: New file.
52703         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
52704
52705 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52706
52707         * modules/configmake (Makefile.am): Add a comment, and omit
52708         the CONFIGMAKE_ prefix from generated macro names.  Suggested
52709         by Bruno Haible.
52710
52711 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         * m4/isapipe.m4: New file.
52714
52715 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52716
52717         * lib/isapipe.c, lib/isapipe.h: New files.
52718
52719 2006-08-29  Jim Meyering  <jim@meyering.net>
52720
52721         * modules/configmake (Makefile.am): Make configmake.h depend on
52722         Makefile.  Otherwise, a stale configmake.h could hang around.
52723
52724 2006-08-29  Eric Blake  <ebb9@byu.net>
52725
52726         * lib/error.c (error_at_line, print_errno_message): Match libc, after
52727         resolution of upstream bug 3044.
52728
52729 2006-08-29  Bruno Haible  <bruno@clisp.org>
52730
52731         * modules/localcharset (Depends-on): Add configmake.
52732         (Makefile.am): Remove setting of LIBDIR through DEFS.
52733
52734 2006-08-29  Bruno Haible  <bruno@clisp.org>
52735
52736         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
52737         defined.
52738
52739 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * modules/fcntl: New file.
52742         * modules/chdir-safer (Depends-on): Add fcntl.
52743         * modules/fts: Likewise.
52744         * modules/mkdir-p: Likewise.
52745
52746         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
52747         This undoes the most recent change, since we're now addressing the
52748         problem in a different way.
52749
52750         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
52751         into output, since the output might be called Makefile.am even
52752         if $makefile_name is something different.
52753         (func_import): Use $makefile_am rather than
52754         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
52755         empty.
52756
52757         * modules/inttypes (Files): Add m4/inttypes-h.m4.
52758
52759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
52762         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
52763         recent change to stdint.m4, since we're now addressing the problem in a
52764         different way.
52765
52766 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         * m4/fcntl_h.m4: New file.
52769
52770 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/fcntl_.h: New file.
52773         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
52774         the fcntl module.
52775         * lib/dirchownmod.c: Likewise.
52776         * lib/fts.c: Likewise.
52777
52778         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
52779         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
52780         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
52781         just before including <inttypes.h>, to avoid circular inclusion.
52782
52783 2006-08-28  Jim Meyering  <jim@meyering.net>
52784
52785         * doc/visibility.texi: Actually read and correct the grammar of the
52786         sentence affected by yesterday's change.
52787
52788 2006-08-28  Eric Blake  <ebb9@byu.net>
52789
52790         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
52791         needs wrapper.
52792
52793 2006-08-28  Eric Blake  <ebb9@byu.net>
52794
52795         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
52796
52797 2006-08-28  Eric Blake  <ebb9@byu.net>
52798
52799         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
52800
52801 2006-08-28  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/c-strstr: New file, from GNU gettext.
52804         * MODULES.html.sh (String handling): Add c-strstr.
52805
52806 2006-08-28  Bruno Haible  <bruno@clisp.org>
52807
52808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
52809         macros.
52810         Reported by Eric Blake.
52811
52812 2006-08-28  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
52815         (VASNPRINTF): Return a string of length > INT_MAX without failing.
52816         * lib/vasprintf.c: Include errno.h, limits.h.
52817         (EOVERFLOW): New fallback definition.
52818         (vasprintf): Test here whether the string length is > INT_MAX.
52819         * lib/vsnprintf.c: Include errno.h, limits.h.
52820         (EOVERFLOW): New fallback definition.
52821         (vsnprintf): Fix bug when generated string was too long for the buffer.
52822         Test here whether the string length is > INT_MAX.
52823
52824 2006-08-28  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/inttypes_.h (SCNX*): Remove definitions.
52827         Reported by Eric Blake.
52828
52829 2006-08-28  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/c-strstr.h: New file, from GNU gettext.
52832         * lib/c-strstr.c: New file, from GNU gettext.
52833
52834 2006-08-28  Bruno Haible  <bruno@clisp.org>
52835
52836         * gnulib-tool: Reorder some statements.
52837
52838 2006-08-28  Bruno Haible  <bruno@clisp.org>
52839
52840         * gnulib-tool: New option --makefile-name.
52841         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
52842         $makefile_name.
52843         (func_import): Write $makefile_name to the cache file, and read it from
52844         there unless explicitly specified. Use $makefile_name as file name
52845         instead of Makefile.am. Adjust the recommendations accordingly.
52846
52847 2006-08-28  Bruno Haible  <bruno@clisp.org>
52848
52849         * gnulib-tool (func_verify_module): Check against misapplying patch.
52850
52851 2006-08-28  Bruno Haible  <bruno@clisp.org>
52852
52853         * gnulib-tool (func_relativize, func_relconcat): New functions.
52854         Give an error if --local-dir is given with --update.
52855         Remove trailing slashes from $local_gnulib_dir.
52856         (func_import): Store the relativized $local_gnulib_dir in
52857         gnulib-cache.m4, and read it from there if not specified explicitly.
52858
52859 2006-08-28  Bruno Haible  <bruno@clisp.org>
52860
52861         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
52862         is the current directory. Respect also $local_gnulib_dir.
52863
52864 2006-08-28  Bruno Haible  <bruno@clisp.org>
52865             Simon Josefsson  <jas@extundo.com>
52866
52867         BeOS portability.
52868         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
52869
52870 2006-08-27  Jim Meyering  <jim@meyering.net>
52871
52872         * doc/visibility.texi: Remove duplicate word: "pointer".
52873
52874 2006-08-26  Bruno Haible  <bruno@clisp.org>
52875
52876         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
52877         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
52878         (Makefile.am): Create inttypes.h from inttypes_.h.
52879         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
52880
52881         * modules/imaxabs: New file.
52882
52883         * modules/imaxdiv: New file.
52884
52885 2006-08-26  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/inttypes.m4: New file.
52888         * m4/_inttypes_h.m4: Remove file.
52889         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
52890         PRI_MACROS_BROKEN.
52891         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
52892
52893         * m4/imaxabs.m4: New file.
52894
52895         * m4/imaxdiv.m4: New file.
52896
52897 2006-08-26  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/inttypes_.h: New file.
52900         * lib/inttypes.h: Remove file.
52901         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
52902
52903         * lib/imaxabs.c: New file.
52904
52905         * lib/imaxdiv.c: New file.
52906
52907 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52908
52909         New config-h module, so that "make" output needn't be cluttered
52910         by -DHAVE_CONFIG_H.
52911         * MODULES.html.sh (Support for building libraries and executables):
52912         Add config-h.
52913         * modules/config-h: New file.
52914         * gnulib-tool (nl, sed_transform_lib_file): New vars.
52915         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
52916         the config-h module is used.
52917
52918         New configmake module, so that "make" output needn't be cluttered
52919         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
52920         * MODULES.html.sh (Support for building libraries and executables):
52921         Add configmake.
52922         * modules/configmake: New file.
52923
52924 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52925
52926         * m4/config-h.m4: New file.
52927
52928 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         * config/srclist.txt: Add elisp-comp.
52931
52932 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * MODULES.html.sh (Support for building libraries and executables):
52935         Add elisp-comp.
52936         * build-aux/elisp-comp: New file.
52937         * modules/elisp-comp: New file.
52938
52939 2006-08-24  Bruno Haible  <bruno@clisp.org>
52940
52941         * gnulib-tool (func_create_testdir): Use non-default values of
52942         sourcebase and m4base.
52943
52944 2006-08-24  Bruno Haible  <bruno@clisp.org>
52945
52946         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
52947         HTML structure.
52948
52949 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52950
52951         * modules/openat (Depends-on): Add lchown.
52952
52953 2006-08-23  Bruno Haible  <bruno@clisp.org>
52954
52955         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
52956         of gl_LOCK_EARLY instead of gl_LOCK.
52957
52958 2006-08-23  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
52961         on OSF/1 to no.
52962         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
52963
52964 2006-08-23  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
52967         as unusable.
52968
52969         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
52970         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
52971         (gl_LOCK): New macro.
52972
52973 2006-08-22  Simon Josefsson  <jas@extundo.com>
52974
52975         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
52976         to md5 module.
52977
52978 2006-08-22  Simon Josefsson  <jas@extundo.com>
52979
52980         * MODULES.html.sh: Add "Support for maintaining and release
52981         projects".
52982
52983         * build-aux/gnupload: New file, from coreutils.
52984
52985 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52986
52987         Avoid the need for AC_LIBSOURCES in m4 macros.
52988         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
52989         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
52990         * modules/check-version (EXTRA_DIST): Add check-version.h.
52991         * modules/crc (EXTRA_DIST): Add crc.h.
52992         * modules/des (EXTRA_DIST): Add des.h.
52993         * modules/gc (EXTRA_DIST): Add gc.h.
52994         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
52995         * modules/getline (EXTRA_DIST): Add getline.h.
52996         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
52997         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
52998         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
52999         * modules/md2 (EXTRA_DIST): Add md2.h.
53000         * modules/md4 (EXTRA_DIST): Add md4.h.
53001         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53002         * modules/read-file (EXTRA_DIST): Add read-file.h.
53003         * modules/readline (EXTRA_DIST): Add readline.h.
53004         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53005         rijndael-api-fst.h.
53006
53007 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * m4/rijndael.m4 (gl_ARCFOUR):
53010         * m4/arctwo.m4 (gl_ARCTWO):
53011         * m4/check-version.m4 (gl_CHECK_VERSION):
53012         * m4/crc.m4 (gl_CRC):
53013         * m4/des.m4 (gl_DES):
53014         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53015         * m4/gc.m4 (gl_GC):
53016         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53017         * m4/getline.m4 (gl_FUNC_GETLINE):
53018         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53019         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53020         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53021         * m4/md2.m4 (gl_MD2):
53022         * m4/md4.m4 (gl_MD4):
53023         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53024         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53025         * m4/readline.m4 (gl_FUNC_READLINE):
53026         * m4/rijndael.m4 (gl_RIJNDAEL):
53027         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53028         to get the necessary .h files and whatnot.
53029
53030 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53033         gnulib rather than the other way around.
53034         * config/srclistvars.sh (COREUTILS): Remove.
53035
53036 2006-08-22  Jim Meyering  <jim@meyering.net>
53037
53038         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53039
53040         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53041
53042 2006-08-22  Eric Blake  <ebb9@byu.net>
53043
53044         * modules/regexprops-generic: New file.
53045         * MODULES.html.sh (Support for building documentation): List it.
53046
53047 2006-08-22  Eric Blake  <ebb9@byu.net>
53048
53049         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53050         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53051         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53052         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53053
53054 2006-08-22  Bruno Haible  <bruno@clisp.org>
53055
53056         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53057         and lib_LTLIBRARIES like the other lib_* variables.
53058
53059 2006-08-22  Bruno Haible  <bruno@clisp.org>
53060
53061         * build-aux/x-to-1.in: New file, from GNU gettext.
53062
53063 2006-08-22  Bruno Haible  <bruno@clisp.org>
53064
53065         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53066         <utmpx.h> exists.
53067
53068 2006-08-22  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53071         <utmpx.h> exists.
53072
53073 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         BeOS portability.
53076         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53077         exist.
53078         Problem reported by Bruno Haible.
53079
53080 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53081
53082         Avoid the need for AC_LIBSOURCES in m4 macros.
53083         * modules/acl (EXTRA_DIST): Add acl.h.
53084         * modules/argmatch (Files): Add m4/argmatch.m4.
53085         (configure.ac): Add gl_ARGMATCH.
53086         (EXTRA_DIST): Renamed from lib_SOURCES, for
53087         consistency with the other modules.  Remove argmatch.c.
53088         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53089         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53090         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53091         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53092         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53093         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53094         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53095         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53096         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53097         * modules/closeout (EXTRA_DIST): Add closeout.h.
53098         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53099         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53100         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53101         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53102         dirname.h; remove basename.c and stripslash.c.
53103         * modules/exclude (EXTRA_DIST): Add exclude.h.
53104         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53105         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53106         * modules/file-type (EXTRA_DIST): Add file-type.h.
53107         * modules/filemode (EXTRA_DIST): Add filemode.h.
53108         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53109         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53110         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53111         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53112         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53113         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53114         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53115         * modules/getdate (EXTRA_DIST): Add getdate.c.
53116         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53117         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53118         * modules/getpass (EXTRA_DIST): Add getpass.h.
53119         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53120         * modules/group-member (EXTRA_DIST): Add group-member.h.
53121         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53122         * modules/hash (EXTRA_DIST): Add hash.h.
53123         * modules/human (EXTRA_DIST): Add human.h.
53124         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53125         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53126         * modules/lchown (EXTRA_DIST): Add lchown.h.
53127         * modules/long-options (EXTRA_DIST): Add long-options.h.
53128         * modules/lstat (EXTRA_DIST): Add lstat.h.
53129         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53130         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53131         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53132         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53133         * modules/memxor (EXTRA_DIST): Add memxor.h.
53134         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53135         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53136         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53137         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53138         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53139         * modules/physmem (EXTRA_DIST): Add physmem.h.
53140         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53141         * modules/posixver (EXTRA_DIST): Add posixver.h.
53142         * modules/quote (EXTRA_DIST): Add quote.h.
53143         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53144         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53145         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53146         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53147         regex_internal.h regexec.c.
53148         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53149         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53150         * modules/same (EXTRA_DIST): Add same.h.
53151         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53152         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53153         * modules/savedir (EXTRA_DIST): Add savedir.h.
53154         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53155         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53156         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53157         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53158         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53159         * modules/strdup (EXTRA_DIST): Add strdup.h.
53160         * modules/strftime (EXTRA_DIST): Add strftime.h.
53161         * modules/strndup (EXTRA_DIST): Add strndup.h.
53162         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53163         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53164         * modules/time_r (EXTRA_DIST): Add time_r.h.
53165         * modules/timespec (EXTRA_DIST): Add timespec.h.
53166         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53167         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53168         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53169         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53170         * modules/userspec (EXTRA_DIST): Add userspec.h.
53171         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53172         * modules/utimens (EXTRA_DIST): Add utimens.h.
53173         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53174         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53175         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53176         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53177         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53178         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53179         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53180         * modules/yesno (EXTRA_DIST): Add yesno.h.
53181
53182 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53185
53186         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53187         * m4/dev-ino.m4, same-inode.m4: Remove.
53188
53189         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53190         * m4/acl.m4 (AC_FUNC_ACL):
53191         * m4/backupfile.m4 (gl_BACKUPFILE):
53192         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53193         * m4/canon-host.m4 (gl_CANON_HOST):
53194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53195         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53196         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53197         * m4/cloexec.m4 (gl_CLOEXEC):
53198         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53199         * m4/closeout.m4 (gl_CLOSEOUT):
53200         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53201         * m4/dirname.m4 (gl_DIRNAME):
53202         * m4/exclude.m4 (gl_EXCLUDE):
53203         * m4/exitfail.m4 (gl_EXITFAIL):
53204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53205         * m4/file-type.m4 (gl_FILE_TYPE):
53206         * m4/filemode.m4 (gl_FILEMODE):
53207         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53208         * m4/fpending.m4 (gl_FUNC_FPENDING):
53209         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53210         * m4/fts.m4 (gl_FUNC_FTS):
53211         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53212         * m4/getdate.m4 (gl_GETDATE):
53213         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53214         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53215         * m4/getpass.m4 (gl_FUNC_GETPASS):
53216         * m4/gettime.m4 (gl_GETTIME):
53217         * m4/getugroups.m4 (gl_GETUGROUPS):
53218         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53219         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53220         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53221         * m4/hash.m4 (gl_HASH):
53222         * m4/idcache.m4 (gl_IDCACHE):
53223         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53224         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53225         * m4/long-options.m4 (gl_LONG_OPTIONS):
53226         * m4/lstat.m4 (gl_FUNC_LSTAT):
53227         * m4/md5.m4 (gl_MD5):
53228         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53229         * m4/memcoll.m4 (gl_MEMCOLL):
53230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53232         * m4/memxor.m4 (gl_MEMXOR):
53233         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53234         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53235         * m4/modechange.m4 (gl_MODECHANGE):
53236         * m4/mountlist.m4 (gl_MOUNTLIST):
53237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53238         * m4/openat.m4 (gl_FUNC_OPENAT):
53239         * m4/pathmax.m4 (gl_PATHMAX):
53240         * m4/physmem.m4 (gl_PHYSMEM):
53241         * m4/posixtm.m4 (gl_POSIXTM):
53242         * m4/posixver.m4 (gl_POSIXVER):
53243         * m4/quote.m4 (gl_QUOTE):
53244         * m4/quotearg.m4 (gl_QUOTEARG):
53245         * m4/readtokens.m4 (gl_READTOKENS):
53246         * m4/readutmp.m4 (gl_READUTMP):
53247         * m4/regex.m4 (gl_REGEX):
53248         * m4/safe-read.m4 (gl_SAFE_READ):
53249         * m4/safe-write.m4 (gl_SAFE_WRITE):
53250         * m4/same.m4 (gl_SAME):
53251         * m4/save-cwd.m4 (gl_SAVE_CWD):
53252         * m4/savedir.m4 (gl_SAVEDIR):
53253         * m4/settime.m4 (gl_SETTIME):
53254         * m4/sha1.m4 (gl_SHA1):
53255         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53256         * m4/stat-macros.m4 (gl_STAT_MACROS):
53257         * m4/stat-time.m4 (gl_STAT_TIME):
53258         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53259         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53260         * m4/strdup.m4 (gl_FUNC_STRDUP):
53261         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53262         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53263         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53264         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53265         * m4/time_r.m4 (gl_TIME_R):
53266         * m4/timespec.m4 (gl_TIMESPEC):
53267         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53268         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53269         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53270         * m4/userspec.m4 (gl_USERSPEC):
53271         * m4/utimecmp.m4 (gl_UTIMECMP):
53272         * m4/utimens.m4 (gl_UTIMENS):
53273         * m4/xalloc.m4 (gl_XALLOC):
53274         * m4/xgetcwd.m4 (gl_XGETCWD):
53275         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53276         * m4/xreadlink.m4 (gl_XREADLINK):
53277         * m4/xstrtod.m4 (gl_XSTRTOD):
53278         * m4/yesno.m4 (gl_YESNO):
53279         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53280         to get the necessary .h files and whatnot.
53281
53282 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53283             Bruno Haible  <bruno@clisp.org>
53284
53285         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53286         /bin/sh understanding of '!' conditional negation.
53287
53288 2006-08-21  Jim Meyering  <jim@meyering.net>
53289
53290         * modules/openat (Depends-on): Really alphabetize.
53291
53292         * modules/acl (Depends-on): Add error and quote.
53293
53294         * check-module (find_included_lib_files): Add at-func.c to the
53295         ok-to-include-more-than-once white list.
53296
53297         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53298
53299 2006-08-21  Bruno Haible  <bruno@clisp.org>
53300
53301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53302         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53303         Reported by Martin Lambers <marlam@marlam.de>.
53304
53305 2006-08-21  Bruno Haible  <bruno@clisp.org>
53306
53307         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53308         specify an installation location, don't emit a noinst_LIBRARIES or
53309         noinst_LTLIBRARIES assignment.
53310
53311 2006-08-21  Bruno Haible  <bruno@clisp.org>
53312
53313         BeOS portability.
53314         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53315         BeOS has mbrtowc() but no <wctype.h>.
53316
53317 2006-08-21  Bruno Haible  <bruno@clisp.org>
53318
53319         BeOS portability.
53320         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53321         exist.
53322
53323 2006-08-21  Bruno Haible  <bruno@clisp.org>
53324
53325         BeOS portability.
53326         * lib/mbchar.h: Include <wctype.h> only if it exists.
53327
53328 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         Remove files that are no longer needed by their respective modules.
53331         * m4/obstack.m4: Remove.
53332         * m4/strerror_r.m4: Remove.
53333         * m4/uint32_t.m4: Remove.
53334         * m4/uintptr_t.m4: Remove.
53335         * m4/ullong_max.m4: Remove.
53336         * m4/xstrtoimax.m4: Remove.
53337         * m4/xstrtoumax.m4: Remove.
53338
53339         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53340         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53341         dependencies now capture this.
53342
53343         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53344         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53345         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53346         * m4/human.m4 (gl_HUMAN): Likewise.
53347         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53348         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53349
53350         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53351
53352         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53353         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53354         stdint.
53355         * m4/human.m4 (gl_HUMAN): Likewise.
53356         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53357         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53358         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53359         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53360         * m4/xstrtol (gl_XSTRTOL): Likewise.
53361
53362         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53363         AC_TYPE_LONG_LONG_INT.
53364         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53365         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53366         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53367         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53368
53369         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53370         on stdbool.
53371
53372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53373         (gl_PREREQ_XSTRTOUL): Remove.
53374
53375         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53376
53377         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53378         mode.
53379
53380 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         Add and change modules to make it easier for coreutils to use
53383         gnulib-tool.
53384         * modules/backupfile (Files): Remove m4/d-ino.m4.
53385         (Depends-on): Add d-ino.
53386         * modules/cycle-check (Depends-on): Add stdint.
53387         (lib_SOURCES): Add cycle-check.h.
53388         * modules/d-ino: New module.
53389         * modules/d-type: New module.
53390         * modules/error (Files): Remove m4/strerror_r.m4.
53391         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53392         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53393         m4/inttypes_h.m4, m4/uintmax_t.m4.
53394         (Depends-on): Add stdint.
53395         (lib_SOURCES): Add fsusage.h.
53396         * modules/getcwd (Files): Remove d-ino.m4.
53397         (Depends-on): Add d-ino.
53398         * modules/getndelim2 (Depends-on): Add stdint.
53399         * modules/glob (Files): Remove m4/d-type.m4.
53400         (Depends-on): Add d-type.
53401         * modules/host-os: New module.
53402         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53403         m4/inttypes_h.m4, m4/uintmax_t.m4.
53404         * Depends-on: Add stdint.
53405         (lib_SOURCES): Add human.h.
53406         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53407         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53408         m4/uintmax_t.m4, m4/ulonglong.m4.
53409         (Depends-on): Add stdint.
53410         (EXTRA_DIST): Add inttostr.h.
53411         * modules/lchmod: New module.
53412         * modules/link-follow: New module.
53413         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53414         (Depends-on): Add lchmod.
53415         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53416         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53417         (Depends-on): Add stdint.
53418         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53419         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53420         (Depends-on): Add stdint.
53421         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53422         * modules/perl: New module.
53423         * modules/regex (Depends-on): Add stdint.
53424         * modules/rmdir-errno: New module.
53425         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53426         m4/intmax_t.m4.
53427         (Depends-on): Add stdint.
53428         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53429         m4/uintmax_t.m4.
53430         (Depends-on): Add stdint.
53431         * modules/unlink-busy: New module.
53432         * modules/utimecmp (Depends-on): Add stdint.
53433         * modules/uptime: New module.
53434         * modules/winsz-ioctl: New module.
53435         * modules/winsz-termios: New module.
53436         * modules/xnanosleep (Depends-on): Add nanosleep.
53437         * modules/ullong_max: Remove.
53438         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53439         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53440         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53441         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53442         (Depends-on): Add inttypes.
53443         (lib_SOURCES): Add xstrtol.h.
53444         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53445         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53446         * MODULES.html.sh: Move 'assert' into the assert section.
53447         Move 'dummy' into the linking section.
53448         Remove ullong_max.
53449         Add section for compatibility checks for POSIX:2001 functions,
53450         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53451         winsz-ioctl, and winsz-termios into it.
53452         Add lchmod.
53453         Add top-level Misc section and put host-os, perl, and uptime
53454         into it.
53455
53456 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53459         now assume the stdint module.  Do not include inttypes.h.
53460         * lib/fsusage.h: Likewise.
53461         * lib/getndelim2.c: Likewise.
53462         * lib/human.h: Likewise.
53463         * lib/inttostr.h: Likewise.
53464         * lib/obstack.c: Likewise.
53465         * lib/regex_internal.h: Likewise.
53466         * lib/tempname.c: Likewise.
53467         * lib/utimecmp.c: Likewise.
53468         * lib/xstrtol.h: Likewise.
53469
53470         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
53471
53472         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
53473         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
53474         * lib/xtime.h: Likewise.
53475
53476 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * modules/openat (Files): Add lib/fchmodat.c.
53479         Fixes problem reported by Jay Youngman.
53480
53481 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
53484         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
53485
53486 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
53487             Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
53490         and is a script that invokes bison. Tighten the code. Add comments.
53491
53492 2006-08-18  Jim Meyering  <jim@meyering.net>
53493
53494         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
53495         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
53496         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
53497         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
53498
53499 2006-08-18  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/bison-i18n: New file.
53502         * MODULES.html.sh (Internationalization functions): Add it.
53503
53504 2006-08-18  Bruno Haible  <bruno@clisp.org>
53505
53506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
53507         sys/statvfs.h. When getmntinfo was found, check its declaration and
53508         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
53509
53510 2006-08-18  Bruno Haible  <bruno@clisp.org>
53511
53512         * m4/bison-i18n.m4: New file, from bison.
53513
53514 2006-08-18  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
53517         (ME_DUMMY): Treat "kernfs" as a dummy.
53518         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
53519
53520 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         Update from coreutils.
53523
53524         2006-08-15  Jim Meyering  <jim@meyering.net>
53525
53526         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
53527
53528         2006-01-17  Jim Meyering  <jim@meyering.net>
53529
53530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
53531
53532         2006-01-11  Jim Meyering  <jim@meyering.net>
53533
53534         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
53535         Check for the lchmod function.
53536
53537 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         Update from coreutils.
53540
53541         * lib/__fpending.h: Add copyright notice.
53542         * lib/fprintftime.h: Likewise.
53543         * lib/savedir.c: Use (C) in copyright notice.
53544         * lib/savedir.h: Likewise.
53545
53546         2006-08-15  Jim Meyering  <jim@meyering.net>
53547
53548         * lib/at-func.c: New file, with the logic of all emulated at-functions.
53549         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
53550         in support of the EXPECTED_ERRNO macro.
53551         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
53552         definitions.  Instead, define the appropriate symbols and include
53553         "at-func.c".
53554         * lib/mkdirat.c (mkdirat): Likewise.
53555         * lib/fchmodat.c (fchmodat): Likewise.
53556         (ENOSYS): Remove definition.
53557         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
53558         it.  Don't include "unistd--.h" -- it wasn't ever used.
53559
53560         2006-01-17  Jim Meyering  <jim@meyering.net>
53561
53562         Rewrite fts.c not to change the current working directory,
53563         by using openat, fstatat, fdopendir, etc..
53564
53565         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
53566         (HAVE_OPENAT_SUPPORT): Define.
53567         [_LIBC] (fchdir): Don't undef or define; no longer used.
53568         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
53569         Now, this `function' always succeeds, and consumes its file descriptor
53570         parameter -- so callers must not close such FDs.  Update callers.
53571         (diropen_fd, opendirat, cwd_advance_fd): New functions.
53572         (diropen): Add parameter, SP.  Adjust all callers.
53573         Implement using diropen_fd, rather than open.
53574         (fts_open): Initialize new member, fts_cwd_fd.
53575         Remove fts_rft-setting code.
53576         (fts_close): Close fts_cwd_fd, if necessary.
53577         (__opendir2): Define in terms of opendir or opendirat,
53578         depending on whether the FST_NOCHDIR flag is set.
53579         (fts_build): Since fts_safe_changedir consumes its FD, and since
53580         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
53581         and close the dup'd file descriptor upon failure.
53582         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
53583         (fts_safe_changedir): Tweak semantics to reflect that this function
53584         now calls cwd_advance_fd and hence consumes its FD argument.
53585         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
53586         [struct FTS] (fts_rft): Remove now-unused member.
53587         [struct FTS] (fts_cycle.state): Improve comment.
53588
53589         * lib/openat.c (openat_needs_fchdir): New function.
53590         * lib/openat.h (openat_needs_fchdir): Declare it.
53591
53592 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
53593
53594         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
53595         Problem and fix reported by Pádraig Brady in
53596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
53597
53598 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
53601
53602 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/memcoll.c (memcoll): Optimize for the common case where the
53605         arguments are bytewise equal.
53606
53607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53608
53609         * doc/regexprops-generic.texi: Add a copyright notice.
53610
53611 2006-08-15  Bruno Haible  <bruno@clisp.org>
53612
53613         * modules/tmpdir (License): Change to LGPL.
53614
53615 2006-08-15  Bruno Haible  <bruno@clisp.org>
53616
53617         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
53618         module.
53619
53620 2006-08-14  Simon Josefsson  <jas@extundo.com>
53621
53622         * config/srclist.txt: Add gnupload.
53623
53624 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         Change copyright notice from LGPL 2 to GPL 2, since that's the
53627         standard form used in the gnulib repository.
53628         * tests/test-lock.c: Likewise.
53629         * tests/test-stdint.c: Likewise.
53630         * tests/test-tls.c: Likewise.
53631
53632         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
53633         prelude-manager.  User shorter URLs for GNU projects, without '?'.
53634         Add copyright notice.
53635
53636         * check-module: Add copyright notice.  Output a copyright
53637         notice if "--version" is specified.
53638         * modules/COPYING: New file.
53639         * tests/test-getaddrinfo.c: Add copyright notice.
53640         * tests/test-verify.c: Likewise.
53641
53642 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         Change copyright notice from LGPL 2 to GPL 2, since that's the
53645         standard form used in the gnulib repository.
53646         * lib/lock.c: LGPL -> GPL.
53647         * lib/lock.h: Likewise.
53648         * lib/strnlen1.c: Likewise.
53649         * lib/strnlen1.h: Likewise.
53650         * lib/tls.c: Likewise.
53651         * lib/tls.h: Likewise.
53652         * lib/tmpdir.c: Likewise.
53653
53654         * lib/TODO: Remove; this belongs only in coreutils.
53655
53656 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         Add copyright notices to long-enough files that lack them, since
53659         otherwise the files aren't clearly free.  Use the same notice that
53660         getdate.texi already uses.
53661         * doc/alloca-opt.texi: Add copyright notice.
53662         * doc/alloca.texi: Likewise.
53663         * doc/ctime.texi: Likewise.
53664         * doc/functions.texi: Likewise.
53665         * doc/gcd.texi: Likewise.
53666         * doc/gnulib-tool.texi: Likewise.
53667         * doc/inet_ntoa.texi: Likewise.
53668         * doc/visibility.texi: Likewise.
53669
53670         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
53671         * doc/quote.texi: Add copyright notice.
53672
53673         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
53674         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
53675         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
53676         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
53677         is now obsolete, and give a pointer to the Sun list.
53678         Add copyright notice.
53679
53680 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * config/srclistvars.sh: Add copyright notice.
53683
53684 2006-08-14  Eric Blake  <ebb9@byu.net>
53685
53686         Import the following change from libc:
53687
53688         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
53689
53690         Upstream bug 2997.
53691         * lib/misc/error.c: Add space between program name and message if file
53692         name is missing.
53693
53694 2006-08-12  Karl Berry  <karl@gnu.org>
53695
53696         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
53697         remove, these originate in gnulib now.
53698
53699 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53700
53701         * doc/Makefile (standards.info standards.html standards.dvi):
53702         Also depend on make-stds.texi.
53703
53704 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
53707         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
53708
53709         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
53710         in wchar_t.  Problem reported by Eric Blake.
53711
53712         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
53713         LEN is smaller than SIZE.  Suggested by Bruno Haible.
53714         Also, help the compiler to keep LEN in a register.
53715
53716 2006-08-11  Eric Blake  <ebb9@byu.net>
53717
53718         * users.txt: Sort.  Add tar.
53719
53720 2006-08-11  Bruno Haible  <bruno@clisp.org>
53721
53722         * users.txt: New file.
53723
53724 2006-08-11  Bruno Haible  <bruno@clisp.org>
53725
53726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
53727         before <wchar.h>. Needed for OSF/1 and BSD/OS.
53728
53729 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         * modules/snprintf (Depends-on): Remove minmax.
53732         (Maintainer): Add self and Bruno.
53733
53734 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         * lib/.cppi-disable: Add snprintf.h, socket_.h.
53737         * lib/snprintf.c: Include <errno.h> and <limits.h>.
53738         (EOVERFLOW): Define if the system does not.
53739         Do not include "minmax.h"; it wasn't used.
53740         (snprintf): Don't assume size_t promotes to an unsigned type.
53741         Fix bug when generated string was too long for the buffer: the
53742         buffer's contents are supposed to be the initial prefix of the
53743         output.  Don't assume vasnprintf returns EOVERFLOW if the size
53744         exceeds INT_MAX; do the check ourselves.
53745
53746         Import the following changes from libc:
53747
53748         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
53749
53750         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
53751         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
53752         set wc to the byte which couldn't be converted.
53753         (re_string_reconstruct): Don't clear valid_raw_len before calling
53754         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
53755         tip_context using re_string_context_at.
53756
53757         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
53758
53759         * lib/posix/regex.h: g++ still cannot handled [restrict].
53760
53761         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
53762
53763         * lib/posix/regex.h: Remove special handling for VMS.
53764
53765 2006-08-10  Jim Meyering  <jim@meyering.net>
53766
53767         * modules/same-inode: New module.
53768         * modules/dev-ino: New module.
53769         * modules/cycle-check: Depend on these modules, rather than simply
53770         including their .h files.
53771         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
53772         required via m4/cycle-check.m4.
53773         * modules/same: Depend on new same-inode module, rather than
53774         including same-inode.h.
53775         * modules/chdir-safer: New file.
53776
53777         * modules/chown (Depends-on): Add stat-macros.
53778
53779 2006-08-10  Jim Meyering  <jim@meyering.net>
53780
53781         * m4/cycle-check.m4: New file.
53782         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
53783         * m4/dev-ino.m4, m4/same-inode.m4: New files.
53784
53785 2006-08-10  Eric Blake  <ebb9@byu.net>
53786
53787         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
53788         in from original proposal.
53789
53790 2006-08-10  Eric Blake  <ebb9@byu.net>
53791         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53792
53793         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
53794         namespace.
53795
53796 2006-08-10  Bruno Haible  <bruno@clisp.org>
53797
53798         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
53799         as well.
53800
53801 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53802
53803         Sync from coreutils.
53804
53805         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
53806
53807         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
53808         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
53809
53810 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53811
53812         * modules/restrict: Remove; no longer needed now that we assume
53813         Autoconf 2.59 or later.
53814         * MODULES.html.sh: Remove 'restrict'.
53815         * modules/argp (Depends-on): Remove 'restrict'.
53816         * modules/base64 (Depends-on): Likewise.
53817         * modules/gc (Depends-on): Likewise.
53818         * modules/getaddrinfo (Depends-on): Likewise.
53819         * modules/glob (Depends-on): Likewise.
53820         * modules/inet_ntop (Depends-on): Likewise.
53821         * modules/inet_pton (Depends-on): Likewise.
53822         * modules/memxor (Depends-on): Likewise.
53823         * modules/regex (Depends-on): Likewise.
53824         * modules/strtok_r (Depends-on): Likewise.
53825         * modules/time_r (Depends-on): Likewise.
53826
53827 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53828
53829         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
53830         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
53831         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53832         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
53833         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53834         * m4/memxor.m4 (gl_MEMXOR): Likewise.
53835         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
53836         gl_C_RESTRICT replaced by AC_C_RESTRICT.
53837
53838         Merge from coreutils.
53839         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
53840         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
53841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53842         * m4/time_r.m4 (gl_TIME_R): Likewise.
53843
53844 2006-08-09  Karl Berry  <karl@gnu.org>
53845
53846         * config/srclist.txt: no more gettext-tools, per Bruno.
53847
53848 2006-08-08  Eric Blake  <ebb9@byu.net>
53849
53850         * modules/verror: New module.
53851         * MODULES.html.sh: Document it.
53852
53853 2006-08-08  Eric Blake  <ebb9@byu.net>
53854
53855         * lib/verror.h, lib/verror.c: New files.
53856
53857 2006-08-08  Eric Blake  <ebb9@byu.net>
53858
53859         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
53860         verror_at_line output complies with GNU Coding Standards even when
53861         file is NULL.
53862
53863 2006-08-07  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
53866         versions of AIX.
53867         Reported by Ralf Wildenhues.
53868
53869 2006-08-07  Bruno Haible  <bruno@clisp.org>
53870
53871         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
53872         in an AC_DEFUN. Needed so that the autoconf snippets can use
53873         AC_REQUIRE.
53874
53875 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53876
53877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53878         Initialize pkgdata_DATA.
53879         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
53880         overriding it.
53881
53882 2006-08-06  Eric Blake  <ebb9@byu.net>
53883
53884         * lib/error.h: Fold in some upstream changes from glibc.
53885         * lib/error.c: Likewise.
53886
53887 2006-08-04  Bruno Haible  <bruno@clisp.org>
53888
53889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53890         Make the mostlyclean-local rule depend on mostlyclean-generic.
53891         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
53892
53893 2006-07-31  Bruno Haible  <bruno@clisp.org>
53894
53895         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
53896         <stdlib.h>, <string.h>.
53897
53898 2006-07-30  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/readlink (License): Change to LGPL.
53901
53902 2006-07-30  Bruno Haible  <bruno@clisp.org>
53903
53904         * modules/javaversion (Makefile.am): Distribute javaversion.java and
53905         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
53906         set PKGDATADIR to point to it.
53907
53908 2006-07-30  Bruno Haible  <bruno@clisp.org>
53909
53910         * modules/csharpexec (configure.ac): Comment out macro invocation.
53911         * modules/javaexec (configure.ac): Likewise.
53912         * modules/javacomp-script (configure.ac): Likewise.
53913
53914         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
53915
53916 2006-07-30  Bruno Haible  <bruno@clisp.org>
53917
53918         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
53919         linked-list.
53920
53921 2006-07-30  Bruno Haible  <bruno@clisp.org>
53922
53923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
53924
53925 2006-07-30  Bruno Haible  <bruno@clisp.org>
53926
53927         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53928         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
53929         get removed.
53930
53931 2006-07-29  Bruno Haible  <bruno@clisp.org>
53932
53933         Make it possible for gnulib-tool to work with locally modified or
53934         augmented gnulib repositories.
53935         * gnulib-tool (func_usage): Document --local-dir option.
53936         (local_gnulib_dir): New variable.
53937         Handle --local-dir option.
53938         (func_lookup_file): New function.
53939         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
53940         (func_get_description, func_get_filelist, func_get_description,
53941         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
53942         func_get_automake_snippet, func_get_include_directive,
53943         func_get_license, func_get_maintainer): Use func_lookup_file.
53944         (func_import, func_create_testdir): Use func_lookup_file.
53945
53946 2006-07-29  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/setenv (Depends-on): Add unistd.
53949
53950 2006-07-29  Bruno Haible  <bruno@clisp.org>
53951
53952         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
53953
53954 2006-07-29  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
53957
53958 2006-07-29  Bruno Haible  <bruno@clisp.org>
53959
53960         * gnulib-tool (import, update): If there is no Makefile.am, look at
53961         aclocal.m4, instead of bailing out.
53962
53963 2006-07-29  Bruno Haible  <bruno@clisp.org>
53964
53965         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
53966         Categorize the options by when they are useful.
53967
53968 2006-07-29  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (func_usage): Document option --no-libtool.
53971         Handle option --no-libtool.
53972         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
53973         for changed semantics of $libtool variable.
53974         (func_import): Likewise. If libtool is not used, show this through
53975         an option --no-libtool.
53976         (func_create_testdir): Update.
53977
53978 2006-07-29  Bruno Haible  <bruno@clisp.org>
53979
53980         * gnulib-tool (func_import): Extend error message about missing
53981         --doc-base.
53982
53983 2006-07-29  Bruno Haible  <bruno@clisp.org>
53984
53985         * gnulib-tool (func_import): Don't create the $docbase directory if
53986         there is no file to store there.
53987
53988 2006-07-29  Bruno Haible  <bruno@clisp.org>
53989
53990         * gnulib-tool (autoconf_minversion): If a --dir option is given and
53991         relevant, look for configure.ac there, not in the current directory.
53992         Also use a simple search for AC_PREREQ, not "autoconf --trace".
53993
53994 2006-07-29  Bruno Haible  <bruno@clisp.org>
53995
53996         * gnulib-tool (SORT): New variable.
53997         (func_usage): Undocument --assume-autoconf option.
53998         Remove --assume-autoconf option handling.
53999         (autoconf_minversion): Determine from the contents of configure.ac.
54000         (func_import): Remove autoconf_minversion handling.
54001         Suggested by Eric Blake.
54002
54003 2006-07-29  Bruno Haible  <bruno@clisp.org>
54004
54005         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54006
54007 2006-07-29  Bruno Haible  <bruno@clisp.org>
54008
54009         * config/srclist.txt (*setenv.[ch]): Remove rules.
54010
54011 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54012
54013         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54014
54015 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54016
54017         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54018         arpa/inet.h.
54019
54020 2006-07-28  Simon Josefsson  <jas@extundo.com>
54021
54022         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54023         * modules/inet_pton (Depends-on): Likewise.
54024
54025 2006-07-28  Simon Josefsson  <jas@extundo.com>
54026
54027         * m4/netinet_in_h.m4: New file.
54028
54029 2006-07-28  Simon Josefsson  <jas@extundo.com>
54030
54031         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54032         #include's.
54033
54034 2006-07-28  Simon Josefsson  <jas@extundo.com>
54035
54036         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54037         #include's.
54038
54039 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54040
54041         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54042         setgid on directories only if they set these bits.
54043         * lib/modechange.h: Remove obsolete comment about masks.
54044
54045 2006-07-28  Eric Blake  <ebb9@byu.net>
54046
54047         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54048         macro expansion.
54049
54050 2006-07-28  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54053
54054 2006-07-28  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54057
54058 2006-07-28  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54061         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54062         Define fallbacks.
54063         Avoids link error on FreeBSD 4.x.
54064         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54065
54066         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54067         encoding.
54068         * lib/mbswidth.c (iswcntrl): Likewise.
54069
54070 2006-07-27  Bruno Haible  <bruno@clisp.org>
54071
54072         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54073         test.
54074
54075 2006-07-27  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54078         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54079         defined.
54080
54081 2006-07-26  Eric Blake  <ebb9@byu.net>
54082
54083         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54084
54085 2006-07-26  Eric Blake  <ebb9@byu.net>
54086
54087         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54088         like mingw that lack mkstemp.
54089         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54090         avoid compilation warning on mingw.
54091
54092 2006-07-26  Bruno Haible  <bruno@clisp.org>
54093
54094         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54095         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54096         INT_FAST*_MIN, INTPTR_MIN.
54097
54098 2006-07-25  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/version-etc (Depends-on): Add stdarg.
54101
54102 2006-07-25  Bruno Haible  <bruno@clisp.org>
54103
54104         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54105         complex commands.
54106
54107 2006-07-25  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54110         defined in <stdarg.h> or config.h.
54111
54112 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54115         (gl_STDIO_SAFER): Remove.
54116
54117 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         * MODULES.html.sh (File stream based Input/Output):
54120         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54121         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54122         * modules/fopen-safer, modules/tmpfile-safer: New files.
54123         * modules/stdio-safer: Remove.
54124
54125 2006-07-24  Bruno Haible  <bruno@clisp.org>
54126
54127         * modules/tmpdir: New file.
54128         * MODULES.html.sh (File system functions): Add it.
54129
54130 2006-07-24  Bruno Haible  <bruno@clisp.org>
54131
54132         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54133         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54134
54135 2006-07-24  Bruno Haible  <bruno@clisp.org>
54136
54137         * modules/clean-temp: New file.
54138
54139 2006-07-24  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/tmpdir.m4: New file, from GNU gettext.
54142
54143 2006-07-24  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/tmpdir.h: New file, from GNU gettext.
54146         * lib/tmpdir.c: New file, from GNU gettext.
54147
54148 2006-07-24  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/clean-temp.h: New file, from GNU gettext.
54151         * lib/clean-temp.c: New file, from GNU gettext.
54152
54153 2006-07-23  Eric Blake  <ebb9@byu.net>
54154
54155         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54156         (Depends-on): Add binary-io.
54157
54158 2006-07-23  Eric Blake  <ebb9@byu.net>
54159
54160         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54161
54162 2006-07-23  Eric Blake  <ebb9@byu.net>
54163
54164         * lib/tmpfile-safer.c: New file.
54165         * lib/stdio-safer.h (fopen_safer): Add prototype.
54166         * lib/stdio--.h (tmpfile): Make safer.
54167
54168 2006-07-23  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54171         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54172         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54173         gl_linked_remove_at): Use it.
54174
54175 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54176         and Simon Josefsson <jas@extundo.com>
54177
54178         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54179
54180         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54181
54182 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54183
54184         * modules/close-stream: New file.
54185         * modules/closeout (Description): Make it clear that it exits
54186         with a diagnostic on error.
54187         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54188         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54189
54190 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * m4/close-stream.m4: New file.
54193
54194 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         * lib/close-stream.c, lib/close-stream.h: New files.
54197
54198 2006-07-22  Bruno Haible  <bruno@clisp.org>
54199
54200         Merge from GNU gettext 0.15.
54201
54202         2006-05-01  Bruno Haible  <bruno@clisp.org>
54203
54204                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54205
54206         2006-07-22  Bruno Haible  <bruno@clisp.org>
54207
54208                 * modules/javaversion: New file.
54209                 * MODULES.html.sh (Java): Add javaversion.
54210
54211         2006-03-12  Bruno Haible  <bruno@clisp.org>
54212
54213                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54214
54215         2005-12-04  Bruno Haible  <bruno@clisp.org>
54216
54217                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54218                 (untested).
54219
54220         2006-06-21  Bruno Haible  <bruno@clisp.org>
54221
54222                 Avoid warnings from recent versions of mcs.
54223                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54224                 -o, -L, -r any more. Use options documented since mcs-1.0
54225                 instead. Similarly for -g.
54226
54227         2005-12-04  Bruno Haible  <bruno@clisp.org>
54228
54229                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54230                 .resources, not .resource.
54231
54232         2005-07-09  Bruno Haible  <bruno@clisp.org>
54233
54234                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54235                 add a .dll suffix.
54236                 Reported by Mark Junker <mjscod@gmx.de>.
54237
54238         2006-07-22  Bruno Haible  <bruno@clisp.org>
54239
54240                 * modules/gettext: Upgrade to gettext-0.15.
54241                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54242                 m4/visibility.m4.
54243                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54244
54245 2006-07-22  Bruno Haible  <bruno@clisp.org>
54246
54247         Merge from GNU gettext 0.15.
54248
54249         2006-03-25  Bruno Haible  <bruno@clisp.org>
54250
54251                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54252
54253         2006-07-21  Bruno Haible  <bruno@clisp.org>
54254
54255                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54256                 "1.1".
54257
54258         2006-05-09  Bruno Haible  <bruno@clisp.org>
54259
54260                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54261                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54262                 for the conftestver execution.
54263
54264         2006-05-01  Bruno Haible  <bruno@clisp.org>
54265
54266                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54267                 optional target-version argument. Verify that the compiler
54268                 groks source of the specified source-version, or add -source
54269                 option as necessary. Verify that the compiler produces
54270                 bytecode in the specified target-version, or add -target and
54271                 -source options as necessary. Make the result of the test
54272                 available as variable CONF_JAVAC. Also log error output in
54273                 config.log.
54274
54275         2006-03-11  Bruno Haible  <bruno@clisp.org>
54276
54277                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54278
54279         2006-05-09  Bruno Haible  <bruno@clisp.org>
54280
54281                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54282                 CLASSPATH_SEPARATOR to a semicolon.
54283
54284         2006-03-12  Bruno Haible  <bruno@clisp.org>
54285
54286                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54287                 available as variable CONF_JAVA, for subsequent autoconf
54288                 tests. Also log error output in config.log.
54289
54290         2006-07-19  Bruno Haible  <bruno@clisp.org>
54291
54292                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54293                 that getline works on glibc2 systems. Needed to avoid trouble
54294                 in relocatable.c.
54295                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54296
54297         2005-12-04  Bruno Haible  <bruno@clisp.org>
54298
54299                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54300                 launcher (untested).
54301
54302         2005-12-04  Bruno Haible  <bruno@clisp.org>
54303
54304                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54305
54306         2006-07-22  Bruno Haible  <bruno@clisp.org>
54307
54308                 * gettext.m4: Update from GNU gettext-0.15.
54309                 * nls.m4: Likewise.
54310                 * po.m4: Likewise.
54311                 * inttypes-pri.m4: Likewise.
54312                 * inttypes-h.m4: Renamed from inttypes.m4.
54313                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54314
54315 2006-07-22  Bruno Haible  <bruno@clisp.org>
54316
54317         Merge from GNU gettext 0.15.
54318
54319         2005-07-05  Bruno Haible  <bruno@clisp.org>
54320
54321                 * printf-args.c (printf_fetchargs): Work around broken
54322                 definition of wint_t on mingw.
54323
54324         2005-02-12  Bruno Haible  <bruno@clisp.org>
54325
54326                 * xallocsa.h: Add extern "C" for C++.
54327
54328         2006-05-17  Bruno Haible  <bruno@clisp.org>
54329
54330                 Cygwin portability.
54331                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54332
54333         2006-04-30  Bruno Haible  <bruno@clisp.org>
54334
54335                 * progreloc.c: Include <mach-o/dyld.h> if available.
54336                 (find_executable): Use _NSGetExecutablePath when possible.
54337
54338         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54339
54340                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54341                 function.
54342
54343         2005-12-29  Bruno Haible  <bruno@clisp.org>
54344
54345                 * progreloc.c (set_program_name_and_installdir): Fix
54346                 compilation error.
54347
54348         2005-12-04  Bruno Haible  <bruno@clisp.org>
54349
54350                 Cygwin portability.
54351                 * progreloc.c: Include <windows.h> also on Cygwin.
54352                 (find_executable): Add support for Cygwin.
54353                 (set_program_name_and_installdir): Handle also platforms with
54354                 nonempty EXEEXT.
54355
54356         2006-07-11  Bruno Haible  <bruno@clisp.org>
54357
54358                 * javacomp.c: Fix a comment.
54359                 Reported by Jim Meyering.
54360
54361         2006-04-30  Bruno Haible  <bruno@clisp.org>
54362
54363                 * javacomp.h (compile_java_class): Add source_version,
54364                 target_version arguments.
54365                 * javacomp.c: Rewritten to choose only a compiler that
54366                 respects the specified source_version and target_version.
54367
54368         2006-06-27  Bruno Haible  <bruno@clisp.org>
54369
54370                 Assume correct S_ISDIR macro.
54371                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54372
54373         2006-07-22  Bruno Haible  <bruno@clisp.org>
54374
54375                 * javaversion.h: New file, from GNU gettext.
54376                 * javaversion.c: New file, from GNU gettext.
54377                 * javaversion.java: New file, from GNU gettext.
54378                 * javaversion.class: New file, from GNU gettext.
54379
54380         2006-05-17  Bruno Haible  <bruno@clisp.org>
54381
54382                 Cygwin portability.
54383                 * javaexec.c (execute_java_class): Test for jview program
54384                 also on Cygwin.
54385
54386         2006-04-09  Bruno Haible  <bruno@clisp.org>
54387
54388                 * fatal-signal.c: Don't include string.h.
54389                 (at_fatal_signal): Use a copying loop instead of memcpy.
54390
54391         2005-12-04  Bruno Haible  <bruno@clisp.org>
54392
54393                 * csharpexec.c: Add support for 'clix' launcher (untested).
54394                 (execute_csharp_using_sscli): New function.
54395                 (execute_csharp_program): Call it.
54396
54397         2006-06-21  Bruno Haible  <bruno@clisp.org>
54398
54399                 Avoid warnings from recent versions of mcs.
54400                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54401                 -o, -L, -r any more. Use options documented since mcs-1.0
54402                 instead. Similarly for -g.
54403
54404         2005-07-09  Bruno Haible  <bruno@clisp.org>
54405
54406                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54407                 add a .dll suffix.
54408                 Reported by Mark Junker <mjscod@gmx.de>.
54409
54410         2006-06-17  Bruno Haible  <bruno@clisp.org>
54411
54412                 * config.charset: Update for NetBSD 3.0.
54413
54414         2006-05-17  Bruno Haible  <bruno@clisp.org>
54415
54416                 Cygwin portability.
54417                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54418
54419         2006-05-16  Bruno Haible  <bruno@clisp.org>
54420
54421                 * localcharset.c [CYGWIN]: Include <windows.h>.
54422                 (get_charset_aliases): For Cygwin, return the same CPxxx
54423                 aliases list as under WIN32.
54424                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54425                 the environment variables. Fall back to GetACP().
54426
54427         2006-04-05  Bruno Haible  <bruno@clisp.org>
54428
54429                 * config.charset: Update Juan Manuel Guerrero's address.
54430
54431         2005-02-12  Bruno Haible  <bruno@clisp.org>
54432
54433                 * allocsa.h: Add extern "C" for C++.
54434
54435         2005-02-10  Bruno Haible  <bruno@clisp.org>
54436
54437                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54438                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54439
54440         2006-07-22  Bruno Haible  <bruno@clisp.org>
54441
54442                 * gettext.h: Update to GNU gettext-0.15.
54443
54444 2006-07-22  Bruno Haible  <bruno@clisp.org>
54445
54446         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54447         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54448         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54449
54450 2006-07-21  Eric Blake  <ebb9@byu.net>
54451
54452         * modules/stdlib-safer: New file.
54453         * MODULES.html.sh (File stream based Input/Output): Add
54454         stdlib-safer.
54455
54456 2006-07-21  Eric Blake  <ebb9@byu.net>
54457
54458         * lib/stdlib-safer.h: New file from coreutils, required by
54459         stdlib--.h.
54460
54461 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54462
54463         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54464
54465 2006-07-20  Bruno Haible  <bruno@clisp.org>
54466
54467         * gnulib-tool: Recognize new option --assume-autoconf.
54468         (autoconf_minversion): New variable.
54469         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
54470
54471 2006-07-20  Bruno Haible  <bruno@clisp.org>
54472
54473         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
54474
54475 2006-07-19  Derek R. Price  <derek@ximbiot.com>
54476
54477         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
54478         Reindent and repaginate.
54479
54480 2006-07-19  Derek Price  <derek@ximbiot.com>
54481
54482         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
54483         Correct grammar.
54484
54485 2006-07-17  Bruno Haible  <bruno@clisp.org>
54486
54487         * modules/list: New file.
54488         * modules/array-list: New file.
54489         * modules/carray-list, modules/carray-list-tests: New files.
54490         * modules/linked-list, modules/linked-list-tests: New files.
54491         * modules/avltree-list, modules/avltree-list-tests: New files.
54492         * modules/rbtree-list, modules/rbtree-list-tests: New files.
54493         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
54494         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
54495         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
54496         * modules/oset: New file.
54497         * modules/array-oset: New file.
54498         * modules/avltree-oset, modules/avltree-oset-tests: New files.
54499         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
54500         * tests/test-carray_list.c: New file.
54501         * tests/test-linked_list.c: New file.
54502         * tests/test-avltree_list.c: New file.
54503         * tests/test-rbtree_list.c: New file.
54504         * tests/test-linkedhash_list.c: New file.
54505         * tests/test-avltreehash_list.c: New file.
54506         * tests/test-rbtreehash_list.c: New file.
54507         * tests/test-avltree_oset.c: New file.
54508         * tests/test-rbtree_oset.c: New file.
54509         * MODULES.html.sh (Container data structures): New section.
54510
54511 2006-07-17  Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/gl_list.m4: New file.
54514
54515 2006-07-17  Bruno Haible  <bruno@clisp.org>
54516
54517         * lib/gl_list.h: New file.
54518         * lib/gl_list.c: New file.
54519         * lib/gl_array_list.h: New file.
54520         * lib/gl_array_list.c: New file.
54521         * lib/gl_carray_list.h: New file.
54522         * lib/gl_carray_list.c: New file.
54523         * lib/gl_linked_list.h: New file.
54524         * lib/gl_linked_list.c: New file.
54525         * lib/gl_anylinked_list1.h: New file.
54526         * lib/gl_anylinked_list2.h: New file.
54527         * lib/gl_avltree_list.h: New file.
54528         * lib/gl_avltree_list.c: New file.
54529         * lib/gl_anyavltree_list1.h: New file.
54530         * lib/gl_anyavltree_list2.h: New file.
54531         * lib/gl_rbtree_list.h: New file.
54532         * lib/gl_rbtree_list.c: New file.
54533         * lib/gl_anyrbtree_list1.h: New file.
54534         * lib/gl_anyrbtree_list2.h: New file.
54535         * lib/gl_anytree_list1.h: New file.
54536         * lib/gl_anytree_list2.h: New file.
54537         * lib/gl_linkedhash_list.h: New file.
54538         * lib/gl_linkedhash_list.c: New file.
54539         * lib/gl_anyhash_list1.h: New file.
54540         * lib/gl_anyhash_list2.h: New file.
54541         * lib/gl_avltreehash_list.h: New file.
54542         * lib/gl_avltreehash_list.c: New file.
54543         * lib/gl_rbtreehash_list.h: New file.
54544         * lib/gl_rbtreehash_list.c: New file.
54545         * lib/gl_anytreehash_list1.h: New file.
54546         * lib/gl_anytreehash_list2.h: New file.
54547
54548         * lib/gl_oset.h: New file.
54549         * lib/gl_oset.c: New file.
54550         * lib/gl_array_oset.h: New file.
54551         * lib/gl_array_oset.c: New file.
54552         * lib/gl_avltree_oset.h: New file.
54553         * lib/gl_avltree_oset.c: New file.
54554         * lib/gl_rbtree_oset.h: New file.
54555         * lib/gl_rbtree_oset.c: New file.
54556         * lib/gl_anytree_oset.h: New file.
54557
54558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * m4/mkancesdirs.m4: New file.
54561         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
54562         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
54563         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
54564         it.
54565
54566 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
54569         * lib/mkancesdirs.h: New files.
54570         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
54571         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
54572         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
54573         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
54574         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
54575         callers changed.  Revamp internals significantly, by not
54576         attempting to create directories that are temporarily more
54577         permissive than the final results.  Do not attempt to use
54578         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
54579         This removes some race conditions, fixes some bugs, and simplifies
54580         things.  Use new dirchownmod function to do owner and mode changes.
54581         * lib/mkdir-p.h: Likewise.
54582         * lib/modechange.c (octal_to_mode): New function.
54583         (struct mode_change): New member mentioned.
54584         (make_node_op_equals): New arg mentioned.  All callers changed.
54585         (mode_compile): Keep track of which mode bits the user has explicitly
54586         mentioned.
54587         (mode_adjust): New arg DIR, so that we implement the X op correctly.
54588         New arg PMODE_BITS, to keep track of which mode bits the user
54589         mentioned; it treats S_ISUID and S_ISGID speciall.
54590         All callers changed.
54591         * lib/modechange.h: Likewise.
54592
54593 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * MODULES.html.sh: Add mkancestors.
54596         * modules/mkancesdirs: New module.
54597         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
54598         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
54599         The chdir-safer and afs files are now orphans; I'll remove them
54600         unless someone speaks up.
54601         Add lib/dirchownmod.c, lib/dirchownmod.h.
54602         (Depends-on): Remove alloca, chown, save-cwd, dirname.
54603         Add lchown, mkancesdirs.
54604         (Maintainer): Add self.
54605
54606 2006-07-15  Karl Berry  <karl@gnu.org>
54607
54608         * gnulib-tool: help message wording/arrangement.
54609
54610 2006-07-14  Simon Josefsson  <jas@extundo.com>
54611
54612         * doc/gnulib.texi (Libtool and Windows): New section.
54613
54614 2006-07-12  Simon Josefsson  <jas@extundo.com>
54615
54616         * modules/gendocs (License): Fix license, approved by Karl.
54617
54618 2006-07-12  Eric Blake  <ebb9@byu.net>
54619
54620         * MODULES.html.sh: Add gendocs.
54621
54622 2006-07-11  Eric Blake  <ebb9@byu.net>
54623
54624         * modules/fdl: New module, to install doc/fdl.texi.
54625         * MODULES.html.sh: Add new section for documentation modules.
54626         * gnulib-tool: Avoid space-tab.
54627         (--doc-base): New option, to manage files from doc.
54628
54629 2006-07-11  Eric Blake  <ebb9@byu.net>
54630
54631         * m4/absolute-header.m4: Fix comments to match recent change.
54632
54633 2006-07-11  Eric Blake  <ebb9@byu.net>
54634
54635         * gnulib-tool: List --doc-base before --tests-base.
54636
54637 2006-07-11  Derek R. Price  <derek@ximbiot.com>
54638
54639         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
54640
54641 2006-07-11  Bruno Haible  <bruno@clisp.org>
54642
54643         * README: Mention where to put documentation.
54644
54645 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54646
54647         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
54648
54649 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
54652         to stdint.m4.
54653
54654 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
54657         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
54658         "no/such/file/stdint.h" when there is no such file, so that
54659         the resulting C code can be parsed by dodgy compilers.
54660         Problems reported by Bob Proulx.
54661
54662 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54663
54664         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
54665         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54666         macros into the GNU _D_EXACT_NAMLEN.
54667         * lib/savedir.c:  Likewise.
54668         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
54669
54670 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54671         and Paul Eggert  <eggert@cs.ucla.edu>
54672
54673         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
54674         * m4/savedir.m4:
54675         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54676         macros into the GNU _D_EXACT_NAMLEN.
54677
54678 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
54681         around the absolute name, to work around a problem with the HP-UX
54682         11.23 native C compiler, reported by Bob Proulx.
54683
54684 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * doc/maintain.texi, make-stds.texi: Sync from
54687         <http://savannah.gnu.org/projects/gnustandards>.
54688
54689 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
54692
54693 2006-07-09  Jim Meyering  <jim@meyering.net>
54694
54695         * m4/glob.m4: Remove a doubled word in a comment.
54696
54697 2006-07-09  Jim Meyering  <jim@meyering.net>
54698
54699         * lib/argp-pv.c: Remove a doubled word in a comment.
54700         * lib/check-version.c (check_version): Likewise.
54701         * lib/javacomp.c (compile_java_class): Likewise.
54702
54703 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
54706         for the benefit of people using Autoconf 2.60.  If you want to
54707         support older Autoconf versions you can copy m4/onceonly_2_57.m4
54708         (or m4/onceonly.m4, if pre-2.57) manually.
54709
54710 2006-07-08  Jim Meyering  <jim@meyering.net>
54711
54712         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
54713         comment.
54714         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
54715         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
54716         comment.
54717
54718 2006-07-08  Jim Meyering  <jim@meyering.net>
54719
54720         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
54721
54722 2006-07-07  Simon Josefsson  <jas@extundo.com>
54723
54724         * tests/test-crc.c: Change expected crc value, the test vector
54725         were probably computed using the old broken crc.c?
54726
54727 2006-07-06  Simon Josefsson  <jas@extundo.com>
54728
54729         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
54730         now the canonical place for the M4 file).
54731
54732         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
54733         from the sys_socket dependency now.
54734
54735         * modules/inet_pton (Files): Ditto.
54736
54737         * modules/inet_ntop (Files): Ditto.
54738
54739 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54740
54741         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
54742         not gl_PREREQ_GETUSERSHELL.
54743
54744 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54745
54746         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
54747         with only one argument, for Autoconf 2.60.
54748         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
54749         expand to nothing, so add a shell command to avoid syntax error.
54750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54751
54752 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54753
54754         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
54755
54756 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
54759         no longer needed.  Check for isblank decl.
54760         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
54761         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
54762         of existence.
54763
54764 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54765
54766         * lib/getloadavg.c: Use __VMS, not VMS.
54767         * lib/getopt.c: Likewise.
54768         * lib/getpagesize.h: Likewise.
54769         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
54770         and probably does not work.
54771
54772 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         * lib/.cppi-disable: Add wcwidth.
54775         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
54776         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
54777         (ISGRAPH): Remove.  All uses changed to isgraph.
54778         (FOLD) [!defined _LIBC]: Remove special case.
54779         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
54780         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
54781         HAVE_ISBLANK.
54782         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
54783         case.
54784
54785 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54786
54787         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
54788         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
54789         brackets.  Other minor changes to suppress some compiler
54790         warnings.
54791
54792 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54793         and Paul Eggert  <eggert@cs.ucla.edu>
54794
54795         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
54796         of invoking obsolescent AC_HEADER_DIRENT macro.
54797         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54798         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
54799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
54800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54801         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
54802         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54803         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
54804         * m4/readdir.m4: Remove; no longer needed.
54805
54806 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54807         and Paul Eggert  <eggert@cs.ucla.edu>
54808
54809         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
54810         Don't worry about this obsolete case any more.
54811         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
54812         directories.
54813         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
54814         worry about this obsolete case any more.
54815         * lib/fts.c: Likewise.
54816         * lib/getcwd.c: Likewise.
54817         * lib/glob.h: Likewise.
54818         * lib/savedir.c: Likewise.
54819
54820 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54821
54822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
54823         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
54824         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
54825         needed.
54826         All uses removed.
54827         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54828         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54829         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
54830         needed.
54831         * m4/getdate.m4 (gl_GETDATE): Likewise.
54832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54833         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54834         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54835         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54836         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54838         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
54839         needed.
54840
54841 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54842
54843         * lib/memcasecmp.c: Include <limits.h>.
54844         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
54845         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
54846         Don't assume isdigit succeeds only on '0' through '9'.
54847
54848 2006-07-05  Eric Blake  <ebb9@byu.net>
54849
54850         * modules/getaddrinfo (Depends-on): Add snprintf.
54851
54852 2006-07-05  Eric Blake  <ebb9@byu.net>
54853
54854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
54855         to avoid 'header present but could not be compiled' on cygwin.
54856
54857 2006-07-05  Eric Blake  <ebb9@byu.net>
54858
54859         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
54860         missing from netdb.h.
54861         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
54862
54863 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54864
54865         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
54866         no longer needed.
54867         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
54868         * m4/getdate.m4 (gl_GETDATE): Likewise.
54869         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54870         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54871         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54872         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54873         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54874
54875 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54876
54877         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
54878         All uses of is_space replaced by isspace.
54879         * lib/exit.h: Don't talk about STDC_HEADERS.
54880         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
54881         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
54882         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
54883         replaced by isprint etc.
54884         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
54885         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54886         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
54887         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
54888         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
54889         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54890
54891 2006-07-05  Bruno Haible  <bruno@clisp.org>
54892
54893         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
54894         the function exists, before testing against AIX.
54895         Reported by Martin Lambers <marlam@marlam.de>.
54896
54897 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
54900         From Mark D. Baushke.
54901
54902 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
54905         to the absolute name, not just one, to bypass Sun C 5.8's
54906         "warning: #include of /usr/include/... may be non-portable".
54907
54908 2006-07-04  Eric Blake  <ebb9@byu.net>
54909
54910         * modules/dirname-tests: New test module.
54911         * tests/test-dirname.c: New file, replacing dirname.c
54912         TEST_DIRNAME section that was recently deleted.
54913
54914 2006-07-04  Bruno Haible  <bruno@clisp.org>
54915
54916         Assume ANSI C header files and <ctype.h> functions.
54917         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
54918         (mbsnwidth): Use isprint, iscntrl instead.
54919
54920 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         Merge from coreutils.
54923         * MODULES.html.sh: Add xstrtold.
54924         * modules/xstrtold: New file.
54925         * modules/cycle-check (Files): Add lib/same-inode.h.
54926         * modules/dirname (Files): Add m4/double-slash-root.m4.
54927         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
54928         * modules/mkdir-p (Files): Add lib/same-inode.h.
54929         * modules/same (Files): Add lib/same-inode.h.
54930
54931 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         * m4/absolute-header.m4: Renamed from full-header-path.m4.
54934         This is to keep the terminology clean; POSIX talks about
54935         "absolute pathnames", not "full pathnames", but the GNU
54936         Coding Standards say to use "path" for something else;
54937         so use "absolute" to keep both sides happy.
54938         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
54939         Set gl_absolute_header, not gl_full_header_path.
54940         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
54941         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
54942         All uses changed.
54943
54944         Merge from coreutils.
54945
54946         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
54949         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
54950         want to require the building of c-strtod.o.
54951         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
54952         needs -lm directly.
54953         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
54954
54955         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54956
54957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
54958         --as-needed option if available.  Problem reported by Albert Chin in
54959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
54960         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
54961         cc merely issues a bunch of annoying warnings for --as-needed
54962         (this problem was reported by Bob Proulx).  Also, try linking with
54963         -lm to detect a bug in binutils 2.16 (this problem was reported
54964         by Ralf Wildenhues).
54965
54966         2006-06-18  Jim Meyering  <jim@meyering.net>
54967
54968         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
54969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
54970         macro.
54971         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
54972         also check for glibc-2.4's abort-inducing bug.
54973
54974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
54975         Low-probability clean-up should be to use rmdir to get rid of
54976         the just-created directory, not unlink.
54977
54978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
54979         configure fail, and request a bug report to inform us about it.
54980         Add a comment that, barring reports to the contrary, in 2007 we'll
54981         assume ftruncate is universally available.
54982
54983         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
54986
54987         2006-03-12  Jim Meyering  <jim@meyering.net>
54988
54989         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
54990         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
54991         * m4/same.m4 (gl_SAME): Likewise.
54992         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
54993
54994         2006-03-11  Eric Blake  <ebb9@byu.net>
54995
54996         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
54997         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
54998         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
54999         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55000
55001 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55004         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55005         reported by Mark D. Baushke, one in
55006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55007
55008         Merge from coreutils.
55009
55010         * lib/.cppi-disable: Add stdint_.h.
55011         * lib/.cvsignore: Add stdint.h.
55012
55013         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55016         both double and long double versions.
55017         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55018         * lib/xstrtold.c: New file.
55019         * lib/xstrtod.h (xstrtold): New decl.
55020
55021         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55022
55023         * lib/filemode.c (setst): Remove.
55024         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55025         (arguably) clearer, and the generated code is a bit smaller on my
55026         Debian GNU/Linux stable x86 host.
55027
55028         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55031         Assume that filemode.h includes sys/types.h and sys/stat.h.
55032         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55033         (ftypelet): Reorder to put common cases first, for efficiency.
55034         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55035         to do 'M'.
55036         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55037         of 10, for compatibility with FreeBSD.  All callers changed.
55038         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55039         types that can't be deduced solely from st_mode.  First arg is now a
55040         const pointer.
55041         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55042         (strmode): Renamed from mode_string.
55043         (filemodestring): New decl.
55044         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55045         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55046         needed.
55047         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55048
55049         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55052         fsusage.h now does that.  Include fsusage.h first, to test interface.
55053         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55054         at most one method (the old code could have generated decls that
55055         didn't conform to C89, not that this was ever exercised).
55056         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55057
55058         2006-03-19  Jim Meyering  <jim@meyering.net>
55059
55060         Work even in a chroot where d_ino values for entries in "/"
55061         don't match the stat.st_ino values for the same names.
55062         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55063         number, iterate through all entries again, using lstat instead.
55064         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55065         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55066
55067         * lib/getcwd.c (__getcwd): Clarify a comment.
55068         Use memcpy in place of a call to strcpy.
55069
55070         2006-03-12  Jim Meyering  <jim@meyering.net>
55071
55072         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55073         matches that of the current directory (which we're about to chdir ".."
55074         out of), then save the dev-ino of the parent, instead.
55075
55076         * lib/same-inode.h (SAME_INODE): New file/macro.
55077         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55078         Include "same-inode.h", instead.
55079         * lib/same.c: Likewise.
55080         * lib/cycle-check.h: Include "same-inode.h".
55081         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55082         * lib/cycle-check.c (SAME_INODE): Remove definition.
55083         * lib/root-dev-ino.h: Include "same-inode.h".
55084
55085         2006-03-11  Eric Blake  <ebb9@byu.net>
55086
55087         * lib/same.c (same_name): s/base_name/last_component/
55088         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55089         * lib/filenamecat.c (file_name_concat): Likewise.
55090
55091         2006-03-11  Eric Blake  <ebb9@byu.net>,
55092                     Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55095         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55096         drive prefix.
55097         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55098         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55099         (last_component): New method.
55100         * lib/dirname.c (dir_len): Determine when drive letters need a
55101         subsequent slash.  Preserve // when it is special.
55102         (dir_name): Don't append dot when drive letter is absolute.
55103         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55104         * lib/basename.c (base_name): New semantics - malloc the result.
55105         Preserve // when it is special.  Preserve relative files that look
55106         like drive letters.
55107         (base_len): Preserve // when it is special.
55108         (last_component): New method, similar to old base_name semantics.
55109         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55110         base_name.  Strip redundant slashes from ///.
55111
55112 2006-07-03  Jim Meyering  <jim@meyering.net>
55113
55114         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55115         macro is used before the first cycle_check call.
55116
55117 2006-07-03  Eric Blake  <ebb9@byu.net>
55118
55119         * modules/dirname (Depends-on): Add xstrndup.
55120
55121 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55122
55123         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55124         test cases, so that config.log is a bit easier to follow.
55125
55126 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55127
55128         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55129         both are 64 bits, since this seems to be the tradition, and this
55130         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55131         we ever run into a host that prefers long long to long in this
55132         case, we'll need another configure-time test.  Problem reported by
55133         Jim Meyering.
55134
55135 2006-07-02  Eric Blake  <ebb9@byu.net>
55136
55137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55138
55139 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * modules/inttypes (Depends-on): No longer depends on stdint.
55142         * modules/stdint (Description): Say more about assumptions.
55143         Say that the fast types might differ.  Say macros are used.
55144         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55145         (Makefile.am): Revise list of substituted symbols to match
55146         new stdint.m4.
55147         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55148         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55149         * tests/test-stdint.c (verify_same_types)
55150         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55151         the code conforms to C99/C89.
55152         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55153         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55154
55155 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55158         but fix a bug, by requiring at least 64 bits.
55159         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55160         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55161         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55162         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55163
55164         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55165         changes.  Make 2.59 a prerequisite.  Check and substitute for
55166         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55167         inttypes.h.  Do not use special include files; just use the
55168         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55169         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55170         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55171         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55172         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55173         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55174         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55175         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55176         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55177         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55178         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55179         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55180         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55181         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55182         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55183         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55184         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55185         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55186         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55187         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55188         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55189         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55190         not check for things that C99 does not require, e.g., int8_t.  If
55191         a test isn't needed unless <stdint.h> isn't working, and is
55192         unlikely to be needed for any other reason, then don't do it
55193         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55194         size_t, since we assume C89 freestanding at least.  Do not check
55195         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55196         the right thing even if the types are not defined.  Instead use:
55197         (gl_STDINT_TYPE_PROPERTIES): New macro.
55198         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55199         testing whether <sys/types.h> clashes, as Autoconf does this for
55200         us now.  All uses removed.
55201         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55202         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55203         (gl_CHECK_TYPE_SAME):
55204         Remove; no longer needed.
55205         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55206         exists, since we'll return 0 anyway in that case.
55207         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55208
55209 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55210
55211         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55212         possible collision with system files.
55213         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55214         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55215         WCHAR_MIN and WCHAR_MAX in this case.
55216         (<stddef.h>): Do not include; no longer needed.
55217         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55218         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55219         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55220         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55221         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55222         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55223         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55224         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55225         !defined(__c99))]: Include in this case too, since it's harmless
55226         now.
55227         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55228         dangerous to do so.
55229         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55230         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55231         (_STDINT_MIN, _STDINT_MAX): New macros.
55232         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55233         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55234         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55235         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55236         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55237         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55238         macros, not typedefs; this simplifies things quite a bit.
55239         Use long int for all types narrower than int64_t.
55240         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55241         Define in terms of long long int or int64_t or long int,
55242         not int64_t or int32_t.  This saves some compile-time testing.
55243         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55244         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55245         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55246         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55247         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55248         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55249         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55250         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55251         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55252         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55253         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55254         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55255         undef any previous version and define our own version, for
55256         simplicity and consistency with the new macros for types.
55257         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55258         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55259         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55260         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55261         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55262         @WINT_T_SUFFIX@ to keep things simple here.
55263         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55264         Simplify by assuming typical 8/16/32/64 host, since we're
55265         already doing that elsewhere anyway.
55266         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55267         and assume long long int is 64 bits if available.  This
55268         speeds up 'configure'.
55269
55270 2006-07-01  Eric Blake  <ebb9@byu.net>
55271
55272         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55273         Reported by Andreas Buening.
55274
55275 2006-07-01  Eric Blake  <ebb9@byu.net>
55276
55277         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55278
55279 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55280
55281         * lib/getaddrinfo.c: fixed typo
55282
55283 2006-06-29  Jim Meyering  <jim@meyering.net>
55284
55285         * modules/strftime (Maintainer): Add my name, since with the
55286         FPRINTFTIME changes strftime.c has forked from glibc.
55287
55288 2006-06-29  Eric Blake  <ebb9@byu.net>
55289
55290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55291
55292 2006-06-29  Eric Blake  <ebb9@byu.net>
55293
55294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55295
55296 2006-06-29  Eric Blake  <ebb9@byu.net>
55297
55298         * lib/stat_.h: New file.
55299
55300 2006-06-29  Eric Blake  <ebb9@byu.net>
55301
55302         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55303         unused static function.
55304
55305 2006-06-29  Eric Blake  <ebb9@byu.net>
55306
55307         * doc/functions.texi (Function Portability): Document missing lstat
55308         on mingw.
55309
55310 2006-06-29  Eric Blake  <ebb9@byu.net>
55311
55312         * MODULES.html.sh: Add sys_stat.
55313         * modules/sys_stat: New module.
55314         * modules/mkstemp (Depends-on): Add sys_stat.
55315
55316 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55317
55318         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55319
55320 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55321
55322         * m4/c-bs-a.m4: Removed.
55323
55324 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55325
55326         * lib/strftime.c: Assume strftime() exists.
55327
55328 2006-06-29  Derek Price  <derek@ximbiot.com>
55329
55330         * modules/c-bs-a: Removed - \a is C89.
55331         * MODULES.html.sh: Remove c-bs-a.
55332
55333 2006-06-29  Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/wcwidth (License): Change to LGPL.
55336
55337 2006-06-28  Simon Josefsson  <jas@extundo.com>
55338
55339         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55340         on _WIN32.
55341
55342         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55343         getnameinfo.
55344
55345 2006-06-28  Simon Josefsson  <jas@extundo.com>
55346
55347         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55348
55349 2006-06-28  Simon Josefsson  <jas@extundo.com>
55350
55351         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55352         functions there.  It will succeed on Windows XP, but on Windows
55353         2000 and (presumably) earlier, it will fail, and use the internal
55354         re-implementation.
55355         (use_win32_p): New function.
55356         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55357         Support AI_NUMERICSERV to disable getservbyname.
55358         (getnameinfo): New function, only supports
55359         NI_NUMERICHOST|NI_NUMERICSERV for now.
55360
55361         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55362         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55363         getnameinfo.
55364
55365 2006-06-28  Eric Blake  <ebb9@byu.net>
55366
55367         * modules/wcwidth: New file.
55368         * modules/mbchar (Depends-on): Add wcwidth.
55369         * modules/mbswidth (Depends-on): Add wcwidth.
55370         * MODULES.html.sh: Add wcwidth.
55371
55372 2006-06-28  Eric Blake  <ebb9@byu.net>
55373
55374         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55376
55377 2006-06-28  Eric Blake  <ebb9@byu.net>
55378
55379         * lib/xvasprintf.h: Fix comments.
55380
55381 2006-06-28  Eric Blake  <ebb9@byu.net>
55382
55383         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55384         * lib/mbswidth.c (wcwidth): Move from here...
55385         * lib/wcwidth.h: ...to this new file.
55386
55387 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55388
55389         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55390
55391         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55392         it's obsolete.
55393         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55394
55395 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55396
55397         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55398         Autoconf 2.60 says this stuff was obsolete.
55399
55400 2006-06-28  Bruno Haible  <bruno@clisp.org>
55401
55402         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55403
55404 2006-06-28  Bruno Haible  <bruno@clisp.org>
55405
55406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55407         gt_TYPE_WCHAR_T.
55408
55409 2006-06-28  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55412         declaration for wcwidth.
55413         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55414
55415 2006-06-28  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55418         (mkdir): Define using _mkdir.
55419
55420 2006-06-28  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/getaddrinfo.h: Fix POSIX URL.
55423         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55424         _WIN32.
55425         (use_win32_p): Make static.
55426         (getaddrinfo): Reject service name if it is empty or does not consist
55427         solely of decimal digits, or if its value is > 65535.
55428         (getnameinfo): Remove useless casts.
55429
55430 2006-06-27  Simon Josefsson  <jas@extundo.com>
55431
55432         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55433         Eggert and Martin Lambers.
55434
55435 2006-06-27  Simon Josefsson  <jas@extundo.com>
55436
55437         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55438         Eggert and Martin Lambers.
55439
55440 2006-06-27  Bruno Haible  <bruno@clisp.org>
55441
55442         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55443         result to 0, not to empty.
55444         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55445
55446 2006-06-27  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55449
55450 2006-06-26  Simon Josefsson  <jas@extundo.com>
55451
55452         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55453         present.
55454
55455 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55458         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55460
55461 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55462
55463         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55464
55465 2006-06-26  Bruno Haible  <bruno@clisp.org>
55466
55467         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
55468
55469 2006-06-26  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
55472
55473 2006-06-26  Bruno Haible  <bruno@clisp.org>
55474
55475         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
55476         SGI C compiler in pre-C99 mode.
55477         Suggested by Mark D. Baushke and Larry Jones.
55478
55479 2006-06-26  Bruno Haible  <bruno@clisp.org>
55480
55481         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
55482         WCHAR_MAX.
55483         Reported by Mark D. Baushke and Larry Jones.
55484
55485 2006-06-26  Bruno Haible  <bruno@clisp.org>
55486
55487         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
55488         in pre-C99 mode.
55489         Suggested by Mark D. Baushke and Larry Jones.
55490
55491 2006-06-23  Simon Josefsson  <jas@extundo.com>
55492             Bruno Haible  <bruno@clisp.org>
55493
55494         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
55495         Emit mostlyclean-local rule.
55496         (func_emit_tests_Makefile_am): Likewise.
55497         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
55498
55499 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
55500
55501         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
55502
55503 2006-06-23  Bruno Haible  <bruno@clisp.org>
55504
55505         * tests/test-stdint.c: Update to match ISO C 99 Technical
55506         Corrigendum 1.
55507
55508 2006-06-23  Bruno Haible  <bruno@clisp.org>
55509
55510         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
55511
55512 2006-06-23  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/stdint_.h: Treat IRIX like OpenBSD.
55515
55516 2006-06-23  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
55519         ISO C 99 Technical Corrigendum 1.
55520
55521 2006-06-22  Simon Josefsson  <jas@extundo.com>
55522
55523         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
55524         MinGW.
55525
55526 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
55529         needed.  Some compiler complained about some of them.  Problem reported
55530         by Larry Jones in
55531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
55532
55533 2006-06-21  Simon Josefsson  <jas@extundo.com>
55534
55535         * tests/test-getaddrinfo.c: New file.
55536
55537         * modules/getaddrinfo-tests: New file.
55538
55539         * MODULES.html.sh: Add inet_pton.
55540
55541         * modules/inet_pton: New file.
55542
55543 2006-06-21  Simon Josefsson  <jas@extundo.com>
55544
55545         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
55546         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
55547         of using the (limited) gnulib implementation on Windows XP.
55548
55549         * m4/inet_pton.m4: New file.
55550
55551 2006-06-21  Simon Josefsson  <jas@extundo.com>
55552
55553         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
55554         variable.
55555
55556         * lib/socket_.h: Don't define WINVER.
55557
55558         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
55559         slightly modified to work in gnulib.
55560
55561 2006-06-21  Simon Josefsson  <jas@extundo.com>
55562
55563         * doc/gnulib.texi (Windows sockets): Add.
55564
55565 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55566
55567         * lib/read-file.c (fread_file): Start with buffer allocation of
55568         0 bytes rather than 1 byte; this simplifies the code.
55569         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
55570         code to free buffer and save/restore errno.
55571         (internal_read_file): Remove unused local.
55572
55573 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55574
55575         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
55576         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
55577         Problem reported by Denis Excoffier in
55578         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
55579
55580 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55581
55582         * modules/sys_socket, modules/socklen: Include sys/types since
55583         FreeBSD 4.x's sys/socket.h needs it.
55584
55585 2006-06-19  Simon Josefsson  <jas@extundo.com>
55586
55587         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
55588
55589 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
55592
55593 2006-06-19  Bruno Haible  <bruno@clisp.org>
55594
55595         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
55596         and FULL_PATH_INTTYPES_H in angle brackets.
55597         Reported by Mark D. Baushke <mdb@gnu.org>.
55598
55599 2006-06-17  Eric Blake  <ebb9@byu.net>
55600
55601         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
55602         errno.
55603
55604 2006-06-17  Bruno Haible  <bruno@clisp.org>
55605
55606         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
55607         <sys/inttypes.h>.
55608
55609 2006-06-17  Bruno Haible  <bruno@clisp.org>
55610
55611         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
55612         whether errno is declared. Assume <errno.h> declares errno.
55613
55614 2006-06-17  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
55617
55618 2006-06-17  Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
55621         problem on Solaris 2.5.1.
55622
55623 2006-06-16  Eric Blake  <ebb9@byu.net>
55624
55625         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
55626         * lib/unicodeio.c [!defined errno]: Likewise.
55627         * lib/strtol.c [!defined errno]: Likewise.
55628         * lib/strtod.c [!defined errno]: Likewise.
55629
55630 2006-06-15  Eric Blake  <ebb9@byu.net>
55631
55632         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
55633
55634 2006-06-15  Eric Blake  <ebb9@byu.net>
55635
55636         * config/srclist.txt (ssize_t.m4): Lose sync.
55637
55638 2006-06-15  Bruno Haible  <bruno@clisp.org>
55639
55640         * modules/stdint (Files): Include m4/full-header-path.m4,
55641         m4/size_max.m4, m4/wchar_t.m4.
55642         (Makefile.am): Many more substitutions.
55643         * modules/stdint-tests: New file.
55644         * tests/test-stdint.c: New file.
55645
55646 2006-06-15  Bruno Haible  <bruno@clisp.org>
55647
55648         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
55649         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
55650         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
55651         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
55652         gl_CHECK_TYPE_SAME): New macros.
55653
55654 2006-06-15  Bruno Haible  <bruno@clisp.org>
55655
55656         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
55657
55658 2006-06-15  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/stdint_.h: Rewritten to be fully auto-configured.
55661         Fixes bug on HP-UX/IA64.
55662
55663 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * lib/getdate.y (__attribute__): Don't define if already defined.
55666         Problem reported by Larry Jones.
55667         * lib/utimens.c (__attribute__): Likewise.
55668
55669 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
55672         reported by Andreas Schwab.
55673
55674 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55675             Bruno Haible  <bruno@clisp.org>
55676
55677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
55678         check for the declaration of strnlen and a run test that exposes the
55679         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
55680         rpl_strndup.
55681
55682 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55683             Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
55686
55687 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55688
55689         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
55690         compile test, for Tru64 4.0D.
55691
55692 2006-05-28  Karl Berry  <karl@gnu.org>
55693
55694         * config/srclist.txt (printf-args.c): lose sync.
55695
55696 2006-05-26  Martin Lambers  <marlam@marlam.de>
55697
55698         * lib/getpass.c: Updates the test for the native W32 API, and adds
55699         missing includes, thus fixing compilation warnings.
55700
55701 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55702
55703         * lib/exclude.c (exclude_fnmatch): New function.
55704         (excluded_file_name): Call exclude_fnmatch.
55705         * lib/exclude.h (excluded_file_name): New prototype
55706
55707 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * lib/tempname.c (small_open, large_open): New macros.
55710         (__open, __open64) [!_LIBC]: Remove.
55711         (__gen_tempname): Use small_open and large_open instead of __open
55712         and __open64.  This fixes a portability bug on HP-UX 11.11i
55713         reported by Simon Wing-Tang in
55714         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
55715
55716 2006-05-24  Bruno Haible  <bruno@clisp.org>
55717
55718         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
55719         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
55720         Reported by Thorsten Maerz <torte@netztorte.de> via
55721         Aaron Stone <aaron@serendipity.cx>.
55722
55723 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
55726         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
55727         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
55728         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
55729         not really conditional on the cache.
55730         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
55731
55732 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55733
55734         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
55735         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
55736         (my_usleep): Don't mishandle maximum value.
55737
55738 2006-05-19  Jim Meyering  <jim@meyering.net>
55739
55740         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
55741
55742 2006-05-17  Bruno Haible  <bruno@clisp.org>
55743
55744         Cygwin portability.
55745         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
55746
55747 2006-05-17  Bruno Haible  <bruno@clisp.org>
55748
55749         * lib/stdint_.h: Fix recognition of Cygwin.
55750
55751 2006-05-15  Bruno Haible  <bruno@clisp.org>
55752
55753         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
55754         on libtool patch by Ralf Wildenhues.
55755
55756 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55757
55758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
55759         test for C99 conformance; (bool) 0.5 is an integer constant
55760         expression, but (bool) -0.5 is not.  Problem reported by Fedor
55761         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
55762
55763 2006-05-11  Simon Josefsson  <jas@extundo.com>
55764
55765         * m4/xvasprintf.m4: Fix obvious typo.
55766
55767 2006-05-11  Jim Meyering  <jim@meyering.net>
55768
55769         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
55770         James Lemley.
55771
55772 2006-05-10  Simon Josefsson  <jas@extundo.com>
55773
55774         * lib/md4.c: Typo fix, update copyright years.
55775         (K1, K2): Don't use L because it turn computations into 64-bit on
55776         64-bit platforms.
55777
55778 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
55781         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
55782         unwanted sign propagation, e.g., on hosts with 64-bit int.
55783         There still are some problems with reeelly weird theoretical hosts
55784         (e.g., 33-bit int) but it's not worth worrying about now.
55785         * lib/sha1.c (rol): Likewise.
55786         (K1, K2, K3, K4): Remove unnecessary L suffix.
55787
55788 2006-05-10  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/des.c: Cast to avoid warnings.
55791
55792 2006-05-09  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
55795         (Depends-on): Depend also on xsize, stdarg.
55796         (configure.ac): Add gl_XVASPRINTF.
55797
55798 2006-05-09  Bruno Haible  <bruno@clisp.org>
55799
55800         * m4/xvasprintf.m4: New file.
55801
55802 2006-05-09  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
55805         (EOVERFLOW): Define fallback value.
55806         (xstrcat): New function.
55807         (xvasprintf): Recognize the special case of a string concatenation.
55808
55809 2006-05-08  Eric Blake  <ebb9@byu.net>
55810
55811         * gnulib-tool (func_version): Base copyright year on CVS date.
55812         (func_emit_copyright_notice): New function.
55813         (func_emit_lib_Makefile_am): Use it.
55814         (func_emit_tests_Makefile_am): Likewise.
55815         (func_import): Likewise.
55816
55817 2006-05-08  Bruno Haible  <bruno@clisp.org>
55818
55819         * modules/stdarg: New file.
55820         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
55821
55822 2006-05-08  Bruno Haible  <bruno@clisp.org>
55823
55824         * m4/stdarg.m4: New file, from GNU gettext.
55825
55826 2006-05-08  Bruno Haible  <bruno@clisp.org>
55827
55828         * config/srclist.txt (build-aux/config.rpath): different from latest
55829         release.
55830
55831 2006-05-08  Bruno Haible  <bruno@clisp.org>
55832
55833         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
55834
55835 2006-05-05  Jim Meyering  <jim@meyering.net>
55836
55837         * m4/warning.m4: New file, derived from bison's file by the same name.
55838
55839 2006-05-03  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/stdint_.h: Shorter URL.
55842         * lib/inttypes.h: Likewise.
55843
55844 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
55847
55848 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * lib/verify.h: Document the internals better.  Most of this change
55851         was written by Bruno Haible.
55852
55853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * doc/verify.texi: New file, partly based on a proposal by
55856         Bruno Haible.
55857
55858 2006-05-02  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
55861         test from here...
55862         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
55863
55864 2006-04-29  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
55867         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
55868
55869 2006-04-29  Bruno Haible  <bruno@clisp.org>
55870
55871         * gnulib-tool: Make --update option actually work.
55872
55873 2006-04-29  Bruno Haible  <bruno@clisp.org>
55874
55875         * doc/gcd.texi: New file.
55876         * doc/gnulib.texi: Include it.
55877
55878 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * lib/getdate.y (get_date): When adding relative date, start with the
55881         initial time, not with the result of the first mktime call.
55882
55883 2006-04-25  Bruno Haible  <bruno@clisp.org>
55884
55885         * gnulib-tool (func_import): Output the include directives in three
55886         blocks, sorted separately.
55887         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55888
55889 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55890
55891         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
55892         to define main with arguments, for C++.  Reported by Eric Blake.
55893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
55894         Prefer 'int main ()' to 'int main (void)', for C++.
55895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
55896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
55897         for 'main', for C99 and C++.
55898
55899 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
55902         Don't assume that exit status -1 is valid.
55903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55904         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55905         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55906         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
55907         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
55908         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
55909         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
55910         functions can be used without declaring them, or that you can
55911         exit with status -1.
55912         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55913
55914 2006-04-24  Karl Berry  <karl@gnu.org>
55915
55916         * config/srclist.txt (longdouble.m4): sync lost.
55917
55918 2006-04-24  Eric Blake  <ebb9@byu.net>
55919
55920         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
55921
55922 2006-04-24  Bruno Haible  <bruno@clisp.org>
55923
55924         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
55925         poll() implementation in AIX.
55926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55927
55928 2006-04-24  Bruno Haible  <bruno@clisp.org>
55929
55930         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
55931         assigned exactly once.
55932
55933 2006-04-23  Claudio Fontana  <claudio@gnu.org>
55934             Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
55937         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
55938         for AM_CPPFLAGS.
55939
55940 2006-04-23  Bruno Haible  <bruno@clisp.org>
55941
55942         * modules/copy-file: Depend on unistd.
55943         * modules/execute: Likewise.
55944         * modules/fatal-signal: Likewise.
55945         * modules/findprog: Likewise.
55946         * modules/mkdtemp : Likewise.
55947         * modules/pipe: Likewise.
55948         * modules/wait-process: Likewise.
55949
55950 2006-04-23  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
55953         condition was already detected.
55954         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55955
55956 2006-04-23  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/copy-file.c: Include <unistd.h> unconditionally.
55959         * lib/execute.c: Likewise.
55960         * lib/fatal-signal.c: Likewise.
55961         * lib/findprog.c: Likewise.
55962         * lib/mkdtemp.c: Likewise.
55963         * lib/pipe.h: Likewise.
55964         * lib/pipe.c: Likewise.
55965         * lib/wait-process.h: Likewise.
55966
55967 2006-04-23  Bruno Haible  <bruno@clisp.org>
55968
55969         * gnulib-tool (func_usage): Fix --import description. Document
55970         --update.
55971         (func_import): Create temporary file in a temporary directory, if
55972         --dry-run is specified. Silence errors from 'grep' when there are no
55973         m4 files in $m4dir.
55974         (func_create_testdir): Silence errors from 'grep' when there are no
55975         m4 files in $m4dir.
55976         Reported by Karl Berry <karl@freefriends.org>.
55977
55978 2006-04-20  Bruno Haible  <bruno@clisp.org>
55979
55980         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
55981         one argument, so that the code will be portable to Autoconf 2.60.
55982         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
55983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55984         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
55985
55986 2006-04-19  Derek Price  <derek@ximbiot.com>
55987             Eric Blake  <ebb9@byu.net>
55988
55989         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
55990         rather than "/full/path.h".  Update comment to match.  Shorten &
55991         generalize m4_translit call via AS_TR_CPP.
55992
55993 2006-04-19  Derek Price  <derek@ximbiot.com>
55994             Eric Blake  <ebb9@byu.net>
55995
55996         * lib/inttypes.h: Correct grammar in comment.
55997
55998 2006-04-18  Derek Price  <derek@ximbiot.com>
55999             Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * modules/inttypes: New file.
56002         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56003
56004 2006-04-18  Derek Price  <derek@ximbiot.com>
56005             Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56008         New files.
56009
56010 2006-04-18  Derek Price  <derek@ximbiot.com>
56011             Paul Eggert  <eggert@cs.ucla.edu>
56012
56013         * lib/inttypes.h: New file.
56014         * lib/strtoimax.c: Assume <inttypes.h>.
56015
56016 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56019         isn't mounted.  Problem reported by Kir Kolyshkin.
56020
56021 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56022
56023         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56024         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56025         Derek R. Price.
56026         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56027         implementation.
56028
56029 2006-04-12  Eric Blake  <ebb9@byu.net>
56030
56031         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56032         is now done automatically by the corresponding Autoconf macro.
56033
56034 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56035
56036         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56037         time_r.h.
56038
56039 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         Merge regex changes from libc, removing some of our
56042         POSIX-conformance changes that were rejected and redoing them in a
56043         less-intrusive way.
56044
56045         * lib/regcomp.c (re_compile_internal, init_dfa):
56046         Length arg is now size_t, not Idx.  All uses changed.
56047         (peek_token): Forward decl now says internal_function.
56048         (__re_error_msgid, __re_error_msgid_idx):
56049         Now static rather than extern with attribute_hidden.
56050         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56051         For some reason libc prefers K&R style defns for external functions.
56052         (regerror) [!defined _LIBC]: Likewise.
56053         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56054         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56055         (build_range_exp, build_collating_symbol):
56056         Use K&R-style defn.
56057         (re_compile_fastmap): Use '\0' to memset, not 0.
56058         (utf8_sb_map): Make the calculations more obvious.
56059         (init_dfa, parse_bracket_exp, build_charclass_op):
56060         Call calloc and cast result, as glibc does.
56061         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56062         (build_range_exp, build_collating_symbol):
56063         Now internal functions.
56064
56065         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56066
56067         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56068         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56069         Don't depend on VMS; depend on __VMS instead, for POSIX
56070         namespace cleanness.
56071         (regoff_t): Define to ssize_t, not long int.
56072
56073         Remove the REG_ macros named below.  Instead, make the old names
56074         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56075         __USE_GNU_REGEX.
56076         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56077         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56078         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56079         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56080         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56081         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56082         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56083         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56084         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56085         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56086         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56087         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56088         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56089         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56090         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56091         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56092         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56093         (REG_NREGS):
56094         Remove.  All uses replaced by the old RE_* names.
56095         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56096         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56097         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56098         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56099         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56100         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56101         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56102         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56103         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56104         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56105         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56106         Don't bother having these macros be independent of each others'
56107         values, since they no longer exist in the POSIX name space.
56108
56109         Rename the following member names back to their old names,
56110         unless !__USE_GNU_REGEX.  All uses changed back.
56111         (buffer): Renamed from re_buffer.
56112         (allocated): Renamed from re_allocated.
56113         (used): Renamed from re_used.
56114         (syntax): Renamed from re_syntax.
56115         (fastmap): Renamed from re_fastmap.
56116         (translate): Renamed from re_translate.
56117         (can_be_null): Renamed from re_can_be_null.
56118         (regs_allocated): Renamed from re_regs_allocated.
56119         (fastmap_accurate): Renamed from re_fastmap_accurate.
56120         (no_sub): Renamed from re_no_sub.
56121         (not_bol): Renamed from re_not_bol.
56122         (not_eol): Renamed from re_not_eol.
56123         (newline_anchor): Renamed from re_newline_anchor.
56124         (num_regs): Renamed from rm_num_regs.
56125         (start): Renamed from rm_start.
56126         (end): Renamed from rm_end.
56127
56128         (free_state): Move up a bit.
56129
56130         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56131         #define to be empty.
56132         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56133         when that is what is intended.
56134         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56135         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56136         (MAX): New macro.
56137         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56138         All uses changed back to re_malloc, etc.  It's now the caller's
56139         responsibility to check for overflow; all callers changed.
56140         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56141         (re_x2nrealloc): Remove.
56142         (free_state): Remove decl.
56143
56144         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56145         (re_set_registers, re_exec):
56146         Use K&R-style defn.
56147
56148         2006-01-31  Roland McGrath  <roland@redhat.com>
56149
56150         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56151         Reported by Mike Frysinger <vapier@gentoo.org>.
56152
56153         2006-01-15  Andreas Jaeger  <aj@suse.de>
56154
56155         [BZ #1950]
56156         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56157         build_wcs_upper_buffer change.
56158         (build_wcs_upper_buffer): Change return type.
56159
56160         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56161
56162         * lib/regex_internal.h: Include <stdint.h> if available.
56163
56164         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56165
56166         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56167
56168         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56169
56170         * lib/regcomp.c: Adjust for changed secondary hash function.
56171
56172         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56173
56174         * lib/regex.h: Pretty printing.
56175         Clean up namespace a bit.
56176
56177         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56178
56179         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56180         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56181
56182         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56183                     Ulrich Drepper  <drepper@redhat.com>
56184
56185         [BZ #1302]
56186         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56187         changed.
56188         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56189
56190         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56191
56192         [BZ #281]
56193         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56194         * lib/regcomp.c: Remove unnecessary uses of
56195         unsigned RE_TRANSLATE_TYPE.
56196         * lib/regex_internal.h: Likewise.
56197         * lib/regex_internal.c: Likewise.
56198         * lib/regexec.c: Likewise.
56199         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56200
56201         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56202
56203         * lib/regexec.c (find_recover_state): Remove unnecessary
56204         initialization.
56205         (transit_state_bkref): Make DFA a const pointer.
56206         (get_subexp): Likewise.
56207         (check_arrival): Likewise.
56208         (update_cur_sifted_state): Likewise.
56209         (re_search_internal): Likewise.
56210         (prune_impossible_nodes): Likewise.
56211         (acquire_init_state_context): Likewise.
56212         (proceed_next_node): Likewise.
56213         (set_regs): Likewise.
56214         (free_fail_stack_return): Likewise.
56215         (check_arrival_expand_ecl): Mark DFA parameter as const.
56216         (check_arrival_expand_ecl_sub): Likewise.
56217         (check_subexp_limits): Likewise.
56218         (sub_epsilon_src_nodes):  Likewise.
56219         (add_epsilon_src_nodes):  Likewise.
56220         (merge_state_array): Likewise.
56221         (update_regs): Likewise.
56222         (build_trtable): Likewise.
56223         (sift_states_backward): Mark MCTX parameter as const.
56224         (build_sifted_states): Likewise.
56225         (update_cur_sifted_state): Likewise.
56226         (sift_states_mkref): Likewise.
56227         (check_arrival_expand_ecl): Mark eclosure as const.
56228         (check_dst_limits_calc_pos_1): Likewise.
56229         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56230         pointer.
56231
56232         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56233
56234         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56235         (transit_state_sb): Likewise.
56236         (transit_state_mb): Likewise.
56237         (sift_states_iter_mb): Likewise.
56238         (check_arrival_add_next_nodes): Likewise.
56239         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56240         [_LIBC] (re_search_2_stub): Use mempcpy.
56241
56242         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56243         mbrtowc for very simple UTF-8 case.
56244
56245         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56246         a pointer-to-const.
56247         (re_acquire_state_context): Likewise.
56248         * lib/regex_internal.h: Adjust prototypes.
56249
56250         * lib/regex.c: Prevent using C++ compilers.
56251
56252         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56253         (re_acquire_state_context): Likewise.
56254
56255 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56256
56257         * modules/regex (Depends-on): Add ssize_t.
56258
56259 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56262         translation table.
56263
56264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56265
56266         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56267
56268 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56269             Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56272         <sys/types.h> and <inttypes.h>.
56273
56274 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56275
56276         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56277         `__error_t_defined', so argp.h will not typedef the former.
56278
56279 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56282         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56283         glibc names.  Even if glibc is changed to conform to POSIX, the
56284         traditional names will be available anyway, since regex depends on
56285         the extensions module.  Also, fix a longstanding typo in the
56286         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56287         reported by Emanuele Giaquinta.  Also, change sense of cached
56288         variable, so that the message makes sense.
56289
56290 2006-03-24  Simon Josefsson  <jas@extundo.com>
56291
56292         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56293         including some doc fixes.
56294         (base64_encode_alloc): Fix +1 bug on allocation failures.
56295
56296 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56297
56298         * lib/base64.c (base64_encode): Do not read past end of array with
56299         unsanitized input on systems with CHAR_BIT > 8.
56300
56301 2006-03-24  Eric Blake  <ebb9@byu.net>
56302
56303         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56304
56305 2006-03-22  Karl Berry  <karl@gnu.org>
56306
56307         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56308         * config/srclistvars.sh (COREUTILS): new var.
56309
56310 2006-03-17  Jim Meyering  <jim@meyering.net>
56311
56312         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56313         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56314
56315 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56316
56317         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56318         no longer needs it.  Instead, check that regoff_t is as least
56319         as wide as ptrdiff_t.
56320
56321         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56322         so that our regex.h stays compatible with the installed regex.
56323         This is helpful for installers who configure --without-included-regex.
56324         Problem reported by Emanuele Giaquinta.
56325
56326 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56329         Typedef to long int, not to off_, as POSIX will likely change
56330         in that direction.
56331
56332 2006-03-15  Eric Blake  <ebb9@byu.net>
56333
56334         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56335
56336 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56337
56338         * lib/argp-help.c (validate_uparams): Fix typo
56339         * lib/argp-parse.c (argp_default_options): Consistently begin help
56340         messages with a lowercase letter.
56341
56342 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56345         overrun buffers and shouldn't be used (much as gets shouldn't be
56346         used).
56347         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56348
56349 2006-03-08  Simon Josefsson  <jas@extundo.com>
56350
56351         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56352         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56353
56354 2006-03-08  Simon Josefsson  <jas@extundo.com>
56355
56356         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56357         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56358
56359 2006-03-08  Simon Josefsson  <jas@extundo.com>
56360
56361         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56362         signal that configure disabled the device.
56363
56364 2006-03-08  Simon Josefsson  <jas@extundo.com>
56365
56366         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56367         languages.
56368
56369 2006-03-07  Simon Josefsson  <jas@extundo.com>
56370
56371         * modules/getopt (Depends-on): Add unistd.
56372
56373         * modules/unistd: New file.
56374
56375 2006-03-07  Simon Josefsson  <jas@extundo.com>
56376
56377         * modules/gc-random: New file.
56378
56379 2006-03-07  Simon Josefsson  <jas@extundo.com>
56380
56381         * m4/unistd_h.m4: New file.
56382
56383 2006-03-07  Simon Josefsson  <jas@extundo.com>
56384
56385         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56386         test to be side-effect free by storing the result in the cache
56387         variable gl_cv_lib_readline, and moving the assignment of
56388         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56389         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56390
56391 2006-03-07  Simon Josefsson  <jas@extundo.com>
56392
56393         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56394         error on missing devices (the functions will return an error).
56395
56396         * m4/gc.m4: Move random stuff to gc-random.m4
56397
56398 2006-03-07  Simon Josefsson  <jas@extundo.com>
56399
56400         * lib/unistd_.h: New file.
56401
56402 2006-03-07  Simon Josefsson  <jas@extundo.com>
56403
56404         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56405
56406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56409         Problem reported by Juan Manuel Guerrero.
56410
56411 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56414         the unistd module.
56415         * lib/getlogin_r.c: Likewise.
56416         * lib/getlogin_r.h: Likewise.
56417         * lib/glob.c: Likewise.
56418         * lib/pagealign_alloc.c: Likewise.
56419         * lib/unistd_.h: Remove; no longer needed.
56420
56421 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56424         Add unistd.
56425         * modules/c-stack (Depends-on): Add unistd.
56426         * modules/getlogin_r: Likewise.
56427         * modules/glob: Likewise.
56428         * modules/pagealign_alloc: Likewise.
56429         * modules/unistd (Files): Remove lib/unistd_.h.
56430         (EXTRA_DIST): Remove.
56431         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56432         need unistd_.h.
56433         (MOSTLYCLEANFILES): Remove unistd.h-t.
56434
56435 2006-03-03  Simon Josefsson  <jas@extundo.com>
56436
56437         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56438
56439 2006-03-03  Simon Josefsson  <jas@extundo.com>
56440
56441         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56442         libidn and bison.
56443
56444 2006-03-03  Simon Josefsson  <jas@extundo.com>
56445
56446         * build-aux/maint.mk: Add indent target.
56447
56448 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56449
56450         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56451         our replacement poll.h in any case, to avoid a differing
56452         declaration from a system header.  Seen on AIX.
56453
56454 2006-03-01  Simon Josefsson  <jas@extundo.com>
56455
56456         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56457         <kasal@ucw.cz>.
56458
56459 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56460
56461         * modules/gettime (Depends-on): Add extensions module.
56462         * modules/nanosleep (Depends-on): Likewise.
56463         * modules/settime (Depends-on): Likewise.
56464
56465 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
56468         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
56469         pedantically.
56470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56471         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
56472
56473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
56474         not "==".  Reported by Ralf Wildenhues.
56475
56476 2006-03-01  Karl Berry  <karl@gnu.org>
56477
56478         * doc/Copyright/request-*: new files, synced from gnuorg.
56479
56480 2006-03-01  Karl Berry  <karl@gnu.org>
56481
56482         * config/srclist.txt (Copyright/*): new entries.
56483
56484 2006-02-28  Simon Josefsson  <jas@extundo.com>
56485
56486         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
56487
56488 2006-02-27  Simon Josefsson  <jas@extundo.com>
56489
56490         * lib/base64.h: Indent #define's.  From Jim Meyering
56491         <jim@meyering.net>.
56492
56493 2006-02-27  Jim Meyering  <jim@meyering.net>
56494
56495         Revert the change of 2006-02-24, so these files can continue
56496         to be sync'd from gettext.
56497         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
56498         of `config.h'.
56499
56500 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * modules/intprops: New file.
56503         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56504         Add intprops.
56505         * modules/getloadavg (Files): Remove lib/intprops.h.
56506         (Depends-on): Add intprops.
56507         * modules/human: Likewise.
56508         * modules/inttostr: Likewise.
56509         * modules/openat: Likewise.
56510         * modules/sig2str: Likewise.
56511         * modules/userspec: Likewise.
56512         * modules/utimecmp: Likewise.
56513         * modules/xnanosleep: Likewise.
56514         * modules/xstrtol: Likewise.
56515
56516 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
56517
56518         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
56519         * modules/lock-tests (TESTS): Use $(EXEEXT).
56520         * modules/tls-tests: Likewise.
56521         * modules/argp-tests: Likewise.
56522         (check_PROGRAMS): New var, replacing...
56523         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
56524
56525 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56526
56527         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
56528         `config.h'.
56529
56530 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56531
56532         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
56533
56534 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56535
56536         Sync from coreutils.
56537         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
56538         gl_CHDIR_SAFER.
56539
56540 2006-02-22  Jim Meyering  <jim@meyering.net>
56541
56542         Sync from coreutils.
56543         * m4/chdir-safer.m4: New file.
56544
56545 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
56548         AT_FDCWD exceeds INT_MAX.
56549         * lib/openat.h (AT_FDCWD): Likewise.
56550
56551 2006-02-17  Eric Blake  <address@hidden>
56552
56553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
56554
56555 2006-02-16  Simon Josefsson  <jas@extundo.com>
56556
56557         * modules/getaddrinfo (Depends-on): Add sys_socket.
56558
56559 2006-02-15  Simon Josefsson  <jas@extundo.com>
56560
56561         * build-aux/maint.mk: Add dsyntax-check rule.
56562
56563 2006-02-15  Eric Blake  <ebb9@byu.net>
56564
56565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
56566         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
56567         'present but cannot compile' warnings on cygwin.
56568         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
56569         use ws2tcpip.h if sys/socket.h works.
56570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
56571         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
56572
56573 2006-02-14  Simon Josefsson  <jas@extundo.com>
56574
56575         * modules/maintainer-makefile (Files): Rename.
56576
56577         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
56578         and (the local) Makefile.cfg to maint-cfg.mk.
56579
56580         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
56581         to the latter.
56582
56583         * modules/maintainer-makefile: New module.
56584
56585         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
56586         severaly stripped to make it possible to build it up from scratch
56587         with reliable tests.
56588
56589         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
56590         fixes to permit overriding the default actions when configure and
56591         makefile are not available.
56592
56593 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56594
56595         Sync from coreutils.
56596         * modules/lstat (Depends-on): Don't depend on xalloc.
56597         (License): Change from GPL to LGPL, since this is now simply a
56598         replacement for a libc function.
56599
56600 2006-02-14  Jim Meyering  <jim@meyering.net>
56601
56602         Sync from coreutils.
56603
56604         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
56605         failure on deficient systems, and simplify gnulib lgpl dependencies.
56606         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
56607         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
56608
56609         * lib/xalloc-die.c: Remove unused definition of N_.
56610
56611 2006-02-14  Jim Meyering  <jim@meyering.net>
56612
56613         Sync from coreutils.
56614         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
56615         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
56616         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
56617         double-quote uses of that variable, to accommodate the rare case in
56618         which getmntent is available in none of the libraries checked.  This
56619         happens at least on FreeBSD 5.0.
56620
56621 2006-02-13  Simon Josefsson  <jas@extundo.com>
56622
56623         * gnulib-tool (Usage): Fix --import, from
56624         karl@freefriends.org (Karl Berry).
56625
56626 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56627
56628         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
56629
56630 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
56631
56632         * lib/argp-namefrob.h: Restore changes accidentally lost during the
56633         "autoupdate" on 2005-12-12.
56634
56635 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * modules/closeout (Depends-on): Remove atexit.
56638
56639 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
56642         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
56643
56644 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56645
56646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
56647         __EXTENSIONS__ if this causes compilation to fail.  Problem
56648         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
56649         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
56650
56651 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
56652
56653         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
56654         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
56655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
56656         All uses changed.
56657
56658 2006-01-26  Simon Josefsson  <jas@extundo.com>
56659
56660         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
56661         prototype is visible on mingw32.
56662
56663         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
56664         for mingw32.
56665
56666         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
56667         mingw32).
56668
56669 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
56672         attempt to open for write; this always fails, at least on POSIX
56673         hosts.  This reinstates the 2006-01-09 change, which was
56674         inadvertently removed.
56675
56676 2006-01-26  Bruno Haible  <bruno@clisp.org>
56677
56678         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
56679         Reported by Paul Eggert.
56680
56681 2006-01-26  Bruno Haible  <bruno@clisp.org>
56682             Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         * lib/stdbool_.h (_Bool)
56685         [(! (defined __cplusplus || defined __BEOS__)
56686           && !defined __GNUC__
56687           && !(defined __HP_cc || defined __xlc__
56688                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
56689                || defined __sgi))]:
56690         #define to signed char in these cases too; this simplifies
56691         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
56692         etc., separately) and makes it more conservative.
56693
56694 2006-01-25  Simon Josefsson  <jas@extundo.com>
56695
56696         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
56697         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
56698         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
56699
56700 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56701
56702         * lib/argp-namefrob.h: Bugfix. Remove stray #
56703
56704 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
56707         so that we test the test.
56708         Check for yet another HP-UX cc bug involving *bool |= bool.
56709
56710 2006-01-25  Karl Berry  <karl@gnu.org>
56711
56712         * config/srclist.txt (vasnprintf.c): sync lost.
56713
56714 2006-01-25  Jim Meyering  <jim@meyering.net>
56715
56716         Sync from the stable (b5) branch of coreutils:
56717
56718         * lib/fts.c (fts_children): Don't let close() clobber errno from
56719         failed fchdir().
56720
56721         * lib/fts.c (fts_stat): When following a symlink-to-directory,
56722         don't necessarily interpret stat-fails+lstat-succeeds as indicating
56723         a dangling symlink.  That can also happen at least for ELOOP.
56724         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
56725         FYI, this bug predates the inclusion of fts.c in coreutils.
56726
56727         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
56728         in their own block, so pre-c99 compilers don't object.
56729
56730         Avoid the double-free (first in fts_read, second in fts_close) that
56731         would occur when an `active' directory is made inaccessible (e.g.,
56732         via chmod a-x) during a traversal.
56733         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56734         before returning.  Reproduce this failure by
56735         mkdir -p a/b; cd a; chmod a-x . b
56736         Reported by Stavros Passas.
56737
56738 2006-01-25  Jim Meyering  <jim@meyering.net>
56739
56740         * lib/fileblocks.c: Remove more useless parentheses.
56741         * lib/readutmp.h: Likewise.
56742
56743 2006-01-25  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
56746         warnings.
56747         Reported by Paul Eggert.
56748
56749 2006-01-25  Bruno Haible  <bruno@clisp.org>
56750
56751         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
56752         rid of a trap command. For Solaris sh.
56753         Reported by Mark D. Baushke <mdb@gnu.org>.
56754
56755 2006-01-24  Simon Josefsson  <jas@extundo.com>
56756
56757         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
56758         Bruno.
56759
56760 2006-01-24  Karl Berry  <karl@gnu.org>
56761
56762         * config/srclist.txt (argp-namefrob.h): sync lost.
56763
56764 2006-01-24  Jim Meyering  <jim@meyering.net>
56765
56766         * modules/openat (Files): Add lib/intprops.h.
56767         From Mark D. Baushke.
56768
56769 2006-01-24  Jim Meyering  <jim@meyering.net>
56770
56771         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
56772         Reported by Mark D. Baushke.
56773
56774 2006-01-24  Jim Meyering  <jim@meyering.net>
56775
56776         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
56777
56778 2006-01-24  Bruno Haible  <bruno@clisp.org>
56779
56780         * modules/strnlen (Maintainer): Change from glibc to all.
56781
56782 2006-01-24  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
56785         Patch by Paul Eggert.
56786
56787 2006-01-24  Bruno Haible  <bruno@clisp.org>
56788
56789         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
56790         already has it.
56791         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
56792         2005-11-26.
56793
56794         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
56795         'signed char' to avoid problems with the built-in _Bool type.
56796         Reported by Paul Eggert on 2005-11-26.
56797
56798 2006-01-24  Bruno Haible  <bruno@clisp.org>
56799
56800         * gnulib-tool (func_import): Avoid constructing complicated sed
56801         expressions inside backquote.
56802         Report and solution by Mark D. Baushke <mdb@gnu.org>.
56803
56804 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
56805
56806         These changes imported from libc.
56807         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
56808         test and two separate function calls.
56809         * lib/strndup.c (__strndup): Add libc_hidden_def.
56810
56811 2006-01-23  Simon Josefsson  <jas@extundo.com>
56812
56813         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
56814         Remove the test_*_SOURCES variable: automake infers it by default.
56815         * modules/tls-tests: Likewise.
56816
56817 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         Work around porting bugs reported by Dieter in
56820         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
56821         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
56822         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
56823         Include "getopt.h" first, to check interface.
56824         (getenv): Declare only if defined HAVE_DECL_GETENV &&
56825         !HAVE_DECL_GETENV.
56826         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
56827         (__strndup): Revert to K&R-style function dfns, the glibc style.
56828         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
56829         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
56830         Include strnlen.h first, to get prototype properly.
56831         (strnlen): Renamed from __strnlen.
56832         Remove weak alias.
56833
56834 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56835
56836         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
56837
56838 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56839
56840         * config/srclist.txt: Adjust to reflect glibc reorganization.
56841         This affects only comments.
56842
56843 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56844
56845          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
56846          Reported by Bruce Korb <bkorb@gnu.org>.
56847
56848 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
56851         to pacify gcc -Wswitch-default.
56852
56853 2006-01-22  Bruno Haible  <bruno@clisp.org>
56854
56855         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
56856         temporary buffer for sprintf, take into account the precision also
56857         for 'd', 'i', 'u', 'o', 'x', 'X'.
56858
56859 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56860
56861         * modules/argp-tests: New module
56862         * tests/test-argp.c: New file
56863         * tests/test-argp-2.sh: New file
56864
56865 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56866
56867         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
56868         (__argp_base_name): Removed
56869         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
56870         typo.
56871         (__argp_base_name): Provide macro definition or extern declaration
56872         depending on the configuration
56873
56874 2006-01-20  Simon Josefsson  <jas@extundo.com>
56875
56876         * modules/inet_ntop (Depends-on): Depend on sys_socket.
56877
56878 2006-01-20  Simon Josefsson  <jas@extundo.com>
56879
56880         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
56881
56882 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
56885         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
56886         Suggested by Bruno Haible.
56887
56888 2006-01-20  Karl Berry  <karl@gnu.org>
56889
56890         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
56891         until changes propagate, I guess.
56892
56893 2006-01-19  Simon Josefsson  <jas@extundo.com>
56894
56895         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
56896
56897 2006-01-19  Simon Josefsson  <jas@extundo.com>
56898
56899         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
56900
56901 2006-01-19  Simon Josefsson  <jas@extundo.com>
56902
56903         * gnulib-tool: Set check_PROGRAMS.
56904
56905         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56906         modules/des-tests, modules/gc-arcfour-tests,
56907         modules/gc-arctwo-tests, modules/gc-des-tests,
56908         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56909         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56910         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56911         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56912         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56913         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
56914         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
56915         test_*_SOURCES.
56916
56917 2006-01-18  Simon Josefsson  <jas@extundo.com>
56918
56919         * modules/socklen (Depends-on): Depend on sys_socket.
56920
56921 2006-01-18  Simon Josefsson  <jas@extundo.com>
56922
56923         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56924         modules/des-tests, modules/gc-arcfour-tests,
56925         modules/gc-arctwo-tests, modules/gc-des-tests,
56926         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56927         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56928         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56929         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56930         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56931         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
56932         $(EXEEXT) to automake TESTS variable, for mingw32.
56933
56934 2006-01-17  Simon Josefsson  <jas@extundo.com>
56935
56936         * modules/socklen (Include): Need sys/socket.h.
56937
56938 2006-01-17  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/ssize_t (Include): Add <sys/types.h>.
56941
56942 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
56943
56944         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
56945         it's not portable and it doesn't work with cross-compiles.
56946         Problem reported by Bruno Haible.  Fix missing-$ typo in
56947         'test "gl_cv_ignore_unused_libraries" ...' that prevented
56948         -zignore from being used with Sun's C compiler.
56949
56950 2006-01-12  Simon Josefsson  <jas@extundo.com>
56951
56952         * lib/base64.c: Fix warning, reported by Bruno Haible
56953         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
56954
56955 2006-01-12  Bruno Haible  <bruno@clisp.org>
56956
56957         * modules/ldd: New file.
56958         * build-aux/ldd.sh.in: New file.
56959         * MODULES.html.sh (Support for building libraries and executables): Add
56960         ldd.
56961
56962 2006-01-12  Bruno Haible  <bruno@clisp.org>
56963
56964         * m4/ldd.m4: New file.
56965
56966 2006-01-12  Bruno Haible  <bruno@clisp.org>
56967
56968         * gnulib-tool (func_import, func_create_testdir): Don't go into an
56969         endless loop while replacing $auxdir with build-aux.
56970
56971 2006-01-11  Simon Josefsson  <jas@extundo.com>
56972
56973         * lib/stdint_.h (SIZE_MAX): Add missing (.
56974
56975 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56976
56977         Sync from coreutils.
56978         * lib/md5.c: Fix commentary typos.
56979         (alignof, UNALIGNED_P): No need for a GCC-specific version.
56980         * lib/md5.h (__attribute__): Remove; unused.
56981         * lib/sha1.c: Fix commentary to match md5 better.
56982         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
56983         so that we don't need to worry about alignment.  All uses changed.
56984         This merges the 2005-10-28 md5 change into sha1.
56985
56986 2006-01-11  Jim Meyering  <jim@meyering.net>
56987
56988         Sync from coreutils.
56989         * lib/md5.c (OP): Fix spacing.
56990
56991 2006-01-11  Bruno Haible  <bruno@clisp.org>
56992
56993         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56994         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
56995         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
56996
56997 2006-01-11  Bruno Haible  <bruno@clisp.org>
56998
56999         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57000         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57001         the "early" section as well.
57002
57003 2006-01-11  Bruno Haible  <bruno@clisp.org>
57004
57005         Avoid "ar: no archive members specified" error on MacOS X.
57006         * gnulib-tool (func_modules_add_dummy): New function.
57007         (func_import, func_create_testdir): Invoke it.
57008
57009 2006-01-11  Bruno Haible  <bruno@clisp.org>
57010
57011         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57012         with $auxdir in AC_CONFIG_FILES statements.
57013
57014 2006-01-11  Bruno Haible  <bruno@clisp.org>
57015
57016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57017         Initialize also noinst_HEADERS to empty.
57018
57019 2006-01-11  Bruno Haible  <bruno@clisp.org>
57020
57021         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57022         variables.
57023         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57024         autoreconf.
57025
57026 2006-01-11  Bruno Haible  <bruno@clisp.org>
57027
57028         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57029         overridable by the user.
57030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57031
57032 2006-01-10  Simon Josefsson  <jas@extundo.com>
57033
57034         * modules/sys_socket: New file.
57035
57036 2006-01-10  Simon Josefsson  <jas@extundo.com>
57037
57038         * m4/sys_socket_h.m4: New file.
57039
57040 2006-01-10  Simon Josefsson  <jas@extundo.com>
57041
57042         * lib/socket_.h: New file.
57043
57044 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57045
57046         * modules/readutmp (Maintainer): Add myself.
57047
57048 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57051         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57052         People who are still concerned with buggy memcmp implementations
57053         can invoke gl_FUNC_MEMCMP themselves.
57054
57055 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * lib/regex_internal.h (BITSET_WORD_BITS):
57058         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57059         preprocessor mishandles large unsigned values as if they were signed.
57060         Problem reported by Claudio Fontana in
57061         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57062
57063 2006-01-10  Jim Meyering  <jim@meyering.net>
57064
57065         Avoid the double-free (first in fts_read, second in fts_close) that
57066         would occur when an `active' directory is made inaccessible (e.g.,
57067         via chmod a-x) during a traversal.
57068         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57069         before returning.  Reproduce this failure by
57070         mkdir -p a/b; cd a; chmod a-x . b
57071         Reported by Stavros Passas.
57072
57073         Sync from coreutils.
57074         * lib/sha1.c: Tweak grammar in a comment.
57075
57076 2006-01-10  Jim Meyering  <jim@meyering.net>
57077
57078         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57079         Patch by Joerg Sonnenberger.
57080
57081 2006-01-10  Bruno Haible  <bruno@clisp.org>
57082
57083         * modules/readutmp: Depend on module free.
57084         * modules/strtok_r: Depend on module restrict.
57085
57086 2006-01-10  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/gettext (configure.ac): Add an invocation of
57089         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57090
57091 2006-01-10  Bruno Haible  <bruno@clisp.org>
57092
57093         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57094         Reported by Werner Lemberg <wl@gnu.org>.
57095
57096 2006-01-10  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/localcharset.c: Update from GNU gettext.
57099
57100 2006-01-10  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/argp.h (__const): Remove macro. Use const instead.
57103         * lib/argp-fmtstream.h (__const): Likewise.
57104         * lib/glob_.h (__const): Remove macro.
57105         * lib/glob-libc.h: Use const instead of __const.
57106
57107 2006-01-10  Bruno Haible  <bruno@clisp.org>
57108
57109         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57110         variable.
57111         Needed to avoid an automake error regarding the 'gettext' module.
57112
57113 2006-01-09  Simon Josefsson  <jas@extundo.com>
57114
57115         * modules/inet_ntop (Depends-on): Add restrict.
57116
57117 2006-01-09  Simon Josefsson  <jas@extundo.com>
57118
57119         * modules/gc-rijndael-tests (License): Put under LGPL.
57120
57121         * modules/gc-des-tests (License): Likewise.
57122
57123         * modules/gc-arcfour-tests (License): Likewise.
57124
57125         * modules/gc-arctwo-tests (License): Likewise.
57126
57127         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57128
57129         * modules/gc-hmac-sha1-tests (Files): Likewise.
57130
57131         * modules/gc-hmac-md5-tests (License): Likewise.
57132
57133         * modules/gc-sha1-tests (License): Likewise.
57134
57135         * modules/gc-md5-tests (License): Likewise.
57136
57137         * modules/gc-md4-tests (License): Likewise.
57138
57139         * modules/gc-md2-tests (License): Likewise.
57140
57141         * modules/gc-tests (License): Likewise.
57142
57143         * modules/des-tests (License): Likewise.
57144
57145         * modules/md4-tests (License): Likewise.
57146
57147         * modules/md2-tests (License): Likewise.
57148
57149 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57150
57151         Sync from coreutils:
57152
57153         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57154         * modules/lib-ignore: New file.
57155         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57156         chdir-safer.m4, lchmod.m4.
57157         * modules/openat: Add mkdirat.c, openat-priv.h.
57158
57159 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         Sync from coreutils.
57162         * m4/lib-ignore.m4: New file.
57163         * m4/lchmod.m4: New file.
57164
57165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57166
57167         Sync from coreutils.
57168         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57169         for write access: POSIX says that must fail.
57170         * lib/fts.c (diropen): Likewise.
57171         * lib/save-cwd.c (save_cwd): Likewise.
57172         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57173         well, for minor improvements on hosts that lack O_DIRECTORY.
57174         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57175         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57176         Fall back on chown if open failed with EACCES.
57177
57178         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57179         Report an error at compile-time if only a 1-second nominal clock
57180         resolution is found.
57181
57182         * lib/lchmod.h: New file.
57183         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57184         (make_dir_parents): Use lchown rather than chown, and
57185         lchmod rather than chmod.
57186
57187         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57188         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57189         "proc" reported by n0dalus.
57190
57191         * lib/mountlist.c: Include <limits.h>.
57192         (dev_from_mount_options)
57193         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57194         New function.  It no longer assumes "dev=" has the System V meaning
57195         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57196         (read_file_system_list)
57197         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57198         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57199         dev= in that case.
57200
57201         * lib/posixtm.h (PDS_PRE_2000): New macro.
57202         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57203         allow_century.  All usages changed.  Reject dates outside the range
57204         1969-1999 if PDS_PRE_2000 is used.
57205
57206 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         Sync from coreutils.
57209         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57210         (Time of day items): Mention the possibility of leap seconds.
57211         Problem reported by Dr. David Alan Gilbert.
57212
57213 2006-01-09  Jim Meyering  <jim@meyering.net>
57214
57215         Sync from coreutils.
57216
57217         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57218
57219         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57220
57221         * lib/modechange.c (mode_compile): Reject an invalid mode string
57222         that starts with an octal digit.  From Andreas Gruenbacher.
57223
57224         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57225         and dup to open_safer and dup_safer, respectively.
57226         (openat_permissive): Fix typo in comment.
57227
57228         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57229         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57230         (_): Remove; no longer needed.
57231         (openat): Renamed from rpl_openat; no need for rpl_openat
57232         since openat.h renames openat for us.
57233         Replace most of the body with a call to openat_permissive,
57234         to avoid duplicate code.
57235         Port to (probably hypothetical) environments were mode_t is
57236         wider than int.
57237         (openat_permissive): Require mode arg, so that we can check
57238         types better.  Put it just after flags.  Change cwd failure
57239         indicator from pointer-to-bool to pointer-to-errno-value.
57240         All callers changed.
57241         Invoke openat_save_fail and/or openat_restore_fail if
57242         cwd_errno is null, so that openat can call us.
57243         (openat_permissive, fdopendir, fstatat, unlinkat):
57244         Simplify errno handling to avoid some duplicate code,
57245         as it's OK to set errno on success.
57246         * lib/openat.h: Revamp code so that function macros depend on
57247         __OPENAT_PREFIX only, not also on AT_FDCWD.
57248         (openat_ro): Remove.  Caller changed to use openat_permissive.
57249         (openat_permissive): Now a macro, if not a function.
57250         (openat_restore_fail, openat_save_fail): Now always functions,
57251         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57252
57253         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57254         and openat.c.
57255         * lib/mkdirat.c: Include openat-priv.h.
57256         Remove definitions of macros defined therein.
57257         * lib/openat.c: Likewise.
57258
57259         * lib/mkdirat.c (mkdirat): New file and function.
57260         * lib/openat.h (mkdirat): Declare.
57261
57262         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57263
57264         * lib/openat.h (openat_permissive): Declare.
57265         (openat_ro): Define.
57266
57267         * lib/openat.c (EXPECTED_ERRNO): New macro.
57268         (openat_permissive): New function -- used in remove.c rewrite.
57269         (all functions): Set errno just before returning, only if there
57270         was an actual failure.
57271         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57272
57273         Emulate openat-family functions using Linux's procfs, if possible.
57274         Idea and some code based on Ulrich Drepper's glibc changes.
57275
57276         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57277         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57278         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57279         before falling back on save_cwd and restore_cwd.
57280         (fdopendir, fstatat, unlinkat): Likewise.
57281
57282         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57283         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57284
57285         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57286         as second argument to va_arg.  Otherwise, some versions of gcc
57287         warn that `if this code is reached, the program will abort'.
57288
57289 2006-01-09  Jim Meyering  <jim@meyering.net>
57290
57291         Sync from coreutils.
57292         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57293         Require openat-priv.h.
57294
57295 2006-01-09  Bruno Haible  <bruno@clisp.org>
57296
57297         * modules/strnlen (Include): Use strnlen.h.
57298
57299 2006-01-09  Bruno Haible  <bruno@clisp.org>
57300
57301         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57302
57303 2006-01-09  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/sysexit_.h (EX_OK): New macro.
57306         Suggested by Martin Lambers <marlam@marlam.de>.
57307
57308 2006-01-09  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57311         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57312
57313 2006-01-09  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57316         numbers.
57317
57318 2006-01-09  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57321         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57322         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57323         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57324
57325 2006-01-09  Bruno Haible  <bruno@clisp.org>
57326
57327         * build-aux/javacomp.sh.in: New file, moved from lib/.
57328         * modules/javacomp-script (Files): Update.
57329         (configure.ac): Add AC_CONFIG_FILES invocation.
57330         (EXTRA_DIST): Remove variable.
57331
57332         * build-aux/javaexec.sh.in: New file, moved from lib/.
57333         * modules/javaexec (Files): Update.
57334         (configure.ac): Add AC_CONFIG_FILES invocation.
57335         (EXTRA_DIST): Remove javaexec.sh.in.
57336
57337         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57338         * modules/csharpcomp-script (Files): Update.
57339         (configure.ac): Add AC_CONFIG_FILES invocation.
57340         (EXTRA_DIST): Remove variable.
57341
57342         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57343         * modules/csharpexec (Files): Update.
57344         (configure.ac): Add AC_CONFIG_FILES invocation.
57345         (EXTRA_DIST): Remove csharpexec.sh.in.
57346
57347 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57348
57349         Sync from coreutils.
57350
57351         Add POSIX ACL support
57352         * lib/acl.h (copy_acl, set_acl): Add declarations.
57353         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57354         systems other than Linux.
57355         (chmod_or_fchmod): New function: use fchmod when possible,
57356         and chmod otherwise.
57357         (file_has_acl): Add a POSIX ACL implementation, with a
57358         Linux-specific subcase.
57359         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57360         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57361         acls are unsupported.
57362         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57363         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57364         are unsupported.
57365
57366 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57367
57368         Sync from coreutils.
57369         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57370
57371 2006-01-07  Bruno Haible  <bruno@clisp.org>
57372
57373         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57374         gl_EARLY.
57375
57376 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57377
57378         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57379         Problem reported for Mingw by Mark Junker.
57380
57381 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         * README: Gnulib normally doesn't generate a tarball.
57384
57385 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57388         long int, not int, for nanosecond counts, so that people who are
57389         used to POSIX struct timespec won't be surprised.  Reported by Jim
57390         Meyering.
57391
57392 2005-12-28  Bruno Haible  <bruno@clisp.org>
57393
57394         * build-aux/config.rpath: Update from GNU gettext.
57395
57396 2005-12-16  Jim Meyering  <jim@meyering.net>
57397
57398         * modules/fprintftime: New module.
57399         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57400
57401 2005-12-16  Jim Meyering  <jim@meyering.net>
57402
57403         * m4/fprintftime.m4: New file.
57404
57405 2005-12-16  Jim Meyering  <jim@meyering.net>
57406
57407         * lib/fprintftime.c, lib/fprintftime.h: New files.
57408
57409 2005-12-15  Simon Josefsson  <jas@extundo.com>
57410
57411         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57412         new m4/socklen.m4.
57413
57414 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57415
57416         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57417         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57418
57419 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57420
57421         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57422         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57423         struct uparams is valid. Fall back to the default values if it is
57424         not.
57425
57426 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57427
57428         * modules/argp (Files): Add argp-pin.c
57429         (Depends-on): dirname
57430         (lib_SOURCES): Add argp-pin.c
57431
57432 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57433
57434         * m4/argp.m4:  Check if program_invocation_name and
57435         program_invocation_short_name are declared and define appropriate
57436         macros if they are not.
57437
57438 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57439
57440         * lib/argp-help.c (__argp_base_name): New function
57441         (__argp_short_program_name): Rewrite using __argp_base_name
57442         * lib/argp-namefrob.h: Define program_invocation_name and
57443         program_invocation_short_name if requested
57444         (__argp_base_name): Add prototype
57445         * lib/argp-parse.c (argp_def): Use gettext wrappers
57446         (argp_default_parser): Use __argp_base_name
57447         * lib/argp-pin.c: New file. Defines program_invocation_name and
57448         program_invocation_short_name on systems that lack them.
57449
57450 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57451
57452         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57453         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57454         porting problem reported by Georg Schwarz in
57455         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57456
57457 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57460         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57461         porting problem reported by Georg Schwarz in
57462         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57463
57464 2005-12-05  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
57467         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
57468         Reported by Mark Junker <mjscod@gmx.de>.
57469
57470 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
57471
57472         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
57473         Use implementation from Albert Chin, with some
57474         comments/corrections by Stepan Kasal and myself.
57475
57476 2005-12-02  Bruno Haible  <bruno@clisp.org>
57477
57478         * gnulib-tool (func_import): Accept GPLed build tool modules when
57479         --lgpl is given.
57480         * modules/csharpcomp-script: New file.
57481         * modules/csharpcomp: Depend on it.
57482         * modules/javacomp-script: New file.
57483         * modules/javacomp: Depend on it.
57484         Suggested by Simon Josefsson.
57485
57486 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
57489         statement, to work around an HP-UX 10.20 compiler bug reported by
57490         Peter O'Gorman.
57491
57492 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         * modules/savedir (Depends-on): Add openat.
57495
57496 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
57499         (uintmax_t) [defined uintmax_t]: Do not declare.
57500         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
57501         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
57502         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
57503         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
57504         sake of portability to weird hosts that C allows (though we don't
57505         know of any practical examples).
57506
57507         * lib/savedir.h (fdsavedir): New decl.
57508         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
57509         contains most of the former guts of savedir.
57510         (savedir): Use savedirstream.
57511         Include "openat.h".
57512
57513 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         * modules/obstack (Files): Add m4/ulonglong.m4.
57516         Problem reported by Davide Angelocola.
57517
57518 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57519
57520         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
57521         coreutils no longer futzes with rounding modes.
57522
57523 2005-11-14  Jim Meyering  <jim@meyering.net>
57524
57525         * lib/mkstemp-safer.c: Include <config.h>, required for possible
57526         replacement of mkstemp.
57527
57528 2005-11-10  Simon Josefsson  <jas@extundo.com>
57529
57530         * lib/readline.c: Remove EOL.
57531
57532 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * modules/gethrxtime (Depends-on): Add gettime.
57535
57536 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
57539         or gettimeofday; no longer needed.
57540
57541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57542
57543         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
57544         time business.
57545         (gethrxtime) [! (HAVE_NANOUPTIME
57546         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
57547         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
57548         our own approximation.
57549
57550 2005-11-08  Eric Blake  <ebb9@byu.net>
57551
57552         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57553
57554 2005-11-08  Eric Blake  <ebb9@byu.net>
57555
57556         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57557
57558 2005-11-04  Bruno Haible  <bruno@clisp.org>
57559
57560         * gnulib-tool: Implement --update mode.
57561
57562 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57563
57564         Fix porting problem reported by Theodoros V. Kalamatianos.
57565         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
57566         Don't assume that futimes failing means we must fail.
57567
57568 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
57571         variables to suggest the intended function of the PATH_MAX check.
57572
57573 2005-10-30  Kean Johnston  <jkj@sco.com>
57574
57575         Trivial changes to support SCO systems.
57576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
57577         as PATH_MAX.
57578         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
57579         where __ptr is null when no I/O is pending.
57580
57581 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
57584         leave errno alone.  Problem reported by Dmitry V. Levin.
57585
57586 2005-10-28  Simon Josefsson  <jas@extundo.com>
57587
57588         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
57589         Test more.
57590
57591         * tests/test-gc-md2.c, tests/test-md2.c: New files.
57592
57593         * modules/md2, modules/md2-tests: New files.
57594
57595 2005-10-28  Simon Josefsson  <jas@extundo.com>
57596
57597         * m4/inet_ntop.m4: More tests.
57598
57599         * m4/gc-md2.m4, md2.m4: New file.
57600
57601 2005-10-28  Simon Josefsson  <jas@extundo.com>
57602
57603         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
57604         "restrict" keywords, as per POSIX.  Protect the function
57605         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
57606         Don't use K&R prototypes.  Check the sprintf return values.
57607         Re-define EAFNOSUPPORT if not present.  Indent.
57608
57609         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
57610         suggested by Bruno Haible <bruno@clisp.org>.
57611
57612         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
57613
57614         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
57615
57616         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
57617         libgcrypt).
57618
57619         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
57620
57621         * lib/md2.h, lib/md2.c: New files.
57622
57623 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
57626         errno alone.  Problem reported by Frederic Jolliton.
57627
57628 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * modules/verify (License): Change from GPL to LGPL.  This is a
57631         tiny module and there are apparently near-equivalents that are
57632         under the BSD license.
57633
57634 2005-10-24  Simon Josefsson  <jas@extundo.com>
57635
57636         * modules/sha1: Relicense to LGPL.
57637
57638 2005-10-24  Simon Josefsson  <jas@extundo.com>
57639
57640         * lib/md4.h: Shrink buffer size, now that we changed the type.
57641
57642 2005-10-23  Simon Josefsson  <jas@extundo.com>
57643
57644         * gnulib-tool (func_import): Fix --tests-base.
57645
57646 2005-10-22  Simon Josefsson  <jas@extundo.com>
57647
57648         * modules/arcfour (Depends-on): Need stdint.
57649
57650 2005-10-22  Simon Josefsson  <jas@extundo.com>
57651
57652         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
57653         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
57654
57655 2005-10-22  Simon Josefsson  <jas@extundo.com>
57656
57657         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
57658         suggested by Bruno Haible <bruno@clisp.org>.
57659
57660 2005-10-22  Simon Josefsson  <jas@extundo.com>
57661
57662         * lib/crc.h: Include stddef.h, for size_t.
57663
57664 2005-10-22  Simon Josefsson  <jas@extundo.com>
57665
57666         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
57667         arcfour_context struct (simplify test vector testing in GNU
57668         Shishi).
57669
57670 2005-10-21  Simon Josefsson  <jas@extundo.com>
57671
57672         * modules/des, modules/des-tests: New files.
57673
57674         * modules/gc-des, modules/gc-des-tests: New files.
57675
57676         * tests/test-des.c, tests/test-gc-des.c: New file.
57677
57678 2005-10-21  Simon Josefsson  <jas@extundo.com>
57679
57680         * modules/arctwo, modules/arctwo-tests: New files.
57681
57682         * tests/test-arctwo.c: New file.
57683
57684         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
57685
57686         * tests/test-gc-arctwo.c: New file.
57687
57688 2005-10-21  Simon Josefsson  <jas@extundo.com>
57689
57690         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
57691         Bruno Haible <bruno@clisp.org>.
57692
57693         * m4/gc-des.m4: New file.
57694
57695 2005-10-21  Simon Josefsson  <jas@extundo.com>
57696
57697         * m4/arctwo.m4: New file.
57698
57699         * m4/gc-arctwo.m4: New file.
57700
57701 2005-10-21  Simon Josefsson  <jas@extundo.com>
57702
57703         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
57704         block.
57705
57706 2005-10-21  Simon Josefsson  <jas@extundo.com>
57707
57708         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
57709         <bruno@clisp.org>.
57710
57711         * lib/hmac-sha1.c (hmac_sha1): Likewise.
57712
57713         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
57714         Bruno Haible <bruno@clisp.org>.
57715
57716         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
57717         <bruno@clisp.org>.
57718
57719 2005-10-21  Simon Josefsson  <jas@extundo.com>
57720
57721         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
57722
57723 2005-10-21  Simon Josefsson  <jas@extundo.com>
57724
57725         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
57726
57727 2005-10-21  Simon Josefsson  <jas@extundo.com>
57728
57729         * lib/des.h, lib/des.c: New files.
57730
57731         * lib/gc-gnulib.c: Support DES.c
57732
57733 2005-10-21  Simon Josefsson  <jas@extundo.com>
57734
57735         * lib/arctwo.h, lib/arctwo.c: New files.
57736
57737         * lib/gc-gnulib.c: Support ARCTWO.
57738
57739 2005-10-21  Simon Josefsson  <jas@extundo.com>
57740
57741         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
57742         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57743
57744 2005-10-21  Simon Josefsson  <jas@extundo.com>
57745
57746         * gnulib-tool (func_import, func_create_testdir): Define automake
57747         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
57748         Makefile.am snippet),
57749         suggested by Bruno Haible <bruno@clisp.org>.
57750
57751         * modules/gc (Makefile.am): Use it.
57752
57753 2005-10-21  Bruno Haible  <bruno@clisp.org>
57754
57755         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
57756         patch.
57757
57758 2005-10-19  Simon Josefsson  <jas@extundo.com>
57759
57760         * tests/test-gc-rijndael.c: New file.
57761
57762         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
57763
57764 2005-10-19  Simon Josefsson  <jas@extundo.com>
57765
57766         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
57767         interface too.
57768
57769 2005-10-19  Simon Josefsson  <jas@extundo.com>
57770
57771         * tests/test-gc-arcfour.c: New file.
57772
57773         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
57774
57775 2005-10-19  Simon Josefsson  <jas@extundo.com>
57776
57777         * modules/gc-md4, modules/gc-md4-tests: New file.
57778
57779         * tests/test-gc-md4.c: New file.
57780
57781 2005-10-19  Simon Josefsson  <jas@extundo.com>
57782
57783         * m4/gc-md4.m4: New file.
57784
57785 2005-10-19  Simon Josefsson  <jas@extundo.com>
57786
57787         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
57788         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
57789         <kasal@ucw.cz>.
57790
57791 2005-10-19  Simon Josefsson  <jas@extundo.com>
57792
57793         * m4/gc-arcfour.m4: New file.
57794
57795         * m4/gc-rijndael.m4: New file.
57796
57797 2005-10-19  Simon Josefsson  <jas@extundo.com>
57798
57799         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
57800
57801 2005-10-19  Simon Josefsson  <jas@extundo.com>
57802
57803         * lib/gc-gnulib.c: Support ARCFOUR.
57804
57805 2005-10-19  Simon Josefsson  <jas@extundo.com>
57806
57807         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
57808         support.
57809
57810         * lib/gc.h: Add ECB enum type.
57811
57812         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
57813
57814 2005-10-18  Simon Josefsson  <jas@extundo.com>
57815
57816         * tests/test-md5.c: New file.
57817
57818         * modules/md5-tests: New file.
57819
57820 2005-10-18  Simon Josefsson  <jas@extundo.com>
57821
57822         * tests/test-md4.c: New file.
57823
57824         * modules/md4, modules/md4-tests: New files.
57825
57826 2005-10-18  Simon Josefsson  <jas@extundo.com>
57827
57828         * m4/md4.m4: New file.
57829
57830 2005-10-18  Simon Josefsson  <jas@extundo.com>
57831
57832         * lib/md4.h, lib/md4.c: New files, based on md5.?.
57833
57834 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
57835
57836         * gnulib-tool (func_create_testdir): Omit the second check whether
57837         BUILT_SOURCES in nonempty.
57838
57839 2005-10-17  Simon Josefsson  <jas@extundo.com>
57840
57841         * tests/test-rijndael.c: New file.
57842
57843 2005-10-17  Simon Josefsson  <jas@extundo.com>
57844
57845         * modules/sha1: Depend on stdint instead of md5.
57846
57847         * modules/md5: Depend on stdint, remove uint32_t.
57848
57849 2005-10-17  Simon Josefsson  <jas@extundo.com>
57850
57851         * modules/gc-sha1-tests: New file.
57852
57853         * tests/test-gc-sha1.c: New file.
57854
57855 2005-10-17  Simon Josefsson  <jas@extundo.com>
57856
57857         * m4/md5.m4: Remove call to uint32_t.m4.
57858
57859 2005-10-17  Simon Josefsson  <jas@extundo.com>
57860
57861         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
57862
57863         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
57864         md5.h.
57865
57866         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
57867
57868         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
57869
57870 2005-10-17  Simon Josefsson  <jas@extundo.com>
57871
57872         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
57873
57874 2005-10-17  Simon Josefsson  <jas@extundo.com>
57875
57876         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
57877
57878 2005-10-17  Simon Josefsson  <jas@extundo.com>
57879
57880         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
57881
57882         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
57883
57884 2005-10-17  Bruno Haible  <bruno@clisp.org>
57885
57886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
57887         that it can also be used in a test.
57888
57889 2005-10-16  Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool (func_emit_tests_Makefile_am): Also define
57892         TESTS_ENVIRONMENT, so that individual tests can augment it.
57893
57894         * gnulib-tool (func_create_testdir): Use an intermediate target for
57895         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
57896         macros, like $(ALLOCA_H), which cannot be passed through the command
57897         line.
57898
57899 2005-10-15  Simon Josefsson  <jas@extundo.com>
57900
57901         * modules/rijndael-tests: New file.
57902
57903         * modules/rijndael: New file.
57904
57905 2005-10-15  Simon Josefsson  <jas@extundo.com>
57906
57907         * m4/rijndael.m4: New file.
57908
57909 2005-10-15  Simon Josefsson  <jas@extundo.com>
57910
57911         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
57912
57913         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
57914
57915 2005-10-14  Simon Josefsson  <jas@extundo.com>
57916
57917         * tests/test-arcfour.c: New file.
57918
57919         * modules/arcfour, modules/arcfour-tests: New files.
57920
57921 2005-10-14  Simon Josefsson  <jas@extundo.com>
57922
57923         * m4/arcfour.m4: New file.
57924
57925 2005-10-14  Simon Josefsson  <jas@extundo.com>
57926
57927         * lib/arcfour.h, lib/arcfour.c: New files.
57928
57929 2005-10-14  Roland McGrath  <roland@redhat.com>
57930
57931         Import from libc.  [BZ #1331]
57932         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
57933         macro argument.
57934         Reported by Matej Vela <vela@debian.org>.
57935
57936 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
57939         include <wchar.h>; no longer needed.
57940
57941 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
57944
57945 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
57946         and  Ulrich Drepper  <drepper@redhat.com>
57947
57948         Import from libc.
57949         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
57950         instead of inline stream orientation test and two separate
57951         function calls.  Pay no attention to USE_IN_LIBIO.
57952
57953 2005-10-13  Simon Josefsson  <jas@extundo.com>
57954
57955         * modules/gc-hmac-md5-tests: New file.
57956
57957         * tests/test-gc-hmac-sha1.c: New file.
57958
57959         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
57960
57961         * modules/gc-hmac-md5-tests: New file.
57962
57963         * tests/test-gc-md5.c: New file.
57964
57965         * modules/gc-md5-tests: New file.
57966
57967 2005-10-13  Simon Josefsson  <jas@extundo.com>
57968
57969         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
57970         Move memory allocation outside of loop.
57971
57972 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57973
57974         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
57975         intermediate directory is in a read-only file system.  Problem
57976         reported by Eric Blake.
57977
57978 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
57979
57980         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
57981
57982 2005-10-12  Simon Josefsson  <jas@extundo.com>
57983
57984         * tests/test-hmac-sha1.c: New file.
57985
57986         * modules/hmac-sha1-tests: New file.
57987
57988         * modules/hmac-sha1: New file.
57989
57990 2005-10-12  Simon Josefsson  <jas@extundo.com>
57991
57992         * modules/gc-sha1: New file.
57993
57994 2005-10-12  Simon Josefsson  <jas@extundo.com>
57995
57996         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
57997
57998         * tests/test-gc-pbkdf2-sha1.c: New file.
57999
58000 2005-10-12  Simon Josefsson  <jas@extundo.com>
58001
58002         * modules/gc-md5, modules/gc-hmac-md5: New files.
58003
58004         * modules/gc (Files): Remove md5, memxor and hmac files.
58005
58006 2005-10-12  Simon Josefsson  <jas@extundo.com>
58007
58008         * m4/gc-pbkdf2-sha1.m4: New file.
58009
58010         * m4/gc-hmac-sha1.m4: New file.
58011
58012         * m4/gc-sha1: New file.
58013
58014         * m4/hmac-sha1.m4: New file.
58015
58016 2005-10-12  Simon Josefsson  <jas@extundo.com>
58017
58018         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58019
58020         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58021
58022 2005-10-12  Simon Josefsson  <jas@extundo.com>
58023
58024         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58025         suggested by Bruno Haible <bruno@clisp.org>.
58026
58027 2005-10-12  Simon Josefsson  <jas@extundo.com>
58028
58029         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58030
58031 2005-10-12  Simon Josefsson  <jas@extundo.com>
58032
58033         * lib/gc-pbkdf2-sha1.c: New file.
58034
58035         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58036
58037 2005-10-12  Simon Josefsson  <jas@extundo.com>
58038
58039         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58040
58041         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58042
58043 2005-10-12  Simon Josefsson  <jas@extundo.com>
58044
58045         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58046         GC_USE_HMAC_MD5, respectively.
58047
58048         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58049         (gc_md5): Fix typo.
58050
58051         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58052
58053         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58054
58055         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58056
58057 2005-10-12  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58060         Reported by Stepan Kasal <kasal@ucw.cz>.
58061
58062 2005-10-11  Simon Josefsson  <jas@extundo.com>
58063
58064         * tests/test-crc.c: New file.
58065
58066         * modules/crc, modules/crc-tests: New files.
58067
58068 2005-10-11  Simon Josefsson  <jas@extundo.com>
58069
58070         * m4/crc.m4: New file.
58071
58072 2005-10-11  Simon Josefsson  <jas@extundo.com>
58073
58074         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58075
58076         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58077
58078         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58079
58080 2005-10-11  Simon Josefsson  <jas@extundo.com>
58081
58082         * lib/crc.h, lib/crc.c: New files.
58083
58084         * lib/gc.h (gc_hash_buffer): Add doc.
58085
58086 2005-10-11  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/c-strcasestr: New file.
58089         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58090
58091 2005-10-11  Bruno Haible  <bruno@clisp.org>
58092
58093         * modules/c-strcase: New file.
58094         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58095
58096 2005-10-11  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/strcasecmp.c: Include limits.h.
58099         (strcasecmp): Avoid integer overflow on exotic platforms.
58100         * lib/strncasecmp.c: Include limits.h.
58101         (strncasecmp): Avoid integer overflow on exotic platforms.
58102         Reported by Paul Eggert.
58103
58104 2005-10-11  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/c-strcasestr.h: New file, from GNU gettext.
58107         * lib/c-strcasestr.c: New file, from GNU gettext.
58108
58109 2005-10-11  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/c-strcase.h: New file, from GNU gettext.
58112         * lib/c-strcasecmp.c: New file, from GNU gettext.
58113         * lib/c-strncasecmp.c: New file, from GNU gettext.
58114
58115 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58116
58117         * modules/mempcpy (License): GPL -> LGPL.
58118         * modules/strchrnul (License): Likewise.
58119         * modules/sysexits (License): Likewise.
58120
58121 2005-10-08  Simon Josefsson  <jas@extundo.com>
58122
58123         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58124
58125 2005-10-07  Simon Josefsson  <jas@extundo.com>
58126
58127         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58128
58129 2005-10-06  Simon Josefsson  <jas@extundo.com>
58130
58131         * tests/test-hmac-md5.c: New file.
58132
58133         * modules/hmac-md5-tests: New file.
58134
58135         * modules/hmac-md5: New file.
58136
58137 2005-10-06  Simon Josefsson  <jas@extundo.com>
58138
58139         * m4/hmac-md5.m4: New file.
58140
58141         * m4/memxor.m4: Require gl_C_RESTRICT.
58142
58143 2005-10-06  Simon Josefsson  <jas@extundo.com>
58144
58145         * lib/memxor.c (memxor): Avoid casts and warnings.
58146
58147 2005-10-06  Simon Josefsson  <jas@extundo.com>
58148
58149         * lib/hmac-md5.c: New file.
58150
58151         * lib/hmac.h: New file.
58152
58153 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58154
58155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58156         promotes to int, not unsigned int, to catch the AIX 5.3
58157         compiler bug.
58158
58159 2005-10-05  Simon Josefsson  <jas@extundo.com>
58160
58161         * modules/memxor: New file.
58162
58163         * modules/iconv (Files): Move config.rpath to havelib, it is used
58164         there.
58165
58166         * modules/havelib (Files): Add config.rpath.
58167
58168 2005-10-05  Simon Josefsson  <jas@extundo.com>
58169
58170         * m4/memxor.m4: New file.
58171
58172 2005-10-05  Simon Josefsson  <jas@extundo.com>
58173
58174         * lib/memxor.c (memxor): Fix compiler error.
58175
58176         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58177         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58178
58179         * lib/memxor.h, lib/memxor.c: New files.
58180
58181         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58182         we assume all systems have it, suggested by Jim Meyering
58183         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58184         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58185         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58186         same reasons.
58187
58188 2005-10-05  Simon Josefsson  <jas@extundo.com>
58189
58190         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58191
58192 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58195         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58196         needed, since the source code now assumes these .h files.
58197
58198 2005-10-05  Derek Price  <derek@ximbiot.com>
58199
58200         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58201
58202 2005-10-05  Bruno Haible  <bruno@clisp.org>
58203
58204         * modules/stdint (License): Change to LGPL.
58205
58206 2005-10-04  Simon Josefsson  <jas@extundo.com>
58207
58208         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58209         D. Baushke" <mdb@gnu.org>.
58210
58211 2005-10-04  Bruno Haible  <bruno@clisp.org>
58212
58213         * lib/verify.h (verify_true): Provide alternative definition for C++.
58214
58215 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58218         (SSIZE_MAX): New macro, if not already defined.
58219         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58220         than 2 GiB.
58221
58222 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         Sync from coreutils.
58225         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58226         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58227         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58228         ULLONG_MAX doesn't work with 2.7.2.1.
58229
58230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58231
58232         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58233         From Ben Pfaff.
58234
58235         * modules/exclude (Depends-on): Depend on verify.
58236         * modules/strtoimax (Depends-on): Likewise.
58237         * modules/utimecmp (Depends-on): Likewise.
58238
58239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * lib/exclude.c: Include verify.h.
58242         (verify): Remove.  All callers changed to use verify.h's version.
58243         * lib/strtoimax.c: Likewise.
58244         * lib/utimecmp.c: Likewis.e
58245
58246         Sync from coreutils.
58247         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58248         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58249         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58250         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58251         bother returning ENOSYS if settimeofday or stime fails; just let
58252         them return whatever errno they want to return.
58253         * lib/utimens.c: Include unistd.h, for dup2.
58254         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58255         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58256
58257 2005-10-02  Jim Meyering  <jim@meyering.net>
58258
58259         Sync from coreutils.
58260         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58261         from glibc-2.2.5 that fails for read-only files.
58262
58263 2005-10-02  Jim Meyering  <jim@meyering.net>
58264
58265         Sync from coreutils.
58266         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58267         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58268         `#if HAVE_CONFIG_H'.
58269         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58270         Remove AT_FDCWD test.
58271         Do not consume the fd unless successful.
58272         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58273         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58274         block, so that we don't even try to compile it if settimeofday is
58275         available.  This works around a compilation failure on OSF1 V5.1,
58276         due to stime requiring a `long int*' while tv_sec is `int'.
58277
58278 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58279
58280         Sync from coreutils.
58281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58282         against `yes', rather than just testing for nonempty.
58283
58284 2005-10-01  Simon Josefsson  <jas@extundo.com>
58285
58286         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58287         and Darwin.
58288
58289         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58290         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58291         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58292         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58293         Check if struct addrinfo is declared.
58294
58295 2005-10-01  Simon Josefsson  <jas@extundo.com>
58296
58297         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58298         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58299         AI_* and EAI_* definitions.  Protect function declarations.
58300
58301 2005-10-01  Jim Meyering  <jim@meyering.net>
58302
58303         Sync from coreutils.
58304
58305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58306         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58307         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58309         in the inet and nsl libraries.  Required on Solaris 5.7.
58310
58311 2005-10-01  Jim Meyering  <jim@meyering.net>
58312
58313         Sync from coreutils.
58314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58315         in the inet and nsl libraries.  Required on Solaris 5.7.
58316
58317 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58318
58319         * lib/getdelim.c (getdelim): Remove unused variables.
58320
58321 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58324         so that the code works even with ancient cpp.  Portability problem
58325         with GCC 2.7.2.1 reported by Thomas M.Ott.
58326
58327 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58328
58329         * modules/regex (Depends-on): Add strcase.
58330
58331         * modules/gethostname (Licence): Change from GPL to LGPL, since
58332         gethostname.c is a trivial implementation of a standard library
58333         function.
58334         * modules/poll (License): Change from GPL to LGPL, since it's
58335         derived from LGPL code.
58336
58337 2005-09-27  Jim Meyering  <jim@meyering.net>
58338
58339         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58340         HAVE_CONFIG_H.
58341
58342         * lib/intprops.h (signed_type_or_expr__): Define.
58343         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58344         for unsigned types.
58345
58346 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         * lib/verify.h (verify_expr): Remove, replacing with:
58349         (verify_true): New macro that returns true instead of void.
58350         (verify_type__): Remove.
58351         (verify): Use verify_true rather than verify_type__.
58352
58353 2005-09-26  Bruno Haible  <bruno@clisp.org>
58354
58355         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58356         is necessary.
58357         (lib_SOURCES): Remove mbchar.c.
58358         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58359         (Files): Add m4/mbrtowc.m4.
58360         * modules/mbiter: Likewise.
58361         * modules/mbuiter: Likewise.
58362
58363 2005-09-26  Bruno Haible  <bruno@clisp.org>
58364
58365         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58366         compile mbchar.c if they are not both present.
58367         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58368         * m4/mbiter.m4 (gl_MBITER): Likewise.
58369         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58370         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58371         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58372
58373 2005-09-25  Jim Meyering  <jim@meyering.net>
58374
58375         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58376         also uses socklen_t.
58377
58378 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58379
58380         * lib/utimens.c (ENOSYS): Define if not already defined.
58381         (futimens): Support having a null PATH if the file descriptor
58382         is nonnegative.
58383
58384         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58385         Remove.
58386         (__attribute): Define to empty unless GCC 3.1 or later.
58387         This works around a core dump on OpenBSD 3.4, which has GCC
58388         2.95.3, which dumps core when given __attribute__(()).  It also
58389         simplifies other tests, since we really don't want to bother with
58390         worrying about which ancient version of GCC supported what.
58391         Original problem reported by Yoann Vandoorselaere, with part of
58392         the fix suggested by Derek Price.
58393
58394 2005-09-24  Jim Meyering  <jim@meyering.net>
58395
58396         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58397         so we can once again use a positive bitfield width of 1 -- now we
58398         don't have to explain why we were using a bitfield width of 2.
58399
58400 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58403         and similarly for the other external symbols.  Problem reported
58404         by James Gallager.
58405
58406         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58407         bug reported by Jim Meyering.
58408
58409         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58411         not needed, since socklen is a prerequisite module.
58412
58413 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58416         Problem reported by Eric Blake.
58417         (getaddrinfo): Initialize se so that it's not garbage.
58418         Redo internal storage allocation so that it doesn't make unportable
58419         assumptions about alignment.
58420         Fix a memory leak.
58421
58422         * lib/utimens.c (futimens): Use futimesat if available.
58423         Prefer it to futimes since it doesn't have the futimes bug.
58424
58425         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58426         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58427         Instead, declare a function that returns a pointer to an array,
58428         and use verify_type__ to declare the size of the array.
58429         Problem and germ of a solution reported by Bruno Haible.
58430         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58431         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58432
58433 2005-09-23  Jim Meyering  <jim@meyering.net>
58434
58435         Sync from coreutils.
58436         Correct build failure (socklen_t not defined) on at least
58437         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58439
58440 2005-09-23  Jim Meyering  <jim@meyering.net>
58441
58442         * modules/getaddrinfo (Depends-on): Add socklen.
58443
58444 2005-09-23  Bruno Haible  <bruno@clisp.org>
58445
58446         * tests/test-verify.c: New file.
58447
58448 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         Sync from coreutils.
58451
58452         * modules/argmatch (Depends-on): Add verify.
58453         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58454         unistd-safer.
58455         * modules/save-cwd (Depends-on): Likewise.
58456
58457         * modules/openat (Files): Add lib/openat-die.c.
58458         (Depends-on): Remove error, exitfail.
58459         Add dirname.
58460
58461         * modules/verify: New file.
58462         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58463         with "verify" module.
58464
58465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         Sync from coreutils.
58468
58469         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
58470         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
58471         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
58472         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
58473         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
58474         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
58475         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
58476         Don't bother checking for string.h, stdlib.h, unistd.h.
58477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
58478         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
58479         module's job.
58480         * m4/jm-macros.m4 (gl_MACROS): Likewise.
58481         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
58482
58483         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
58484         (gl_GETDATE): Use it.
58485
58486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
58487
58488 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         Sync from coreutils.
58491
58492         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
58493         stat-time.h.
58494         * lib/argmatch.h: Include verify.h
58495         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
58496         (ARGMATCH_ASSERT): Remove; unused.
58497         * lib/canonicalize.c: Assume STDC_HEADERS.
58498         * lib/exclude.c: Include "strcase.h".
58499         * lib/regex_internal.h [!defined _LIBC]: Likewise.
58500         * lib/getusershell.c: Include stdio--.h rather than stdio.h
58501         and stdio-safer.h.
58502         (getusershell): Call fopen, not fopen_safer.
58503         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
58504         Do not include unistd-safer.h.
58505         (save_cwd): Don't call fd_safer; no longer needed
58506         now that we include fcntl--.h.
58507
58508         * lib/getdate.y (relative_time): New type.
58509         (RELATIVE_TIME_0): New constant.
58510         (parser_control): Use relative_time instead of doing it ourselves.
58511         (%union): Add new relative_time rel member.
58512         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
58513         Now typeless.
58514         (relunit, relunit_snumber): Now of type rel.
58515         (zone, rel, relunit, get_date): Adjust to above changes.
58516
58517         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
58518         Do not include unistd-safer.h.
58519         (getloadavg): Don't call fd_safer; no longer needed
58520         now that we include fcntl--.h.
58521
58522         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
58523         (make_dir_parents): Treat ENOSYS like EEXIST.
58524
58525         Improve quality of diagnostics on restore_cwd failure.
58526         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
58527         (make_dir_parents): Last arg is now int * (for errno), not bool *.
58528         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
58529         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
58530         each time through the loop.  Do not diagnose restore_cwd failure;
58531         that is the caller's job (and perhaps the caller does not care).
58532
58533         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
58534         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
58535         If the file already exists but is not a directory, don't bother
58536         to try to make its parents.
58537         Close potential file descriptor leak if we can't chdir("/") (!).
58538         Don't always return true if chdir($PWD) fails; return true only
58539         if the requested action was done successfully (except for the
58540         chdir($PWD)).
58541         Don't log final directory unless we actually made it.
58542         Refactor to avoid duplicate code to fix up permissions.
58543         Don't attempt to fix up parent permissions if chdir($PWD) fails.
58544
58545         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
58546         to make it a bit faster and (I hope) clearer.
58547         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
58548         Fix bug in formats like %2N.
58549
58550         * lib/verify.h: New file.
58551
58552 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         Sync from coreutils.
58555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
58556
58557 2005-09-22  Jim Meyering  <jim@meyering.net>
58558
58559         Sync from coreutils.
58560
58561         * m4/lstat.m4 (gl_FUNC_LSTAT):
58562         Use AC_LIBSOURCES to require lstat.c and lstat.h.
58563         Remove obsolete comment.
58564         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
58565         * m4/xstrtod.m4: Likewise.
58566
58567         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
58568
58569 2005-09-22  Jim Meyering  <jim@meyering.net>
58570
58571         Sync from coreutils.
58572
58573         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
58574
58575         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
58576         the .tm_year member, since otherwise gcc-4.0 would now warn about
58577         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
58578
58579         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
58580         order to avoid an unsuppressible warning from gcc on 64-bit systems.
58581
58582         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
58583         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
58584         when run in a time zone for which daylight savings time is in effect
58585         for the starting date.
58586
58587         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
58588         stop us from restricting permissions of just-created absolute-named
58589         directories.
58590         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
58591         to restore initial working directory.
58592         * lib/mkdir-p.c (make_dir_parents): New parameter:
58593         different_working_dir, to tell caller if/when we change the working
58594         directory and are unable to return to the initial one.
58595         * lib/mkdir-p.h (make_dir_parents): Update prototype.
58596         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
58597         `return false'.  This fixes a bug introduced on 2004-07-30.
58598
58599         * lib/openat.c (fdopendir): Be sure to close the supplied
58600         file descriptor before returning.  This makes our replacement
58601         implementation a little closer to Solaris's, where fdopendir
58602         ties the file descriptor to the returned DIR* pointer.
58603         * lib/openat.c (unlinkat): New function.
58604         * lib/openat.h (unlinkat): Add prototype.
58605         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
58606         (openat_restore_fail): Rename from openat_restore_die.
58607         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
58608
58609         Provide an alternative to exiting immediately upon save_cwd or
58610         restore_cwd failure.  Now, an application can arrange e.g.,
58611         to perform a longjump in that case.
58612         * lib/openat.c: Include dirname.h.
58613         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
58614         (rpl_openat, fdopendir, fstatat): Call openat_save_die
58615         and openat_restore_die rather than calling error directly.
58616         Don't include "error.h" or "exitfail.h"; they're no longer needed.
58617
58618         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
58619         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
58620         define.
58621
58622         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
58623         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
58624                             int utc, int nanoseconds);
58625         Background:
58626         date should not have to allocate a megabyte of virtual memory to
58627         handle a format argument like +%1048575T.  When implemented with
58628         strftime, it must allocate such a buffer, use strftime to fill it
58629         in, print it, then free it.
58630         With fprintftime, it simply prints everything and exits.
58631         With no need for memory allocation, that's one fewer way to fail.
58632         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
58633         optional field width, not before, so we accept %9:z, not %:9z.
58634         (my_strftime): Be sure to use L_('x') for literals.
58635
58636         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
58637         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
58638         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
58639         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
58640         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
58641         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
58642         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
58643         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
58644         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
58645         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
58646         * lib/xgethostname.c, lib/xreadlink.c:
58647         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
58648
58649         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
58650         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
58651         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
58652         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58653         and don't include <sys/file.h>).
58654
58655 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
58656
58657         Sync from coreutils.
58658
58659         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
58660         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
58661         [!LDAV_DONE]: Avoid unused variable warning.
58662
58663 2005-09-21  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/unicodeio.h (unicode_to_mb): New declaration.
58666
58667 2005-09-20  Derek Price  <derek@ximbiot.com>
58668
58669         * lib/getaddrinfo.c: Don't include <netdb.h> included from
58670         getaddrinfo.h.
58671
58672 2005-09-20  Bruno Haible  <bruno@clisp.org>
58673
58674         * gnulib-tool: Remove trailing slashes from the values specified for
58675         --source-base, --m4-base, --tests-base, --aux-dir.
58676         Suggested by Simon Josefsson <jas@extundo.com>.
58677
58678 2005-09-20  Bruno Haible  <bruno@clisp.org>
58679
58680         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
58681         func_modules_to_filelist, func_import, func_create_testdir): Make all
58682         sorting results locale-independent, so that gnulib-cache.m4 doesn't
58683         change when gnulib-tool is invoked in a different locale.
58684
58685 2005-09-19  Simon Josefsson  <jas@extundo.com>
58686
58687         * m4/socklen.m4: Fix typo.
58688
58689 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58690
58691         Use a consistent style for including <config.h>.
58692         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
58693         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
58694         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
58695         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
58696         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
58697         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
58698         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
58699         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
58700         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
58701         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
58702         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
58703         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
58704         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
58705         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
58706         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
58707         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
58708         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
58709         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
58710         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
58711         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
58712         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
58713         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
58714         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
58715         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
58716         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
58717         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
58718         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
58719         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
58720         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
58721         lib/xstrtoumax.c, lib/yesno.c:
58722         Standardize inclusion of config.h.
58723         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
58724         lib/inttostr.h:  Removed inclusion of config.h from header files.
58725         * lib/inttostr.c:  Adjusted in-tree users.
58726         * lib/timespec.h: Remove superfluous warning to include config.h.
58727         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
58728         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
58729         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
58730         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
58731         config.h with HAVE_CONFIG_H.
58732
58733 2005-09-19  Jim Meyering  <jim@meyering.net>
58734
58735         * modules/pathmax (License): Change to LGPL.
58736
58737 2005-09-19  Derek Price  <derek@ximbiot.com>
58738
58739         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
58740
58741 2005-09-19  Bruno Haible  <bruno@clisp.org>
58742
58743         * gnulib-tool (import): Provide default for --tests-base.
58744
58745 2005-09-19  Bruno Haible  <bruno@clisp.org>
58746
58747         * doc/quote.texi: New file, extracted from gnulib.texi.
58748         * doc/ctime.texi: New file, extracted from gnulib.texi.
58749         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
58750         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
58751         * doc/gnulib.texi: Include them.
58752
58753 2005-09-18  Bruno Haible  <bruno@clisp.org>
58754
58755         Portability fix.
58756         * gnulib-tool (func_readlink): New function.
58757         (func_ln_if_changed): Use it.
58758
58759 2005-09-18  Bruno Haible  <bruno@clisp.org>
58760
58761         * gnulib-tool: Support --with-tests also with --import.
58762         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
58763         (func_import): Use variables $testsbase and $inctests. Emit a
58764         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
58765         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
58766         SUBDIRS += $testsdir.
58767         (func_create_testdir): Update.
58768
58769 2005-09-18  Bruno Haible  <bruno@clisp.org>
58770
58771         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
58772         instead of $dry_run.
58773         (func_cp_if_changed, func_mv_if_changed): Remove functions.
58774         (func_ln_if_changed): Don't handle dry-run here.
58775         (func_import): In dry-run mode, detect more precisely which actions
58776         would be performed, and don't use "...ing" verbs.
58777
58778 2005-09-18  Bruno Haible  <bruno@clisp.org>
58779
58780         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
58781         (func_import): Use join on two temporary files instead of three nested
58782         loops, in order to determine which files are new or old.
58783
58784 2005-09-18  Bruno Haible  <bruno@clisp.org>
58785
58786         * gnulib-tool (func_import): Comment out code that spits out the
58787         new files with --dry-run.
58788
58789 2005-09-18  Bruno Haible  <bruno@clisp.org>
58790
58791         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
58792
58793 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         * lib/stat-time.h: New file.
58796         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
58797         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
58798         in a different way.
58799         (timespec_cmp): New function.
58800         * lib/utimecmp.c: Include stat-time.h.
58801         (SYSCALL_RESOLUTION): Depend on whether various struct stat
58802         members exist, not on the obsolescent ST_MTIM_NSEC.
58803         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
58804
58805 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58806
58807         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
58808
58809 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         * MODULES.html.sh (File system functions): Add stat-time.
58812         * modules/stat-time: New file.
58813         * modules/timespec (Files): Remove m4/st_mtim.m4; this
58814         is now done in a different way, by the stat-time module.
58815         * modules/utimecmp (Depends-on): Add stat-time.
58816
58817 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         * m4/st_mtim.m4: Remove.  Superseded by...
58820         * m4/stat-time.m4: New file.
58821         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
58822         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
58823
58824 2005-09-15  Derek Price  <derek@ximbiot.com>
58825
58826         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
58827
58828 2005-09-15  Derek Price  <derek@ximbiot.com>
58829
58830         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
58831         * lib/regex_internal.c: Ditto, using this...
58832         (__GNUC_PREREQ): ...new macro.
58833         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
58834         using...
58835         (__GNUC_PREREQ): ...this new macro.
58836
58837         * lib/strstr.h: Include string.h. Define strstr as a macro here.
58838
58839 2005-09-15  Derek Price  <derek@ximbiot.com>
58840             Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
58843         changes, consolidating in...
58844         * lib/regex_internal.h: ...this file.
58845
58846 2005-09-13  Jim Meyering  <jim@meyering.net>
58847
58848         * lib/canon-host.c: Filter through gnu indent and reword comments
58849         slightly.
58850         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
58851
58852 2005-09-13  Derek Price  <derek@ximbiot.com>
58853
58854         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
58855         failure.
58856         Reported by Jim Meyering  <jim@meyering.net>.
58857
58858 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58859
58860         * lib/base64.c: Typo.
58861         (base64_encode): Put b64str in initialized data section.
58862
58863 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         Merge glibc and coreutils changes into gnulib, plus a few
58866         extra fixes.
58867         * lib/md5.c: Use #error rather than a string.
58868         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
58869         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
58870         (__attribute__): Define to empty for non recent-GCC.
58871         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
58872         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
58873         Renamed from their non-__ counterparts, with new macros replacing
58874         them if not _LIBC.  Add __THROW attribute.
58875         (rol): Remove.
58876         (struct md5_ctx): Align buffer if using GCC.
58877         * lib/sha1.h (struct sha1_ctx): Likewise.
58878         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
58879         The old name was backwards.
58880         (NOTSWAP): Remove; not used.
58881         (rol): New macro, moved here from md5.h.
58882         (sha1_process_block): Remove a FIXME that doesn't make sense.
58883
58884 2005-09-12  Derek Price  <derek@ximbiot.com>
58885
58886         Return usable errors from canon-host.
58887         * lib/canon-host.h: New file.
58888         * lib/canon-host.c (canon_host): Wrap...
58889         (canon_host_r): ...this new function, which now relies exclusively on
58890         getaddrinfo.
58891         (ch_strerror): New function.
58892         (last_cherror): New global.
58893         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
58894         interface.
58895         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
58896         void *.
58897         (freeaddrinfo): Free ai->ai_canonname when set.
58898
58899 2005-09-12  Derek Price  <derek@ximbiot.com>
58900
58901         Make canon-host require getaddrinfo.
58902         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
58903         AC_LIBSOURCE canon-host.h.  Call...
58904         (gl_PREREQ_CANON_HOST): ...this new function, which requires
58905         gl_GETADDRINFO.
58906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
58907
58908 2005-09-12  Derek Price  <derek@ximbiot.com>
58909
58910         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
58911         LGPL.
58912         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
58913
58914 2005-09-12  Derek Price  <derek@ximbiot.com>
58915
58916         * lib/gai_strerror.c: Include config.h when available.  Include
58917         getaddrinfo.h before other headers to test interface.
58918         Reported by Larry Jones <lawrence.jones@ugs.com>.
58919
58920 2005-09-12  Derek Price  <derek@ximbiot.com>
58921             Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * modules/glob (Files): Add glob-libc.h.
58924
58925 2005-09-12  Derek Price  <derek@ximbiot.com>
58926             Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
58929         glob_.h, glob-libc.h.
58930         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
58931
58932 2005-09-12  Derek Price  <derek@ximbiot.com>
58933             Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
58936         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
58937         protecting things that should be done only in gnulib contexts.
58938         * lib/glob_.h: New file, containing only the glob things needed for
58939         gnulib.
58940         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
58941         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
58942         (glob, globfree, glob_pattern_p): Now defined simply in terms of
58943         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
58944         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
58945         and to respect the namespace rules better.
58946
58947 2005-09-08  Simon Josefsson  <jas@extundo.com>
58948
58949         * modules/socklen: New file.
58950
58951 2005-09-08  Simon Josefsson  <jas@extundo.com>
58952
58953         * m4/socklen.m4: New file.
58954
58955 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * modules/utimens (Files): Add m4/utimbuf.m4, since
58958         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
58959         Reported by Sergey Poznyakoff.
58960
58961 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58962
58963         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
58964         definitions, since that's the preferred style in glibc.
58965         Fix a minor spacing issue, and update copyright notice to match
58966         glibc's.
58967
58968 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58969
58970         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
58971
58972 2005-09-06  Simon Josefsson  <jas@extundo.com>
58973
58974         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
58975         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
58976
58977 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
58980         warning.
58981
58982 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58983
58984         * config/srclist.txt: Add glibc bug 1302.
58985
58986 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         Change bitset word type from unsigned int to unsigned long int,
58989         as this has better performance on typical 64-bit hosts.
58990         Port bitset code to hosts with unusual word sizes.
58991         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
58992         (build_collating_symbol):
58993         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
58994         argument is a bitset.  This is merely a style issue, but it makes
58995         it clearer that an entire array is expected.
58996         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
58997         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
58998         Port to the case where bitset_word is not the same as unsigned int.
58999         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59000         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59001         Likewise.
59002         * lib/regexec.c (check_dst_limits_calc_pos_1,
59003         check_subexp_matching_top):
59004         (build_trtable, group_nodes_into_DFAstates):
59005         Likewise.
59006         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59007         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59008         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59009         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59010         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59011         * lib/regcomp.c (optimize_subexps, lower_subexp):
59012         Work even if bitset_word has holes in its bitwise representation.
59013         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59014         * lib/regexec.c (check_dst_limits_calc_pos_1,
59015         check_subexp_matching_top):
59016         Likewise.
59017         * lib/regex_internal.c (re_string_reconstruct):
59018         Don't assume UCHAR_MAX == 255.
59019         * lib/regex_internal.h (bitset_set_all): Likewise.
59020         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59021         All uses changed.
59022         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59023         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59024         All uses changed.
59025         (BITSET_WORD_MAX): New macro.
59026         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59027         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59028         (bitset_empty, bitset_copy):
59029         Prefer sizeof (bitset) to multiplying it out ourselves.
59030         (bitset_not_merge): Remove; unused.
59031         (bitset_contain): Return bool, not unsigned int with one bit on.
59032         All callers changed.
59033         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59034         alignment than re_node_set; do this by defining a new internal
59035         type struct dests_alloc and using it to allocate memory.
59036
59037 2005-09-05  Bruno Haible  <bruno@clisp.org>
59038
59039         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59040         links.
59041
59042 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59043
59044         * modules/size_max (Makefile.am): Add size_max.h
59045
59046 2005-09-04  Derek Price  <derek@ximbiot.com>
59047
59048         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59049
59050 2005-09-03  Simon Josefsson  <jas@extundo.com>
59051
59052         * gnulib-tool: Fix typo.
59053
59054 2005-09-03  Simon Josefsson  <jas@extundo.com>
59055
59056         * config/srclist.txt: Add glibc bug 1293.
59057
59058 2005-09-03  Derek Price  <derek@ximbiot.com>
59059
59060         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59061         From Larry Jones <lawrence.jones@ugs.com>.
59062
59063 2005-09-02  Simon Josefsson  <jas@extundo.com>
59064
59065         * modules/socklen: New file.
59066
59067 2005-09-02  Simon Josefsson  <jas@extundo.com>
59068
59069         * modules/havelib: New module.
59070
59071         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59072         Use havelib.
59073
59074 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59075
59076         Check for arithmetic overflow when calculating sizes, to prevent
59077         some buffer-overflow issues.  These patches are conservative, in the
59078         sense that when I couldn't determine whether an overflow was possible,
59079         I inserted a run-time check.
59080         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59081         macros.
59082         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59083         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59084         (re_xnrealloc, re_x2nrealloc): New inline functions.
59085         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59086         parse_bracket_exp):
59087         (build_equiv_class, build_charclass): Check for arithmetic overflow
59088         in size expression calculations.
59089         * lib/regex_internal.c (re_string_realloc_buffers):
59090         (build_wcs_upper_buffer, re_node_set_add_intersect):
59091         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59092         (re_dfa_add_node, register_state): Likewise.
59093         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59094         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59095         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59096         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59097
59098 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59101         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59102
59103 2005-09-02  Bruno Haible  <bruno@clisp.org>
59104
59105         Support for lib vs. lib64 distinction on biarch platforms.
59106         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59107         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59109
59110 2005-09-02  Bruno Haible  <bruno@clisp.org>
59111
59112         * gnulib-tool (import): In the other first-use case, provide defaults
59113         as well.
59114
59115 2005-09-02  Bruno Haible  <bruno@clisp.org>
59116
59117         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59118         patches not yet found in the latest gettext release.
59119
59120 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59121
59122         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59123         to avoid a collision with bits/local_lim.h in glibc.
59124         All uses changed.  Problem reported by Dmitry V. Levin in
59125         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59126
59127         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59128         bugs in int versus size_t comparisons.
59129         (re_string_context_at): Fix bug where the code assumed that
59130         Idx is signed.
59131
59132         Use bool where appropriate.
59133         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59134         All callers changed.
59135         (calc_eclosure_iter): Likewise, for ROOT arg.
59136         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59137         (build_charclass_op): Likewise, for NON_MATCH arg.
59138         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59139         (re_string_construct_common): Likewise, for ICASE arg.
59140         * lib/regexec.c (re_search_2_stub, re_search_stub):
59141         Likewise, for RET_LEN arg.
59142         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59143         (set_regs): Likewise, for FL_BACKTRACK arg.
59144         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59145         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59146         (calc_eclosure_iter, parse_bracket_exp):
59147         Use bool for internal variables that are booleans.
59148         * lib/regexec.c (re_search_internal, check_matching,
59149         proceed_next_node):
59150         (set_regs, build_sifted_states, sift_states_bkref):
59151         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59152         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59153         (find_collation_sequence_value):
59154         Likewise.
59155         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59156         (re_node_set_compare):
59157         Return bool, not int. All callers changed.
59158         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59159         (build_trtable, check_node_accept): Likewise.
59160         * lib/regex_internal.h: Include stdbool.h.
59161
59162         Fix bugs uncovered when converting to bool.
59163         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59164         failure instead of charging ahead blindly.
59165         * lib/regex_internal.c (register_state): Likewise.
59166         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59167         for freeing internal storage.
59168         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59169         bitset pieces used as boolean, to avoid undefined behavior
59170         on hosts that do int overflow checking.
59171
59172 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * config/srclist.txt: Add glibc bugs 1285-1287.
59175
59176 2005-09-01  Jim Meyering  <jim@meyering.net>
59177
59178         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59179         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59180         Require gl_STAT_MACROS, too.
59181
59182 2005-09-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * gnulib-tool (import): In the first-use case, provide defaults.
59185
59186 2005-09-01  Bruno Haible  <bruno@clisp.org>
59187
59188         * gnulib-tool (func_import): Remove the .tmp files.
59189
59190 2005-09-01  Bruno Haible  <bruno@clisp.org>
59191
59192         * gnulib-tool (func_import): Fix handling of symbolic links.
59193
59194 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59197         old glibc regex code mishandles strings longer than 2**31 bytes.
59198         This patch fixes this when the regex code is used in gnulib
59199         (i.e., outside glibc).
59200
59201         This patch should not affect the use of the regex code inside
59202         glibc.  No doubt this problem also needs to be handled for glibc
59203         as well, but the result will be an incompatible change to the
59204         glibc ABI, and the old ABI will have to be supported too.  That
59205         can be the the subject for another patch.
59206
59207         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59208         governing whether the rest of this patch is active.  By default,
59209         the macro is disabled and the patch has no effect.
59210         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59211         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59212         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59213         (re_match_2, re_set_registers): Use the new types.
59214         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59215         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59216         New macros.
59217         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59218         (re_string_context_at, bin_tree_t, re_dfastate_t):
59219         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59220         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59221         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59222         (re_string_char_size_at, re_string_wchar_at):
59223         (re_string_elem_size_at):
59224         Use the new types and macros to port to 64-bit hosts.
59225         Use unsigned types for internal values, so that the code
59226         mostly works even for arrays larger than SSIZE_MAX.
59227         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59228         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59229         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59230         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59231         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59232         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59233         (calc_inveclosure, parse_dup_op, build_range_exp):
59234         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59235         (fetch_number, create_token_tree, mark_opt_subexp):
59236         Likewise.
59237         * lib/regex_internal.c (re_string_construct_common,
59238         create_ci_newstate):
59239         (create_cd_newstate, re_string_allocate, re_string_construct):
59240         (re_string_realloc_buffers, build_wcs_upper_buffer):
59241         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59242         (re_string_reconstruct, re_string_peek_byte_case):
59243         (re_string_fetch_byte_case, re_string_context_at):
59244         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59245         (re_node_set_init_copy, re_node_set_add_intersect):
59246         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59247         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59248         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59249         (re_acquire_state, re_acquire_state_context, register_state):
59250         Likewise.
59251         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59252         search_cur_bkref_entry):
59253         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59254         (re_search_internal, re_search_2_stub, re_search_stub)
59255         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59256         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59257         (update_cur_sifted_state, check_dst_limits):
59258         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59259         (check_subexp_limits, sift_states_bkref, merge_state_array):
59260         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59261         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59262         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59263         (expand_bkref_cache, check_node_accept_bytes):
59264         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59265         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59266         (acquire_init_state_context, check_halt_node_context):
59267         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59268         (sift_states_backward, clean_state_log_if_needed):
59269         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59270         (find_recover_state, transit_state_sb, transit_state_mb):
59271         (transit_state_bkref, build_trtable, match_ctx_clean):
59272         Likewise.
59273         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59274         to work around an assumption that REG_MISSING is negative.
59275
59276         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59277         (seek_collating_symbol_entry) [defined _LIBC]:
59278         (lookup_collation_sequence_value) [defined _LIBC]:
59279         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59280         Use prototypes rather than old-style function definitions.
59281         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59282         (transit_state_sb) [0]:
59283         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59284
59285         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59286         rm_eo.
59287
59288         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59289         (optimize_subexps, lower_subexp):
59290         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59291         since the signed shift might overflow.  Use 1u<<31 instead.
59292         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59293         Likewise.
59294         * lib/regexec.c (check_dst_limits_calc_pos_1,
59295         check_subexp_matching_top): Likewise.
59296
59297         * lib/regcomp.c (optimize_subexps, lower_subexp):
59298         Use CHAR_BIT rather than 8, for clarity.
59299         * lib/regexec.c (check_dst_limits_calc_pos_1):
59300         (check_subexp_matching_top): Likewise.
59301         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59302         have to worry about portability issues when shifting it left.
59303         Remove no-longer-needed test for table_size > 0.
59304         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59305         in a word, as the resulting behavior is undefined.
59306         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59307         in one case, a <= should have been an <, and in another case the
59308         whole test was missing.
59309         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59310         the standard name CHAR_BIT.
59311         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59312         this is not true on one's complement and signed-magnitude hosts.
59313
59314         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59315         next_last_offset.
59316         (struct re_dfa_t): Remove unused member states_alloc.
59317         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59318
59319 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59322         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59323         and large-file glibc and in 32-bit large-file Solaris.
59324
59325 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59328         lengths fit in regoff_t; this isn't true if regoff_t is the same
59329         width as size_t.
59330         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59331         (= START + RANGE) instead of RANGE.  This avoids overflow
59332         problems when regoff_t is the same width as size_t.
59333         All callers changed.
59334         (re_search_2_stub): Check for overflow when adding the
59335         sizes of the two strings.
59336         (re_search_stub): Check for overflow when adding START
59337         to RANGE; if it occurs, substitute the extreme value.
59338
59339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59342
59343 2005-08-31  Jim Meyering  <jim@meyering.net>
59344
59345         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59346         a pointer-to-const.
59347         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59348         (register_state): Likewise.
59349         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59350         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59351         (group_nodes_into_DFAstates): Likewise.
59352
59353 2005-08-31  Jim Meyering  <jim@meyering.net>
59354
59355         * check-module: Add a FIXME comment.
59356
59357 2005-08-31  Eric Blake  <ebb9@byu.net>
59358
59359         * modules/unistd-safer (Files): Add unistd--.h.
59360         * modules/stdio-safer (Files): Add stdio--.h.
59361
59362 2005-08-31  Derek Price  <derek@ximbiot.com>
59363
59364         * lib/getdelim.c (getdelim): Return EOF on EOF.
59365         Reported by Larry Jones <lawrence.jones@ugs.com>.
59366
59367 2005-08-31  Bruno Haible  <bruno@clisp.org>
59368
59369         Avoid unnecessary diffs in the generated lib/Makefile.am.
59370         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59371         the generated files.
59372         (func_import): Don't set cmd.
59373
59374 2005-08-31  Bruno Haible  <bruno@clisp.org>
59375
59376         * lib/strstr.c: Include <stddef.h>, for NULL.
59377         * lib/strcasestr.c: Likewise.
59378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59379
59380 2005-08-31  Bruno Haible  <bruno@clisp.org>
59381
59382         * gnulib-tool: New option --macro-prefix.
59383         (func_import): Use macro_prefix.
59384         (import): Handle option --macro-prefix.
59385
59386 2005-08-31  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59389         Also use new variables cached_lgpl, cached_libtool.
59390
59391 2005-08-31  Bruno Haible  <bruno@clisp.org>
59392
59393         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59394         always instantiating them.
59395
59396 2005-08-31  Bruno Haible  <bruno@clisp.org>
59397
59398         * gnulib-tool (func_import): Read the previous cached settings
59399         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59400         earlier added by gnulib but are now dropped. Warn when a gnulib file
59401         overwrites a non-gnulib file.
59402
59403 2005-08-31  Bruno Haible  <bruno@clisp.org>
59404
59405         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59406         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59407         projects that don't keep autogenerated files in CVS. Put into
59408         actioncmd only the specified modules, not the transitive closure.
59409
59410 2005-08-31  Bruno Haible  <bruno@clisp.org>
59411
59412         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59413         Create directories that shall be filled.
59414         (import): Don't look for gl_* macros in configure.ac. Recurse across
59415         all directories containing a gnulib-cache.m4 files, if meaningful.
59416
59417 2005-08-31  Bruno Haible  <bruno@clisp.org>
59418
59419         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59420         (import): Set seen_libtool when we see gl_LIBTOOL.
59421
59422 2005-08-31  Bruno Haible  <bruno@clisp.org>
59423
59424         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59425         declaration macro definitions from generated gnulib.m4.
59426
59427 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59428
59429         * lib/iconvme.h: Add prototype for iconv_alloc.
59430
59431 2005-08-29  Simon Josefsson  <jas@extundo.com>
59432
59433         * lib/iconvme.c: Fix errno.
59434
59435 2005-08-29  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59438         that it works when the directory contains spaces.
59439
59440 2005-08-29  Bruno Haible  <bruno@clisp.org>
59441
59442         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59443
59444 2005-08-29  Bruno Haible  <bruno@clisp.org>
59445
59446         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59447         Emit more advice.
59448
59449 2005-08-29  Bruno Haible  <bruno@clisp.org>
59450         and Stepan Kasal  <kasal@ucw.cz>
59451
59452         * check-module: If more parameters are given, check each of them
59453         separately; add more exceptions, as noted by Jim Meyering.
59454         (check_module): New procedure.
59455         (%exempt_header): Now contains all exceptions.
59456
59457 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59458
59459         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59460
59461 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59462
59463         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59464
59465 2005-08-28  Bruno Haible  <bruno@clisp.org>
59466
59467         * m4/gnulib-tool.m4: New file.
59468
59469 2005-08-27  Jim Meyering  <jim@meyering.net>
59470
59471         * modules/unistd-safer (Files): Add pipe-safer.c.
59472         * modules/fcntl-safer (Files): Add creat-safer.c.
59473
59474 2005-08-27  Jim Meyering  <jim@meyering.net>
59475
59476         * m4/stdlib-safer.m4: New file.  From coreutils.
59477         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
59478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
59479         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
59480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
59481         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
59482
59483 2005-08-27  Jim Meyering  <jim@meyering.net>
59484
59485         * lib/fopen-safer.c: Merge minor changes from coreutils.
59486         * lib/dup-safer.c: Likewise.
59487         * lib/fd-safer.c: Likewise.
59488
59489         Merge from coreutils.
59490         * lib/stdio--.h: New file.
59491         * lib/stdlib--.h: New file.
59492         * lib/mkstemp-safer.c: New file.
59493
59494         GNU tar needs these.
59495         * lib/pipe-safer.c: New file.
59496         * lib/creat-safer.c: New file.
59497         * lib/fcntl--.h (creat): Define to creat_safer.
59498         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
59499         * lib/unistd--.h (pipe): Define to pipe_safer.
59500         * lib/unistd-safer.h: Declare pipe_safer.
59501
59502 2005-08-26  Simon Josefsson  <jas@extundo.com>
59503
59504         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
59505         Haible <bruno@clisp.org>.
59506
59507 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * lib/regex_internal.h: Remove all references to
59510         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
59511         or better.
59512         (bitset_not, bitset_merge, bitset_not_merge):
59513         (bitset_mask, re_string_allocate, re_string_construct):
59514         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
59515         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
59516         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
59517         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
59518         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59519         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59520         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
59521         (re_acquire_state_context):
59522         Remove unnecessary forward decls.
59523         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
59524         Put __attribute at function definition,
59525         now that the function decl has been removed.
59526         * lib/regex_internal.c (re_string_peek_byte_case):
59527         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
59528         Likewise.
59529
59530 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
59531
59532         * m4/regex.m4: Add AC_PREREQ(2.50).
59533         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
59534
59535 2005-08-25  Simon Josefsson  <jas@extundo.com>
59536
59537         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
59538         __fsetlocking.
59539
59540 2005-08-25  Simon Josefsson  <jas@extundo.com>
59541
59542         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
59543         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
59544         GLIBC specific code.
59545
59546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         Make regex safe for g++.  This fixes one real bug (an "err"
59549         that should have been "*err").  g++ problem reported by
59550         Sam Steingold.
59551         * lib/regex_internal.h (re_calloc): New macro, consistent with
59552         re_malloc etc.  All callers of calloc changed to use re_calloc.
59553         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
59554         not int.  All callers changed.
59555         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
59556         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
59557         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
59558         (find_recover_state): Change "err" to "*err"; this fixes what
59559         appears to be a real bug.
59560         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
59561         versus int.
59562
59563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * modules/regex (Depends-on): Add malloc, since the code
59566         assumes that !malloc(0) means failure.
59567
59568 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
59571
59572         alloca modernization/simplification for regex.
59573         * lib/regex.c: Remove portability cruft for alloca.  This no longer
59574         needs to be at the start of the file, and can be moved into
59575         regex_internal.h and simplified.
59576         * lib/regex_internal.h: Include <alloca.h>.
59577         (__libc_use_alloca) [!defined _LIBC]: New macro.
59578         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
59579         now works outside glibc.
59580
59581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         * config/srclist.txt: Add glibc bugs 1241, 1245.
59584
59585 2005-08-25  Jim Meyering  <jim@meyering.net>
59586
59587         * lib/open-safer.c: Include <config.h>.
59588         Otherwise, we'd lose LARGEFILE support in any file using
59589         e.g. "fcntl--.h"
59590
59591 2005-08-25  Bruno Haible  <bruno@clisp.org>
59592
59593         * m4/minmax.m4: Require autoconf 2.52.
59594         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
59595         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
59596         alternatives of translit over the alphabet.
59597         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
59598
59599 2005-08-24  Simon Josefsson  <jas@extundo.com>
59600
59601         * tests/test-getpass.c: New file.
59602
59603 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
59606         for GNU regex features.
59607
59608 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59609
59610         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
59611         * lib/regex.h (regerror): Likewise.
59612
59613         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
59614         requires this.  (The code never needed it.)
59615
59616         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
59617         All uses of recently-renamed identifiers changed to use the new,
59618         POSIX-compliant names.  The code will build and run just fine
59619         without these changes, but it's better to eat our own dog food
59620         and use the standard-conforming names.
59621
59622         * lib/regex.h: Fix a multitude of POSIX name space violations.
59623         These changes have an effect only for programs that define
59624         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
59625         do not change anything for programs compiled in the normal way.
59626         Also, there is no effect on the ABI.
59627
59628         (_REGEX_SOURCE): New macro.
59629         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
59630         defined and _GNU_SOURCE is not; this fixes a name space violation.
59631
59632         Rename the following macros to obey POSIX requirements.
59633         The old names are still visible as macros if _REGEX_SOURCE is defined.
59634         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
59635         RE_BACKSLASH_ESCAPE_IN_LISTS.
59636         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
59637         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
59638         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
59639         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
59640         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
59641         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
59642         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
59643         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
59644         (REG_INTERVALS): renamed from RE_INTERVALS.
59645         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
59646         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
59647         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
59648         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
59649         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
59650         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
59651         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
59652         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
59653         RE_UNMATCHED_RIGHT_PAREN_ORD.
59654         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
59655         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
59656         (REG_DEBUG): renamed from RE_DEBUG.
59657         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
59658         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
59659         unusual, since we can't clash with the POSIX REG_ICASE.
59660         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
59661         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
59662         (REG_NO_SUB): renamed from RE_NO_SUB.
59663         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
59664         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
59665         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
59666         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
59667         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
59668         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
59669         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
59670         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
59671         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
59672         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
59673         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
59674         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
59675         RE_SYNTAX_POSIX_MINIMAL_BASIC.
59676         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
59677         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
59678         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
59679         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
59680         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
59681         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
59682         (REG_FIXED): Renamed from REGS_FIXED.
59683         (REG_NREGS): Renamed from RE_NREGS.
59684
59685         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
59686         of other REG_* macros, since POSIX says the user is allowed to
59687         #undef these macros selectively.
59688
59689         (reg_errcode_t): Update comment stating what other tables need
59690         to be consistent.
59691
59692         Rename the following enum values to obey POSIX requirements.
59693         The old names are still visible as macros.
59694         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
59695         is not defined, since GNU is supposed to be a superset of POSIX as
59696         much as possible, and since we want reg_errcode_t to be a signed
59697         type for implementation consistency.
59698         (_REG_NOERROR): Renamed from REG_NOERROR.
59699         (_REG_NOMATCH): Renamed from REG_NOMATCH.
59700         (_REG_BADPAT): Renamed from REG_BADPAT.
59701         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
59702         (_REG_ECTYPE): Renamed from REG_ECTYPE.
59703         (_REG_EESCAPE): Renamed from REG_EESCAPE.
59704         (_REG_ESUBREG): Renamed from REG_ESUBREG.
59705         (_REG_EBRACK): Renamed from REG_EBRACK.
59706         (_REG_EPAREN): Renamed from REG_EPAREN.
59707         (_REG_EBRACE): Renamed from REG_EBRACE.
59708         (_REG_BADBR): Renamed from REG_BADBR.
59709         (_REG_ERANGE): Renamed from REG_ERANGE.
59710         (_REG_ESPACE): Renamed from REG_ESPACE.
59711         (_REG_BADRPT): Renamed from REG_BADRPT.
59712         (_REG_EEND): Renamed from REG_EEND.
59713         (_REG_ESIZE): Renamed from REG_ESIZE.
59714         (_REG_ERPAREN): Renamed from REG_ERPAREN.
59715         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
59716         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
59717         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
59718         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
59719
59720         (_REG_RE_NAME, _REG_RM_NAME): New macros.
59721         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
59722         changed.  But support the old name if the new one is not defined
59723         and if _REGEX_SOURCE.
59724
59725         Change the following member names in struct re_pattern_buffer.
59726         The old names are still supported if !_REGEX_SOURCE.
59727         The new names are always supported, regardless of _REGEX_SOURCE.
59728         (re_buffer): Renamed from buffer.
59729         (re_allocated): Renamed from allocated.
59730         (re_used): Renamed from used.
59731         (re_syntax): Renamed from syntax.
59732         (re_fastmap): Renamed from fastmap.
59733         (re_translate): Renamed from translate.
59734         (re_can_be_null): Renamed from can_be_null.
59735         (re_regs_allocated): Renamed from regs_allocated.
59736         (re_fastmap_accurate): Renamed from fastmap_accurate.
59737         (re_no_sub): Renamed from no_sub.
59738         (re_not_bol): Renamed from not_bol.
59739         (re_not_eol): Renamed from not_eol.
59740         (re_newline_anchor): Renamed from newline_anchor.
59741
59742         Change the following member names in struct re_registers.
59743         The old names are still supported if !_REGEX_SOURCE.
59744         The new names are always supported, regardless of _REGEX_SOURCE.
59745         (rm_num_regs): Renamed from num_regs.
59746         (rm_start): Renamed from start.
59747         (rm_end): Renamed from end.
59748
59749         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
59750         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
59751         Prepend __ to parameter names.
59752
59753         Undo yesterday's changes.
59754
59755 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
59758         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
59759         lib/regex.c.
59760
59761 2005-08-24  Jim Meyering  <jim@meyering.net>
59762
59763         Sync from coreutils.
59764         * m4/fcntl-safer.m4: New file.
59765
59766         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
59767         and object files for this module.
59768
59769 2005-08-24  Jim Meyering  <jim@meyering.net>
59770
59771         Sync from coreutils.
59772         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
59773
59774 2005-08-24  Jim Meyering  <jim@meyering.net>
59775
59776         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
59777         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
59778
59779 2005-08-24  Jim Meyering  <jim@meyering.net>
59780
59781         * modules/fcntl-safer: New module.
59782         * modules/fts (Depends-on): Add fcntl-safer.
59783         * MODULES.html.sh (File descriptor based Input/Output):
59784         Add fcntl-safer.
59785
59786 2005-08-24  Bruno Haible  <bruno@clisp.org>
59787
59788         Support for unit test modules.
59789         * modules/README: Mention tests modules.
59790         * modules/TEMPLATE-TESTS: New file.
59791         * gnulib-tool: New options --extract-tests-module, --with-tests and
59792         --tests-base (unused for the moment).
59793         (testsbase, inctests): New variables.
59794         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
59795         (func_verify_module): Exclude TEMPLATE-TESTS.
59796         (func_verify_nontests_module, func_verify_tests_module): New functions.
59797         (func_get_dependencies): Add implicit dependency for tests modules.
59798         (func_get_tests_module): New function.
59799         (func_modules_transitive_closure): When --with-tests was specified,
59800         include the unit tests as well, unless explicitly avoided.
59801         (func_emit_lib_Makefile_am): Ignore the tests modules here.
59802         (func_emit_tests_Makefile_am): New function.
59803         (func_create_testdir): When --with-tests was specified, emit a
59804         tests/ directory.
59805         * MODULES.html.sh (Future developments): Update.
59806
59807 2005-08-24  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/tls-tests: New file.
59810         * tests/test-tls.c: New file, from GNU gettext.
59811
59812 2005-08-24  Bruno Haible  <bruno@clisp.org>
59813
59814         * modules/lock-tests: New file.
59815         * tests/test-lock.c: New file, from GNU gettext.
59816
59817 2005-08-24  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/lock.h: Add multiple inclusion guard.
59820         * lib/tls.h: Add multiple inclusion guard.
59821
59822 2005-08-24  Bruno Haible  <bruno@clisp.org>
59823
59824         * gnulib-tool: Add support for the --aux-dir option to
59825         --create-testdir, --create-megatestdir, --test, --megatest.
59826         (func_create_testdir, func_create_megatestdir): Optionally emit a
59827         AC_CONFIG_AUX_DIR directive.
59828         (create-testdir, create-megatestdir, test, megatest): Provide a
59829         default value for $auxdir.
59830
59831 2005-08-24  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool (import): Use compound statement instead of subshell
59834         where possible.
59835
59836 2005-08-24  Bruno Haible  <bruno@clisp.org>
59837
59838         * gnulib-tool (import): Change --aux-dir default to "build-aux".
59839
59840 2005-08-24  Bruno Haible  <bruno@clisp.org>
59841
59842         * gnulib-tool (func_version): Update.
59843
59844 2005-08-24  Bruno Haible  <bruno@clisp.org>
59845
59846         * gnulib-tool (func_import, func_create_testdir,
59847         func_create_megatestdir): Quote all autoconf macro arguments.
59848
59849 2005-08-24  Bruno Haible  <bruno@clisp.org>
59850
59851         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
59852         option --force, because --force causes the aclocal.m4 of each
59853         subdirectory to be newer than the corresponding config.h.in.
59854
59855 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
59858         All contents moved to gl_REGEX.
59859         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
59860         assume that it does.
59861
59862 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * lib/regex.h (REG_NOSYS)
59865         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
59866         Define, since POSIX requires it as of 2001.
59867         (_REG_ENOSYS)
59868         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
59869         New private symbol, used to keep the enum signed in all cases.
59870         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
59871         Youngman in
59872         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
59873
59874         * lib/regex_internal.c (re_string_skip_chars, register_state):
59875         (calc_state_hash):
59876         Remove forward decls; no longer needed now that we use prototypes.
59877         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
59878         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
59879         (clean_state_log_if_needed): Likewise.
59880
59881 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * config/srclist.txt: Add glibc bugs 1231-1233.
59884
59885 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         Fix problems reported by Sam Steingold in
59888         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
59889         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
59890         assumed that reg_errcode_t is a signed type, which is not
59891         necessarily true if _XOPEN_SOURCE is not defined.
59892         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
59893         since some compilers warn about it otherwise.
59894
59895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
59898         (init_word_char, create_initial_state, duplicate_node_closure):
59899         (fetch_token, peek_token_bracket, build_range_exp):
59900         (build_collating_symbol): Remove forward decls; no longer needed
59901         now that we use prototypes.
59902
59903         * lib/regcomp.c:
59904         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
59905         (re_compile_fastmap_iter, regcomp, regerror, regfree):
59906         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
59907         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
59908         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
59909         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
59910         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
59911         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
59912         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
59913         (build_range_exp, build_collating_symbol, parse_bracket_exp):
59914         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
59915         (build_charclass, build_charclass_op, fetch_number, create_tree):
59916         (create_token_tree, mark_opt_subexp, duplicate_tree):
59917         Use prototypes rather than old-style definitions.
59918
59919         * lib/regex_internal.c:
59920         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
59921         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
59922         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59923         (re_string_reconstruct, re_string_peek_byte_case):
59924         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
59925         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59926         (re_node_set_init_copy, re_node_set_add_intersect):
59927         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59928         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59929         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59930         (re_acquire_state, re_acquire_state_context, register_state):
59931         (create_ci_newstate, create_cd_newstate, free_state):
59932         Likewise.
59933         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
59934         re_search_2):
59935         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
59936         (re_search_internal, prune_impossible_nodes):
59937         (acquire_init_state_context, check_matching, static):
59938         (check_halt_node_context, check_halt_state_context, proceed_next_node):
59939         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
59940         (update_regs, sift_states_backward, build_sifted_states):
59941         (clean_state_log_if_needed, merge_state_array):
59942         (update_cur_sifted_state, add_epsilon_src_nodes):
59943         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
59944         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
59945         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
59946         (find_recover_state, check_subexp_matching_top, transit_state_mb):
59947         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
59948         (check_arrival, check_arrival_add_next_nodes):
59949         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59950         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59951         (check_node_accept_bytes, check_node_accept, extend_buffers):
59952         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
59953         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
59954         (sift_ctx_init):
59955         Likewise.
59956
59957         * lib/regex_internal.h:
59958         (re_string_allocate, re_string_construct, re_string_reconstruct):
59959         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
59960         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
59961         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
59962         (re_string_context_at, re_string_peek_byte_case):
59963         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
59964         is defined, since we now use prototypes always.
59965
59966         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
59967         C89 or better.  All uses removed.
59968
59969 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59970
59971         * config/srclist.txt: Add glibc bugs 1220-1227.
59972
59973 2005-08-20  Jim Meyering  <jim@meyering.net>
59974
59975         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
59976         of unused local, dfa.
59977
59978 2005-08-20  Bruno Haible  <bruno@clisp.org>
59979
59980         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
59981
59982 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59983
59984         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
59985         (re_node_set_insert_last, re_dfa_add_node):
59986         Rename local variables to avoid GCC shadowing warnings.
59987
59988 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
59991         [defined lint]: Suppress bogus uninitialized-variable warnings.
59992
59993         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
59994         and let the caller return REG_ESPACE if out of space.  This
59995         removes an uninitialied-variable warning with GCC 4.0.1, and also
59996         avoids taking the address of a local variable.  All callers
59997         changed.
59998
59999 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60002         $LIBCSRC/posix/regexec.c.
60003         Add glibc bug 1217 for regcomp.c.
60004
60005 2005-08-19  Jim Meyering  <jim@meyering.net>
60006
60007         * lib/regexec.c (proceed_next_node): Redo local variables to
60008         avoid GCC shadowing warnings.
60009
60010 2005-08-18  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/strstr.c (strstr): Fix return value in multibyte case.
60013         * lib/strcasestr.c (strcasestr): Likewise.
60014
60015 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60018
60019 2005-08-17  Jim Meyering  <jim@meyering.net>
60020
60021         Make the %s format (seconds since the epoch) work for a negative
60022         number and when used with a zero-padded field width, e.g. %015s.
60023
60024         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60025         label so that it precedes the code to set `digits'.  Otherwise,
60026         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60027         print `00-22'.  Now, it prints `-0022', as it should.
60028
60029 2005-08-17  Bruno Haible  <bruno@clisp.org>
60030
60031         * modules/strstr (Files): Add m4/mbrtowc.m4.
60032         (Depends-on): Add mbuiter.
60033
60034 2005-08-17  Bruno Haible  <bruno@clisp.org>
60035
60036         * modules/strcasestr: New file.
60037         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60038         strcasestr.
60039
60040 2005-08-17  Bruno Haible  <bruno@clisp.org>
60041
60042         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60043
60044 2005-08-17  Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/mbuiter: New file.
60047         * MODULES.html.sh (Extended multibyte and wide character utilities):
60048         Add mbuiter.
60049
60050 2005-08-17  Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60053         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60054
60055 2005-08-17  Bruno Haible  <bruno@clisp.org>
60056
60057         * m4/strcasestr.m4: New file.
60058
60059 2005-08-17  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60062         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60063
60064 2005-08-17  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/strcasestr.h: New file.
60067         * lib/strcasestr.c: New file.
60068
60069 2005-08-17  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/strcasecmp.c: Use mbuiter.h.
60072
60073 2005-08-17  Bruno Haible  <bruno@clisp.org>
60074
60075         * lib/mbuiter.h: New file.
60076
60077 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60080         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60081         and gl_GETOPT are both invoked via different paths (as happens
60082         with GNU tar CVS because it uses both argp and getopt), the former
60083         wins.
60084
60085 2005-08-16  Bruno Haible  <bruno@clisp.org>
60086
60087         * modules/tls: New file.
60088         * MODULES.html.sh (Multithreading): Add tls.
60089
60090 2005-08-16  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/strnlen1: New file.
60093         * MODULES.html.sh (String handling): Add strnlen1.
60094
60095 2005-08-16  Bruno Haible  <bruno@clisp.org>
60096
60097         * modules/strcase (Files): Add m4/mbrtowc.m4.
60098         (Depends-on): Add strnlen1, mbchar.
60099
60100 2005-08-16  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/mbiter: New file.
60103         * MODULES.html.sh (Extended multibyte and wide character utilities):
60104         Add mbiter.
60105
60106 2005-08-16  Bruno Haible  <bruno@clisp.org>
60107
60108         * modules/mbfile: New file.
60109         * MODULES.html.sh (Extended multibyte and wide character utilities):
60110         Add mbfile.
60111
60112 2005-08-16  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/mbchar: New file.
60115         * MODULES.html.sh (Extended multibyte and wide character utilities):
60116         New section.
60117
60118 2005-08-16  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/tls.m4: New file, from GNU gettext.
60121
60122 2005-08-16  Bruno Haible  <bruno@clisp.org>
60123
60124         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60125         always.
60126         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60127
60128 2005-08-16  Bruno Haible  <bruno@clisp.org>
60129
60130         * m4/mbiter.m4: New file.
60131
60132 2005-08-16  Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/mbfile.m4: New file.
60135
60136 2005-08-16  Bruno Haible  <bruno@clisp.org>
60137
60138         * m4/mbchar.m4: New file.
60139
60140 2005-08-16  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/tls.h: New file, from GNU gettext.
60143         * lib/tls.c: New file, from GNU gettext.
60144
60145 2005-08-16  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/strnlen1.h: New file.
60148         * lib/strnlen1.c: New file.
60149
60150 2005-08-16  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60153         (mbi_init): Update.
60154         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60155         NUL byte, not after it.
60156
60157 2005-08-16  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/strcase.h (strcasecmp): Add note in comments.
60160         * lib/strncasecmp.c: Use code from strcasecmp.c.
60161         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60162         (strcasecmp): Work correctly in multibyte locales.
60163
60164 2005-08-16  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/mbiter.h: New file.
60167
60168 2005-08-16  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/mbfile.h: New file.
60171
60172 2005-08-16  Bruno Haible  <bruno@clisp.org>
60173
60174         * lib/mbchar.h: New file.
60175         * lib/mbchar.c: New file.
60176
60177 2005-08-16  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60180         the valid ones. Makes the comparison operations transitive:
60181         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60182         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60183
60184 2005-08-15  Simon Josefsson  <jas@extundo.com>
60185
60186         * modules/ssize_t (License): Change to 'unlimited'.
60187
60188         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60189
60190 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60193         Add comments for each pending glibc patch.
60194
60195 2005-08-15  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60198         __cplusplus is defined.
60199
60200 2005-08-14  Jim Meyering  <jim@meyering.net>
60201
60202         Sync from coreutils.
60203
60204         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60205         Use the hash-table-based cycle-detection code not just when
60206         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60207         Reported by James Youngman in
60208         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60209         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60210         FTS_TIGHT_CYCLE_CHECK.
60211         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60212         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60213         once again.
60214         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60215         * lib/fts.c (fd_safer): Remove decl.
60216         Include fcntl--.h rather than unistd-safer.h
60217         (fts_safe_changedir): Don't call fd_safer; no longer needed
60218         now that we include fcntl--.h.
60219
60220 2005-08-12  Simon Josefsson  <jas@extundo.com>
60221
60222         * modules/getndelim2: Use ssize_t module.
60223         * modules/getnline: Likewise.
60224         * modules/safe-read: Likewise.
60225         * modules/xreadlink: Likewise.
60226
60227         * modules/ssize_t: New file.
60228
60229 2005-08-12  Simon Josefsson  <jas@extundo.com>
60230
60231         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60232
60233 2005-08-12  Simon Josefsson  <jas@extundo.com>
60234
60235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60236         ssize_t.
60237
60238 2005-08-12  Simon Josefsson  <jas@extundo.com>
60239
60240         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60241         readline, getdelim and check_version.
60242         (Support for systems lacking ISO C 99: Sizes of integer types):
60243         Add size_max.
60244
60245 2005-08-12  Bruno Haible  <bruno@clisp.org>
60246
60247         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60248
60249 2005-08-11  Simon Josefsson  <jas@extundo.com>
60250
60251         * modules/readline: New file.
60252
60253         * modules/strnlen (Files): Add strnlen.h.
60254
60255 2005-08-11  Simon Josefsson  <jas@extundo.com>
60256
60257         * m4/readline.m4: New file.
60258
60259 2005-08-11  Simon Josefsson  <jas@extundo.com>
60260
60261         * lib/readline.h, readline.c: New file.
60262
60263 2005-08-11  Simon Josefsson  <jas@extundo.com>
60264
60265         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60266         gl_AVOID.
60267
60268 2005-08-11  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60271
60272 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60273
60274         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60275
60276 2005-08-10  Simon Josefsson  <jas@extundo.com>
60277
60278         * tests/test-iconvme.c: New file.
60279
60280 2005-08-10  Simon Josefsson  <jas@extundo.com>
60281
60282         * m4/strnlen.m4: New file.
60283
60284         * m4/strndup.m4: Don't check for strnlen declaration, done in
60285         strnlen.m4.
60286
60287 2005-08-10  Simon Josefsson  <jas@extundo.com>
60288
60289         * lib/strndup.c: Use strnlen.h.
60290
60291         * lib/strnlen.h: New file.
60292
60293 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60294
60295         * README: Typos.
60296
60297 2005-08-02  Simon Josefsson  <jas@extundo.com>
60298
60299         * modules/readline: New file.
60300
60301 2005-08-02  Simon Josefsson  <jas@extundo.com>
60302
60303         * modules/getdelim: New file.
60304
60305         * modules/getline: Rewrite, don't use getndelim2.
60306
60307 2005-08-02  Simon Josefsson  <jas@extundo.com>
60308
60309         * m4/getline.m4: Separate out getdelim stuff into separate module.
60310
60311         * m4/getdelim.m4: New file.
60312
60313 2005-08-02  Simon Josefsson  <jas@extundo.com>
60314
60315         * lib/getline.h, getline.c: Rewrite.
60316
60317         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60318
60319 2005-07-31  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/lock.h (gl_lock_initializer): New macro.
60322         (gl_lock_define_initialized): Use it.
60323         (gl_rwlock_initializer): New macro.
60324         (gl_rwlock_define_initialized): Use it.
60325         (gl_recursive_lock_initializer): New macro.
60326         (gl_recursive_lock_define_initialized): Use it.
60327
60328 2005-07-30  Karl Berry  <karl@gnu.org>
60329
60330         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60331         Report from Ben Pfaff, regarding getopt.
60332
60333 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60336         normal way.
60337         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60338         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60339         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60340         (gl_GETOPT): Use the new macros.  Most of the implementation
60341         is moved to the new macros.  This is for programs like Emacs
60342         that don't want all the functionality of gl_GETOPT.
60343
60344 2005-07-26  Bruno Haible  <bruno@clisp.org>
60345
60346         * m4/lock.m4: Update from GNU gettext.
60347
60348 2005-07-26  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/lock.h: Update from GNU gettext.
60351         * lib/lock.c: Update from GNU gettext.
60352
60353 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60356         obsolescent AC_TRY_RUN.  Include the default includes files, for
60357         'exit'.
60358
60359 2005-07-24  Bruno Haible  <bruno@clisp.org>
60360
60361         * modules/visibility: New file.
60362         * MODULES.html.sh (Misc): Add visibility.
60363
60364 2005-07-24  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/visibility.m4: New file.
60367
60368 2005-07-24  Bruno Haible  <bruno@clisp.org>
60369
60370         * doc/visibility.texi: New file.
60371
60372 2005-07-22  Bruno Haible  <bruno@clisp.org>
60373
60374         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60375         $(ALLOCA_H), redundant through BUILT_SOURCES.
60376         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60377         redundant through BUILT_SOURCES.
60378         * modules/byteswap (Makefile.am): Remove explicit dependency on
60379         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60380         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60381         $(FNMATCH_H), redundant through BUILT_SOURCES.
60382         * modules/getopt (Makefile.am): Remove explicit dependency on
60383         $(GETOPT_H), redundant through BUILT_SOURCES.
60384         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60385         redundant through BUILT_SOURCES.
60386         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60387         redundant through BUILT_SOURCES.
60388         * modules/stdbool (Makefile.am): Remove explicit dependency on
60389         $(STDBOOL_H), redundant through BUILT_SOURCES.
60390         * modules/stdint (Makefile.am): Remove explicit dependency on
60391         $(STDINT_H), redundant through BUILT_SOURCES.
60392         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60393         Remove explicit dependency on $(SYSEXITS_H).
60394         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60395
60396 2005-07-18  Simon Josefsson  <jas@extundo.com>
60397
60398         * lib/check-version.c (check_version): Accept identical versions too.
60399
60400 2005-07-18  Bruno Haible  <bruno@clisp.org>
60401
60402         * modules/lock: New file.
60403         * MODULES.html.sh (Multithreading): New section.
60404
60405 2005-07-18  Bruno Haible  <bruno@clisp.org>
60406
60407         * m4/lock.m4: New file, from GNU gettext.
60408
60409 2005-07-18  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/lock.h: New file, from GNU gettext.
60412         * lib/lock.c: New file, from GNU gettext.
60413
60414 2005-07-18  Bruno Haible  <bruno@clisp.org>
60415
60416         * lib/lock.h (gl_once_t): New type.
60417         (gl_once_define, gl_once): New macros.
60418         * lib/lock.c (fresh_once): New variable.
60419         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60420         functions.
60421
60422 2005-07-16  Simon Josefsson  <jas@extundo.com>
60423
60424         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60425         workaround, suggested by Bruno.
60426
60427 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * modules/xalloc (Depends-on): Add xalloc-die.
60430         * modules/xvasprintf (Depends-on): Add xalloc-die.
60431
60432 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60435         with a minor change.
60436
60437 2005-07-15  Bruno Haible  <bruno@clisp.org>
60438
60439         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60440         When using lib/poll.c, define poll as rpl_poll.
60441
60442 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         * modules/argp (Depends-on): Remove unlocked-io.
60445
60446 2005-07-14  Derek Price  <derek@ximbiot.com>
60447
60448         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60449         for glob symlink bug.
60450
60451 2005-07-14  Bruno Haible  <bruno@clisp.org>
60452
60453         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60454         Instead, test for *_unlocked function declarations directly.
60455
60456 2005-07-11  Simon Josefsson  <jas@extundo.com>
60457
60458         * modules/size_max: New file.
60459
60460         * modules/xsize: Depend on size_max module for size_max.m4.
60461
60462 2005-07-11  Simon Josefsson  <jas@extundo.com>
60463
60464         * lib/size_max.h: New file.
60465
60466 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
60469         copyright symbol and the year.
60470         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
60471         (version_etc_va): Use parameterized copyright notice.
60472         Reword to conform to the current GNU coding standards.
60473
60474 2005-07-11  Karl Berry  <karl@gnu.org>
60475
60476         * doc/gnulib.texi (Quoting): new node.
60477         (Initial import): more info, from Patrice.
60478
60479 2005-07-11  Bruno Haible  <bruno@clisp.org>
60480
60481         * gnulib-tool (func_usage): Document option --avoid.
60482         (Command line options): Handle --avoid.
60483         (func_acceptable): New function.
60484         (func_modules_transitive_closure): Use it.
60485
60486 2005-07-11  Bruno Haible  <bruno@clisp.org>
60487
60488         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
60489         Reported by Jim Meyering.
60490
60491 2005-07-10  Bruno Haible  <bruno@clisp.org>
60492
60493         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
60494         Needed when size_t is smaller than 'unsigned int'.
60495         Reported by Paul Eggert.
60496
60497 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60498
60499         * modules/argp (Depends-on): Add unlocked-io
60500
60501 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60502
60503         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
60504         block of defines.
60505
60506 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * config/srclist.txt: Comment out regcomp.c, since we have a porting
60509         fix now.
60510
60511 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
60512         and Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
60515         in wint_t, not wchar_t.  Remove now-unnecessary cast.
60516
60517 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         * modules/regex (Files): Add lib/regex_internal.c,
60520         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
60521         (Depends-on): Add extensions.
60522         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
60523
60524 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
60527         pathconf.
60528         * m4/same.m4 (gl_SAME): Likewise.
60529         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
60530
60531         * m4/regex.m4: Adjust to new libc regex implementation.
60532         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
60533         all the .c and .h parts of (the new) regex.
60534         Quote the m4 stuff better.
60535         Check for RE_ICASE bug of old gnulib.
60536         Check for REG_STARTEND of recent libc.
60537         Rename local variables from jm_* to gl_*.
60538         Quote operand of "test -f".
60539         Say "recent enough" version of libc, not "version 2".
60540         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
60541         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
60542         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
60543         Remove check for btowc, isascii.
60544         Require AM_LANGINFO_CODESET.
60545
60546 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * lib/regex.c, regex.h: Sync from libc.
60549         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
60550         * lib/regexec.c:
60551         New files, synced from libc, except that regex_internal.h
60552         currently has a small porting fix.
60553
60554 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
60557         regex_internal.c, regexec.c.
60558         Add regex_internal.h too, but as a comment, since the libc version
60559         is currently broken in gnulib mode.
60560
60561 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60562
60563         Support programs like Emacs that use gnulib but not gettext.
60564         * MODULES.html.sh (Internationalization functions): Add gettext-h.
60565         * modules/gettext-h: New file.
60566         * modules/gettext (Files): Remove lib/gettext.h.
60567         (Depends-on): Add gettext-h.
60568         (Makefile.am): Remove lib_SOURCES.
60569         * modules/argmatch, modules/c-stack, modules/closeout:
60570         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
60571         * modules/execute, modules/file-type, modules/getaddrinfo:
60572         * modules/getopt, modules/human, modules/javacomp:
60573         * modules/javaexec, modules/mkdir-p, modules/obstack:
60574         * modules/openat, modules/pagealign_alloc, modules/pipe:
60575         * modules/quotearg, modules/regex, modules/rpmatch:
60576         * modules/unicodeio, modules/userspec, modules/version-etc:
60577         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
60578         * modules/xsetenv:
60579         Depend on gettext-h, not gettext.
60580
60581 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * gnulib-tool (func_import): Add support for 'public domain' license.
60584         * modules/alloca, modules/atexit, modules/memmove:
60585         Now public domain, not GPL.
60586         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
60587         * modules/realloc, modules/strerror, modules/strtod:
60588         Now LGPL, not GPL.
60589
60590 2005-07-05  Bruno Haible  <bruno@clisp.org>
60591
60592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
60593         autoconf CVS. Needed for mingw.
60594
60595 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         Remove the dependency of the strftime module on the tzset module.
60598         * modules/strftime (Depends-on): Remove dependency on tzset.
60599
60600 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         Remove the dependency of the strftime module on the tzset module.
60603         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
60604         gl_FUNC_TZSET_CLOBBER.
60605
60606 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60607
60608         Remove the dependency of the strftime module on the tzset module.
60609         * lib/strftime.c (my_strftime)
60610         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
60611         Copy the input structure, to work around some of the bug with
60612         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
60613         Solaris releases, you should also use the tzset module, but we won't
60614         require it as a dependency any more since we don't want LGPLed code
60615         to depend on GPLed code.
60616
60617 2005-07-02  Jim Meyering  <jim@meyering.net>
60618
60619         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
60620         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
60621         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
60622         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
60623
60624 2005-07-02  Jim Meyering  <jim@meyering.net>
60625
60626         * lib/backupfile.c (backup_args): Change a `0' to NULL.
60627
60628 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
60631         declares only 'struct timespec;' (!).
60632
60633 2005-07-01  Jim Meyering  <jim@meyering.net>
60634
60635         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
60636         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
60637         * lib/save-cwd.c, tempname.c:
60638         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60639         and don't include <sys/file.h>).
60640
60641 2005-06-29  Jim Meyering  <jim@meyering.net>
60642
60643         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
60644         type name.  Use the variable name instead.
60645         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
60646         Likewise.
60647
60648 2005-06-28  Simon Josefsson  <jas@extundo.com>
60649
60650         * modules/check-version (Files): Add check-version.m4.
60651
60652 2005-06-28  Simon Josefsson  <jas@extundo.com>
60653
60654         * m4/check-version.m4: New file, suggested by Jim Meyering
60655         <jim@meyering.net>.
60656
60657 2005-06-28  Simon Josefsson  <jas@extundo.com>
60658
60659         * lib/check-version.h, lib/check-version.c: New files.
60660
60661 2005-06-28  Simon Josefsson  <jas@extundo.com>
60662
60663         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
60664         collision with global variable.  Better indentation.  Don't
60665         increment buffer pointer beyond buffer end.  Based on comments
60666         from Paul Eggert <eggert@cs.ucla.edu>.
60667
60668         * lib/base64.h: Indent.
60669
60670 2005-06-28  Simon Josefsson  <jas@extundo.com>
60671
60672         * doc/gnulib.texi (Library version handling): New section.
60673
60674 2005-06-28  Jim Meyering  <jim@meyering.net>
60675
60676         * check-module (find_included_lib_files): Hard-code another
60677         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
60678         but modules/fts-lgpl (correctly) does not list those files.
60679
60680         * modules/canonicalize (Files): Add lib/pathmax.h.
60681
60682 2005-06-25  Simon Josefsson  <jas@extundo.com>
60683
60684         * modules/check-version: New file.
60685
60686 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
60687
60688         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
60689         initializer of struct addrinfo, as an indication that we don't
60690         care how many members the structure has.
60691
60692 2005-06-24  Derek Price  <derek@ximbiot.com>
60693         and Bruno Haible  <bruno@clisp.org>
60694
60695         Remove stat module & update lstat.
60696         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
60697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60698         * m4/stat.m4: Remove this file.
60699
60700 2005-06-24  Derek Price  <derek@ximbiot.com>
60701         and Bruno Haible  <bruno@clisp.org>
60702
60703         Remove stat module & update lstat.
60704         * lib/stat.c: Remove this file...
60705         (slash_aware_lstat): ...moving this content and its support...
60706         * lib/lstat.c (rpl_lstat): ...into here.
60707         * lib/lstat.h: New file.
60708
60709 2005-06-24  Derek Price  <derek@ximbiot.com>
60710         and Bruno Haible  <bruno@clisp.org>
60711
60712         Remove stat module & update lstat.
60713         * config/srclist.txt (libc sources): Remove stat.
60714
60715 2005-06-24  Derek Price  <derek@ximbiot.com>
60716         and Bruno Haible  <bruno@clisp.org>
60717
60718         Remove stat module & update lstat.
60719         * MODULES.html.sh (stat): Remove.
60720         * MODULES.html: Regenerated.
60721         * modules/lstat (Description): Correct function name.
60722         (Files): Add "lstat.h".
60723         (Depends-on): Remove stat, add xalloc, stat-macros.
60724         * modules/stat: Remove this file.
60725         (Include): Add "lstat.h", remove <sys/stat.h>.
60726
60727 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
60730         (ranged_convert): Don't save conversion in a temporary struct.
60731         This causes a warning with GCC 4.0.0, and anyway in the typical
60732         case it's not worth the extra 100 bytes or so of code.
60733         (ranged_convert, __mktime_internal): When calling a function via a
60734         pointer P, use P () rather than (*P) (), as we now assume C89 or
60735         better.
60736
60737 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
60740         "who -r" failed to give output.  Problem reported by Tim Waugh.
60741
60742         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
60743         (xcalloc): Use it to avoid needless tests.
60744         Problem reported by Jim Meyering.
60745
60746 2005-06-20  Derek Price  <derek@ximbiot.com>
60747
60748         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
60749         unnecessary for Autoconfs > 2.59c.
60750
60751 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60752
60753         * lib/argp.h (__option_is_short): Check upper limit of
60754         __key. Isprint() requires its argument to have the value
60755         of an unsigned char or EOF.
60756
60757 2005-06-16  Jim Meyering  <jim@meyering.net>
60758
60759         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
60760         when either N or S is zero.
60761
60762 2005-06-16  Derek Price  <derek@ximbiot.com>
60763
60764         * m4/bison.m4: Declare YACC & YFLAGS precious.
60765
60766 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
60769         multibyte string or pattern, fall back on unibyte matching.
60770         Problem reported by James Youngman.
60771
60772 2005-06-08  Bruno Haible  <bruno@clisp.org>
60773
60774         * modules/csharpcomp: New file.
60775         * MODULES.html.sh (C#): Add csharpcomp.
60776
60777 2005-06-08  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/csharpcomp.m4: New file, from GNU gettext.
60780
60781 2005-06-08  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/csharpcomp.h: New file, from GNU gettext.
60784         * lib/csharpcomp.c: New file, from GNU gettext.
60785         * lib/csharpcomp.sh.in: New file, from GNU gettext.
60786
60787 2005-06-08  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
60790         warning on mingw.
60791
60792 2005-06-07  Derek Price  <derek@ximbiot.com>
60793
60794         Sync from CVS.
60795         * lib/glob_.h: Indent nested #ifdef.
60796
60797 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60798
60799         Sync from coreutils.
60800         Use "file name" when talking about file names, instead of "filename"
60801         or "path", as per the GNU coding standards.
60802         * lib/mkdir-p.c: Renamed from makepath.c.
60803         (make_dir_parents): Renamed from make_path.  All callers changed.
60804         * lib/mkdir-p.h: Likewise.  All includers changed.
60805         * lib/filenamecat.c: Renamed from path-concat.c.
60806         (file_name_concat): Renamed from path_concat.  All callers changed.
60807         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
60808         * lib/filenamecat.h: Likewise.  All includers changed.
60809         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
60810         in comments or local variable names.
60811         * lib/basename.c: Likewise.
60812         * lib/canonicalize.c, canonicalize.h: Likewise.
60813         * lib/dirname.c, dirname.h: Likewise.
60814         * lib/euidaccess.c: Likewise.
60815         * lib/exclude.c: Likewise
60816         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
60817         * lib/fsusage.c, fsuage.h: Likewise.
60818         * lib/fts.c, fts_.h: Likewise.
60819         * lib/getcwd.c: Likewise.
60820         * lib/getloadavg.c: Likewise.
60821         * lib/mkstemp.c: Likewise.
60822         * lib/mountlist.c, mountlist.h: Likewise.
60823         * lib/openat.c, openat.h: Likewise.
60824         * lib/readlink-stub.c: Likewise.
60825         * lib/readutmp.c, readutmp.h: Likewise.
60826         * lib/rename.c: Likewise.
60827         * lib/rmdir.c: Likewise.
60828         * lib/same.c: Likewise.
60829         * lib/savedir.c: Likewise.
60830         * lib/stripslash.c: Likewise.
60831         * lib/tempname.c: Likewise.
60832         * lib/xreadlink.c: Likewise.
60833         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
60834         All uses changed.
60835         * lib/exclude.h: Likewise.
60836
60837         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
60838         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60839         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
60840         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60841         * lib/pathmax.h: Include <limits.h> unconditionally, since other
60842         files have been getting away with it for years (MORE/BSD 4.3
60843         is extinct now).
60844         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
60845         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60846
60847         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
60848         Define to 256, not 255, as per modern POSIX.
60849
60850 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         Sync from coreutils.
60853         Use "file name" when talking about file names, instead of "filename"
60854         or "path", as per the GNU coding standards.
60855         * MODULES.html.sh: mkdir-p renamed from makepath.
60856         filenamecat renamed from path-concat.
60857         * modules/filenamecat: Renamed from modules/path-concat.
60858         (Files): filenamecat.h and filenamecat.c renamed from
60859         path-concat.h and path-concat.c.
60860         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
60861         (Include): filenamecat.h, not path-concat.h.
60862         * modules/mkdir-p: Renamed from modules/makepath.
60863         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
60864         makepath.c.
60865         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
60866         (Include): mkdir-p.h, not makepath.h.
60867
60868 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60869
60870         Sync from coreutils.
60871         * m4/mkdir-p.m4: Renamed from makepath.m4.
60872         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
60873         Rename files from makepath.c to mkdir-p.c, and from
60874         makepath.h to mkdir-p.h.
60875         * m4/filenamecat.m4: Renamed from path-concat.m4.
60876         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
60877         Rename files from path-concat.c to filenamecat.c,
60878         and from path-concat.h to filenamecat.h.
60879         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
60880         "file name" in local variables or comments.
60881         * m4/rename.m4: Likewise.
60882
60883 2005-06-01  Bruno Haible  <bruno@clisp.org>
60884
60885         * modules/csharpexec: New file.
60886         * MODULES.html.sh (C#): New section.
60887
60888 2005-06-01  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/csharp.m4: New file, from GNU gettext.
60891         * m4/csharpexec.m4: New file, from GNU gettext.
60892
60893 2005-06-01  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/csharpexec.h: New file, from GNU gettext.
60896         * lib/csharpexec.c: New file, from GNU gettext.
60897         * lib/csharpexec.sh.in: New file, from GNU gettext.
60898
60899 2005-05-31  Derek Price  <derek@ximbiot.com>
60900             Paul Eggert  <eggert@cs.ucla.edu>
60901
60902         Sync from cvs.
60903         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60904
60905 2005-05-31  Derek Price  <derek@ximbiot.com>
60906             Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         Sync from cvs.
60909         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60910
60911 2005-05-29  Derek Price  <derek@ximbiot.com>
60912
60913         * config/srclist.txt (glob_.h, glob.c): Add these files.
60914
60915 2005-05-29  Derek Price  <derek@ximbiot.com>
60916
60917         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
60918         * modules/glob: New file.
60919         * modules/getlogin_r: Add link to POSIX spec in description.
60920
60921 2005-05-29  Derek Price  <derek@ximbiot.com>
60922             Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * m4/glob.m4: New file.
60925
60926 2005-05-29  Derek Price  <derek@ximbiot.com>
60927             Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * lib/glob_.h, lib/glob.c: New files.
60930
60931 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * modules/fts (Files): Remove m4/inttypes-pri.m4.
60934         * modules/fts-lgpl (Depends-on): Remove gettext.
60935
60936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
60939         and don't require gt_INTTYPES_PRI.
60940
60941 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
60944
60945         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
60946         the configuration hassle isn't worth it.
60947         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
60948         (LONGEST_MODIFIER, PRIuMAX): Remove.
60949
60950 2005-05-27  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/getlogin_r.h: Remove second include of <stddef.h>.
60953
60954 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
60957         _POSIX_PTHREAD_SEMANTICS for Solaris.
60958
60959 2005-05-25  Derek Price  <derek@ximbiot.com>
60960
60961         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
60962
60963 2005-05-25  Derek Price  <derek@ximbiot.com>
60964             Paul Eggert  <eggert@cs.ucla.edu>
60965
60966         * modules/getlogin_r, m4/getlogin_r.m4: New files.
60967         * lib/getlogin_r.c, getlogin_r.h: New files.
60968
60969 2005-05-25  Bruno Haible  <bruno@clisp.org>
60970             Derek Price  <derek@ximbiot.com>
60971
60972         * lib/getlogin_r.h: Simplify API documentation.
60973
60974 2005-05-23  Derek Price  <derek@ximbiot.com>
60975
60976         * modules/minmax (Files): Add m4/minmax.m4.
60977         (configure.ac): Add gl_MINMAX.
60978
60979 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
60982         so that unistd-safer.h (GPL'ed code) need not be included.
60983
60984 2005-05-22  Bruno Haible  <bruno@clisp.org>
60985
60986         * m4/minmax.m4: New file.
60987         Based on a patch by Derek Price <derek@ximbiot.com>.
60988
60989 2005-05-22  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
60992         (INT64_MIN): Fix definition.
60993         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
60994
60995         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
60996         NEED_SIGNED_INT_TYPES.
60997
60998         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
60999         HAVE_SYSTEM_INTTYPES.
61000
61001 2005-05-22  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61004         Also include <sys/param.h> if it defines MIN, MAX.
61005         Based on a patch by Derek Price <derek@ximbiot.com>.
61006
61007 2005-05-21  Jim Meyering  <jim@meyering.net>
61008
61009         * modules/fts (Files): Add m4/inttypes-pri.m4.
61010         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61011
61012 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         New fts module.
61015         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61016         (setup_dir, free_dir): New functions.
61017         (enter_dir, leave_dir): Define trivial
61018         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61019         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61020         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61021         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61022         Move to fts-cycle.c.
61023         (fts_open): Use setup_dir.
61024         (fts_close): Use free_dir.
61025         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61026         This adds a label and some gotos, but the alternatives were messier.
61027         Check for memory allocation failure when entering a dir.
61028         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61029         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61030         (FTS): New member fts_cycle, that is a union that contains the
61031         old active_dir_ht and cycle_state.  All uses changed to mention
61032         fts_cycle.ht and fts_cycle.state.
61033         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61034         fts.c, with the following changes:
61035         (setup_dir, free_dir): New functions.
61036         (enter_dir): Now returns bool.  Return true if successful, false
61037         if memory exhausted.  All callers changed.
61038         Do not bother partly cleaning up on
61039         memory allocation failure; that is free_dir's job.
61040         However, free ad if hash_insert fails, to avoid memory leak.
61041         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61042         fts->fts_options to see which union member to use.
61043
61044 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61047         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61048
61049 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61052
61053 2005-05-20  Jim Meyering  <jim@meyering.net>
61054
61055         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61056         Now a macro, to pacify GCC.
61057
61058 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61059
61060         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61061         of -1.
61062
61063 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61064
61065         * lib/chown.c (rpl_chown): Return -1 on failure.
61066
61067 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61070         Don't check for stddef.h.
61071         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61072         don't use its results.
61073         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61074         since we include them unconditionally.  Don't require
61075         AM_STDBOOL_H, since stdbool is a prerequisite.
61076         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61077         since we assume C89 or better.
61078         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61079         as we don't use their results.
61080         Don't check for fchdir, memmove, memset, strrchr, as we use
61081         them unconditionally.
61082         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61083         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61084
61085 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61088         Include <stddef.h> unconditionally, since we assume C89 now.
61089         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61090         * lib/fts.c: Include fts_.h first, to check interface.
61091         Do not include intprops.h; no longer needed.
61092         Include cycle-check.h and hash.h, since fts_.h no longer does.
61093         Remove unnecessary casts of closedir to void.
61094         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61095         decide whether to decrement nlinks.
61096         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61097         (FTS): Use struct hash_table * instead of Hash_table, so that
61098         we no longer need to include hash.h here.
61099
61100 2005-05-18  Jim Meyering  <jim@meyering.net>
61101
61102         * modules/dirfd (License): Change to LGPL.  Most of the code
61103         is already in the public domain.
61104
61105 2005-05-18  Jim Meyering  <jim@meyering.net>
61106
61107         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61108         Reported by Yoann Vandoorselaere.
61109
61110 2005-05-17  Jim Meyering  <jim@meyering.net>
61111
61112         * m4/fts.m4: New file, from coreutils.
61113
61114 2005-05-17  Jim Meyering  <jim@meyering.net>
61115
61116         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61117
61118 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         Sync from coreutils.
61121         * m4/unlinkdir.m4: New file.
61122
61123 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         Sync from coreutils.
61126         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61127         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61128         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61129         White space changes only.
61130         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61131         special.
61132         * lib/yesno.c: Include getline.h, not ctype.h.
61133         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61134         Use getline to remove arbitrary restriction on response length.
61135
61136 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * config/srclist-update: Spell out "Street" in FSF postal
61139         mail address; this is the style the FSF seems to prefer.
61140
61141         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61142         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61143         this updates FSF postal mail address.
61144
61145         Sync from coreutils.
61146         * modules/unlinkdir: New file.
61147         * modules/yesno (Depends-on): Add getline.
61148         * MODULES.html.sh (File system functions): Add unlinkdir.
61149
61150 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61153         lib/strsep.h:
61154         Change the initial comment to refer to GPL, not LGPL.
61155         gnulib-tool will change it to LGPL as needed.
61156
61157         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61158         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61159         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61160         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61161         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61162         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61163         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61164         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61165         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61166         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61167         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61168         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61169         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61170         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61171         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61172         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61173         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61174         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61175         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61176         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61177         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61178         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61179         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61180         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61181         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61182         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61183         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61184         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61185         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61186         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61187         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61188         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61189         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61190         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61191         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61192         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61193         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61194         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61195         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61196         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61197         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61198         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61199         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61200         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61201         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61202         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61203         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61204         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61205         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61206         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61207         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61208         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61209         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61210         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61211         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61212         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61213         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61214         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61215         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61216         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61217         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61218         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61219         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61220         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61221         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61222         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61223         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61224         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61225         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61226         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61227         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61228         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61229         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61230         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61231         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61232         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61233         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61234         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61235         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61236         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61237         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61238         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61239         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61240         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61241         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61242         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61243         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61244         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61245         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61246         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61247         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61248         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61249         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61250         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61251         lib/yesno.c, lib/yesno.h:
61252         Update FSF postal mail address.
61253
61254 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61257         tests/test-memmem.c, tests/test-stpncpy.c:
61258         Update FSF postal mail address.
61259
61260 2005-05-13  Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61263         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61264         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61265         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61266         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61267         Add support for 64-bit integers in the MSVC compiler.
61268
61269 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61270
61271         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61272
61273 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61274
61275         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61276
61277 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * doc/getdate.texi (General date syntax): Don't say that date
61280         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61281         Problem reported by Nic Ferrier.
61282
61283 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61284
61285         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61286         specified in ai_socktype. Fix invalid ai_protocol
61287         check. ai_protocol is usually set to 0 or depending on
61288         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61289         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61290         ai_socktype / ai_protocol in the returned addrinfo structure.
61291
61292 2005-05-10  Simon Josefsson  <jas@extundo.com>
61293
61294         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61295         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61296
61297 2005-05-10  Karl Berry  <karl@gnu.org>
61298
61299         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61300         (from http://www.gnu.org/licenses).
61301         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61302         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61303         fdl.texi suffices.
61304
61305 2005-05-10  Karl Berry  <karl@gnu.org>
61306
61307         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61308         (COPYING.DOC): remove.
61309
61310         * config/srclist-update: new FSF address.
61311
61312 2005-05-10  Derek Price  <derek@ximbiot.com>
61313
61314         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61315         possible.
61316
61317 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61318             Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/inet_ntop: New file.
61321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61322         inet_ntop.
61323
61324 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61325             Bruno Haible  <bruno@clisp.org>
61326
61327         * m4/inet_ntop.m4: New file.
61328
61329 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61330             Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/inet_ntop.h: New file.
61333         * lib/inet_ntop.c: New file, from glibc with modifications.
61334
61335 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61336
61337         * modules/time_r (License): Change to LGPL.
61338         * modules/extensions (License): Change to LGPL.  Actually,
61339         the license is more permissive than that, but currently gnulib-tool
61340         doesn't know how to handle more-permissive licenses.
61341
61342         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61343         Problem reported by Dave Love.
61344
61345 2005-05-08  Jim Meyering  <jim@meyering.net>
61346
61347         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61348         blank.
61349
61350 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * modules/argmatch (Depends-on): Add stdbool.
61353         * modules/backupfile (Depends-on): Likewise.
61354         * modules/chdir-long (Depends-on): Likewise.
61355         * modules/closeout (Depends-on): Likewise.
61356         * modules/cycle-check (Depends-on): Likewise.
61357         * modules/dirname (Depends-on): Likewise.
61358         * modules/fnmatch (Depends-on): Likewise.
61359         * modules/fsusage (Depends-on): Likewise.
61360         * modules/fwriteerror (Depends-on): Likewise.
61361         * modules/getcwd (Depends-on): Likewise.
61362         * modules/getloadavg (Depends-on): Likewise.
61363         * modules/hard-locale (Depends-on): Likewise.
61364         * modules/makepath (Depends-on): Likewise.
61365         * modules/mountlist (Depends-on): Likewise.
61366         * modules/nanosleep (Depends-on): Likewise.
61367         * modules/posixtm (Depends-on): Likewise.
61368         * modules/quotearg (Depends-on): Likewise.
61369         * modules/readtokens (Depends-on): Likewise.
61370         * modules/readtokens0 (Depends-on): Likewise.
61371         * modules/readutmp (Depends-on): Likewise.
61372         * modules/save-cwd (Depends-on): Likewise.
61373         * modules/strftime (Depends-on): Likewise.
61374         * modules/userspec (Depends-on): Likewise.
61375         * modules/utimecmp (Depends-on): Likewise.
61376         * modules/xgetcwd (Depends-on): Likewise.
61377         * modules/xnanosleep (Depends-on): Likewise.
61378         * modules/xstrtod (Depends-on): Likewise.
61379         * modules/yesno (Depends-on): Likewise.
61380
61381 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61384         needless checks.
61385
61386 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         Merge from coreutils.  Among other things,
61389         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61390         * lib/fd-safer.c: New file.
61391         * lib/fcntl-safer.h, open-safer.c: Remove.
61392         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61393         * lib/dup-safer.c: Include unistd-safer.h first.
61394         Don't include errno.h.
61395         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61396         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61397         * lib/file-type.c: Rely on file-type.h change.
61398         * lib/getloadavg.c: Include unistd-safer.h.
61399         (getloadavg): Use safer open.
61400         * lib/getusershell.c: Include "stdio-safer.h".
61401         (getusershell): Use safer fopen.
61402         * lib/long-options.c (long_options): Use NULL rather than 0.
61403         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61404         'free'.
61405         * lib/modechange.c: Likewise.
61406         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61407         (MODE_DONE): New constant.
61408         (struct mode_change): Remove 'next' member.
61409         (make_node_op_equals): New function; like the old one of the
61410         same name, except it allocates an array.
61411         (mode_compile, mode_create_from_ref): Use it.
61412         (mode_compile): Allocate result as an array, not a linked list.
61413         Parse octal string ourself, so that we catch mistakes like "+0".
61414         (mode_adjust): Arg is an array, not a linked list.
61415         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61416         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61417         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61418         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61419         Remove.  This is now stat-macros.h's job.
61420         (talloc): Remove.  All callers replaced by xalloc, so that
61421         our invokers don't have to worry about reporting memory failures.
61422         (make_node_op_equals): Remove.
61423         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61424         New constants.
61425         (struct mode_change): Moved here from modechange.h.
61426         (mode_append_entry): Remove.
61427         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61428         apps to have incorrect behavior.  Use simpler algorithm for head
61429         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61430         Detect more invalid usages rather than having somewhat-random behavior.
61431         Don't insert an "a=" action, as that leads to incorrect behavior.
61432         (mode_compile, mode_create_from_ref): Return NULL on error instead
61433         of an enum, since now there's only one way to have an error.  All
61434         callers changed.
61435         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61436         at the correct time.  Simplify calculation of "+u" and its ilk.
61437         Don't mishandle "+X".
61438         (mode_free): Remove "register" and localize decls.
61439         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61440         (struct mode_change): Move to modechange.c; callers don't
61441         need to see this stuff.
61442         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61443         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61444         (mode_change, mode_adjust): Reflect the new signatures noted above.
61445         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61446         that might redefine system include files.
61447         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61448         (my_usleep): Use NULL rather than (void *) 0.
61449         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61450         Use siginterrupt to specify that system calls should be interrupted.
61451         (rpl_nanosleep): Move initialization of suspended closer to call of
61452         my_usleep.
61453         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61454         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61455         (desirable_utmp_entry): New function.
61456         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61457         using x2nrealloc, to simplify logic.
61458         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61459         size calculation.  Do not assume utmp file is a regular file.
61460         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61461         (READ_UTMP_CHECK_PIDS): New constant.
61462         * lib/save-cwd.c: Include unistd-safer.h.
61463         (save_cwd): Use fd_safer.
61464         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
61465         [!_LIBC] Include "stat-macros.h" instead.
61466         * lib/unistd-safer.h (fd_safer): New decl.
61467
61468 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * modules/getloadavg (Depends-on): Add unistd-safer.
61471         * modules/getusershell (Depends-on): Add stdio-safer.
61472         * modules/lstat (Depends-on): Remove xalloc.
61473         * modules/mkstemp (Depends-on): Add stat-macros.
61474         * modules/modechange (Depends-on): Remove xstrtol.
61475         Add stat-macros, xalloc.
61476         * modules/save-cwd (Depends-on): Add unistd-safer.
61477         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
61478         * modules/unistd-safer (Files): Add lib/fd-safer.c
61479         (Makefile.am): Remove lib_SOURCES.
61480
61481         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
61482         Remove fcntl-safer; unistd-safer supersedes it.
61483
61484 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
61487         AC_HEADER_STAT.
61488         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
61489         (gl_PREREQ_CHOWN): Remove.
61490         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
61491         it.  Don't require AC_HEADER_STAT.
61492         (gl_PREREQ_LSTAT): Remove.
61493         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
61494         Don't require AC_HEADER_STAT.
61495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
61496         (gl_PREREQ_RMDIR): Remove.
61497         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
61498         mention stat-macros.h or AC_HEADER_STAT, since we'll make
61499         the stat-macros module a prerequisite.
61500         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
61501         * m4/filemode.m4 (gl_FILEMODE): Likewise.
61502         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
61503         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
61504         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
61505         variable names.
61506         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
61507         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
61508         variable prefixes.
61509         * m4/fcntl-safer.m4: Remove.
61510         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
61511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
61512         Invoke gl_PREREQ_FD_SAFER.
61513         (gl_PREREQ_FD_SAFER): New macro.
61514         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
61515         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
61516         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
61517         Remove duplicate call to AC_LIBOBJ(readutmp).
61518         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
61519
61520         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
61521         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
61522
61523 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * MODULES.html.sh (Misc): Add byteswap.
61526
61527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61528
61529         * modules/getcwd (Depends-on): Add extensions.
61530         * modules/openat (Depends-on): Likewise.
61531
61532 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61533
61534         * modules/byteswap: New file.
61535
61536 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61537
61538         * m4/byteswap.m4: New file.
61539
61540 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61541
61542         * lib/byteswap_.h: New file.
61543
61544 2005-04-25  Karl Berry  <karl@gnu.org>
61545
61546         * m4/gettext.m4: Update from GNU gettext 0.14.4.
61547
61548 2005-04-25  Albert Chin  <china@thewrittenword.com>
61549
61550         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
61551         Toolkit C bug.
61552
61553 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
61554
61555         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
61556         (func_ln_if_changed) Remove forcibly for no error message
61557         in case file does not exist.
61558
61559 2005-04-19  Simon Josefsson  <jas@extundo.com>
61560
61561         * gnulib-tool (Options): Make --symlink mean --symbolic.
61562
61563 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
61564
61565         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
61566
61567 2005-04-16  Simon Josefsson  <jas@extundo.com>
61568
61569         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
61570
61571 2005-04-15  Simon Josefsson  <jas@extundo.com>
61572
61573         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
61574
61575 2005-04-15  Simon Josefsson  <jas@extundo.com>
61576
61577         * gnulib-tool: Rename --symlink to --symbolic.
61578
61579 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
61580
61581         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
61582         symbolic links to files instead of copying/moving.  Add --aux-dir,
61583         specifying directory relative --dir where auxiliary build tools
61584         are placed.
61585
61586 2005-04-14  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/allocsa (License): Change to LGPL.
61589         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
61590
61591 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
61594         that "UTC +1 second" continues to work.  Problem reported
61595         by Dmitry V. Levin.
61596         (relunit_snumber): New rule.
61597         (relunit): Use it.
61598
61599 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/getdate.y (universal_time_zone_table): New constant.
61602         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
61603         universal_time_zone_table.
61604         (lookup_zone): Prefer universal_time_zone_table to
61605         local_time_zone_table, so that "GMT" time stamps are allowed in
61606         London during the summer.  Problem reported by Ian Abbott.
61607
61608 2005-04-12  Jim Meyering  <jim@meyering.net>
61609
61610         * lib/human.c (humblock): Set *options even when returning due to
61611         xstrtoumax conversion failure.  Thanks to a used-uninitialized
61612         warning from gcc-4.
61613
61614 2005-04-09  Jim Meyering  <jim@meyering.net>
61615
61616         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
61617         -Wuninitialized: initialize tm0.tm_year.
61618
61619 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
61622         count, since there's no maximum.  All uses changed.
61623         Add member dsts_seen.
61624         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
61625         not being INT_MAX.
61626         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
61627         Use pc_rels_seen to decide whther a date is absolute.
61628
61629         * lib/getdate.y (number): Don't overwrite year.
61630         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
61631         check.
61632
61633 2005-04-02  Simon Josefsson  <jas@extundo.com>
61634
61635         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
61636         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
61637
61638 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
61639
61640         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
61641         where no absolute path name can be longer than PATH_MAX.
61642
61643 2005-03-27  Jim Meyering  <jim@meyering.net>
61644
61645         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
61646
61647 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
61650         "one's complement" -> "ones' complement" in comment, as per Knuth.
61651         "value of type" -> "type or expression" in comment.
61652         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
61653
61654 2005-03-26  Jim Meyering  <jim@meyering.net>
61655
61656         Comment nits.
61657         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
61658         Correct typos: s/or/of/.
61659
61660 2005-03-26  Jim Meyering  <jim@meyering.net>
61661
61662         * modules/check-include-files: Move to ../ and rename to...
61663         * check-module: ...this.
61664
61665 2005-03-25  Jim Meyering  <jim@meyering.net>
61666
61667         * modules/xvasprintf (Files): Add xalloc.h.
61668
61669 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         * modules/gettext (Files): config/config.rpath ->
61672         build-aux/config.rpath
61673         * modules/iconv (Files): Likewise.
61674         Problem reported by Oskar Liljeblad.
61675
61676 2005-03-23  Jim Meyering  <jim@meyering.net>
61677
61678         * modules/check-include-files: New script to check for
61679         missing dependencies, multiple includes, etc.
61680
61681         * modules/c-strtold (Depends-on): Add xalloc.
61682         * modules/c-strtod (Depends-on): Add xalloc.
61683         * modules/hash (Depends-on): Add xalloc.
61684         (Files): Remove lib/xalloc.h.
61685
61686         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
61687         * modules/userspec (Files): Add lib/inttostr.h.
61688
61689 2005-03-23  Jim Meyering  <jim@meyering.net>
61690
61691         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
61692
61693 2005-03-22  Jim Meyering  <jim@meyering.net>
61694
61695         * modules/stat-macros: New module.
61696         * modules/canonicalize, modules/euidaccess, modules/file-type,
61697         * modules/filemode, modules/lchown, modules/makepath,
61698         * modules/rmdir, modules/stat: Depend on new stat-macros module
61699         rather than listing lib/stat-macros.h manually.
61700         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
61701
61702 2005-03-22  Jim Meyering  <jim@meyering.net>
61703
61704         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
61705
61706 2005-03-22  Bruno Haible  <bruno@clisp.org>
61707
61708         * config/srclist.txt: Replace target directory 'config' with
61709         'build-aux'.
61710         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
61711         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
61712         ../build-aux/.
61713
61714 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
61715
61716         * modules/chdir-long (Depends-on): Add mempcpy.
61717
61718         * modules/acl, modules/backupfile, modules/c-strtod,
61719         modules/c-strtold, modules/canon-host, modules/canonicalize,
61720         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
61721         modules/exclude, modules/exitfail, modules/file-type,
61722         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
61723         modules/getdate, modules/getline, modules/getpagesize,
61724         modules/getpass, modules/getugroups, modules/group-member,
61725         modules/hard-locale, modules/hash, modules/human, modules/idcache,
61726         modules/inttostr, modules/long-options, modules/makepath,
61727         modules/md5, modules/memcasecmp, modules/memcoll,
61728         modules/modechange, modules/mountlist, modules/path-concat,
61729         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
61730         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
61731         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
61732         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
61733         modules/strftime, modules/strndup, modules/strverscmp,
61734         modules/timespec, modules/unlocked-io, modules/userspec,
61735         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
61736         modules/yesno:
61737         Remove lib_SOURCES line from Makefile.am section, as this is now
61738         done automatically by the corresponding Autoconf macro.
61739
61740 2005-03-21  Jim Meyering  <jim@meyering.net>
61741
61742         Changes imported from coreutils.
61743
61744         * lib/cycle-check.c: Don't include xalloc.h.
61745
61746         * lib/path-concat.c: Don't include assert.h.
61747         (path_concat): Remove assertion that would have triggered
61748         for ABASE starting with more than one slash.
61749         Reported by Andreas Schwab.
61750
61751         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
61752         properly when ABASE is an absolute file name.
61753         Correct the description of this function.
61754         Include <assert.h>.
61755         Add an assertion and a test driver.
61756         This fixes a bug introduced on 2004-07-02.
61757         Andreas Schwab reported the resulting failure of cp --parents:
61758         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
61759
61760 2005-03-21  Jim Meyering  <jim@meyering.net>
61761
61762         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
61763         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
61764
61765 2005-03-21  Jim Meyering  <jim@meyering.net>
61766         and  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
61769         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
61770         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
61771         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
61772         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
61773         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
61774         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
61775         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
61776         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
61777         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
61778         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
61779         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
61780         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
61781         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
61782         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
61783         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
61784         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
61785         for these modules.
61786
61787 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
61790         (which shouldn't happen), generate nothing instead of returning 0
61791         immediately, so that nstrftime (NULL, ...) doesn't return 0.
61792
61793 2005-03-16  Bruno Haible  <bruno@clisp.org>
61794
61795         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
61796         HAVE_LONGLONG_64BIT.
61797
61798 2005-03-16  Bruno Haible  <bruno@clisp.org>
61799
61800         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
61801         HAVE_LONGLONG_64BIT.
61802
61803 2005-03-16  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
61806         HAVE_LONGLONG_64BIT.
61807
61808 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * lib/strftime.c (my_strftime): Prepend space to format so that we can
61811         reliably distinguish strftime failure from empty output on POSIX
61812         hosts.
61813
61814 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61815
61816         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
61817         (iconv_string): Don't guess a size-zero buffer, as that might cause
61818         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
61819         result would be 'too large', where 'too large' is (heuristically)
61820         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
61821         overflow concerns.  This will prevent some unwanted malloc failures
61822         when the inputs are very large.
61823
61824 2005-03-15  Karl Berry  <karl@gnu.org>
61825
61826         * config/srclist.txt (config.rpath): from gettext.
61827         * config/config.rpath: update.
61828
61829 2005-03-15  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
61832         to 'negate'.
61833
61834         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
61835         variable.
61836
61837         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
61838         results.
61839
61840 2005-03-14  Simon Josefsson  <jas@extundo.com>
61841
61842         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
61843         <fx@gnu.org>.
61844
61845 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
61848         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
61849         intprops.h.
61850         * lib/strtol.c: Likewise.
61851
61852 2005-03-14  Jim Meyering  <jim@meyering.net>
61853
61854         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
61855         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
61856         to be nonzero so that we (and caller) can detect the difference
61857         between a valid zero-length expansion and an error return, even
61858         when the underlying strftime fails before writing anything into
61859         that location.
61860
61861 2005-03-14  Bruno Haible  <bruno@clisp.org>
61862
61863         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
61864         Update from GNU gettext 0.14.3.
61865
61866 2005-03-10  Jim Meyering  <jim@meyering.net>
61867
61868         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
61869
61870 2005-03-10  Jim Meyering  <jim@meyering.net>
61871
61872         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
61873         so that this module works on systems without fchdir.
61874
61875 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
61876
61877         Factor int-properties macros into a single file, except for
61878         glibc-related files.
61879         * lib/intprops.h: New file.
61880         * lib/getloadavg.c: Include it instead of limits.h.
61881         (INT_STRLEN_BOUND): Remove.
61882         * lib/human.c: Include intprops.h.
61883         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
61884         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
61885         302/1000.
61886         * lib/inttostr.h: Include intprops.h instead of limits.h.
61887         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
61888         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
61889         for consistency with intprops.h.
61890         (time_t_is_integer, twos_complement_arithmetic): Use them.
61891         * lib/sig2str.h: Include <signal.h>, intprops.h.
61892         (INT_STRLEN_BOUND): Remove.
61893         * lib/strftime.c (TYPE_SIGNED): Remove.
61894         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
61895         * lib/strtol.c: Adjust comments to match intprops.h.
61896         * lib/userspec.c: Include intprops.h.
61897         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
61898         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
61899         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
61900         instead of rolling our own expressions.
61901         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
61902
61903         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
61904         instead of int.
61905         (my_strftime): Do not mishandle years close to INT_MAX, by doing
61906         the right thing even if adding 1900 would overflow.  Similarly
61907         for tm_mon + 1 and tm_yday + 1.
61908         Make %Y always equivalent to %C%y, and similarly for %G and %g.
61909         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
61910         (DO_SIGNED_NUMBER): New macro.
61911         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
61912
61913 2005-03-07  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
61916
61917 2005-03-07  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
61920
61921 2005-03-04  Derek R. Price  <derek@ximbiot.com>
61922
61923         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
61924         (func_import): Only replace files via --import when they have actually
61925         changed.
61926
61927 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61928
61929         * m4/mmap-anon.m4: New file.
61930         * m4/pagealign_alloc.m4: New file.
61931
61932 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61933             Bruno Haible  <bruno@clisp.org>
61934
61935         * modules/pagealign_alloc: New file.
61936         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
61937
61938 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61939             Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/pagealign_alloc.h: New file.
61942         * lib/pagealign_alloc.c: New file.
61943
61944 2005-03-03  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
61947         Use an all-permissive copyright notice, recommended by RMS.
61948
61949 2005-03-02  Bruno Haible  <bruno@clisp.org>
61950
61951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
61952         of AIX, the replacement has to be done only after <string.h> is
61953         included, therefore not in config.h. stpncpy.h does the replacement,
61954         and stpncpy.c uses it.
61955
61956 2005-03-02  Bruno Haible  <bruno@clisp.org>
61957
61958         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
61959         stpncpy.c uses it.
61960
61961 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
61964         The workaround isn't strictly needed for POSIX conformance, and
61965         it's too much of a pain to configure and maintain.  We'll ask
61966         people to fix their kernels instead.
61967         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
61968         (NANOSLEEP_BUG_WORKAROUND): Remove.
61969         (xnanosleep): Remove the workaround.
61970
61971 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
61974         Reported by Derek Price.
61975         (Include): Add "timespec.h".
61976
61977         * modules/xnanosleep (Depends-on): Remove gethrxtime.
61978
61979 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
61982         to detect nanosleep bug.
61983
61984 2005-03-01  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
61987
61988 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * modules/gethrxtime: New file.
61991         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
61992         (Depends-on): Add gethrxtime.
61993         (configure.ac): Add gl_XNANOSLEEP.
61994         (Makefile.am): Remove lib_SOURCES line.
61995
61996 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
61999         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62000
62001 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62004         * lib/timespec.h (gettime): Return void, since it always
62005         succeeds now.  All uses changed.
62006         * lib/gettime.c (gettime) Likewise.
62007         [HAVE_NANOTIME]: Prefer nanotime.
62008         Assume gettimeofday succeeds, as POSIX requires.
62009         Assime time () succeeds, since other code already does.
62010         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62011         (timespec_subtract): Remove.
62012         (NANOSLEEP_BUG_WORKAROUND): New constant.
62013         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62014         things considerably.  Use it only on GNU/Linux hosts, since the
62015         workaround shouldn't be needed elsewhere.
62016
62017 2005-02-24  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/gettext (Files): Add m4/glibc2.m4.
62020
62021 2005-02-24  Bruno Haible  <bruno@clisp.org>
62022
62023         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62024         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62025         * m4/progtest.m4:
62026         Update from GNU gettext 0.14.2.
62027         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62028
62029 2005-02-24  Bruno Haible  <bruno@clisp.org>
62030
62031         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62032         * lib/config.charset: Update from GNU gettext 0.14.2.
62033
62034 2005-02-24  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/gettext.h: Update from GNU gettext 0.14.2.
62037
62038 2005-02-23  Simon Josefsson  <jas@extundo.com>
62039
62040         * m4/iconvme.m4: New file.
62041
62042 2005-02-23  Jim Meyering  <jim@meyering.net>
62043
62044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62045         change.
62046         Thanks to Bruno Haible for catching it.
62047
62048 2005-02-22  Simon Josefsson  <jas@extundo.com>
62049
62050         * modules/iconvme: New file.
62051
62052         * MODULES.html.sh: Add iconvme.
62053
62054 2005-02-22  Simon Josefsson  <jas@extundo.com>
62055
62056         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62057
62058 2005-02-22  Simon Josefsson  <jas@extundo.com>
62059
62060         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62061
62062 2005-02-22  Jim Meyering  <jim@meyering.net>
62063
62064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62065         s/ifndef/ifdef/.
62066
62067 2005-02-20  Neil Conway  <neilc@samurai.com>
62068
62069         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62070         returned by OSX/Darwin if the specified buffer is not large
62071         enough for the hostname.
62072
62073 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62074
62075         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62076         pass it to _help, otherwise the latter coredumps trying to
62077         dereference state.root_argp.
62078
62079 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * modules/chdir-long (Depends-on): Add memrchr.
62082         * modules/memrchr (Files): Add lib/memrchr.h.
62083         (Include): "memrchr.h".
62084
62085 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62088
62089 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         * lib/memrchr.h: New file.
62092         * lib/chdir-long.c: Include it.
62093         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62094         Don't bother including stddef.h.
62095
62096 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62099         inclusion.
62100         Include <sys/types.h>, for dev_t.
62101         (ME_DUMMY, ME_REMOTE): Move from here....
62102         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62103         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62104         Dmitry V. Levin.
62105         Include mountlist.h first, to test the interface.
62106
62107 2005-01-29  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/progname.c (program_name): Initialize.
62110         Needed when linking statically on MacOS X.
62111
62112 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         Sync from coreutils.
62115         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62116         (Depends-on): Add c-strtod.
62117         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62118
62119 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         Sync from coreutils.
62122         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62123
62124         Remove files that are specific to coreutils.
62125         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62126
62127 2005-01-28  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/javacomp: New file.
62130         * MODULES.html.sh (Java): Add javacomp.
62131
62132 2005-01-28  Bruno Haible  <bruno@clisp.org>
62133
62134         * m4/javacomp.m4: New file, from GNU gettext.
62135
62136 2005-01-28  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/javacomp.sh.in: New file, from GNU gettext.
62139         * lib/javacomp.h: New file, from GNU gettext.
62140         * lib/javacomp.c: New file, from GNU gettext.
62141
62142 2005-01-26  Simon Josefsson  <jas@extundo.com>
62143
62144         * lib/gai_strerror.c: Use GPL in header.
62145
62146 2005-01-26  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/javaexec: New file.
62149         * MODULES.html.sh (Java): Add javaexec.
62150
62151 2005-01-26  Bruno Haible  <bruno@clisp.org>
62152
62153         * m4/javaexec.m4: New file, from GNU gettext.
62154
62155 2005-01-26  Bruno Haible  <bruno@clisp.org>
62156
62157         * lib/javaexec.sh.in: New file, from GNU gettext.
62158         * lib/javaexec.h: New file, from GNU gettext.
62159         * lib/javaexec.c: New file, from GNU gettext.
62160
62161 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62162
62163         * modules/lchown (Depends-on): Remove lchown.h
62164
62165 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62166
62167         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62168         must be defined if the header file was not found, in order
62169         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62170
62171 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62172
62173         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62174         initializers for struct pentry_state.
62175         (__argp_error): Check return value of __asprintf
62176         (__argp_failure): Translate error message
62177
62178         * lib/argp-parse.c: Removed braces around the expansion of N_()
62179
62180 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62181
62182         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62183         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62184         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62185         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62186         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62187         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62188         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62189         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62190         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62191         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62192         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62193         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62194         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62195         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62196         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62197         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62198         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62199         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62200         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62201         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62202         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62203         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62204         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62205         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62206         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62207         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62208         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62209         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62210         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62211         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62212         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62213         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62214         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62215         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62216         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62217         Use an all-permissive copyright notice, recommended by RMS.
62218
62219 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * modules/chdir-long (Depends-on): Remove mempcpy.
62222
62223 2005-01-21  Jim Meyering  <jim@meyering.net>
62224
62225         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62226         same value as for Solaris 9.
62227
62228         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62229         component length.  This included changing the parameter to be
62230         of type `char *' rather than `char const *'.
62231         * lib/chdir-long.h (chdir_long): Update prototype.
62232
62233         * lib/openat.c (fdopendir, fstatat): New functions.
62234         * lib/openat.h: Include headers required for use of DIR and struct
62235         stat.
62236         [AT_SYMLINK_NOFOLLOW]: Define.
62237         (fdopendir, fstatat): Add prototypes.
62238
62239 2005-01-21  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/classpath: New file.
62242         * MODULES.html.sh (Java): Add classpath.
62243
62244 2005-01-21  Bruno Haible  <bruno@clisp.org>
62245
62246         * lib/classpath.h: New file, from GNU gettext.
62247         * lib/classpath.c: New file, from GNU gettext.
62248
62249 2005-01-20  Simon Josefsson  <jas@extundo.com>
62250
62251         * modules/version-etc-fsf: New file.
62252
62253 2005-01-20  Simon Josefsson  <jas@extundo.com>
62254
62255         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62256         * lib/version-etc.c: Remove version_etc_copyright.
62257         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62258         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62259
62260 2005-01-20  Simon Josefsson  <jas@extundo.com>
62261
62262         * lib/base64.h (isbase64): Add.
62263
62264         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62265         using a unsigned prototype, don't inline.
62266         (base64_decode): Use it.
62267
62268 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62271         it.
62272
62273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         * lib/save-cwd.c (save_cwd): Remove code to support the case
62276         where fchdir is missing or flaky.
62277
62278 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62281
62282 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62285         AC_LIBSOURCES now does this.
62286         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62287         with new ullong_max module.
62288
62289 2005-01-19  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/sh-quote: New file.
62292         * MODULES.html.sh (Executing programs): Add sh-quote.
62293
62294 2005-01-19  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/sh-quote.h: New file, from GNU gettext.
62297         * lib/sh-quote.c: New file, from GNU gettext.
62298
62299 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         Merge from coreutils.
62302         * m4/ullong_max.m4: New file.
62303         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62304         (gl_MACROS): Assume localeconv exists.
62305
62306 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         Merge changes from coreutils, as described below in several
62309         changelogs dated today.
62310
62311         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62312         (O_DIRECTORY): Remove; not needed here, since "." must be
62313         a directory.  All uses removed.
62314         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62315         universal on Suns, and we also need to test for IRIX.
62316         Revamp code to use 'if' rather than '#if'.
62317         Avoid unnecessary comparison of cwd->desc to 0.
62318
62319         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62320         for known valid error numbers rather than observed invalid ones.
62321
62322 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * modules/ullong_max: New file.
62325
62326         * modules/chdir-long, modules/openat: New files.
62327         * modules/save-cwd (Depends-on): Depend on chdir-long.
62328         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62329
62330 2005-01-18  Jim Meyering  <jim@meyering.net>
62331
62332         Merge from coreutils.
62333         * m4/chdir-long.m4, m4/openat.m4: New files.
62334         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62335         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62336         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62337         is sane and DOES follow symlinks.  Besides, testing 20 different
62338         systems found no broken chown implementations.
62339         Prompted by a change in rsync's copy of this macro.
62340         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62341
62342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62343
62344         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62345         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62346         NULL-means-set-to-current-time semantics.
62347         Remove temporary file immediately, rather than waiting
62348         for configure's at-exit trap code to do it.
62349
62350 2005-01-18  Jim Meyering  <jim@meyering.net>
62351
62352         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62353
62354         * lib/utimens.c (futimens): Account for the fact that futimes
62355         can also fail with errno == ENOSYS or errno == ENOENT.
62356         Patch from Dmitry V. Levin.
62357
62358         Change the name of the robust chdir function from chdir to chdir_long.
62359         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62360         (restore_cwd): Use chdir_long, not chdir.
62361         * lib/chdir-long.c: Renamed from chdir.c.
62362         * lib/chdir-long.h: Renamed from chdir.h.
62363         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62364         Hurd.
62365
62366 2005-01-18  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62369         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62370         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62371         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62372         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62373         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62374         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62375         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62376         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62377         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62378         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62379         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62380         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62381         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62382         Use an all-permissive copyright notice, recommended by RMS.
62383
62384 2005-01-18  Bob Proulx  <bob@proulx.com>
62385
62386         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62387         simplify offsetof() macro construct to avoid compile failure with
62388         native HP-UX 11.0 ANSI C compiler.
62389
62390 2005-01-17  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62393         redundant because stpncpy.m4 takes care of it.
62394
62395 2005-01-17  Bruno Haible  <bruno@clisp.org>
62396
62397         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62398
62399 2005-01-17  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62402         used.
62403
62404 2005-01-17  Bruno Haible  <bruno@clisp.org>
62405
62406         * lib/fwriteerror.h (fwriteerror): Change specification to include
62407         fclose.
62408         * lib/fwriteerror.c: Include <stdbool.h>.
62409         (fwriteerror): At the end, close the file stream. Record whether
62410         stdout was already closed.
62411
62412 2005-01-17  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/execute.c (environ): Declare if needed.
62415         * lib/pipe.c (environ): Likewise.
62416         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62417
62418 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62419
62420         * modules/argp: Depend on vsnprintf
62421
62422 2005-01-10  Jim Meyering  <jim@meyering.net>
62423
62424         * modules/closeout (Depends-on): Add atexit.
62425
62426 2005-01-06  Bruno Haible  <bruno@clisp.org>
62427
62428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62429
62430 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62433         definitions to be after all include files, to avoid collisions.
62434         Problem reported by Bob Proulx.
62435
62436 2005-01-04  Jim Meyering  <jim@meyering.net>
62437
62438         Changes imported from coreutils.
62439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62440         as the mkstemp template, use a temporary directory and an
62441         8.3-friendly template to avoid trouble on systems like DJGPP.
62442         Reported by Juan M. Guerrero via Stepan Kasal.
62443         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62444         close. Remove the temporary directory right away, rather than waiting
62445         for configure's at-exit trap code to do it.
62446         Suggestion from Stepan Kasal.
62447
62448 2005-01-01  Simon Josefsson  <jas@extundo.com>
62449
62450         * gnulib-tool: Print #include directives when --import'ing.
62451
62452 2004-12-28  Simon Josefsson  <jas@extundo.com>
62453
62454         * tests/test-base64.c: Include required header files.  Remove
62455         unused variables.
62456
62457 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62458
62459         * modules/error (Depends-on): Remove gettext.
62460
62461 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62464         not needed.  This removes a dependency on the gettext module.
62465         [defined _LIBC]: Do not include <libintl.h>; not needed.
62466
62467 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62468
62469         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
62470         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
62471
62472 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
62475         HAVE_DECL_STRTOLD.
62476
62477 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * modules/getdate (Depends-on): Remove alloca-opt.
62480
62481 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
62484
62485 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * lib/argp-parse.c: Include <stddef.h>.
62488         (alignof, alignto): New macros.
62489         (parser_init): Don't assume that void * is aligned sufficiently
62490         for struct option.
62491
62492         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
62493         need to extend the stack.
62494         (YYINITDEPTH): New macro, so that the initial stack isn't overly
62495         large.
62496
62497 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62498
62499         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
62500
62501 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
62504         (2004-10-24) change.  Apparently this was a false alarm.
62505
62506         * modules/getdate: Depend on alloca-opt, not alloca.
62507
62508 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
62511         Remove now-obsolete comment about AIX.
62512         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
62513         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
62514         (YYMAXDEPTH): New macro.
62515
62516 2004-12-18  Simon Josefsson  <jas@extundo.com>
62517
62518         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
62519
62520 2004-12-18  Bruno Haible  <bruno@clisp.org>
62521
62522         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
62523
62524 2004-12-18  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/fatal-signal.c (fatal_signals): Make non-const.
62527         (init_fatal_signals): New function.
62528         (uninstall_handlers, install_handlers): Ignore signals that were set to
62529         SIG_IGN.
62530         (at_fatal_signal): Call init_fatal_signals.
62531         (init_fatal_signal_set): Likewise. Ignore signals that were set to
62532         SIG_IGN.
62533         Reported by Paul Eggert.
62534
62535 2004-12-18  Bruno Haible  <bruno@clisp.org>
62536
62537         * doc/alloca.texi: New file.
62538         * doc/alloca-opt.texi: New file.
62539
62540 2004-12-17  Jim Meyering  <jim@meyering.net>
62541
62542         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
62543         Otherwise, install-sh could exit with improper exit status when
62544         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
62545
62546 2004-12-16  Simon Josefsson  <jas@extundo.com>
62547
62548         * tests/test-base64.c: Add license.
62549
62550 2004-12-15  Stepan Kasal  <address@hidden>
62551
62552         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
62553
62554 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * modules/getcwd (Files): Add m4/d-ino.m4.
62557         Suggested by Mark D. Baushke.
62558
62559 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * lib/getdate.y (textint): New member "negative".
62562         (time_zone_hhmm): New function.
62563         Expect 14 shift-reduce conflicts, not 13.
62564         (o_colon_minutes): New rule.
62565         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
62566         (yylex): Set the "negative" member of signed numbers.
62567
62568 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * doc/getdate.texi (Time of day items, Time zone items):
62571         Describe new formats +00:00, UTC+00:00.
62572
62573 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
62576         spurious "-l"s.  Problem reported by Stepan Kasal.
62577
62578 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
62581         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
62582
62583 2004-12-04  Simon Josefsson  <jas@extundo.com>
62584
62585         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
62586         Vandoorselaere <yoann@prelude-ids.org>.
62587
62588 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         Changes imported from coreutils.
62591         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
62592         exist.
62593         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
62594
62595 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         Changes imported from coreutils.
62598         * lib/hard-locale.c: Assume <locale.h> exists.
62599         Include "strdup.h".
62600         (GLIBC_VERSION): New macro.
62601         (hard_locale): Assume setlocale exists.
62602         Rewrite to avoid #ifdef.
62603         Use strdup rather than malloc + strcpy.
62604         * lib/human.c: Assume <locale.h> exists.
62605         (human_readable): Assume localeconv exists.
62606
62607 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * modules/hard-locale (Depends-on): Add strdup.
62610
62611 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62612
62613         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
62614         convert T2, not T.  (Imported from libc.)
62615
62616 2004-11-30  Simon Josefsson  <jas@extundo.com>
62617
62618         * modules/restrict (License): Change to LGPL.
62619
62620 2004-11-30  Simon Josefsson  <jas@extundo.com>
62621
62622         * m4/restrict.m4: Add copyright and copying conditions.
62623
62624 2004-11-30  Simon Josefsson  <jas@extundo.com>
62625
62626         * m4/base64.m4: New file.
62627
62628 2004-11-30  Simon Josefsson  <jas@extundo.com>
62629
62630         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
62631         base64.
62632
62633         * tests/test-base64.c: New file.
62634
62635         * modules/base64: New file.
62636
62637 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
62640         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
62641
62642         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
62643
62644 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
62647         (__getcwd.c): Don't restore errno; glibc doesn't.
62648         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
62649         first, falling back to our code only if its results look suspicious.
62650         Ensure that the resulting buffer is only as large as necessary.
62651
62652         * lib/readutmp.c: Include readutmp.h first.
62653         Include <errno.h>, since readutmp.h no longer does that.
62654         * lib/readutmp.h: Don't include <errno.h>,
62655         <sys/param.h>, <time.h>; not needed to establish interface.
62656         (errno): Remove decl.
62657         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
62658         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
62659         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
62660
62661 2004-11-28  Simon Josefsson  <jas@extundo.com>
62662
62663         * lib/base64.h, base64.c: New file.
62664
62665 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
62668
62669 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
62672         (Depends-on): Remove pathmax, same.  Add mempcpy.
62673         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
62674         (Makefile.am): Append getcwd.h to lib_SOURCES.
62675         (Include): Add getcwd.h.
62676         (Maintainer): Change from Jim Meyering to "all, glibc",
62677         since getdate now uses intended-for-glibc code.
62678         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
62679         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
62680
62681 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
62684         HP's ANSI C compiler.
62685         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
62686         Declaring int functions causes warnings on some modern systems and
62687         shouldn't be needed to compile on ancient ones.
62688         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
62689         defined.
62690
62691         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
62692         with the following changes.
62693         (__set_errno): Parenthesize properly.
62694         Include <stdbool.h>.
62695         (MIN, MAX, MATCHING_INO): New macros.
62696         (__getcwd): Define with prototype, not K&R form.
62697         Use heuristics to allocate default buffer on stack if possible.
62698         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
62699         behavior, and to avoid the PATH_MAX limit when computing
62700         ../../../../...
62701         Use MATCHING_INO to compare inode number to file.
62702         Check for arithmetic overflow in size calculations.
62703         Fix bug in reallocation of dot array that caused getcwd to fail
62704         on directories nested deeper than 75.
62705         Be more careful about saving errno on error.
62706         Do not use realloc; use only free+malloc, as this is a bit
62707         more flexible and avoids a needless copy operation.
62708         Do not inspect st_dev and st_ino for symbolic links; POSIX
62709         doesn't specify the latter.
62710         Check for closedir errors.
62711         Avoid needless casts.
62712         Use "#ifdef weak_alias" around weak_alias, to be like other
62713         glibc code.
62714         The following changes to getcwd.c have effect only when used in
62715         gnulib; they have no effect inside glibc proper.
62716         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
62717         as alloca isn't used.
62718         (alloca, __alloca): Likewise.
62719         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
62720         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62721         unconditionally, as gnulib assumes C89 or better.
62722         Do not include <sys/param.h>.
62723         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
62724         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
62725         better.
62726         (NULL) [!defined NULL]: Remove; we assume C89 or better.
62727         Include <dirent.h> in a way that is compatible with modern Autoconf.
62728         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
62729         New macros, if not already defined.
62730         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
62731         Use "_LIBC", not "defined _LIBC", for consistency.
62732         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
62733         a mempcpy module.
62734         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
62735         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
62736         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
62737         credit only to Jim Meyering and adjust the copyright dates.
62738         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
62739         <stdlib.h>, <unistd.h>, "pathmax.h".
62740         Instead, include "xgetcwd.h" (first) and "getcwd.h".
62741         (INITIAL_BUFFER_SIZE): Remove.
62742         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
62743
62744 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
62747         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
62748         Use the _ONCE methods, for efficiency.
62749         Check for fcntl.h.  In test program, include <errno.h>
62750         and <fcntl.h> if available.  Remove old K&R cruft from
62751         test program.  Check for common errors in GNU/Linux,
62752         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
62753         don't do AC_LIBOBJ, as that's getcwd.m4's job.
62754         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
62755         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
62756         name accordingly.
62757         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
62758         accommodate new getcwd.c.
62759         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
62760         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
62761         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
62762         that's all we need now.
62763
62764 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62765
62766         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
62767         argp-parse.c depends on getopt internals, that means we should
62768         always use our getopt, to be on the safe side.
62769         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
62770         order not to spoil the result of an eventual previous invocation
62771         of gl_GETOPT_SUBSTITUTE.
62772
62773 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62774
62775         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
62776         redefinition warnings. To avoid them, include the defines
62777         in `#if !defined __need_getopt ... #endif'. The only place
62778         where __getopt_argv_const is used is in definitions
62779         of getopt_long and getopt_long_only below, which are as well
62780         protected by `#ifndef __need_getopt'.
62781         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
62782         __need_getopt after including <stdio.h> and <unistd.h> These
62783         headers might have defined it.
62784
62785 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
62788
62789 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
62792         (futimens): New function, which uses futimes if available.
62793         (futimens, utimens): Support timespec==NULL, with same semantics
62794         as utime and utimens.
62795         * lib/utimens.h (futimens): New decl.
62796
62797 2004-11-23  Jim Meyering  <jim@meyering.net>
62798
62799         * lib/getopt_.h: Remove trailing blanks.
62800
62801 2004-11-23  Jim Meyering  <jim@meyering.net>
62802
62803         * lib/__fpending.c: Add comment.
62804
62805 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * modules/canonicalize (Depends-on): Add xreadlink.
62808         Problem reported by James Youngman.
62809
62810 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
62813         New macros.
62814         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
62815         optopt): Use them instead of invoking ## directly; otherwise, the
62816         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
62817
62818 2004-11-19  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/strtok_r.c: Move comments from here...
62821         * lib/strtok_r.h: ... to here.
62822
62823 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
62826         implementations that mishandle size_t overflow.
62827
62828 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
62831         might fail.  Problem reported by Yoann Vandoorselaere.
62832         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
62833         implementations that mishandle size_t overflow.
62834
62835 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * modules/canon-host (Depends-on): Add strdup.
62838
62839 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
62842
62843 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * lib/canon-host.c: Include "strdup.h".
62846         (canon_host): Use getaddrinfo if available, so that IPv6 works.
62847         Use strdup instead of malloc/strcpy to duplicate strings.
62848
62849         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
62850         (human_space_before_unit): New constant.
62851         * lib/human.c (human_readable): Support it.
62852
62853         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
62854         (xgetcwd): Set errno correctly when failing.
62855         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
62856         the failure is actually due to a PATH_MAX problem.
62857
62858         Further getopt changes to make it more likely that glibc will
62859         buy the changes back.
62860         * lib/getopt.c (POSIXLY_CORRECT): New constant.
62861         (getopt): Use it, so to preserve glibc semantic
62862         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
62863         when compiling for libc.
62864         * lib/getopt_.h (__getopt_argv_const): Bring it back.
62865         (getopt_long, getopt_long_only): Use it.
62866
62867         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62868         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
62869         (getopt): Argv is now char * const *, as per standard.
62870         (_getopt_internal_r, _getopt_internal): Argv is now char **,
62871         not char *__getopt_argv_const *.
62872         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62873         _getopt_long_only_r): Likewise.
62874         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
62875         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62876         _getopt_long_r, _getopt_long_only_r): Likewise.
62877         * lib/getopt_.h (__getopt_argv_const): Remove.
62878         (getopt): Argv is now char * const *, as per standard.
62879
62880         * lib/getdate.y (tORDINAL): New token.
62881         (day, relunit): Allow it for relative times.
62882         (relative_time_table): Use tORDINAL for ordinals.
62883
62884 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
62887         Document that "second" isn't allowed as an ordinal number.
62888
62889 2004-11-16  Jim Meyering  <jim@meyering.net>
62890
62891         * modules/closeout (Depends-on): Add fpending.
62892
62893 2004-11-15  Jim Meyering  <jim@meyering.net>
62894
62895         * lib/closeout.c: Include "__fpending.h" once again.
62896         Include <stdbool.h>.
62897         (close_stdout): Don't fail just because stdout was closed initially,
62898         since some programs don't write to stdout in the normal course of
62899         operation (other than --version and --help), and we don't want this
62900         function to make e.g. `touch file >&-' fail.
62901         But do fail if it was closed and someone has tried to write to it.
62902         E.g., `printf foo >&-' must fail.
62903
62904 2004-11-13  Jim Meyering  <jim@meyering.net>
62905
62906         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
62907
62908 2004-11-12  Simon Josefsson  <jas@extundo.com>
62909
62910         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
62911         small doc fix is still pending.
62912
62913 2004-11-11  Simon Josefsson  <jas@extundo.com>
62914
62915         * modules/strtok_r: New file.
62916
62917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62918         strtok_r.
62919
62920 2004-11-11  Simon Josefsson  <jas@extundo.com>
62921
62922         * m4/strtok_r.m4: New file.
62923
62924         * m4/getopt.m4: Replace opterr.
62925
62926 2004-11-11  Simon Josefsson  <jas@extundo.com>
62927
62928         * lib/strtok_r.h, strtok_r.c: New file.
62929
62930 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
62933         of replacing opterr, getopt, etc.  This should handle the
62934         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
62935
62936 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
62939         we can stop lying to compilers about the constness of argv when we
62940         are compiled outside glibc.
62941         (getopt, getopt_long, getopt_long_only): Use it.
62942         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62943         _getopt_internal, getopt): Likewise.
62944         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62945         _getopt_long_only_r): Likewise.
62946         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62947         _getopt_long_r, _getopt_long_only_r): Likewise.
62948
62949         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
62950         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
62951         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
62952         the other external symbols.
62953         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
62954         declaration, since the above renaming now works around collisions.
62955
62956 2004-11-11  Jim Meyering  <jim@meyering.net>
62957
62958         * lib/linebreak.c: Remove trailing blanks.
62959         * lib/alloca_.h: Likewise.
62960         * lib/acosl.c: Likewise.
62961         * lib/euidaccess.c: Likewise.
62962         * lib/allocsa.h: Likewise.
62963
62964 2004-11-10  Simon Josefsson  <jas@extundo.com>
62965
62966         * m4/getaddrinfo.m4: New file.
62967
62968 2004-11-10  Simon Josefsson  <jas@extundo.com>
62969
62970         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
62971
62972 2004-11-10  Simon Josefsson  <jas@extundo.com>
62973
62974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62975         getaddrinfo.
62976
62977         * modules/getaddrinfo: New file.
62978
62979 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62980
62981         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
62982
62983 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * lib/mktime.c (SHR): New macro, which is a portable
62986         substitute for >> that should work even on Crays.
62987         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
62988         Problem reported by Mark D. Baushke in
62989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
62990         * lib/getdate.y (SHR): Likewise.
62991         (tm_diff): Use it.
62992         * lib/strftime.c (SHR): Likewise.
62993         (tm_diff): Use it.
62994         * lib/quotearg.c (struct quoting_options): Use unsigned int for
62995         quote_these_too, so that right shifts are well defined.  All uses
62996         changed.
62997
62998 2004-11-10  Jim Meyering  <jim@meyering.net>
62999
63000         Ensure that no close failure goes unreported.
63001         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63002         return early when it seems there's nothing to flush.
63003         Don't include __fpending.h.
63004
63005 2004-11-10  Jim Meyering  <jim@meyering.net>
63006
63007         * modules/closeout (Depends-on): Remove fpending.
63008
63009 2004-11-10  Jim Meyering  <jim@meyering.net>
63010
63011         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63012
63013 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63014
63015         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63016         gl_FUNC_STRFTIME.
63017         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63018         and AC_REQUIRE when possible, to avoid duplicate checks.
63019         Check for <wchar.h>.
63020
63021 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63022
63023         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63024
63025 2004-11-09  Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/sockpfaf.m4: New file.
63028
63029 2004-11-05  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63032         Reported by Mark D. Baushke <mdb@cvshome.org>.
63033
63034 2004-11-04  Bruno Haible  <bruno@clisp.org>
63035
63036         2004-09-11  Bruno Haible  <bruno@clisp.org>
63037                 * allocsa.valgrind: New file.
63038         2004-02-06  Bruno Haible  <bruno@clisp.org>
63039                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63040                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63041                 Reported by Christopher Seip <chris.seip@hp.com>.
63042
63043 2004-11-04  Bruno Haible  <bruno@clisp.org>
63044
63045         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63046         (Makefile.am): Distribute it.
63047
63048 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63051         with errno == ERANGE if the buffer is too small.
63052         Problem reported by Mark D. Baushke.
63053
63054 2004-11-03  Albert Chin  <china@thewrittenword.com>
63055             Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63058         equivalent, substitute $ac_type for equivalent type rather than
63059         blindly using uint32_t *always* which won't work if uint32_t is not
63060         available.  Define _UINT32_T to work around typedef of uint32_t if
63061         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63062         2.5.1.
63063
63064 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * m4/jm-macros.m4: Sync from coreutils.
63067         (gl_MACROS): Check for mbrlen, for pathchk.
63068         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63069
63070 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63071
63072         * lib/xreadlink.c (MAXSIZE): New macro.
63073         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63074         size does not exceed MAXSIZE.  Avoid cast.
63075         As suggested by Mark D. Baushke in
63076         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63077         if readlink fails with buffer size just under MAXSIZE, try again
63078         with MAXSIZE.
63079
63080 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63083
63084 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63085         and  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63088         (get_date): Overparenthesize to avoid GCC warning.
63089
63090 2004-11-02  Bruno Haible  <bruno@clisp.org>
63091
63092         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63093         returns void.
63094
63095 2004-11-02  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63098         function returns void.
63099
63100 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63103         fflush_unlocked, flockfile, funlockfile, funlockfile,
63104         fputs_unlocked, putc_unlocked.
63105
63106 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63109         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63110         already declared.
63111
63112 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63113
63114         * modules/getdate (Files): Add doc/getdate.texi.
63115         (Depends-on): Add setenv, xalloc.
63116
63117 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * lib/getdate.y: Add support for TZ="foo" within a date string.
63120         Fix some bugs near time_t boundaries.  Reject dates with
63121         out-of-range components, e.g., "Sept 31".
63122         Include <stdlib.h>, "setenv.h", "xalloc.h".
63123         (ISDIGIT_LOCALE): Remove; unused.
63124         Note that the TZ and time functions used here are not reentrant.
63125         (mktime_ok, get_tz): New functions.
63126         (TZBUFSIZE): New constant.
63127         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63128         This requires that we sometimes generate our own TZ="XXX..." setting.
63129
63130 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63131
63132         * doc/getdate.texi: New file, from coreutils with modifications for
63133         the new TZ parsing.
63134
63135 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63136
63137         * lib/mktime.c (not_equal_tm): Remove redundant check.
63138
63139 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * modules/regex (lib_SOURCES): Add regex.c.
63142         Reported by James Youngman in
63143         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63144
63145 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63146
63147         * lib/getdate.y: Use Bison 1.875 features, and some minor
63148         code cleanups.  This change does not affect semantics.
63149         Don't include <stdlib.h>; no longer needed.
63150         Don't include unlocked-io.h; only the "#if TEST" code uses
63151         stdio, and performance isn't crucial there.
63152         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63153         Bison 1.875 features as described below.
63154         All uses of "PC." replaced by "pc->".
63155         (YYSTYPE): Add a forward declaration.
63156         (yylex, yyerror): Use full prototypes in forward decls.
63157         Use "%pure-parser" rather than obsolescent "%pure_parser".
63158         Use %parse-param and %lex-param instead of obsolescent
63159         YYPARSE_PARAM and YYLEX_PARAM.
63160         (meridian_table, month_and_day_table, time_units_table,
63161         relative_time_table, time_zone_table, military_table,
63162         lookup_zone, lookup_word, get_date):
63163         Use NULL instead of 0 where appropriate.
63164         (to_hour): Avoid abort (), to avoid a dependency on
63165         stdlib.h.
63166         (yyerror, yylex): Now accepts parser_control * arg.
63167         (main) [TEST]: Use '\0' rather than 0 for char.
63168
63169 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63172
63173 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63176         It's now the caller's responsibility to handle the case where
63177         !HAVE_GETPAGESIZE && !defined getpagesize.
63178
63179         * lib/mktime.c (leapyear): Arg is long int, not int.
63180
63181 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63184
63185 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63188         missing.  Problem reported by James Youngman.
63189
63190 2004-10-16  Simon Josefsson  <jas@extundo.com>
63191
63192         * gnulib-tool: Fix comments.  Fix parse problem.
63193         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63194
63195 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63198         implementation of getopt_long.  Problem reported by Alexander Taler in:
63199         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63200
63201 2004-10-15  Bruno Haible  <bruno@clisp.org>
63202
63203         * gnulib-tool: Untabify. Initialize supplied_libname.
63204         (func_usage): More homogenous output.
63205         (func_modules_transitive_closure, func_modules_to_filelist,
63206         func_emit_lib_Makefile_am): New functions.
63207         (func_import): New function, extracted from big case statement. Use
63208         func_get_license, func_modules_transitive_closure,
63209         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63210         opt_lgpl. Don't use test -a, as it's not portable.
63211         (func_create_testdir): Use func_modules_transitive_closure,
63212         func_modules_to_filelist, func_emit_lib_Makefile_am.
63213
63214 2004-10-15  Bruno Haible  <bruno@clisp.org>
63215
63216         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63217
63218 2004-10-15  Bruno Haible  <bruno@clisp.org>
63219
63220         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63221         the portions belonging to each module.
63222         Suggested by Derek Robert Price <derek@ximbiot.com>.
63223
63224 2004-10-12  Simon Josefsson  <jas@extundo.com>
63225
63226         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63227         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63228         to real functions.
63229
63230 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63231
63232         * modules/vsnprintf: New file.
63233
63234 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63235
63236         * m4/vsnprintf.m4: New file.
63237
63238 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63239
63240         * lib/vsnprintf.h: New file.
63241         * lib/vsnprintf.c: New file.
63242
63243 2004-10-11  Bruno Haible  <bruno@clisp.org>
63244
63245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63246         vsnprintf.
63247
63248 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63249
63250         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63251
63252 2004-10-07  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63255         fits into the provided buffer.
63256
63257 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * lib/diacrit.c, diacrit.h: Add GPL notice.
63260
63261         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63262         notice.
63263         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63264         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63265         This avoids a potential constant-folding bug.
63266
63267 2004-10-05  Bruno Haible  <bruno@clisp.org>
63268
63269         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63270         for the declaration of strsep.
63271
63272 2004-10-05  Bruno Haible  <bruno@clisp.org>
63273
63274         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63275
63276 2004-10-04  Simon Josefsson  <jas@extundo.com>
63277
63278         * modules/memmem: New file.
63279         * tests/test-memmem.c: New file.
63280         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63281
63282 2004-10-04  Simon Josefsson  <jas@extundo.com>
63283
63284         * m4/memmem.m4: New file.
63285
63286 2004-10-04  Simon Josefsson  <jas@extundo.com>
63287
63288         * lib/memmem.h: New file.
63289         * lib/memmem.c: New file, taken from glibc.
63290
63291 2004-10-04  Simon Josefsson  <jas@extundo.com>
63292
63293         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63294         '#ifdef USE_UNLOCKED_IO'.
63295
63296 2004-10-04  Simon Josefsson  <jas@extundo.com>
63297
63298         * config/srclist.txt: Add memmem from glibc.
63299
63300 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63301
63302         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63303
63304         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63305         modules/exclude, modules/getdate, modules/getline,
63306         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63307         modules/getusershell, modules/linebuffer, modules/md5,
63308         modules/mountlist, modules/posixtm, modules/readtokens,
63309         modules/readutmp, modules/regex, modules/sha1,
63310         modules/version-etc, modules/yesno:
63311         Remove dependency on unlocked-io.
63312
63313 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63316
63317         * m4/unlocked-io.m4: Add copyright notice.
63318         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63319
63320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63323         * lib/xmalloc.c (xmemdup): Likewise.
63324         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63325         XFREE): Remove these long-obsolescent macros.
63326         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63327         * lib/xstrdup.c: Remove.
63328
63329         * lib/regex.c (re_comp): Cast gettext return value to char *,
63330         Problem reported by Martin Neitzel via Mark D. Baushke.
63331
63332 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63335         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63336         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63337         regex.c, sha1.c, version-etc.c, yesno.c:
63338         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63339         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63340         the includer's responsibility.
63341
63342         Sync from coreutils.
63343
63344         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63345         points to the start of a string, as the C Standard says the
63346         resulting behavior is undefined.
63347
63348         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63349         simple -> simple_backups, numbered_existing ->
63350         numbered_existing_backups, numbered -> numbered_backups
63351         to avoid shadowing problems.  All uses changed.
63352         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63353         * lib/backupfile.c (check_extension, numbered_backup):
63354         Rename locals to avoid shadowing 'basename'.
63355         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63356         once.
63357
63358         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63359         * lib/.cvsignore: Add getopt.h.
63360
63361 2004-10-04  Bruno Haible  <bruno@clisp.org>
63362
63363         * modules/README: New file.
63364         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63365         not a module.
63366
63367 2004-10-02  Jim Meyering  <jim@meyering.net>
63368
63369         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63370
63371 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63372
63373         * modules/strsep: New file.
63374
63375 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63376
63377         * m4/strsep.m4: New file.
63378
63379 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63380
63381         * lib/strsep.h: New file.
63382         * lib/strsep.c: New file.
63383
63384 2004-10-01  Simon Josefsson  <jas@extundo.com>
63385
63386         * lib/snprintf.c (snprintf): Handle size==0.
63387
63388 2004-10-01  Simon Josefsson  <jas@extundo.com>
63389             Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63392         (snprintf): Declare 'args'.
63393
63394 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63395
63396         * lib/snprintf.c: Remove comments as to why each header is needed.
63397
63398 2004-10-01  Bruno Haible  <bruno@clisp.org>
63399
63400         * MODULES.html.sh: Add strsep.
63401
63402 2004-09-30  Simon Josefsson  <jas@extundo.com>
63403
63404         * modules/snprintf: New file.
63405
63406 2004-09-30  Simon Josefsson  <jas@extundo.com>
63407
63408         * m4/snprintf.m4: New file.
63409
63410 2004-09-30  Simon Josefsson  <jas@extundo.com>
63411
63412         * lib/snprintf.h, lib/snprintf.c: New files.
63413
63414 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63415
63416         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63417         (hol_entry_help): Never translate an empty string.
63418         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63419         * lib/argp.h (OPTION_NO_TRANS): New option.
63420
63421 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         * modules/argp (Maintainer): Replace Simon Josefsson
63424         by Sergey Poznyakoff.
63425
63426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63429         changes merged back into glibc.
63430
63431 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63434
63435 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63436
63437         * lib/xvasprintf.c: Include xalloc.h.
63438         (xvasprintf): Use xalloc_die, not xmalloc_die.
63439
63440 2004-09-29  Bruno Haible  <bruno@clisp.org>
63441
63442         * modules/alloca-opt: New file, derived from modules/alloca.
63443         * modules/allocsa: Depend on alloca-opt instead of alloca.
63444         * modules/setenv: Likewise.
63445         * modules/vasnprintf: Likewise.
63446         * MODULES.html.sh: Add alloca-opt.
63447
63448 2004-09-28  Simon Josefsson  <jas@extundo.com>
63449
63450         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63451         LGPL, and to replace license template from GPL to LGPL.
63452
63453 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63454
63455         * modules/dummy: Change license to LGPL.
63456
63457 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63458
63459         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63460
63461 2004-09-24  Simon Josefsson  <jas@extundo.com>
63462
63463         * modules/minmax (License): Change from GPL to LGPL.
63464
63465 2004-09-23  Simon Josefsson  <jas@extundo.com>
63466
63467         * gnulib-tool (--import): Typo.
63468
63469 2004-09-23  Simon Josefsson  <jas@extundo.com>
63470
63471         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
63472
63473 2004-09-22  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/*: Add 'License' field.
63476         * gnulib-tool: Accept --extract-license option.
63477         (func_get_license): New function.
63478
63479 2004-09-21  Bruno Haible  <bruno@clisp.org>
63480
63481         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
63482         Reported by Simon Josefsson.
63483
63484 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
63487         gl_AC_TYPE_LONG_LONG.
63488
63489 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63490
63491         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
63492
63493 2004-09-18  Simon Josefsson  <jas@extundo.com>
63494         and  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
63497         calls with autoreconf.  Define GL_LIB.
63498
63499 2004-09-14  Karl Berry  <karl@gnu.org>
63500
63501         * config/srclist.txt: unsync setenv.c, sigh.
63502
63503 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
63506         Problem reported by Bruno Haible in:
63507         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
63508
63509 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         * config/srclist.txt: Comment out argp-pvh.c.
63512
63513 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
63516         in case some system header has #define'd it.  Problem reported by
63517         Soeren D. Schulze in
63518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
63519
63520 2004-09-09  Karl Berry  <karl@gnu.org>
63521
63522         * regex.[ch]: delete from the root.  These were supposed to be
63523                 synced with emacs cvs, but this has not happened for about
63524                 a year, and anyway nothing else uses emacs regex.[ch].
63525                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
63526                 lib/regex[.ch] is untouched.
63527
63528 2004-09-09  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
63531
63532 2004-09-09  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
63535         modifications.
63536         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
63537
63538 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63539
63540         * modules/xvasprintf: New file.
63541         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
63542
63543 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63544
63545         * lib/xvasprintf.h: New file.
63546         * lib/xvasprintf.c: New file.
63547         * lib/xasprintf.c: New file.
63548
63549 2004-09-08  Bruno Haible  <bruno@clisp.org>
63550
63551         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
63552
63553 2004-09-08  Bruno Haible  <bruno@clisp.org>
63554
63555         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
63556         length is > INT_MAX.
63557         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
63558         more.
63559
63560 2004-09-08  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/stdint_.h: New file, taken from GNU clisp.
63563
63564 2004-09-08  Bruno Haible  <bruno@clisp.org>
63565             Oskar Liljeblad  <oskar@osk.mine.nu>
63566
63567         * modules/stdint: New file.
63568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
63569
63570 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         Import from coreutils.
63573         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
63574         strings on unbounded length.  alloca's performance benefits aren't
63575         that important here.
63576         (V_STRDUP): Remove.
63577         (parse_with_separator): New function, with most of the internals
63578         of the old parse_user_spec.  Allow user to omit both user and group,
63579         for compatibility with FreeBSD.
63580         Clone only the user name, not the entire spec.
63581         Do not set *uid, *gid unless entirely successful.
63582         Avoid memory leak in some failing cases.
63583         Fix regression for USER.GROUP reported by Dmitry V. Levin in
63584         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
63585         (parse_user_spec): Rewrite to use parse_with_separator.
63586
63587 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * modules/userspec: Don't depend on alloca.
63590
63591 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
63594
63595 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
63598         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
63599         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
63600
63601 2004-08-16  Simon Josefsson  <jas@extundo.com>
63602
63603         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
63604         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
63605         Add --dry-run for --import.
63606         Let user provided command line parameters override configure.ac
63607         settings.
63608
63609 2004-08-12  Simon Josefsson  <jas@extundo.com>
63610
63611         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
63612         as discussed with Paul Eggert in threads rooted at
63613         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
63614         and
63615         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
63616         Before, the test was empty, and relied on ELIDE_CODE in source
63617         code.)
63618         (gl_PREREQ_GETOPT): New macro.
63619         (gl_GETOPT): Use them.
63620
63621 2004-08-12  Simon Josefsson  <jas@extundo.com>
63622
63623         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
63624         * lib/getopt_.h: Renamed from getopt.h.
63625
63626 2004-08-12  Simon Josefsson  <jas@extundo.com>
63627
63628         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
63629         Change default library name from libfoo to libgnu.
63630         Now, if you have a configure.ac that says:
63631                 gl_SOURCE_BASE(gl)
63632                 gl_M4_BASE(gl/m4)
63633                 gl_MODULES(error getopt etcetera)
63634                 gl_INIT
63635         you can import all you need by running:
63636                 ../gnulib/gnulib-tool --import
63637
63638         * modules/getopt (Files): Rename getopt.h to getopt_.h.
63639         (Makefile.am): Rewrite, use logic from argz.
63640         (Include): Use <getopt.h> instead of "getopt.h".
63641
63642 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * modules/argp (Files): Add m4/unlocked-io.m4.
63645         (Depends-on): Add extensions.
63646
63647 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
63650         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
63651         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
63652         Check for program_invocation_name, program_invocation_short_name,
63653         flockfile, funlockfile, features.h, _getopt_long_only_r.
63654
63655 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
63658         its complicated substitute.
63659         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
63660         and program_invocation_name.
63661         (__argp_basename) [!_LIBC]: Remove; the only use was
63662         replaced by its body.
63663         (__argp_short_program_name): Change condition from
63664         !defined __argp_short_program_name to
63665         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
63666         to match argp-namefrob.h.
63667         (__argp_failure): Don't assume strerror_r returns char *.
63668         * lib/argp-parse.c (N_): Define unconditionally.
63669         (argp_default_options): Fill out initializers with 0 to avoid
63670         gcc warnings.
63671
63672 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
63675         getopt1.c.
63676
63677 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         Merge from coreutils.
63680
63681         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
63682
63683         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
63684         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
63685
63686 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63687
63688         Merge from coreutils.
63689
63690         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
63691         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
63692         for Reliant Unix 5.43.
63693
63694         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
63695         (union fooround): Use uintmax_t, not long int.
63696         The rest is a merge from libc:
63697         [defined _LIBC]: Include <shlib-compat.h>.
63698         (_obstack) [defined _LIBC]: Remove after 2.3.4.
63699
63700         * lib/settime.c (settime): Recode to avoid warning with
63701         Sun Forte C 6U2.
63702
63703         * lib/strverscmp.c: Convert to UTF-8.
63704
63705 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63708         m4/uintmax_t.m4.
63709
63710 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * modules/xalloc-die: New file.
63713         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
63714
63715         * modules/md5 (Files): Add m4/uint32_t.m4.
63716         * modules/sha1: Renamed from modules/sha.
63717         (Files):
63718         Rename lib/sha.h to lib/sha1.h.
63719         Rename lib/sha.c to lib/sha1.c.
63720         Rename m4/sha.m4 to m4/sha1.m4.
63721         (lib_SOURCES): Likewise.
63722         (configure.ac): Rename gl_SHA to gl_SHA1.
63723         (Include): sha.h -> sha1.h.
63724
63725 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
63728         * m4/sha1.m4: Renamed from sha.m4.
63729         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
63730
63731 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         * lib/obstack.h (obstack_empty_p):
63734         Don't assume that chunk->contents is suitably aligned.
63735         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
63736         Likewise. Problem reported by Benno in
63737         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
63738
63739         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
63740         readable.  This could be improved further but it'd take some work.
63741
63742 2004-08-08  Simon Josefsson  <jas@extundo.com>
63743
63744         * modules/xgethostname (Depends-on): Remove exit and error (not
63745         used).
63746
63747         * modules/getpass-gnu: Add getpass.h.
63748         (Depends-on): Add stdbool.
63749         * modules/getpass: Add getpass.h.
63750
63751 2004-08-08  Simon Josefsson  <jas@extundo.com>
63752
63753         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
63754         Check getpass declaration.
63755
63756 2004-08-08  Simon Josefsson  <jas@extundo.com>
63757
63758         * lib/xgethostname.c: Don't include error.h (not used).
63759
63760         * lib/getpass.h: Add.
63761         * lib/getpass.c: Include getpass.h first.
63762
63763 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * lib/xalloc-die.c: New file.
63766         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
63767         All uses removed.
63768         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
63769         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
63770         xalloc-die.c.
63771         (_, N_, xalloc_die): Move to xalloc-die.c.
63772         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
63773         so that we needn't mess with xalloc_msg_memory_exhausted.
63774
63775         * lib/sha1.h: Renamed from sha.h.
63776         (SHA1_H): Renamed from _SHA_H.
63777         (sha1_ctx): Renamed from sha_ctx.
63778         (sha1_init_ctx): Renamed from sha_init_ctx.
63779         (sha1_process_block): Renamed from sha_process_block.
63780         (sha1_process_bytes): Renamed from sha_process_bytes.
63781         (sha1_finish_ctx): Renamed from sha_finish_ctx.
63782         (sha1_read_ctx): Renamed from sha_read_ctx.
63783         (sha1_stream): Renamed from sha_stream.
63784         (sha1_buffer): Renamed from sha_buffer.
63785         * lib/sha1.c: Likewise; renamed from sha.c.
63786         Do not include <sys/types.h>.
63787         Include <stddef.h> rather than <stdlib.h>.
63788
63789 2004-08-08  Bruno Haible  <bruno@clisp.org>
63790
63791         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
63792         FILESYSTEM_PREFIX_LEN.
63793         * lib/progreloc.c: Likewise.
63794         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
63795
63796 2004-08-06  Simon Josefsson  <jas@extundo.com>
63797
63798         * modules/progname (Depends-on): Don't depend on stdbool.
63799
63800 2004-08-06  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/getsubopt: New file.
63803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63804         getsubopt.
63805
63806 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63807
63808         More merge from coreutils.
63809
63810         * m4/utimens.m4, m4/utimecmp.m4: New files.
63811         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
63812         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
63813         prereq.m4, sha.m4: Import changes from coreutils.
63814
63815 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         More merge from coreutils.
63818         * modules/raise, modules/readtokens0, modules/utimens:
63819         * modules/utimecmp, module/xnanosleep: New files.
63820         * modules/strftime: Add lib/strftime.h.
63821         Change include from <time.h> to "strftime.h".
63822         * modules/yesno: Add lib/yesno.h.
63823         * modules/backupfile: Remove lib/addext.c.
63824         * modules/euidaccess: Add stat-macros.h.
63825         * modules/canonicalize, modules/euidaccess,
63826         modules/filemode, modules/lchown, modules/makepath,
63827         modules/rmdir, modules/stat: Likewise.
63828
63829 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         Merge from tar.
63832         * lib/argp-help.c (make_hol, hol_append): Don't assume that
63833         SIZE_MAX is a valid preprocessor constant.
63834         (__argp_basename): Change from "#ifndef _LIBC"
63835         to "#ifndef __argp_short_program_name", so that
63836         we don't compile these functions for tar.
63837
63838         More merges from coreutils.
63839         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
63840         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
63841         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
63842         * lib/addext.c: Remove; no longer needed.
63843         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
63844         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
63845         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
63846         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
63847         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
63848         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
63849         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
63850         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
63851         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
63852         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63853         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
63854         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
63855         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
63856         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
63857         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
63858         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
63859         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
63860         Import changes from coreutils.
63861
63862 2004-08-05  Simon Josefsson  <jas@extundo.com>
63863
63864         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
63865
63866 2004-08-05  Simon Josefsson  <jas@extundo.com>
63867
63868         * m4/getsubopt.m4: New file.
63869
63870 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         Merge from coreutils.
63873
63874         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
63875         * m4/getcwd-path-max.m4: New files.
63876
63877         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
63878         FILESYSTEM_PREFIX_LEN ->
63879         FILE_SYSTEM_PREFIX_LEN.
63880         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
63881         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
63882         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
63883         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
63884
63885         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
63886         prerequisite modules now handle the DOS stuff.
63887         Don't check for unistd.h.
63888
63889 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         Merge from coreutils.
63892
63893         * lib/.gdb-history: Remove; this doesn't belong here.
63894
63895         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
63896         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
63897         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
63898         * lib/getcwd.c: New files.
63899
63900         * lib/dirname.h: Include <stdbool.h>.
63901         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
63902         for consistency with POSIX terminology.  All uses changed.
63903         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
63904         (strip_trailing_slashes): Use bool for booleans.
63905         * lib/stripslash.c (strip_trailing_slashes): Likewise.
63906
63907         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
63908         sometimes returns a positive errno value even when it succeeds.
63909         (print_errno_message) [!LIBC]: Fall back on strerror if
63910         __strerror_r fails.
63911
63912         * lib/path-concat.c (mempcpy): Don't define if a system header defines
63913         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
63914         (longest_relative_suffix): New function.
63915         (path_concat): Use it.  Assume first argument is not NULL.
63916         Port to DOS.  Omit redundant separators.
63917         Report an error instead of returning NULL.
63918         Use mempcpy instead of memcpy.
63919         (xpath_concat): Remove: not declared or used.
63920
63921         * lib/same.h: Include <stdbool.h>
63922         (same_name): Return bool, not int.
63923         * lib/same.c (same_name): Likewise.
63924         (errno): Don't declare; we assume C89 or better now.
63925
63926         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
63927         if not already defined.
63928
63929         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
63930         * lib/dup-safer.c (errno): Likewise.
63931
63932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         Merge from coreutils.
63935         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
63936         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
63937         * modules/path-concat: Don't depend on strdup.
63938
63939 2004-08-03  Simon Josefsson  <jas@extundo.com>
63940
63941         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
63942         * lib/progname.h: Don't include stdbool.h.
63943
63944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
63947         * MODULES.html.sh (func_all_modules): Remove fatal.
63948
63949 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
63952
63953 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63954
63955         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
63956         working.
63957
63958 2004-08-02  Simon Josefsson  <jas@extundo.com>
63959
63960         * lib/getsubopt.h: New file, with comments from Bruno Haible.
63961         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
63962         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
63963
63964 2004-08-01  Simon Josefsson  <jas@extundo.com>
63965
63966         * lib/xgetdomainname.c: Include stdlib.h, for free().
63967
63968 2004-07-19  Bruno Haible  <bruno@clisp.org>
63969
63970         * MODULES.html.sh (func_all_modules): Add dummy.
63971
63972 2004-07-16  Simon Josefsson  <jas@extundo.com>
63973
63974         * modules/dummy: New file.
63975
63976 2004-07-16  Simon Josefsson  <jas@extundo.com>
63977
63978         * lib/dummy.c: New file.
63979
63980 2004-07-16  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/backupfile.h: Add extern "C" for C++.
63983         * lib/closeout.h: Likewise.
63984         * lib/copy-file.h: Likewise.
63985         * lib/findprog.h: Likewise.
63986         * lib/full-write.h: Likewise.
63987         * lib/pathname.h: Likewise.
63988         * lib/progname.h: Likewise.
63989         * lib/stpcpy.h: Likewise.
63990         * lib/stpncpy.h: Likewise.
63991         * lib/strcase.h: Likewise.
63992         * lib/strstr.h: Likewise.
63993         * lib/xalloc.h: Likewise.
63994
63995         * lib/mbswidth.h: Add extern "C" for C++.
63996         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
63997
63998 2004-07-13  Robert Millan  <robertmh@gnu.org>
63999
64000         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64001
64002 2004-07-09  Simon Josefsson  <jas@extundo.com>
64003
64004         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64005         failed without this.)
64006
64007 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * modules/chown (Files): Add lib/fchown-stub.c, since
64010         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64011
64012 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * lib/fchown-stub.c: New file.
64015
64016 2004-06-24  Jim Meyering  <jim@meyering.net>
64017
64018         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64019
64020 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         * modules/argz: Omit "#include".
64023
64024         * MODULES.html.sh (func_all_modules): Add calloc, to match
64025         2004-06-01 addition of calloc module.
64026
64027 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * m4/argz.m4: New file, which is autoupdated from libtool.
64030
64031 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64034         libtool.
64035
64036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * config/srclist-update: Don't insist on "USA." before the
64039         close-comment, as libtool omits the period and puts the */ on a
64040         separate line.
64041         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64042         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64043
64044 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64045
64046         * modules/argz: New file.
64047         * MODULES.html.sh (func_all_modules): Add argz.
64048
64049 2004-06-12  Jim Meyering  <jim@meyering.net>
64050         and  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * modules/hash (Files): Add lib/xalloc.h.
64053         * modules/pipe (Depends-on): Add wait-process.
64054         * modules/stat (Depends-on): Add xalloc.
64055         * modules/userspec (Files): Add lib/userspec.h.
64056         * modules/xstrto
64057
64058         Upgrade from gettext-0.13.
64059         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64060         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64061         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64062
64063 2004-06-10  Jim Meyering  <jim@meyering.net>
64064
64065         * lib/calloc.c: New file.
64066
64067 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/getdate.y (yylex): Allow space between sign and number.
64070         Problem reported by Dan Jacobson.
64071
64072 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         Merge from coreutils CVS.
64075
64076         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64077         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64078         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64079         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64080         xstrtol.m4: Fix copyright date and/or serial number.
64081
64082         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64083         See if we need an fchown replacement.
64084         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64085         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64086         and use the replacement function if we detect either defect.
64087
64088         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64089         gl_UTIMECMP.
64090
64091 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64092         and  Jim Meyering  <jim@meyering.net>
64093
64094         Merge from coreutils CVS.
64095
64096         * lib/stat-macros.h: New file, with contents from file-type.h
64097         and coreutils' system.h.
64098         * lib/file-type.c: Include "stat-macros.h".
64099         * lib/file-type.h (file_type): Move all macro definitions to new file,
64100         stat-macros.h.
64101
64102         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64103         Wrap old code with this conditional.
64104         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64105         function that does not dereference symlinks.
64106         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64107
64108         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64109         dependency problems.
64110         (xreadlink): Accept new arg SIZE, for efficiency.
64111         All decls and uses changed.
64112         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64113
64114         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64115         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64116
64117         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64118         sysexits.h.
64119
64120 2004-06-01  Jim Meyering  <jim@meyering.net>
64121
64122         * m4/calloc.m4: New file.
64123
64124 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64127         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64128         Also, fix a typo in a diagnostic.
64129
64130 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64133         or AC_FUNC_REALLOC.
64134
64135 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64138         macros to be defined.
64139         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64140         the allocator returns NULL because the requested size is zero.
64141
64142 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64145         var.  Add comment explaining why libc still defines it.  This
64146         merges the following patch from glibc:
64147         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64148
64149 2004-05-20  Andreas Schwab  <schwab@suse.de>
64150
64151         * m4/free.m4: Replace free if it not known to work, not the other
64152         way round.
64153
64154 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64157         present in glibc since revision 1.1 of this file.
64158         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64159         obstack_alignment_mask, obstack_alloc, obstack_base,
64160         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64161         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64162         obstack_grow0, obstack_init, obstack_int_grow,
64163         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64164         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64165         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64166         nonexistent functions.
64167
64168 2004-05-18  Karl Berry  <karl@gnu.org>
64169
64170         * config/srclist.txt: break link for vasnprintf.c.
64171
64172 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         Port obstack to the AS/400, where pointers are 16 bytes wide and
64175         you cannot cast an integer to a valid pointer.  This patch is
64176         currently waiting to be integrated into glibc; see
64177         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64178
64179         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64180         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64181         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64182         (struct obstack): temp member is now a union of a pointer and
64183         an integer, instead of an integer.  All integer uses changed.
64184         This does not affect the physical layout of struct obstack,
64185         except on hosts (like the AS/400) where the size or alignment of
64186         void * is greater than that of ptrdiff_t.
64187         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64188         __STDC__)]: Store temporary in pointer member of union, not
64189         integer member.
64190         * lib/obstack.c: Include <stddef.h>, for offsetof.
64191         (struct fooalign): Remove; it doesn't need a name.
64192         (union fooround): Change double to long double, and add void *.
64193         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64194         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64195         not a macro.  Hence the values are always int; so remove all
64196         casts-to-int in uses.
64197
64198 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64201         we can get this patch merged into glibc.
64202
64203 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64204             Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * m4/argp: Depend on alloca.
64207
64208 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64209             Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64212         freecoding.
64213
64214 2004-05-17  Bruno Haible  <bruno@clisp.org>
64215
64216         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64217         precision that consists of a '.' followed by an empty digit string.
64218         Patch by Tor Lillqvist <tml@iki.fi>.
64219
64220 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64221
64222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64223         for backward compatibility with older code.  We need our own
64224         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64225         it under some other name, and our alloca.h will define it.
64226
64227 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64228             Derek Price  <derek@ximbiot.com>
64229
64230         * lib/alloca.c: Include <alloca.h>, to get our interface.
64231         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64232         include <alloca.h> first.  Use C89 prototype for alloca; this
64233         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64234         Use #elif for simplicity, since we can assume C89 now.
64235         Don't try to source the system alloca.h since it will not be found
64236         and to prevent recursively including its replacement.
64237         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64238         * lib/regex.c: Likewise.
64239
64240 2004-05-16  Derek Price  <derek@ximbiot.com>
64241             Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         getline cleanup.  This changes the getndelim2 API: both order of
64244         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64245         no delimiter).
64246
64247         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64248         interface does that.
64249         (getline): Always use getdelim, so that we don't have two
64250         copies of this code.
64251         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64252         if available.
64253         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64254         (GETNDELIM2_MAXIMUM): New macro.
64255         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64256         instead of the old practice of delim2==0.  All callers changed.
64257         Return -1 on overflow, instead of returning junk.
64258         Do not set *linesize unless allocation succeeds.
64259         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64260         that we include sys/types.h.
64261         * lib/getnline.h: Likewise.
64262         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64263         (getndelim2): Reorder arguments.
64264         * lib/getnline.c (getnline, getndelim):
64265         Don't discard the NMAX argument.
64266         (getnline): Invoke getndelim, to avoid code duplication.
64267         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64268         of (size_t) -1 by callers of the getnline family.
64269
64270 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64273         Check for gettimeofday.
64274         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64275         Check for settimeofday, stime.
64276
64277 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * lib/nanosleep.c (suspended): Change its type from int to
64280         sig_atomic_t volatile.
64281         (first_call): Make it private to rpl_nanosleep, and have it
64282         be zero initially as that's a bit faster.
64283         (my_usleep): Round up fractional times instead of truncating them,
64284         as this is the usual meaning for 'sleep'.
64285
64286         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64287         doesn't work.
64288         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64289         (ENOSYS): Define if not defined.
64290         (settime): Fall back on stime if it exists and settimeofday fails.
64291         But don't bother with fallbacks if a method fails with errno == EPERM.
64292
64293 2004-05-11  Jim Meyering  <jim@meyering.net>
64294
64295         Prior to this change, the save_cwd caller required read access to the
64296         current directory on most systems (ones with the fchdir function).
64297
64298         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64299         fails, try write-only, and finally, resort to using xgetcwd.
64300
64301 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * lib/obstack.c, obstack.h: Import changes from libc.
64304
64305 2004-04-28  Bruno Haible  <bruno@clisp.org>
64306
64307         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64308         also implicitly appends .exe to executables.
64309         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64310         accepts Windows pathnames.
64311         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64312         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64313         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64314         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64315         Reported by Derek Robert Price <derek@ximbiot.com>.
64316
64317 2004-04-21  Karl Berry  <karl@gnu.org>
64318
64319         * config/srclist.txt (localcharset.c): break sync.
64320
64321 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64322
64323         * m4/host-os.m4: Add a copyright notice.
64324
64325 2004-04-20  Jim Meyering  <jim@meyering.net>
64326
64327         Change UTILS_ to gl_ in AC_DEFINE'd names.
64328         Change utils_- and jm_-prefixed variables, too.
64329         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64330         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64332
64333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64334         Don't emit trailing blanks.
64335         Also rename jm_-prefixed variables to have gl_ prefix.
64336
64337         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64338         Also rename jm_-prefixed variables to have gl_ prefix.
64339
64340         * m4/jm-macros.m4: Reflect the renamings.
64341         * m4/prereq.m4: Likewise.
64342
64343 2004-04-20  Jim Meyering  <jim@meyering.net>
64344
64345         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64346         memory.
64347
64348 2004-04-20  Jim Meyering  <jim@meyering.net>
64349             Bruno Haible  <bruno@clisp.org>
64350
64351         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64352         memory when realloc fails.
64353
64354 2004-04-19  Jim Meyering  <jim@meyering.net>
64355
64356         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64357         now that readutmp.c may call `free (0)'.
64358
64359 2004-04-19  Bruno Haible  <bruno@clisp.org>
64360
64361         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64362         * m4/inttypes_h.m4: Likewise.
64363         * m4/stdint_h.m4: Likewise.
64364         * m4/intmax_t.m4: Likewise.
64365         * m4/uintmax_t.m4: Likewise.
64366
64367 2004-04-18  Jim Meyering  <jim@meyering.net>
64368
64369         * m4/prereq.m4: Don't forbid jm_ prefix.
64370
64371         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64372         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64373         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64374         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64375         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64376         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64377         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64378         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64379         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64380         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64381         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64382         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64383         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64384         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64385         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64386         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64387         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64388         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64389         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64390
64391 2004-04-18  Jim Meyering  <jim@meyering.net>
64392
64393         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64394         failure, don't leak memory and do call END_UTMP_ENT.
64395
64396 2004-04-16  Jim Meyering  <jim@meyering.net>
64397
64398         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64399         coreutils' stat program.
64400         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64401
64402 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64403
64404         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64405         C89.
64406         (CHAR_BIT): Remove, since we assume C89.
64407         Include <stdint.h> if available, as per current Autoconf CVS advice.
64408
64409 2004-03-31  Jim Meyering  <jim@meyering.net>
64410
64411         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64412         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64413         * m4/xalloc.m4: Likewise.
64414
64415 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64416
64417         Merge from coreutils.
64418
64419         * m4/inttostr.m4: New file.
64420         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64421         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64422         Require gl_CLOCK_TIME.
64423         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64424
64425 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64426
64427         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64428         not bool, to be more consistent with Unix conventions.
64429         Suggested by Bruno Haible.
64430
64431         Merge from coreutils.
64432
64433         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64434         * lib/umaxtostr.c: New files.
64435
64436         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64437         the usual <time.h> dance.
64438         (get_date): Change signature to support fractional time stamps.
64439         All callers changed.
64440         * lib/getdate.y: Include "getdate.h" first, as we can now
64441         assume C89 and don't need to worry about 'const'.
64442         Similarly, include "unlocked-io.h" near start, not in middle.
64443         Include <limits.h>.
64444         (textint.value): Use long int rather than int.
64445         (textint.digits): Use size_t rather than int.
64446         (BILLION, LOG10_BILLION): New constants.
64447         (parser_control): New member rel_ns.  Members day_ordinal,
64448         time_zone, month, day, hour, minutes, rel_year, rel_month,
64449         rel_day, rel_hour, rel_minutes, rel_seconds
64450         are now long int, not int.  Member seconds is now struct timespec,
64451         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64452         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64453         not int.
64454         (%union.intval): Now long int, not int.
64455         New member timespec.
64456         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64457         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64458         (spec): Now is a timespec or an item list.
64459         (timespec, items): New nonterminals.
64460         (time, rel, relunit, number, get_date):
64461         Add support for fractional seconds.
64462         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64463         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64464         (to_hour): First arg is now long int, not int.
64465         (to_year): Returns long int, not int.
64466         Don't treat year -70 like 70.
64467         (tm_diff): Returns long int, not int.
64468         (lookup_word): Use bool instead of int when appropriate.
64469         (yylex): Use size_t for count, not int.
64470         Detect overflow when parsing large integer constants.
64471         Add support for fractions.
64472         (get_date): Make pointers 'const' if possible.
64473         Use more-portable code to detect integer overflow.
64474         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
64475         Don't use ctime; it's not reliable if the year has >4 digits.
64476
64477         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
64478         This is for compatibility with BSD.
64479
64480         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
64481         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
64482         From coreutils' system.h.
64483
64484         * lib/userspec.c: Don't include "posixver.h".
64485         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
64486         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
64487         compatible extension.  Simplify code by removing a boolean int
64488         that was always nonzero if a string was nonnull.
64489
64490 2004-03-30  Jim Meyering  <jim@meyering.net>
64491
64492         Merge from coreutils.
64493
64494         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
64495         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
64496         on some systems one must include <grp.h> before it.
64497         Reported by Christian Krackowizer.
64498
64499 2004-03-30  Jim Meyering  <jim@meyering.net>
64500
64501         Merge from coreutils.
64502
64503         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
64504
64505         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
64506         an empty input stream.
64507
64508         * lib/readtokens.c: Include <stdbool.h>.
64509         (readtoken): Use `size_t' rather than int/long.
64510         All callers adjusted.
64511         Use `bool' rather than `int' where appropriate.
64512         Use memset rather than an explicit loop.
64513         Use x2nrealloc rather than xrealloc.
64514         Allow the use of `\0' as a delimiter.
64515         (readtokens): Likewise.
64516         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
64517
64518 2004-03-30  Jim Meyering  <jim@meyering.net>
64519
64520         * m4/realloc.m4: Remove file, since now it does no more than
64521         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
64522         the `configure.ac' section of module/realloc.
64523         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
64524
64525 2004-03-30  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
64528         nonnull.
64529
64530 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64531
64532         Merge changes to getloadavg.c from coreutils and Emacs.
64533
64534         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
64535         Define to an expression, not to the empty string.
64536         Include cloexec.h and xalloc.h.
64537         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
64538         Use set_cloexec_flag rather than rolling our own.
64539         * lib/cloexec.c, lib/cloexec.h: New files.
64540
64541 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64542
64543         * m4/cloexec.m4: New file.
64544
64545 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64546
64547         * lib/getopt.h: Sync with libc CVS.
64548
64549 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64550             Bruno Haible  <bruno@clisp.org>
64551
64552         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
64553         mbswidth.
64554
64555 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64556             Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/mbswidth.h: Include <wchar.h> only if
64559         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
64560         <wchar.h>.
64561         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
64562
64563 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64564
64565         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
64566         Sync with libc CVS.
64567         * lib/getopt_int.h: New file, also synced from libc.
64568
64569 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64570
64571         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
64572         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
64573         Bring back getopt.c, getopt.h, getopt1.c.
64574
64575 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64576
64577         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
64578         All uses changed.  Check for sa_sigaction member; this fixes
64579         a bug first reported by Jason Andrade in
64580         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64581
64582 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64583
64584         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
64585         '#if' expressions.  Unlike the code it replaces, it does not
64586         depend on (defined _SC_PAGESIZE).  However, it does depend on
64587         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
64588         first reported by Jason Andrade in
64589         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64590
64591 2004-02-25  Simon Josefsson  <jas@extundo.com>
64592
64593         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
64594
64595 2004-02-25  Simon Josefsson  <jas@extundo.com>
64596
64597         * lib/strdup.h: New file.
64598         * lib/strdup.c: Include it.
64599         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
64600         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
64601
64602 2004-02-23  Karl Berry  <karl@gnu.org>
64603
64604         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
64605         (from fencepost.gnu.org:/gd/gnuorg).
64606
64607 2004-02-23  Karl Berry  <karl@gnu.org>
64608
64609         * config/srclistvars.sh (GNUORG) [karl]: redefine.
64610         * config/srclist.txt: add maintain/standards documents.
64611
64612 2004-02-18  Bruno Haible  <bruno@clisp.org>
64613
64614         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
64615         Reported by Derek Robert Price <derek@ximbiot.com>.
64616
64617 2004-02-16  Karl Berry  <karl@gnu.org>
64618
64619         * config/mkinstalldirs, install-sh: update from automake.
64620
64621 2004-02-06  Karl Berry  <karl@gnu.org>
64622
64623         * m4/po.m4: update from gettext 0.14.1.
64624
64625 2004-02-06  Karl Berry  <karl@gnu.org>
64626
64627         * lib/config.charset: update from gettext 0.14.1.
64628
64629 2004-02-05  Paul Eggert  <eggert@twinsun.com>
64630
64631         Add comments and code, prompted by suggestions from Bruno Haible
64632         for sh-quote.
64633         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
64634         describing the enum quoting_style values.
64635         * lib/quotearg.c (quotearg_alloc): New function.
64636         (quotearg_buffer_restyled): Treat lone { and } as special.
64637         Treat = as special.  Work around bug with older shells
64638         that "see" a '\' that is really the 2nd byte of a multibyte char.
64639         Quote empty string with shell_quoting_style.
64640
64641 2004-02-03  Bruno Haible  <bruno@clisp.org>
64642
64643         * m4/pipe.m4: New file, from GNU gettext.
64644
64645 2004-02-03  Bruno Haible  <bruno@clisp.org>
64646
64647         * lib/pipe.h: New file, from GNU gettext.
64648         * lib/pipe.c: New file, from GNU gettext.
64649
64650 2004-01-27  Bruno Haible  <bruno@clisp.org>
64651
64652         * m4/execute.m4: New file, from GNU gettext.
64653
64654 2004-01-27  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/execute.h: New file, from GNU gettext.
64657         * lib/execute.c: New file, from GNU gettext.
64658         * lib/w32spawn.h: New file, from GNU gettext.
64659
64660 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64661
64662         Merge from diffutils.
64663
64664         * lib/file-type.c (file_type): Add typed memory objects.
64665         * lib/file-type.h (S_TYPEISTMO): New macro.
64666
64667         * lib/c-stack.h (c_stack_action): Remove argv argument.
64668         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
64669         (die): Don't calculate message unless segv_action returns.
64670         (get_stack_location, min_address_from_argv, max_address_from_argv,
64671         volatile stack_base, volatile_stack_size): Remove.
64672         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
64673         that every segmentation violation is a stack overflow.  (Ouch!)
64674         See Debian bug 136249 (still outstanding) for more info about why
64675         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
64676
64677 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64678
64679         Exit-status fix from coreutils.
64680
64681         Use exit_failure consistently in place of EXIT_FAILURE,
64682         so that program exit statuses are consistent on failure.
64683
64684         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
64685         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
64686         * lib/argmatch.h: Comment fix to match the above.
64687         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
64688         Now a macro referring to exit_failure, instead of a separate
64689         variable.  Include "exitfail.h" to get it.
64690         * lib/xstrtol.h: Include "exitfail.h".
64691         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
64692
64693         * lib/long-options.c (parse_long_options): Use prototype
64694         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
64695         for clarity.
64696
64697 2004-01-21  Jim Meyering  <jim@meyering.net>
64698
64699         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
64700         so as not to conflict with a different-sized __mktime_internal
64701         function in GNU libc.
64702         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
64703         Problem building statically-linked `ls' reported by Michael Brunnbauer.
64704
64705 2004-01-20  Karl Berry  <karl@gnu.org>
64706
64707         * config/config.guess: update from config.
64708
64709         * config/srclistvars.sh: GNUWWWLICENSES for karl.
64710
64711 2004-01-20  Bruno Haible  <bruno@clisp.org>
64712
64713         Safer stack allocation.
64714         * lib/setenv.c: Include allocsa.h.
64715         (alloca): Remove fallback definition.
64716         (freea): Remove macro.
64717         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
64718         instead of freea.
64719
64720 2004-01-20  Bruno Haible  <bruno@clisp.org>
64721
64722         * m4/eealloc.m4: New file, from GNU gettext.
64723
64724 2004-01-20  Bruno Haible  <bruno@clisp.org>
64725
64726         * m4/allocsa.m4: New file, from GNU gettext.
64727
64728 2004-01-20  Bruno Haible  <bruno@clisp.org>
64729
64730         * lib/xallocsa.h: New file, from GNU gettext.
64731         * lib/xallocsa.c: New file, from GNU gettext.
64732
64733 2004-01-20  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
64736
64737 2004-01-20  Bruno Haible  <bruno@clisp.org>
64738
64739         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
64740         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
64741         specially.
64742
64743 2004-01-20  Bruno Haible  <bruno@clisp.org>
64744
64745         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
64746         patch.
64747
64748 2004-01-20  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
64751
64752 2004-01-20  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/eealloc.h: New file.
64755
64756 2004-01-20  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/binary-io.h: Avoid warnings on Cygwin.
64759
64760 2004-01-20  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/allocsa.h: New file, from GNU gettext.
64763         * lib/allocsa.c: New file, from GNU gettext.
64764
64765 2004-01-18  Karl Berry  <karl@gnu.org>
64766
64767         * doc/gpl.texi, doc/lgpl.texi: new files.
64768
64769 2004-01-18  Karl Berry  <karl@gnu.org>
64770
64771         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
64772         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
64773
64774 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64775
64776         Merge from coreutils.
64777
64778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
64779         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
64780         (gl_DEFAULT_POSIX2_VERSION): Move
64781         the documentation from 'configure' into 'config.hin',
64782         so that 'configure --help' isn't burdened by it and
64783         we don't have to worry about its formatting there.
64784         Reword the documentation so that it's more succinct
64785         and can be run together into a single paragraph.
64786         * m4/same.m4 (gl_SAME): Check for pathconf.
64787
64788 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64789
64790         Merge from coreutils.
64791
64792         * lib/posixver.c: Include posixver.h.
64793
64794         * lib/same.c: Include <stdbool.h>, <limits.h>.
64795         (_POSIX_NAME_MAX): Define if not defined.
64796         (MIN): New macro.
64797         (same_name): If file names are silently truncated, report
64798         that the file names are the same if they are the same after
64799         the silent truncation.
64800
64801         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
64802         conversion function.
64803         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
64804         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
64805         longer needed.
64806
64807 2004-01-15  Jim Meyering  <jim@meyering.net>
64808
64809         Merge from coreutils.
64810
64811         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
64812         if no library is required.
64813         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
64814         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
64815         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
64816         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
64817         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
64818         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
64819         value, $ac_cv_search_crypt, if it's "none required".
64820         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
64821         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
64822         not gl_FUNC_GETLOADAVG.
64823         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
64824         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
64825
64826 2004-01-15  Jim Meyering  <jim@meyering.net>
64827
64828         Merge from coreutils.
64829
64830         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
64831         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
64832         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
64833
64834         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
64835         optional configure-time default.
64836
64837         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64838
64839         * lib/xreadlink.c (xreadlink): Correct outdated comment.
64840
64841 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
64842
64843         Merge from coreutils.
64844
64845         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
64846         value, $ac_cv_search_nanosleep, if it's "none required".
64847
64848 2004-01-14  Paul Eggert  <eggert@twinsun.com>
64849
64850         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
64851         with like-named macro in fnmatch.c.
64852         (EXT): Use an internal constant instead.
64853
64854         Merge fnmatch patches from glibc.
64855         * lib/fnmatch.c (mbsinit): Remove define.
64856         Add libc_hidden_ver (__fnmatch, fnmatch).
64857         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
64858         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
64859
64860 2004-01-14  Karl Berry  <karl@gnu.org>
64861
64862         * config/install-sh: update from automake.
64863
64864 2004-01-13  Karl Berry  <karl@gnu.org>
64865
64866         * config/install-sh: update from automake.
64867
64868 2004-01-09  Karl Berry  <karl@gnu.org>
64869
64870         * config/install-sh: update from automake.
64871
64872 2004-01-05  Karl Berry  <karl@gnu.org>
64873
64874         * config/config.{sub,guess}: update from config.
64875
64876 2003-12-31  Karl Berry  <karl@gnu.org>
64877
64878         * config/depcomp: update from automake.
64879
64880 2003-12-14  Karl Berry  <karl@gnu.org>
64881
64882         * lib/config.charset: update from gettext-runtime.
64883
64884 2003-12-03  Paul Eggert  <eggert@twinsun.com>
64885
64886         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
64887         Bug reported by Alfred M. Szmidt.
64888
64889 2003-12-03  Bruno Haible  <bruno@clisp.org>
64890
64891         * m4/gettext.m4: Upgrade from gettext-0.13.
64892         * m4/po.m4: Upgrade from gettext-0.13.
64893         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
64894         * m4/intmax.m4: New file, from gettext-0.13.
64895         * m4/printf-posix.m4: New file, from gettext-0.13.
64896
64897 2003-11-29  Karl Berry  <karl@gnu.org>
64898
64899         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
64900
64901 2003-11-25  Paul Eggert  <eggert@twinsun.com>
64902             Bruno Haible  <bruno@clisp.org>
64903
64904         * lib/printf-parse.h: Don't include sys/types.h.
64905         (ARG_NONE): New macro.
64906         (char_directive): Change type of *arg_index fields to size_t.
64907         * lib/printf-parse.c: Don't include sys/types.h.
64908         (SSIZE_MAX): Remove macro.
64909         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
64910         Remove unnecessary overflow check.
64911         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
64912         fields.
64913
64914 2003-11-25  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
64917
64918 2003-11-25  Bruno Haible  <bruno@clisp.org>
64919
64920         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
64921         gt_TYPE_SSIZE_T.
64922
64923 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64924
64925         * modules/alloca: Remove dependency on xalloc.
64926
64927 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64928
64929         * lib/alloca.c: Remove dependency on xalloc module.
64930         (xalloc_die): Remove.
64931         (memory_full) [!defined emacs]: New macro.
64932         [!defined emacs]: Don't include xalloc.h.
64933         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
64934         address arithmetic overflows.  Change datatypes a bit to avoid
64935         unnecessary casts.
64936
64937 2003-11-22  Jim Meyering  <jim@meyering.net>
64938
64939         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
64940         s/size/size_t/.
64941
64942 2003-11-21  Karl Berry  <karl@gnu.org>
64943
64944         * config/config.{sub,guess}: update from config.
64945
64946 2003-11-18  Karl Berry  <karl@gnu.org>
64947
64948         * config/config.{sub,guess}: update from config.
64949
64950         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
64951
64952 2003-11-17  Paul Eggert  <eggert@twinsun.com>
64953
64954         * README: Mention that S+T cannot overflow if S is the size of
64955         an existing object and T is sufficiently small.
64956
64957 2003-11-17  Jim Meyering  <jim@meyering.net>
64958
64959         On systems without utime and without a utimes function capable of
64960         dealing with a NULL struct utimbuf* argument, this utime replacement
64961         could -- in unusual circumstances -- leak a file descriptor.
64962         * lib/utime.c: Include <unistd.h> and <errno.h>.
64963         (utime_null): Be sure to close `fd' and to preserve errno.
64964         Reported by Geoff Collyer via Arnold Robbins.
64965
64966 2003-11-17  Bruno Haible  <bruno@clisp.org>
64967
64968         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
64969         (Depends-on): Add xsize.
64970
64971 2003-11-17  Bruno Haible  <bruno@clisp.org>
64972
64973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
64974
64975 2003-11-17  Bruno Haible  <bruno@clisp.org>
64976
64977         * lib/vasnprintf.c (alloca): Remove fallback definition.
64978         (freea): Remove definition.
64979         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
64980         Reported by Paul Eggert.
64981
64982 2003-11-16  Paul Eggert  <eggert@twinsun.com>
64983             Bruno Haible  <bruno@clisp.org>
64984
64985         Protect against address arithmetic overflow.
64986         * lib/printf-args.h: Include stddef.h.
64987         (arguments): Change type of field 'count' to size_t.
64988         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
64989         'unsigned int' where appropriate.
64990         * lib/printf-parse.h: Include sys/types.h.
64991         (char_directive): Change type of *arg_index fields to ssize_t.
64992         (char_directives): Change type of fields 'count', max_*_length to
64993         size_t.
64994         * lib/printf-parse.c: Include sys/types.h and xsize.h.
64995         (SSIZE_MAX): Define fallback value.
64996         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
64997         instead of 'int' where appropriate. Check a_allocated, d_allocated
64998         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
64999         * lib/vasnprintf.c: Include xsize.h.
65000         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65001         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65002         overflow. Avoid wraparound when converting a width or precision from
65003         decimal to binary.
65004
65005 2003-11-16  Bruno Haible  <bruno@clisp.org>
65006
65007         Update from GNU gettext.
65008         * lib/printf-parse.c: Generalize to it can be compiled for wide
65009         strings.
65010         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65011         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65012         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65013         SNPRINTF): New macros.
65014         Don't include <alloca.h> if the file is used inside libintl.
65015         (local_wcslen): New function, for Solaris 2.5.1.
65016         (VASNPRINTF): Use it instead of wcslen.
65017
65018 2003-11-16  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/xsize.h (xmax): New function.
65021         (xsum, xsum3, xsum4): Declare as "pure" functions.
65022
65023 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65024
65025         * modules/xalloc (Files): Undo latest change, since xalloc.h
65026         no longer needs SIZE_MAX or PTRDIFF_MAX.
65027
65028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65029
65030         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65031         gl_PTRDIFF_MAX.
65032
65033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65034
65035         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65036         "return", to pacify some unknown compiler.  Problem reported
65037         by Joerg Schilling.
65038
65039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65040
65041         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65042         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65043         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65044         heuristic is just as accurate as far as we know, and it removes a
65045         dependency on size_max.m4 and ptrdiff_max.m4.
65046
65047 2003-11-11  Bruno Haible  <bruno@clisp.org>
65048
65049         * modules/xsize (Files): Add m4/size_max.m4.
65050         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65051
65052 2003-11-11  Bruno Haible  <bruno@clisp.org>
65053
65054         * m4/size_max.m4: New file.
65055         * m4/ptrdiff_max.m4: New file.
65056         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65057         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65058         (gl_XALLOC): Invoke it.
65059
65060 2003-11-11  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65063         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65064         defined.
65065
65066 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65067
65068         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65069         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65070         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65071         From Bruno Haible.
65072         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65073         not (size_t) -1, since it's defined here.
65074
65075 2003-11-09  Karl Berry  <karl@gnu.org>
65076
65077         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65078
65079 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65080
65081         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65082         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65083         Reject sizes of exactly SIZE_MAX bytes.
65084         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65085         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65086
65087 2003-11-05  Bruno Haible  <bruno@clisp.org>
65088
65089         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65090         SIZE_MAX defined in <limits.h> on Solaris.
65091
65092 2003-11-04  Jim Meyering  <jim@meyering.net>
65093
65094         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65095         variable names, rather than @VAR@.
65096         * modules/poll: Likewise.
65097
65098 2003-11-04  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/xsize: New file.
65101         * modules/linebreak: Depend on xsize.
65102         * MODULES.html.sh (func_all_modules): Add xsize.
65103
65104 2003-11-04  Bruno Haible  <bruno@clisp.org>
65105
65106         * m4/xsize.m4: New file.
65107
65108 2003-11-04  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/xsize.h: New file.
65111         * lib/linebreak.c: Include xsize.h.
65112         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65113         argument for overflow.
65114         Suggested by Paul Eggert.
65115
65116 2003-11-03  Karl Berry  <karl@gnu.org>
65117
65118         * config/config.{guess,sub}: update from config.
65119
65120 2003-11-03  Jim Meyering  <jim@meyering.net>
65121
65122         * modules/userspec (lib_SOURCES): Add userspec.h.
65123         (Include): Add "userspec.h".
65124         Improve description.
65125
65126 2003-11-03  Jim Meyering  <jim@meyering.net>
65127
65128         * lib/userspec.c: Include "userspec.h".
65129         * lib/userspec.h: New file.
65130
65131 2003-11-03  Bruno Haible  <bruno@clisp.org>
65132
65133         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65134
65135 2003-11-03  Bruno Haible  <bruno@clisp.org>
65136
65137         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65138         available, to avoid (extremely rare) race condition.
65139         Suggested by Paul Eggert.
65140
65141 2003-11-02  Karl Berry  <karl@gnu.org>
65142
65143         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65144
65145 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65146
65147         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65148         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65149         (read_filesystem_list): Set and use me_type_malloced.
65150         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65151         whatever the type happens to be), for brevity and consistency.
65152         Check for size calculation overflow on Alphas running OSF/1.
65153
65154 2003-10-31  Jim Meyering  <jim@meyering.net>
65155
65156         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65157
65158         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65159
65160 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65161             Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65164         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65165
65166 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65169         netbsd*-gnu*.  Suggested by Robert Millan.
65170
65171 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65172
65173         * modules/group-member: Depend on stdbool.
65174
65175 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65176
65177         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65178
65179 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65180
65181         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65182         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65183         after the 'gnu' in these cases.  This fixes some bugs in the
65184         previous change, and is based on suggestions by Robert Millan.
65185
65186 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65187
65188         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65189         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65190         no longer needed.
65191         * lib/quotearg.c (quotearg_n_options): Use it.
65192         * lib/group-member.c: Include <stdbool.h>.
65193         (free_group_info): Arg is now const *; don't free arg.
65194         (get_group_info): Now returns bool and accepts struct group_info *,
65195         rather than returning a malloc'ed struct group_info *.
65196         All uses changed.  Check for overflow in internal size calculation.
65197
65198         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65199         rather than xmalloc/xrealloc.
65200         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65201         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65202         conformance bug: the old code used a pointer after freeing the
65203         storage that it addressed.
65204         * lib/hash.c (hash_initialize): Simplify the code by using
65205         xalloc_oversized rather than doing it by hand.
65206         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65207         the buffer preserved.  Use free and xmalloc instead.
65208         * lib/quotearg.c (quotearg_n_options): Likewise.
65209         Use a simpler test for size overflow.  Don't use xalloc_oversized
65210         because unsigned int might be wider than size_t (!); this suggests
65211         that we should switch from unsigned int to size_t for slot numbers.
65212
65213 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65214
65215         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65216         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65217         NetBSD kernels.  Requested by Richard Stallman.
65218
65219 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65220
65221         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65222         to allocate the returned structure.  Do not allocate a subarray,
65223         as x2nrealloc will do that.
65224         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65225         instead of xnrealloc.
65226         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65227
65228 2003-10-27  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/stdbool_.h: Better support for BeOS.
65231
65232 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65233
65234         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65235         now uses inline.
65236
65237 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65238
65239         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65240         callers that want to do their own size-overflow checking.  Include
65241         <stdbool.h>, since xalloc_oversized returns bool.
65242         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65243         to use xalloc_oversized.
65244
65245         Add two functions x2realloc, x2nrealloc, for programs that grow
65246         arrays dynamically by doubling their sizes.
65247         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65248         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65249         New functions.
65250
65251         Port to C99 semantics for 'inline' of external functions.
65252         Bug reported by Bruno Haible.
65253         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65254         with the old contents of xnmalloc.
65255         (xnmalloc, xmalloc): Use it.
65256         (xnrealloc_inline): New static inline function,
65257         with the old contents of xnrealloc.
65258         (xnrealloc, xrealloc): Use it.
65259
65260         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65261         that.
65262
65263 2003-10-26  Karl Berry  <karl@gnu.org>
65264
65265         * config/srclist.txt (COPYING.DOC): no longer available from
65266         /gd/gnuorg; don't know where the ultimate source is.
65267
65268 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65269
65270         Fix several address-calculation bugs in the hash modules,
65271         plus some minor code cleanup.
65272
65273         * lib/hash.h: Include <stdbool.h>, for bool.
65274         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65275         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65276         hash_get_n_entries, hash_get_max_bucket_length,
65277         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65278         hash_rehash): Use size_t rather than unsigned.
65279         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65280         hash_get_n_buckets_used, hash_get_n_entries,
65281         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65282         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65283         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65284         Likewise.
65285         (SIZE_MAX): Define if not defined.
65286         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65287         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65288         hash_print):
65289         Use const * when possible.
65290         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65291         (check_tuning): Fix bug: if tuning parameters were very close to
65292         0 or 1, rounding errors could have caused subscript violations.
65293         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65294         (hash_initialize): Add 'fail:' label
65295         to free table and return NULL, and use it to simplify code.
65296         Use calloc rather than clearing the storage ourself.
65297         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65298         buffer size calculations.
65299         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65300         Include <stddef.h>, for size_t.
65301         * lib/hash-pjw.c (hash_pjw): Likewise.
65302         Switch to method described by Bruno Haible.
65303         Include <limits.h>, for CHAR_BIT.
65304         (SIZE_BITS): New macro.
65305
65306 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65307
65308         * m4/getline.m4 (AM_FUNC_GETLINE):
65309         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65310         hosts.  Problem reported by Derek Robert Price in
65311         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65312         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65313         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65314
65315 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65316
65317         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65318         ceiling the allocation at NMAX bytes rather than silently
65319         discarding input bytes before NMAX is reached.  This makes
65320         a difference only if NMAX exceeds SIZE_MAX / 2.
65321
65322         * lib/obstack.c: Merge from glibc.
65323         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65324         Add libc_hidden_def (_obstack_newchunk).
65325         (_obstack_free) [! defined _LIBC]: Remove.
65326         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65327         a clone of the function body.
65328         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65329         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65330
65331         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65332         glibc.
65333         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65334         arg to memcpy.
65335
65336         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65337         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65338         Don't use lvalue casts, as GCC plans to remove support for them
65339         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65340         was also present in the non-GCC version, indicating that this
65341         code had always been buggy and had never been widely used.
65342         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65343         Use the fast variant of each macro, rather than copying the
65344         definiens of the fast variant; that way, we'll be more likely to
65345         catch future bugs in the fast variants.
65346
65347 2003-10-20  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/wait-process: New file.
65350         * MODULES.html.sh (func_all_modules): Add wait-process.
65351
65352 2003-10-20  Bruno Haible  <bruno@clisp.org>
65353
65354         * m4/wait-process.m4: New file.
65355
65356 2003-10-20  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/wait-process.h: New file, from GNU gettext.
65359         * lib/wait-process.c: New file, from GNU gettext.
65360
65361 2003-10-19  Jim Meyering  <jim@meyering.net>
65362
65363         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65364         HPUX 10.20.
65365
65366 2003-10-18  Karl Berry  <karl@gnu.org>
65367
65368         * config/config.guess: update from config.
65369
65370 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65371
65372         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65373         (getgroups): First arg is int, not size_t.
65374         Don't let 'free' mangle errno.
65375
65376 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65377
65378         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65379
65380 2003-10-16  Karl Berry  <karl@gnu.org>
65381
65382         * config/config.{guess,sub}: update from config.
65383
65384 2003-10-16  Jim Meyering  <jim@meyering.net>
65385
65386         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65387         memcpy.
65388
65389 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65390
65391         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65392         (SIZE_MAX): Remove.
65393         (new_exclude, add_exclude_file): Initial size no longer needs to
65394         be a power of 2.
65395         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65396         our own address arithmetic overflow checking.
65397
65398         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65399         (fnmatch): Do not alloca more than 2000 wide characters;
65400         instead, use malloc for large buffers.
65401         Check for address arithmetic overflow, and return -1
65402         with errno set to ENOMEM in that case.
65403         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65404         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65405         instead, return -1.  Check for address arithmetic overflow.
65406
65407 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65408
65409         Handle invalid suffixes and overflow independently, so that
65410         callers can treat them independently as needed.  Fix some bugs in
65411         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65412         suffix for a human-readable blocksize.  The major caller-visible
65413         change is the addition of a new
65414         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65415         that both overflow and suffix chars were found.
65416
65417         * lib/human.c (humblock): Don't check separately for invalid suffix
65418         char; that is xstrtoumax's job (now that its bug is fixed).
65419         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65420         INTMAX_MAX]: New macros.
65421         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65422         TYPE_MAXIMUM): New macros.
65423         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65424         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65425         if overflow occurs, as it's what __strtol does and it's more useful
65426         in practice.
65427         (__xstrtol): If __strtol reports some error other than ERANGE,
65428         reflect it to the caller as LONGINT_INVALID.  If it reports
65429         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65430         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65431         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65432         value.
65433         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65434         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65435         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65436         [defined UINTMAX_MAX]: New macros.
65437
65438 2003-10-14  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65441
65442 2003-10-14  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/sig_atomic_t: New file, from GNU gettext.
65445         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65446
65447 2003-10-14  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65450         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65451         Also use volatile where needed.
65452
65453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65454
65455         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65456         Change maintainer from Bruno Haible to 'all'.
65457
65458 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65459
65460         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65461
65462 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65463
65464         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
65465         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
65466         and define in terms of the other primitives.
65467         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
65468         (SIZE_MAX): Define if not already defined.
65469         (array_size_overflow): New function.
65470         (xalloc_die): Abort instead of exiting if 'error' returns.
65471         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
65472         (xmalloc, xrealloc): Use them.
65473         (xcalloc): Check for address arithmetic overflow.
65474         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
65475         a bit faster than strcpy.
65476
65477 2003-10-10  Simon Josefsson  <jas@extundo.com>
65478
65479         * modules/argp (Depends-on): Add restrict and strcase.
65480
65481 2003-10-10  Simon Josefsson  <jas@extundo.com>
65482
65483         * m4/argp.m4: Add AC_C_INLINE.
65484
65485 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65486
65487         Merge getpass from libc, plus a few fixes.
65488
65489         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
65490         Include <stdbool.h>.
65491         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
65492         __fsetlocking to empty.
65493         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
65494         do include <bits/libc-lock.h>.
65495         Do not include <fcntl.h>; not needed.
65496         [_LIBC]: Include <wchar.h>.
65497         (NOTCANCEL_MODE): New macro.
65498         (flockfile, funlockfile) [_LIBC]: New macros.
65499         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
65500         [!_LIBC]: New macros.
65501         (call_fclose): New function.
65502         (getpass): Use it.  Save tty stream separately; this simplifies the
65503         code and makes it more reliable if stdin happens to equal stdout.
65504         Invoke __fsetlocking on tty.
65505         Handle thread cancellation if needed.
65506         Namespace cleanup (use __tcgetattr, __getline).
65507         Use bool for Booleans.
65508         [USE_IN_LIBIO]: Handle wide streams.
65509         [!_LIBC]: Unconditionally do the fseek, since we don't know what
65510         stream might go where.
65511
65512         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
65513         doesn't have to include <stdio.h> before us.
65514         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
65515         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
65516         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
65517         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
65518         if not declared, so that we can use getpass.c code from libc without
65519         rewriting it.
65520         (flockfile, ftrylockfile, funlockfile): New macros.
65521
65522 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65523
65524         * modules/getpass: Depend on stdbool.
65525
65526 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65527
65528         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
65529
65530 2003-10-07  Karl Berry  <karl@gnu.org>
65531
65532         * config/config.{guess,sub}: update from config.
65533
65534 2003-10-06  Jim Meyering  <jim@meyering.net>
65535             Bruno Haible  <bruno@clisp.org>
65536
65537         This lets translators provide better translations for the
65538         "Written by ..." part of --version output.
65539         * lib/version-etc.h: Include stdarg.h.
65540         (version_etc_copyright): Declare as readonly.
65541         (version_etc): Make this function variadic with a NULL-terminated list
65542         of author name strings.
65543         (version_etc_va): New declaration.
65544         * lib/version-etc.c: Include stdarg.h, stdlib.h.
65545         (version_etc_copyright): Declare as readonly.
65546         (version_etc_va): New function. Provide a different translatable string
65547         for each possible number of authors < 10. Abbreviate when there are 10
65548         authors or more.
65549         (version_etc): Make this function variadic. Call version_etc_va.
65550         Suggestion from Gary V. Vaughan.
65551
65552         * lib/long-options.h (parse_long_options): Change prototype: the
65553         authors string is moved to the end and becomes variadic.
65554         * lib/long-options.c: Include stdarg.h.
65555         (parse_long_options): Make this function variadic, too.
65556         Call version_etc_va, not version_etc.
65557
65558 2003-10-06  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/version-etc-2: Remove file.
65561         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
65562
65563 2003-10-06  Bruno Haible  <bruno@clisp.org>
65564
65565         * modules/fatal-signal: New file.
65566         * MODULES.html.sh (func_all_modules): Add fatal-signal.
65567
65568 2003-10-06  Bruno Haible  <bruno@clisp.org>
65569
65570         * m4/fatal-signal.m4: New file.
65571         * m4/signalblocking.m4: New file, from GNU gettext.
65572
65573 2003-10-06  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/version-etc-2.h: Remove file.
65576         * lib/version-etc-2.c: Remove file.
65577
65578 2003-10-06  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/fatal-signal.h: New file, from GNU gettext.
65581         * lib/fatal-signal.c: New file, from GNU gettext.
65582
65583 2003-10-05  Paul Eggert  <eggert@twinsun.com>
65584
65585         * README: Rework advice for preventing empty .o files.
65586         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
65587         not <sys/types.h>.
65588
65589 2003-10-04  Karl Berry  <karl@gnu.org>
65590
65591         * lib/argp*: update from libc.
65592
65593 2003-10-04  Karl Berry  <karl@gnu.org>
65594
65595         * config/config.{guess,sub}: update from config.
65596
65597 2003-10-02  Bruno Haible  <bruno@clisp.org>
65598
65599         * modules/lchown (Include): Add lchown.h.
65600         * modules/time_r (Include): Use "..." syntax.
65601         * modules/xgetdomainname (Include): Add xgetdomainname.h.
65602
65603 2003-10-01  Simon Josefsson  <jas@extundo.com>
65604
65605         * MODULES.html.sh (func_all_modules): Move gethostname from section
65606         'based on' to section 'lacking' POSIX:2001.
65607
65608 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
65609
65610         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
65611         to output mode on the same stream.
65612
65613 2003-09-29  Paul Eggert  <eggert@twinsun.com>
65614
65615         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
65616         Fix arg typo in previous patch.
65617
65618 2003-09-28  Jim Meyering  <jim@meyering.net>
65619
65620         * lib/error.c: Correct cpp indentation.
65621
65622 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65623
65624         * modules/free: New file.
65625
65626 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65627
65628         * m4/free.m4: New file.
65629
65630 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65631
65632         * lib/minmax.h (MIN, MAX)
65633         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
65634         Omit the special code that used __typeof__, since we worry that
65635         it could be more trouble than it's worth.  See:
65636         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
65637         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
65638
65639         * lib/free.c: New file.
65640
65641 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
65642
65643         Trivial fixes to Makefile.am parts of module listings.
65644         * modules/strstr: Append strstr.h to lib_SOURCES.
65645         * modules/strcase: Likewise, for strcase.h.
65646
65647 2003-09-27  Karl Berry  <karl@gnu.org>
65648
65649         * config/mkinstalldirs: update from automake.
65650
65651 2003-09-26  Paul Eggert  <eggert@twinsun.com>
65652
65653         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
65654         (error_tail): Do not loop, reallocating temporary buffer, since
65655         the output cannot contain more wide characters than the input
65656         contains bytes, the size must be big enough already.  This avoids
65657         one potential size overflow calculation.  Check for size overflow
65658         when calculating temporary buffer size.  Free temporary buffer
65659         when done, if it was allocated with malloc; this plugs a memory
65660         leak.  Remove casts from void * to pointers, that are no longer
65661         needed now that we're assuming C89 or better.
65662
65663         Merge error changes from glibc.
65664
65665         * lib/error.c, error.h: Update copyright notice header to match glibc.
65666         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
65667         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
65668         Disable cancellation while printing error.
65669         * lib/error.h: Prepend __ to parameter names.
65670
65671 2003-09-26  Jim Meyering  <jim@meyering.net>
65672
65673         * lib/error.c (error_tail): Move some declarations
65674         into inner scope where the local variables are used.
65675
65676 2003-09-26  Bruno Haible  <bruno@clisp.org>
65677
65678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
65679         stpncpy().
65680         Don't define stpncpy through config.h; it's now done through stpncpy.h.
65681
65682 2003-09-26  Bruno Haible  <bruno@clisp.org>
65683
65684         * lib/stpncpy.h (gnu_stpncpy): New declaration.
65685         (stpncpy): Define as alias for gnu_stpncpy.
65686         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
65687
65688 2003-09-25  Simon Josefsson  <jas@extundo.com>
65689
65690         * lib/xgetdomainname.h: New file.
65691         * lib/xgetdomainname.c: New file.
65692
65693 2003-09-25  Simon Josefsson  <jas@extundo.com>
65694             Bruno Haible  <bruno@clisp.org>
65695
65696         * modules/getdomainname: New file.
65697         * modules/xgetdomainname: New file.
65698         * MODULES.html.sh (func_all_modules): Add getdomainname,
65699         xgetdomainname.
65700
65701 2003-09-25  Simon Josefsson  <jas@extundo.com>
65702             Bruno Haible  <bruno@clisp.org>
65703
65704         * m4/getdomainname.m4: New file.
65705
65706 2003-09-25  Simon Josefsson  <jas@extundo.com>
65707             Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/getdomainname.h: New file.
65710         * lib/getdomainname.c: New file.
65711
65712 2003-09-25  Karl Berry  <karl@gnu.org>
65713
65714         * lib/argp-fmtstream.c, argp-help.c: update from libc.
65715
65716 2003-09-25  Karl Berry  <karl@gnu.org>
65717
65718         * config/install-sh: update from automake.
65719
65720 2003-09-25  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/version-etc-2: New file, from modules/version-etc with
65723         modifications.
65724         * MODULES.html.sh (func_all_modules): Add version-etc-2.
65725
65726 2003-09-25  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
65729         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
65730
65731 2003-09-24  Simon Josefsson  <jas@extundo.com>
65732
65733         * modules/xgethostname: Add xgethostname.h.
65734
65735 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65736
65737         * lib/linebuffer.c (freebuffer): Don't free the argument, just
65738         the buffer associated with the argument.  Bug reported by
65739         Simon Josefsson.
65740
65741 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65742
65743         * README: Document assumptions that 'int' is at least 32 bits
65744         wide, that integer arithmetic is 2's complement without overflow,
65745         that there are no holes in integer values, that adding sizes of
65746         two nonoverlapping objects can't overflow, and that all-bits-zero
65747         yields scalar zero.  Fix spelling and capitalization typos.
65748
65749 2003-09-19  Karl Berry  <karl@gnu.org>
65750
65751         * lib/argp.h: update from libc.
65752
65753 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65754
65755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
65756         to avoid spurious warnings like "AC_RUN_IFELSE was called before
65757         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
65758
65759 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65760
65761         * gnulib-tool: Use "test -h", not "test -L", for portability
65762         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
65763         (tags_regexp): Remove, since \| doesn't conform to POSIX.
65764         (sed_extract_prog): Issue s commands one-by-one, rather than
65765         using \| in one s command.
65766
65767 2003-09-16  Paul Eggert  <eggert@twinsun.com>
65768
65769         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
65770         input error, instead of returning NULL the next time we are called
65771         (and therefore losing track of errno).
65772
65773 2003-09-16  Bruno Haible  <bruno@clisp.org>
65774
65775         * gnulib-tool (func_create_testdir): Warn about duplicated
65776         dependencies.
65777
65778 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65779
65780         * modules/argmatch, modules/fatal, modules/obstack,
65781         modules/xalloc, modules/xgethostname: Sort dependencies by
65782         importance, not alphabetically.
65783
65784 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65785
65786         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
65787         fails, so that the caller gets the proper errno.
65788
65789         * lib/readutmp.c (read_utmp): Likewise.
65790         Check for fstat error.  Close stream and free storage
65791         when failing.
65792
65793 2003-09-14  Karl Berry  <karl@gnu.org>
65794
65795         * config/srclist.txt (strdup.c): disable for c89 changes.
65796
65797 2003-09-14  Jim Meyering  <jim@meyering.net>
65798
65799         * lib/getloadavg.c: Correct cpp indentation.
65800         * lib/strdup.c: Likewise.
65801         * lib/vasnprintf.c: Likewise.
65802
65803 2003-09-14  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/fwriteerror: New file.
65806         * MODULES.html.sh (func_all_modules): Add fwriteerror.
65807
65808 2003-09-14  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/fwriteerror.h: New file.
65811         * lib/fwriteerror.c: New file.
65812
65813 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65814
65815         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
65816         modules/xgethostname, modules/xalloc: Depend on exit.
65817
65818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65819
65820         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
65821
65822         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
65823         and AC_MINIX, too, so that their extensions are available.
65824
65825         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
65826         This macro has been superseded by gl_BACKUPFILE.
65827
65828         More patches to assume C89 or better.
65829
65830         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
65831
65832         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
65833         unconditionally.
65834         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
65835         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
65836         Include <string.h>, <stdlib.h> unconditionally.
65837         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
65838         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
65839         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
65840         headers or for string.h.
65841         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
65842         or strtoul.
65843
65844         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
65845         headers.
65846         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
65847         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65848         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
65849         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
65850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65851         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
65852         memcpy, memset.
65853         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
65854         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
65855         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
65856         strtol.
65857         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
65858         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
65859         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
65860         strtoul.
65861
65862 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65863
65864         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
65865         * lib/obstack.c [!defined _LIBC]: Likewise.
65866         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
65867         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
65868         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
65869
65870         More changes to assume C89 or better.
65871
65872         * lib/error.c (error_tail): Assume vprintf.
65873
65874         * lib/argmatch.c (getenv): Remove decl.
65875         * lib/progreloc.c (get_full_program_name): Define via prototype.
65876         * lib/setenv.c (clearenv): Likewise.
65877         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
65878         needed.
65879         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
65880         (malloc, memcpy): Remove decls.
65881         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
65882         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
65883         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65884         (memcpy): Remove macro.
65885         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
65886         (__P): Remove.  All uses removed.
65887         (PTR): Remove.  All uses changed to void *.
65888         (CHAR_BIT, NULL): Remove.
65889         (spaces, zeros, memset_space, memset_zero)
65890         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
65891         Remove.
65892         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
65893         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
65894         Define with prototype.
65895         Remove now-unnecessary prototype decl.
65896         (extra_args_spec): Assume ANSI C.  All uses changed.
65897         (extra_args_spec_iso): Remove.
65898         (my_strftime, emacs_strftimeu): Define via prototype.
65899         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
65900         unconditionally.
65901         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
65902         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
65903         (strtoul, strtol): Remove decls.
65904         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
65905         LONG_MAX): Remove.
65906         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65907         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
65908         (LOCALE_PARAM_PROTO): New macro.
65909         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
65910         (INTERNAL (strtol), strtol): Define with a prototype.
65911         (PARAMS): Remove.  All uses removed.
65912         * lib/tempname.c: Include <string.h> unconditionally.
65913         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
65914         * lib/xgethostname.c (main): Define with a prototype.
65915         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
65916         Include <stdlib.h> unconditionally.
65917         (calloc, malloc, realloc, free): Remove decls.
65918         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
65919         Include <stdlib.h> unconditionally.  Sort include file names.
65920         (strtod): Remove.
65921         (xstrtod): Define with a prototype.
65922         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
65923         (strtol, strtoul): Remove decls.
65924
65925 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65926
65927         More patches to assume C89 or better.
65928         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
65929         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
65930         string.h, memchr, STDC_HEADERS.
65931
65932 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65933
65934         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
65935         Include <stdlib.h>, <string.h> unconditionally.
65936         Remove now-unnecessary cast to char *.
65937         * lib/strnlen.c: Include <string.h> unconditionally.
65938         * lib/yesno.c (yesno): Define with a prototype.
65939
65940 2003-09-11  Bruno Haible  <bruno@clisp.org>
65941
65942         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
65943
65944 2003-09-10  Jim Meyering  <jim@meyering.net>
65945
65946         * lib/error.c: Correct indentation of cpp directives.
65947
65948 2003-09-10  Bruno Haible  <bruno@clisp.org>
65949
65950         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
65951         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
65952         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
65953         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
65954         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
65955         <stdlib.h> and <string.h> checks.
65956         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
65957         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
65958
65959 2003-09-10  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/strcspn.c: Include <string.h> unconditionally.
65962         * lib/strpbrk.c: Include <string.h> unconditionally.
65963         * lib/strstr.c: Include <string.h> unconditionally.
65964         * lib/unicodeio.c: Include <string.h> unconditionally.
65965         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
65966         * lib/unsetenv.c: Likewise.
65967         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
65968         * lib/yesno.c: Include <stdlib.h> unconditionally.
65969         (rpmatch): Add prototype.
65970
65971 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65972
65973         More patches to assume C89 or better.
65974         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
65975         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
65976         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
65977         or for string.h.
65978         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
65979         stdlib.h.
65980         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
65981         C headers.
65982         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
65983         string.h.
65984         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
65985         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
65986         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
65987         or for string.h.
65988         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
65989         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
65990         C headers.
65991         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
65992         memcpy.
65993         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
65994         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
65995         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
65996         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
65997         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
65998         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
65999         string.h, free.
66000         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66001         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66002         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66003         C headers, or for string.h.
66004         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66005         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66006         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66007         headers, memory.h, stdlib.h, string.h, strings.h.
66008         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66009         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66010         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66011         strchr.
66012         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66013         headers, memory.h, string.h.
66014         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66015         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66016         free.
66017         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66018         headers.
66019         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66020         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66021         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66022         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66023         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66024
66025 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66026
66027         More K&R removal.
66028
66029         * lib/acosl.c (main): Use a prototype.
66030         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66031         tanl.c: Likewise.
66032
66033         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66034
66035         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66036         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66037         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66038         with a prototype.
66039         * lib/getopt.c (const): Remove macro.
66040         Include <string.h> unconditionally.
66041         (my_index): Remove; all uses changed to strchr.
66042         (strlen): Remove decl.
66043         (exchange): Remove forward decl; no longer needed.
66044         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66045         Define with prototype.
66046         * lib/getopt1.c (const): Remove macro.
66047         (getopt_long, getopt_long_only, main): Define with prototype.
66048
66049         * lib/getugroups.c: Include <string.h> unconditionally.
66050
66051         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66052         (getusershell, setusershell, endusershell, readname, main):
66053         Define with prototypes.
66054
66055         * lib/group-member.c: Include group-member.h first.
66056         Include <stdlib.h> unconditionally.
66057
66058         * lib/hard-locale.c: Include hard-locale.h first.
66059         Include <stdlib.h>, <string.h> unconditionally.
66060
66061         * lib/hash.c (free, malloc): Remove decls.
66062         Include <stdlib.h> unconditionally.
66063
66064         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66065         (getenv): Do not declare.
66066
66067         * lib/idcache.c: Include <string.h> unconditionally.
66068
66069         * lib/long-options.c: Include long-options.h first, to test interface.
66070         Include <stdlib.h> unconditionally.
66071
66072         * lib/makepath.c: Include makepath.h first, to test interface.
66073         Include <stdlib.h> and <string.h> unconditionally.
66074
66075         * lib/linebuffer.c: Include <stdlib.h>.
66076         (free): Remove decl.
66077
66078         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66079         stddef.h. rpl_malloc returns void *, not char *.
66080         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66081         prototype.
66082
66083         * lib/md5.h: Include <limits.h> unconditionally.
66084         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66085         (__P): Remove; all uses removed.
66086         * lib/md5.c: Include "md5.h" first.
66087         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66088         md5_buffer, md5_process_bytes, md5_process_block):
66089         Define with prototypes.
66090         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66091         * lib/sha.c: Include "sha.h" first.
66092         Include <stdlib.h>, <string.h> unconditionally.
66093
66094         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66095         * lib/memcmp.c (__ptr_t): Likewise.
66096         * lib/memrchr.c (__ptr_t): Likewise.
66097         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66098         Include <string.h> unconditionally.
66099         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66100         * lib/memchr.c: Include <stdlib.h> unconditionally.
66101         * lib/memchr.c (LONG_MAX): Remove.
66102         * lib/memrchr.c (LONG_MAX): Likewise.
66103         * lib/memchr.c (__memchr): Define via a prototype.
66104         * lib/memrchr.c (__memrchr): Likewise.
66105         * lib/memcmp.c (__P): Remove, and remove all uses.
66106         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66107         Remove forward decls; no longer needed.
66108         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66109         Use types required by C89 in prototype.
66110
66111         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66112         * lib/savedir.c: Likewise.
66113         * lib/mkdir.c (free): Remove decl.
66114         * lib/rmdir.c (rmdir): Define with a prototype.
66115         * lib/savedir.c: Include savedir.h first, to test interface.
66116
66117         * lib/mktime.c (STDC_HEADERS): Remove.
66118         Include <stdlib.h>, <string.h> unconditionally.
66119
66120         * lib/modechange.c: Include <stdlib.h> unconditionally.
66121         (malloc): Remove decl.
66122
66123         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66124         (free): Remove decl.
66125
66126         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66127         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66128         (This type really should be intptr_t, but that's a C99ism.)
66129         (_obstack_memcpy): Remove: all uses changed to memcpy.
66130         Include <string.h> unconditionally.
66131         (struct obstack): Assume __STDC__ for types of members
66132         chunkfun, freefun, extra_arg.
66133         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66134         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66135         obstack_begin, obstack_specify_allocation,
66136         obstack_specify_allocation_with_arg, obstack_chunkfun,
66137         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66138         Remove unprototyped decls and the macros that use them.
66139         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66140         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66141         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66142         (defined __STDC__ && __STDC__)]:
66143         Remove nonprototyped code.
66144         Include <stdlib.h> unconditionally.
66145         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66146         _obstack_allocated_p, _obstack_free, obstack_free,
66147         _obstack_memory_used, print_and_abort):
66148         Define using prototypes.
66149         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66150         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66151         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66152         obstack_next_free, obstack_object_size, obstack_room) [0]:
66153         Remove unused, unprototyped code.
66154
66155         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66156
66157         * lib/physmem.c (physmem_total, physmem_available, main): Define
66158         with prototypes.
66159
66160         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66161         (main): Define with a prototype.
66162
66163         * lib/posixver.c (getenv): Remove decl.
66164
66165         * lib/putenv.c (malloc): Returns void *, not char *.
66166         Include <string.h> unconditionally.
66167         (strchr, memcpy, NULL): Do not define.
66168
66169         * lib/readtokens.c: Include readtokens.h first, to test interface.
66170         Include <stdlib.h>, <string.h> unconditionally.
66171         (init_tokenbuffer): Define with a prototype.
66172
66173         * lib/regex.c (PARAMS): Remove.  All uses removed.
66174         All uses of _RE_ARGS removed, too.
66175         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66176         unconditionally.
66177         (bzero): Assume memset exists.
66178         (memcmp, memcpy, NULL): Remove.
66179         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66180         char, or assignments to local vars of type signed char.
66181         (init_syntax_once, PREFIX(extract_number_and_incr),
66182         PREFIX(print_partial_compiled_pattern),
66183         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66184         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66185         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66186         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66187         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66188         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66189         wcs_compile_range, byte_compile_range, truncate_wchar,
66190         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66191         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66192         count_mbs_length, wcs_re_match_2_internal,
66193         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66194         PREFIX(alt_match_null_string_p),
66195         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66196         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66197         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66198         now-unnecessary declaration, if any.
66199         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66200         regcomp, regexec):
66201         Remove now-unnecessary casts among pointer types.
66202         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66203
66204         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66205         (free): Remove decl.
66206
66207         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66208
66209         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66210         (free): Remove decl.
66211
66212         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66213         * lib/xgetcwd.c: Likewise.
66214
66215         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66216         (free): Remove decl.
66217
66218         * lib/strchrnul.c (strchrnul): Define with a prototype.
66219         Fix bug: c_in was not converted to char before searching.
66220
66221         The following changes are not K&R related:
66222
66223         * lib/group-member.h: Include <sys/types.h>, so that this file is
66224         self-contained.
66225         * lib/makepath.h: Likewise.
66226
66227         * lib/getusershell.c (readname, default_index, line_size, readname):
66228         Use size_t, not int, for sizes.
66229         (readname): If the size overflows, report an error instead of
66230         looping forever.
66231
66232 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66233
66234         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66235         libc.
66236
66237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66238
66239         * README: New section: portability guidelines.
66240
66241 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66242
66243         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66244         C89 spec.
66245
66246 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66247
66248         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66249
66250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66251
66252         Assume C89 or better; remove K&R cruft.
66253         A few of these changes were first proposed by Derek Robert Price
66254         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66255
66256         * lib/addext.c: Include <string.h> unconditionally.
66257         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66258         Don't declare getenv or malloc.
66259
66260         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66261         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66262         (NULL): Remove.
66263         (find_stack_direction, alloca): Use prototypes.
66264
66265         * lib/atexit.c (atexit): Define using a prototype.
66266
66267         * lib/basename.c, dirname.c, stripslash.c:
66268         Include <string.h> unconditionally.
66269
66270         * lib/bcopy.c: Include <stddef.h>.
66271         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66272
66273         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66274
66275         * lib/error.h (error, error_at_line, error_print_progname)
66276         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66277         * lib/error.c: Include error.h first, to check interface.
66278         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66279         (VA_START): Remove; all uses changeed to va_start.
66280         (exit, strerror): Remove decls.
66281         (error_print_progname): Prototype uncondionally.
66282         Don't include <errno.h>; no longer needed.
66283         (private_strerror): Remove.
66284         (error_tail): Always define.
66285         (error, error_at_line): Assume C89 or better; always use prototypes.
66286         * lib/fatal.c: Include "fatal.h" first, to test interface.
66287         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66288         (VA_START): Remove; all uses changed to va_start.
66289         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66290         this case.
66291         (exit): Remove decl.
66292         (fatal): Prototype unconditionally.  Assume va_start works.
66293         Abort at end, to pacify gcc.
66294
66295         * lib/euidaccess.c (main): Define with a prototype.
66296
66297         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66298
66299         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66300
66301         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66302         prototypes.
66303         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66304         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66305         (getenv): Remove decl.
66306         (fnmatch): Define using a prototype.
66307         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66308         (FCT): Define using a prototype.
66309
66310         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66311
66312         * lib/gethostname.c: Include <stddef.h>.
66313         (gethostname): Define with prototype.  Length is size_t, not int.
66314
66315 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66316
66317         Assume C89 or better; remove K&R cruft.
66318         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66319         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66320         string.h, getenv, malloc.
66321         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66322         headers.
66323         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66324         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66325         do not check for strerror.
66326         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66327         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66328         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66329         do not check for doprnt or vprintf.
66330         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66331         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66332
66333 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66334
66335         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66336         getversion.c should have been removed then, but was accidentally
66337         preserved.
66338
66339         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66340         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66341
66342 2003-09-08  Karl Berry  <karl@gnu.org>
66343
66344         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66345                 config, forget about prep.
66346
66347         * config/depcomp, missing: update from automake.
66348
66349 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66350
66351         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66353
66354 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66355
66356         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66357         copy_tm_result.  Bug reported by Simon Josefsson in
66358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66359
66360 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66361
66362         * m4/time_r.m4: New file.
66363         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66364         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66365         is. Check for timegm declaration.
66366         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66367         Do not check for gmtime_r.
66368         Replace mktime if __mktime_internal does not exist and if mktime
66369         hasn't been replaced already.
66370
66371 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66372
66373         * lib/time_r.c, lib/time_r.h: New files.
66374
66375         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66376         __localtime_r.
66377         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66378         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66379
66380         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66381         __gmtime_r.
66382         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66383         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66384         Include <time_r.h>.
66385
66386         * lib/timegm.c: Switch to glibc implementation, with the following
66387         changes:
66388         [defined HAVE_CONFIG_H]: Include <config.h>.
66389         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66390         (__mktime_internal) [!defined _LIBC]: New decl.
66391         (__gmtime_r) [!defined _LIBC]: New macro and function.
66392         (timegm): Use a prototype, since gnulib assumes C89.
66393         Do not bother declaring tmp to be const, as it's not really usefu.
66394         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66395         (timegm): Declare only if HAVE_DECL_TIMEGM.
66396
66397 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66398
66399         * MODULES.html.sh (func_all_modules): Add time_r.
66400         * modules/time_r: New file.
66401         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66402         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66403
66404 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66405
66406         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66407         Bug reported by Lute Kamstra in
66408         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66409
66410         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66411         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66412         course with correspondingly smaller numbers for tomorrow and
66413         yesterday.  From Tadayoshi Funaba.  Originally installed into
66414         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66415         coreutils merge?).
66416
66417 2003-08-31  Simon Josefsson  <jas@extundo.com>
66418
66419         * modules/timegm: New file.
66420         * MODULES.html.sh (func_all_modules): Add timegm.
66421
66422 2003-08-31  Simon Josefsson  <jas@extundo.com>
66423
66424         * m4/timegm.m4: New file.
66425
66426 2003-08-31  Simon Josefsson  <jas@extundo.com>
66427
66428         * lib/timegm.h: New file.
66429         * lib/timegm.c: New file.  Based on
66430         wget-1.8.2/src/http.c:mktime_from_utc.
66431
66432 2003-08-31  Karl Berry  <karl@gnu.org>
66433
66434         * lib/argp.h: update from libc.
66435
66436 2003-08-28  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66439         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66440         followed by '#define fnmatch fnmatch_posix' gives an error.
66441
66442 2003-08-28  Bruno Haible  <bruno@clisp.org>
66443
66444         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66445         warning on QNX, which defines O_BINARY to 000000.
66446
66447 2003-08-27  Jim Meyering  <jim@meyering.net>
66448
66449         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66450         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66451         would fail after 32.  Reported by Danny Levinson.  Details here:
66452         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66453
66454 2003-08-24  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66457         MSVC7 <stdio.h> is included later.
66458
66459 2003-08-22  Simon Josefsson  <jas@extundo.com>
66460
66461         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66462
66463 2003-08-20  Karl Berry  <karl@gnu.org>
66464
66465         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
66466
66467 2003-08-20  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/progname: New file.
66470         * MODULES.html.sh (func_all_modules): Add progname.
66471
66472 2003-08-20  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/progname.h: New file, from GNU gettext.
66475         * lib/progname.c: New file, from GNU gettext.
66476         * lib/progreloc.c: New file, from GNU gettext.
66477
66478 2003-08-19  Jim Meyering  <jim@meyering.net>
66479
66480         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
66481         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
66482
66483 2003-08-19  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
66486         more.
66487
66488 2003-08-19  Bruno Haible  <bruno@clisp.org>
66489
66490         * lib/xstrdup.c: Assume <string.h> exists.
66491
66492 2003-08-18  Paul Eggert  <eggert@twinsun.com>
66493
66494         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
66495         in makefile rules.
66496
66497 2003-08-18  Jim Meyering  <jim@meyering.net>
66498
66499         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
66500         * m4/lib-ld.m4: Likewise.
66501
66502 2003-08-18  Jim Meyering  <jim@meyering.net>
66503
66504         * lib/setenv.h: Indent nested cpp directive.
66505         * lib/vasnprintf.c: Remove trailing blanks.
66506
66507 2003-08-17  Simon Josefsson  <jas@extundo.com>
66508
66509         * modules/xstrndup: New file.
66510         * MODULES.html.sh (func_all_modules): Add xstrndup.
66511
66512 2003-08-17  Simon Josefsson  <jas@extundo.com>
66513
66514         * modules/argp: Fix autoconf macro name. Add more dependencies.
66515
66516 2003-08-17  Simon Josefsson  <jas@extundo.com>
66517
66518         * m4/xstrndup.m4: New file.
66519
66520 2003-08-17  Simon Josefsson  <jas@extundo.com>
66521
66522         * m4/argp.m4: New file.
66523
66524 2003-08-17  Simon Josefsson  <jas@extundo.com>
66525             Bruno Haible  <bruno@clisp.org>
66526
66527         * lib/xstrndup.h: New file.
66528         * lib/xstrndup.c: New file.
66529
66530 2003-08-17  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/strndup (Files, Include): Add lib/strndup.h.
66533
66534 2003-08-17  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/euidaccess (Files): Add lib/euidaccess.h.
66537
66538 2003-08-17  Bruno Haible  <bruno@clisp.org>
66539
66540         * lib/strndup.h: New file.
66541
66542 2003-08-17  Bruno Haible  <bruno@clisp.org>
66543
66544         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
66545         like AC_GNU_SOURCE.
66546         * modules/extensions (configure.ac): Comment out the invocation of
66547         gl_USE_SYSTEM_EXTENSIONS.
66548
66549 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66550
66551         Merges from coreutils, etc.
66552         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
66553         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
66554         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
66555         fixing a typo.
66556         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
66557         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
66558
66559 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66560
66561         Document merge from coreutils.
66562         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
66563         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
66564         * modules/utime: Add m4/utimes-null.m4.
66565
66566 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66567
66568         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
66569         space, undoing this 2003-08-12 change:
66570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66571
66572 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66573
66574         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
66575         strtoul.c from libc, undoing this 2003-08-12 change:
66576         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66577
66578 2003-08-16  Jim Meyering  <jim@meyering.net>
66579
66580         Merges from coreutils.
66581         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
66582         prefix.  Adjust cache variables similarly.  Create 500 rather than
66583         just 300 files, to exercise bug on Darwin6.5, too.
66584         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
66585         $missing_dir.
66586         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
66587         AM_SYS_POSIX_TERMIOS.
66588         Reported by mkc@mathdogs.com.
66589         Also change use of $am_cv_sys_posix_termios
66590         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
66591         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
66592         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
66593         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
66594         in /proc/mounts until it finds one with matching device number.  This
66595         is unnecessary when the FILE argument *is* a mount point.  No stat call
66596         is necessary in that case.  So, disable the statvfs-testing code on
66597         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
66598         as RedHat bug# 84846.
66599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66600         to 1MB, so as not to render systems with no stack size limit (e.g.,
66601         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66602         Include <unistd.h>.  On some systems,
66603         it is required for the definition of _SC_PAGESIZE.
66604
66605 2003-08-16  Jim Meyering  <jim@meyering.net>
66606
66607         Merge from coreutils.
66608         * lib/xstrtoimax.c: #else #if -> #elif.
66609         * lib/xstrtoumax.c: Likewise.
66610
66611 2003-08-16  Jim Meyering  <jim@meyering.net>
66612
66613         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
66614         * m4/utimes.m4: Removed.
66615         * m4/utimes-null.m4: Renamed from utimes.m4.
66616
66617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66618         to 1MB, so as not to render systems with no stack size limit (e.g.,
66619         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66620         Include <unistd.h>.  On some systems,
66621         it is required for the definition of _SC_PAGESIZE.
66622
66623 2003-08-16  Jim Meyering  <jim@meyering.net>
66624         and Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         Merges from coreutils, etc.
66627
66628         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
66629         using the latest version from cvs.  This avoids problems with #line
66630         directives using a vendor (Sun) compiler.
66631         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
66632         Don't set GETGROUPS_LIB here; now it's
66633         done via getgroups.m4's wrapper function.
66634         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
66635         rather than just in sh-util/configure.in, so that the
66636         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
66637         same.
66638         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
66639         AC_FUNC_GETLOADAVG where to find getloadavg.c.
66640         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
66641         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
66642         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
66643         Remove code that is now done by the newly-required macros.
66644         Append $(EXEEXT) to DF_PROG.
66645         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
66646         Do not invoke or require the following here,
66647         since prereq.m4 or some gnulib .m4 now does this for us:
66648         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
66649         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
66650         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
66651         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
66652         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
66653         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
66654         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
66655         AC_FUNC_OBSTACK.
66656         Do not replace the following functions, as this is now the job
66657         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
66658         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
66659         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
66660         atexit getpass, strdup, getpagesize.
66661         Replace 'raise'.
66662         Do not check for the following functions, as this is now the job
66663         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
66664         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
66665         setregid.
66666         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
66667         Check for sys/sysctl.h.
66668         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
66669         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
66670         of checking for ssize_t ourselves.
66671
66672         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
66673         Require every macro that gnulib/modules/* suggests for us.
66674         (jm_PREREQ_ADDEXT): New macro.
66675         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
66676         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
66677
66678         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
66679         (gl_PHYSMEM): Use it.
66680         Also check for `table' function.
66681         Check for new headers and functions.
66682         Add check for sys/sysmp.h.
66683         With suggestions from Kaveh Ghazi.
66684         Ignore headers that are present but cannot be compiled.  This
66685         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
66686         C 5.4.
66687
66688 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66689
66690         Document merge from coreutils.
66691         * modules/userspec: Depend on posixver.
66692         * modules/strftime: Depend on tzset.
66693
66694 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66695
66696         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
66697         rather than tab, after '#' in shell-script copyright notices.
66698         Suggested by Bruno Haible.
66699
66700 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66701
66702         * config/srclist-update: Use three spaces, rather than tab, after '#'
66703         in shell-script copyright notices.  Suggested by Bruno Haible.
66704         Remove unnecessary parenthesization in regular expression.
66705
66706 2003-08-15  Jim Meyering  <jim@meyering.net>
66707
66708         Merge from coreutils.
66709         * lib/xgethostname.c: Include <stdlib.h>.
66710         (xghostname): Don't exit for anything other than memory-related
66711         failure; just return NULL.
66712         * lib/userspec.c: Include "posixver.h".
66713         (parse_user_spec): Accept `.' as a separator only
66714         in pre-POSIX-200112 mode.
66715         * lib/strtoimax.c: Use #elif rather than #else #if.
66716         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
66717         Remove function, now that we can rely on a working tzset function.
66718         [!_LIBC]: Ensure that the required autoconf test has been run.
66719         [!defined _NL_CURRENT && HAVE_STRFTIME]:
66720         Use underlying_strftime for %r.
66721         * lib/sha.c: Merge in some clean-up and optimization changes from
66722         glibc.
66723         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
66724         Ensure that it is a multiple of 64.
66725         Rearrange loop exit tests so as to avoid performing an
66726         additional fread after encountering an error or EOF.
66727         * lib/realloc.c: Update copyright date.
66728
66729 2003-08-15  Jim Meyering  <jim@meyering.net>
66730         and Paul Eggert  <eggert@twinsun.com>
66731
66732         Merge from coreutils.
66733         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
66734         member but strut utmpx does not.  Needed for AIX 4.3.3.
66735         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
66736
66737 2003-08-15  Jim Meyering  <jim@meyering.net>
66738         and Paul Eggert  <eggert@cs.ucla.edu>
66739
66740         Merges from coreutils, etc.
66741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
66742         Require gl_FUNC_TZSET_CLOBBER.
66743         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
66744         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
66745         members.
66746
66747 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66748
66749         Help the merge from coreutils.
66750         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
66751         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
66752         * m4/tzset.m4: Use it too.
66753
66754 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66755
66756         * modules/tzset: New file.
66757
66758 2003-08-14  Jim Meyering  <jim@meyering.net>
66759
66760         Merges from coreutils.
66761         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
66762         variable names, rather than @FNMATCH_H@.
66763         * modules/alloca: Likewise for $(ALLOCA_H).
66764
66765         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
66766         the three copies of the literal target, `fnmatch.h'.
66767         * modules/alloca (alloca.h): Likewise.
66768
66769 2003-08-14  Jim Meyering  <jim@meyering.net>
66770
66771         Merge from coreutils.
66772         * m4/tzset.m4: New file.
66773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
66774         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
66775         otherwise, AIX 5.1 systems would end up using the latter.
66776         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
66777         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
66778         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
66779         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
66780
66781 2003-08-14  Jim Meyering  <jim@meyering.net>
66782
66783         Merge from coreutils.
66784         * lib/obstack.h: Whitespace changes.
66785         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
66786         and xcalloc return values.
66787         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
66788         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
66789         hang on OSF/1 5.1 for DIR on both local and remote file systems.
66790         Reported by (and fix confirmed by) Nelson H. F. Beebe.
66791         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66792         error from mntctl.
66793         Use mntctl's return value to drive the entry-processing loop, since
66794         we can't rely on the value of the vmt_length member in the last
66795         entry.  On some systems doing so could result in exhausting
66796         virtual memory.  Based in part on a patch from Mike Jetzer.
66797
66798 2003-08-14  Jim Meyering  <jim@meyering.net>
66799         and Paul Eggert  <eggert@twinsun.com>
66800
66801         Merges from coreutils, plus other fixes.
66802         * lib/physmem.c: Merge in portability changes from gcc/libiberty
66803         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
66804         for credits and details.  Thanks to Kaveh Ghazi for helping
66805         to keep these files in sync.
66806         (ARRAY_SIZE): Define it.
66807         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
66808         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
66809         (memcasecmp): Don't assume size_t fits in unsigned int.
66810         Remove casts and duplicate code.
66811         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
66812         (memcpy): Remove definition.
66813         Merge in some clean-up and optimization changes from glibc.
66814         [BLOCKSIZE]: Move definition to top of file.
66815         Ensure that it is a multiple of 64.
66816         Rearrange loop exit tests so as to avoid performing an
66817         additional fread after encountering an error or EOF.
66818         * lib/md5.h (md5_uintptr): Define.
66819         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
66820         return to the initial working directory.  Preserve errno
66821         for caller.
66822         * lib/idcache.c: Include "xalloc.h".
66823         (xmalloc, xrealloc): Remove decls.
66824         (getuser): Remove casts no longer required in C89.
66825         * lib/human.c: Include stdio.h, for sprintf.
66826         * lib/group-member.c: Include "xalloc.h".
66827         (xmalloc, xrealloc): Remove decls.
66828         (get_group_info): Remove casts no longer required in C89.
66829         * lib/getusershell.c (readname): Remove casts no longer required in
66830         C89.
66831         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
66832         * lib/getline.c: Whitespace fix, from coreutils.
66833
66834 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66835
66836         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
66837         Check for isascii.
66838
66839         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66840         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66841         Undo previous (whitespace-only) change.
66842
66843 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66844
66845         * lib/exclude.c: Include <ctype.h>
66846         (IN_CTYPE_DOMAIN): New macro.
66847         (is_space): New fn.
66848         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
66849         and empty lines.
66850
66851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66852         Undo previous (whitespace-only) change.
66853
66854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66855
66856         * config/srclist-update: Change update back to the old behavior,
66857         leaving whitespace alone.  Use one 'sed' command rather than a
66858         pipeline.
66859         (fixlicense): Now a variable, not a function.
66860         (remove_trailing_blanks): Remove.
66861         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
66862         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66863         Undo previous (whitespace-only) change.
66864
66865 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66866
66867         Merge from coreutils.
66868         * modules/euidaccess: Add lib_SOURCES, include for new
66869         file euidaccess.h
66870
66871 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66872
66873         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66874         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66875         Normalize leading white space and remove trailing white space.
66876
66877         Merge from coreutils
66878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
66879
66880         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
66881         0.12.1.  These files are now being upgraded automatically by
66882         ../config/srclist-update.
66883
66884 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66885
66886         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66887         Normalize leading white space and remove trailing white space.
66888         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
66889         notice, as per ../config/srclist-update.
66890
66891         Merge from coreutils.
66892         * lib/euidaccess.h: New file.
66893         * lib/euidaccess.c: Include it.
66894         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
66895         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
66896         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
66897
66898 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66899
66900         * config/srclist-update: Add copyright notice.
66901         (remove_id_lines, remove_trailing_blanks): New constants.
66902         (fixfile): Use them to normalize spacing a bit in copied files.
66903         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66904         Normalize leading white space and remove trailing white space.
66905
66906         * config/texinfo.tex: Sync with texinfo.
66907
66908         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
66909         strtoul.c from libc, to merge coreutils whitespace changes.
66910
66911         * config/srclist.txt: Get the following m4 files from gettext:
66912         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
66913         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
66914         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
66915         wint_t.m4.
66916
66917 2003-08-12  Karl Berry  <karl@gnu.org>
66918
66919         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
66920         been made.
66921
66922 2003-08-11  Paul Eggert  <eggert@twinsun.com>
66923
66924         * modules/gnu-source, m4/gnu-source.m4:
66925         Remove; we're assuming Autoconf 2.54 or later now.
66926         Suggested by Bruno Haible.
66927         * MODULES.html.sh (func_all_modules): Remove gnu-source.
66928
66929 2003-08-11  Bruno Haible  <bruno@clisp.org>
66930
66931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
66932
66933 2003-08-11  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
66936         (vasnprintf): Use it instead of wcslen.
66937
66938 2003-08-11  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
66941         value to ensure that _Bool promotes to int. Use #define for _Bool when
66942         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
66943
66944 2003-08-10  Karl Berry  <karl@gnu.org>
66945
66946         * lib/regex.h: update from libc (whitespace fix).
66947
66948 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66949
66950         Merge some files from coreutils.  These changes were
66951         originally made by Jim Meyering.
66952         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
66953         many older Unixes require this.
66954         * lib/alloca.c (alloca): Remove cast to argument of free;
66955         no longer needed in C89.
66956         * lib/alloca_.h, regex.h: Fix white space to match
66957         what GNU indent does.
66958
66959 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66960
66961         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
66962         apparently Emacs's Unicode mode got confused before my 2003-08-05
66963         checkin.
66964
66965 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66966
66967         * m4/extensions.m4: New file.
66968         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
66969         Require gl_USE_SYSTEM_EXTENSIONS.
66970         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
66971         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
66972
66973 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66974
66975         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
66976         * modules/extensions, modules/gnu-source: New files.
66977         * modules/timespec, modules/unlocked-io: Depend on extensions.
66978
66979 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66980
66981         * modules/restrict: New file.
66982         * MODULES.html.sh (func_all_modules): Add restrict.
66983         * modules/regex: Depend on restrict.
66984
66985 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66986
66987         * m4/restrict.m4: New file.
66988         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
66989
66990 2003-08-07  Bruno Haible  <bruno@clisp.org>
66991
66992         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
66993         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
66994
66995 2003-08-07  Bruno Haible  <bruno@clisp.org>
66996
66997         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
66998         makes the module 'getndelim2' compatible with the module 'getline'.
66999
67000 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67001
67002         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67003         byte with "\201" to avoid glitches when editing that source file
67004         with multi-gnome-terminal.
67005
67006 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67007
67008         * lib/bumpalloc.h: Remove.
67009
67010 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67011
67012         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67013         * modules/bumpalloc: Remove.
67014
67015 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67016
67017         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67018         GNU coding style.
67019
67020         Merge from coreutils.
67021         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67022         1. From glibc.
67023         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67024         from Karl Berry, implemented by Jim Meyering.
67025         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67026         from Dmitry V. Levin.
67027         Remove anachronistic cast of xrealloc.
67028         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67029         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67030         type. Otherwise, it wouldn't compile with at least /bin/cc on
67031         ymp-cray-unicos9.0.2.X.
67032         Combine two mostly-identical uses of alloca into one.
67033         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67034
67035 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67036
67037         [From Emacs.]
67038
67039         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67040         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67041         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67042         obsolete NLIST_NAME_UNION.
67043         [__GNU__]: Undef BSD and FSCALE.
67044         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67045
67046 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67047
67048         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67049         an enum type, so that it's guaranteed to promote to int.  See:
67050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67051
67052 2003-08-03  Karl Berry  <karl@gnu.org>
67053
67054         * config/depcomp: update from automake.
67055
67056 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67057
67058         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67059         (strerror): Don't assume that a printable int fits in 14 bytes.
67060
67061 2003-07-31  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/getpass-gnu: New file.
67064         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67065
67066 2003-07-31  Bruno Haible  <bruno@clisp.org>
67067
67068         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67069
67070 2003-07-24  Karl Berry  <karl@gnu.org>
67071
67072         * config/missing: update from automake.
67073
67074 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67075             Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67078         * lib/getline.c (getline, getdelim): Likewise.
67079         Remove _GNU_SOURCE define; now it's defined in config.h through
67080         m4/getline.m4.
67081
67082 2003-07-23  Karl Berry  <karl@gnu.org>
67083
67084         * config/config.sub: update from prep.
67085
67086 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67087
67088         * modules/xalloc (Depends-on): Add exitfail.
67089         * modules/xmemcoll: Likewise.
67090
67091 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67092
67093         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67094         over-parenthesization in macros.
67095
67096         Sync with coreutils.
67097
67098         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67099         required by C99.
67100
67101         Use `exit_failure' for xalloc and xmemcoll instead of their own
67102         private exit-failure variables.
67103         * lib/xalloc.h (xalloc_exit_failure): Remove.
67104         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67105         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67106         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67107         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67108         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67109
67110 2003-07-20  Jim Meyering  <jim@meyering.net>
67111
67112         * modules/closeout (Depends-on): Add exitfail.
67113         Suggestion from Bruno Haible.
67114
67115 2003-07-19  Karl Berry  <karl@gnu.org>
67116
67117         * config/config.sub: update from prep.
67118
67119 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67120
67121         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67122         Remove.
67123         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67124         to test that it can stand by itself.  Include "exitfail.h".
67125         Clients should set exit_failure instead.
67126         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67127
67128 2003-07-18  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/getndelim2: New file.
67131         * modules/getline: Share files with module getndelim2.
67132         * modules/getnline: Depend on getndelim2 instead of sharing files with
67133         it. Add getnline.c to lib_SOURCES.
67134         * MODULES.html.sh (func_all_modules): Add getndelim2.
67135
67136 2003-07-18  Bruno Haible  <bruno@clisp.org>
67137
67138         * m4/getndelim2.m4: New file.
67139         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67140         invoke gl_PREREQ_GETNDELIM2.
67141         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67142         gl_PREREQ_GETNDELIM2.
67143         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67144         gl_GETNDELIM2.
67145
67146 2003-07-18  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/getndelim2.h: New file.
67149         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67150         getndelim2.h.
67151         (getndelim2): Make non-static. Change return type to ssize_t.
67152         * lib/getline.h: Change argument names.
67153         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67154         * lib/getnline.c: Include getndelim2.h.
67155
67156 2003-07-18  Andreas Schwab  <schwab@suse.de>
67157
67158         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67159
67160 2003-07-17  Karl Berry  <karl@gnu.org>
67161
67162         * config/config.sub: update from prep.
67163
67164 2003-07-17  Bruno Haible  <bruno@clisp.org>
67165
67166         * modules/getnline: New file.
67167         * modules/getline: Add lib/getndelim2.c to source file list.
67168         * MODULES.html.sh (func_all_modules): Add getnline.
67169
67170 2003-07-17  Bruno Haible  <bruno@clisp.org>
67171
67172         * m4/getnline.m4: New file.
67173
67174 2003-07-17  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/Makefile.am.in: Remove file.
67177         * m4/Makefile.am: Remove file.
67178         * m4/Makefile.in: Remove file.
67179
67180 2003-07-17  Bruno Haible  <bruno@clisp.org>
67181
67182         * lib/getnline.h: New file.
67183         * lib/getnline.c: New file.
67184         * lib/getndelim2.c: New file, extracted from getline.c.
67185         (getndelim2): Renamed from getdelim2, with added nmax argument.
67186         * lib/getline.c: Include getndelim2.c.
67187         (getdelim2): Moved out to getndelim2.c.
67188         (getline, getdelim): Update.
67189
67190 2003-07-17  Bruno Haible  <bruno@clisp.org>
67191
67192         * lib/Makefile.am: Remove file.
67193         * lib/Makefile.in: Remove file.
67194
67195 2003-07-17  Bruno Haible  <bruno@clisp.org>
67196
67197         * configure.in: Remove file.
67198         * Makefile.in: Remove file.
67199
67200 2003-07-17  Bruno Haible  <bruno@clisp.org>
67201
67202         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67203
67204 2003-07-16  Karl Berry  <karl@gnu.org>
67205
67206         * config/srclist-update: was running fixlicense twice, which caused
67207                 texinfo.tex to be nullified for some reason.  Simplify,
67208                 $gplsrc is no longer needed as far as I can see?
67209
67210 2003-07-16  Jim Meyering  <jim@meyering.net>
67211
67212         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67213
67214 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67215
67216         * config/srclist.txt: Get the following files from gettext-runtime/intl
67217         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67218         ref-del.sin.  From Bruno Haible.
67219         * config/srclist-update (fixfile): Change grep pattern again, since the
67220         previous fix didn't work (there was another trailing $).  Use
67221         '[$]' to escape the $s.
67222
67223 2003-07-15  Karl Berry  <karl@gnu.org>
67224
67225         * lib/vasnprintf.c: update from gettext.
67226
67227 2003-07-15  Karl Berry  <karl@gnu.org>
67228
67229         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67230         gets expanded when surrounded by '$'.
67231
67232 2003-07-15  Jim Meyering  <jim@meyering.net>
67233
67234         * modules/save-cwd: Don't depend on error.  From Derek Price.
67235
67236 2003-07-15  Jim Meyering  <jim@meyering.net>
67237
67238         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67239
67240 2003-07-14  Simon Josefsson  <jas@extundo.com>
67241
67242         * modules/mempcpy: New file.
67243         * MODULES.html.sh (func_all_modules): Add mempcpy.
67244
67245 2003-07-14  Simon Josefsson  <jas@extundo.com>
67246
67247         * m4/mempcpy.m4: New file.
67248
67249 2003-07-14  Simon Josefsson  <jas@extundo.com>
67250
67251         * lib/mempcpy.h: New file.
67252         * lib/mempcpy.c: New file.
67253
67254 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67255
67256         * modules/getdate, modules/posixtm: Depend on mktime.
67257
67258 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67259
67260         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67261         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67262         unicodeio.c, unicodeio.h, unlocked-io.h:
67263         Switch from LGPL to GPL.
67264
67265 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67266
67267         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67268         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67269         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67270         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67271         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67272         updated automatically by ../config/srclist-update.  This changes
67273         their license from LPGL to GPL.
67274
67275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67276
67277         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67278         assumed to refer to the root of the most recent stable gettext version.
67279         * config/srclistvars.sh: Add defaults for eggert.
67280         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67281         Match "This program" as well as "The program".  This is needed
67282         for gettext.
67283
67284 2003-07-14  Jim Meyering  <jim@meyering.net>
67285
67286         Don't emit diagnostics.  Let callers do that.
67287         * lib/save-cwd.c: Don't include "error.h".
67288         (save_cwd): Don't call error.  Ensure that errno is valid
67289         when returning nonzero.
67290
67291         * lib/save-cwd.h (restore_cwd): Update prototype.
67292         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67293         Simplify.  Don't call error upon failure.  Let callers do that.
67294         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67295         when auditing is enabled.  But don't bother updating the #if.
67296
67297 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67298
67299         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67300         it breaks C++ compilation.
67301         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67302
67303 2003-07-10  Simon Josefsson  <jas@extundo.com>
67304
67305         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67306
67307 2003-07-10  Jim Meyering  <jim@meyering.net>
67308
67309         * m4/clock_time.m4: Remove trailing blank.
67310         * m4/intmax_t.m4: Likewise.
67311
67312 2003-07-10  Jim Meyering  <jim@meyering.net>
67313
67314         * lib/vasnprintf.c: Remove trailing blanks.
67315         Make cpp indentation consistent.
67316
67317 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67318
67319         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67320         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67321         Switch from LGPL to GPL.
67322
67323 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67324
67325         * config/srclist.txt: Sort sublists.  Add
67326         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67327         that differ from gnulib for one reason or another; we'd like this list
67328         to be smaller but for now let's document what we have.
67329
67330 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67331
67332         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67333         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67334         and sweeter "eval x=$x".
67335         * config/srclist.txt: Get lib/argp* from glibc.
67336
67337 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67338
67339         * lib/mktime.c: Fix some boundary cases and remove need for floating
67340         point.
67341
67342         Issue a compile-time diagnostic if time_t is floating point, or if
67343         two's complement arithmetic is not in effect, or if arithmetic
67344         right shift does not propagate the sign.  These assumptions were
67345         all in the original code but they weren't checked.
67346
67347         (TIME_T_MIDPOINT, verify): New macros.
67348         (__isleap): Remove; it has integer overflow problems.
67349         (leapyear): New function, without those problems.
67350         (ydhms_tm_diff): Remove; splitting into two parts.
67351         (ydhms_diff): New function, containing the arithmetic part of
67352         the old ydhms_tm_diff function.  Issue a compile-time
67353         diagnostic if we are not using C99 integer division.
67354         Avoid casts when possible.
67355         (guess_time_tm): New function, containing the checking part of
67356         the old ydhms_tm_diff function.  Return the new value, rather than
67357         the difference between it and the old.  Accept a new argument T
67358         so that *T specifies the old value.  Check for overflow in the result.
67359
67360         (__mktime_internal): Use a time_t offset, not a long int offset.
67361         This undoes the 2003-06-04 change, which is no longer needed now
67362         that we have better overflow checking.
67363         (localtime_offset): Likewise.
67364
67365         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67366         and long are 64-bit but int is only 32-bit.
67367         (ydhms_diff): Use long int to store year1 and yday1.
67368         Issue a compile-time diagnostic if long int is not wide enough.
67369
67370         (__mktime_internal): Use long int to store adjusted year and yday.
67371         Use plain C rather than preprocessor commands, if that doesn't
67372         affect efficiency.
67373         Check for overflow (and try to repair) after each probe
67374         rather than checking only at the very end.  This avoids some bugs
67375         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67376         does not equal GMT offset at maximum time).
67377         Use integer to check for overflow rather than floating point; this
67378         is more portable to non-IEEE hosts, and is a tad faster.
67379         When we detect that we are oscillating between two values,
67380         don't check whether tm_isdst has the requested value, since
67381         we already know the answer.  When tm_isdst has the wrong value,
67382         use a different heuristic to find the right one, based on the
67383         extreme values actually observed in practice in tz2003a,
67384         rather than the (overly optimistic) "previous 3 calendar quarters".
67385
67386         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67387         "T const" to accommodate glibc style.
67388         (check_result): Use less-confusing report format.  "long" -> "long int.
67389         (main): Likewise.
67390         Don't loop if the iteration overflows time_t.
67391         Allow a negative step in the iteration.
67392
67393 2003-07-06  Karl Berry  <karl@gnu.org>
67394
67395         * config/depcomp: update from automake.
67396         * config/config.sub: update from prep.
67397
67398 2003-07-03  Karl Berry  <karl@gnu.org>
67399
67400         * config/config.guess: update from prep.
67401
67402 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67403
67404         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67405         xreadlink.c now includes it unconditionally.
67406
67407 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67408
67409         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67410         having it depend on HAVE_SYS_TYPES_H.
67411
67412 2003-07-01  Bruno Haible  <bruno@clisp.org>
67413
67414         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67415         <sys/types.h> should be sufficient.
67416         Reported by Paul Eggert.
67417
67418 2003-06-26  Karl Berry  <karl@gnu.org>
67419
67420         * config/depcomp: update from automake.
67421
67422 2003-06-26  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/human: Depend on module stdbool.
67425
67426 2003-06-25  Bruno Haible  <bruno@clisp.org>
67427
67428         * modules/readlink: New file.
67429         * modules/xreadlink: Depend on it.
67430         * MODULES.html.sh (func_all_modules): Add readlink.
67431
67432 2003-06-25  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/readlink.m4: New file.
67435
67436 2003-06-25  Bruno Haible  <bruno@clisp.org>
67437
67438         * lib/readlink.c: New file.
67439
67440 2003-06-22  Karl Berry  <karl@gnu.org>
67441
67442         * config/srclist.txt: update mkinstalldirs from automake.
67443         * config/mkinstalldirs: update.
67444
67445 2003-06-22  Bruno Haible  <bruno@clisp.org>
67446
67447         Portability to mingw32.
67448         * m4/ssize_t.m4: New file, from GNU gettext.
67449         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67450         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67451
67452 2003-06-22  Bruno Haible  <bruno@clisp.org>
67453
67454         * modules/safe-read: Add m4/ssize_t.m4.
67455         * modules/xreadlink: Add m4/ssize_t.m4.
67456
67457 2003-06-20  Bruno Haible  <bruno@clisp.org>
67458
67459         Assume C89, so PARAMS isn't needed.
67460         * lib/unicodeio.h (PARAMS): Remove.
67461         * lib/unicodeio.c: Don't use PARAMS.
67462
67463 2003-06-18  Karl Berry  <karl@gnu.org>
67464
67465         * config/config.{guess,sub}: update from prep.
67466
67467 2003-06-18  Jim Meyering  <jim@meyering.net>
67468
67469         Merge changes from coreutils.
67470         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
67471         Remove explicit declarations of xmalloc and realloc.
67472         Include xalloc.h.
67473         (read_utmp): Remove anachronistic cast of xmalloc.
67474
67475 2003-06-17  Paul Eggert  <eggert@twinsun.com>
67476
67477         Assume C89, so PARAMS isn't needed.
67478         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
67479         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
67480         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
67481         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
67482         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
67483         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
67484         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
67485         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
67486         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
67487         lib/xstrtod.h, lib/xstrtol.h: Likewise.
67488         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
67489         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
67490         no longer needed. Anyway, config.h should always be included before any
67491         other file.
67492
67493 2003-06-11  Simon Josefsson  <jas@extundo.com>
67494
67495         * modules/sysexits: New file.
67496         * MODULES.html.sh (func_all_modules): Add sysexits.
67497
67498 2003-06-11  Simon Josefsson  <jas@extundo.com>
67499
67500         * lib/sysexit_.h: New file.
67501
67502 2003-06-11  Derek Price  <derek@ximbiot.com>
67503
67504         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
67505         necessary.
67506
67507 2003-06-11  Bruno Haible  <bruno@clisp.org>
67508
67509         * m4/sysexits.m4: New file.
67510
67511 2003-06-10  Simon Josefsson  <jas@extundo.com>
67512
67513         * lib/argp.h: New file, from glibc.
67514         * lib/argp-ba.c: New file, from glibc.
67515         * lib/argp-eexst.c: New file, from glibc.
67516         * lib/argp-fmtstream.c: New file, from glibc.
67517         * lib/argp-fmtstream.h: New file, from glibc.
67518         * lib/argp-fs-xinl.c: New file, from glibc.
67519         * lib/argp-help.c: New file, from glibc.
67520         * lib/argp-namefrob.h: New file, from glibc.
67521         * lib/argp-parse.c: New file, from glibc.
67522         * lib/argp-pv.c: New file, from glibc.
67523         * lib/argp-pvh.c: New file, from glibc.
67524         * lib/argp-xinl.c: New file, from glibc.
67525
67526 2003-06-10  Simon Josefsson  <jas@extundo.com>
67527
67528         * modules/strchrnul: New file.
67529
67530 2003-06-10  Simon Josefsson  <jas@extundo.com>
67531
67532         * modules/argp: New file.
67533
67534 2003-06-10  Simon Josefsson  <jas@extundo.com>
67535
67536         * m4/strchrnul.m4: New file.
67537
67538 2003-06-10  Simon Josefsson  <jas@extundo.com>
67539
67540         * lib/strchrnul.h: New file.
67541         * lib/strchrnul.c: New file.
67542
67543 2003-06-10  Bruno Haible  <bruno@clisp.org>
67544
67545         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
67546
67547 2003-06-07  Karl Berry  <karl@gnu.org>
67548
67549         * config/config.{guess,sub}: update from prep.
67550
67551 2003-06-07  Jim Meyering  <jim@meyering.net>
67552
67553         * modules/strtod: Use $(...) notation, not @...@ for
67554         AC_REPLACE'd variables.
67555         * modules/localcharset: Likewise.
67556
67557 2003-06-07  Jim Meyering  <jim@meyering.net>
67558
67559         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
67560         in place of my name in the copyright comment.
67561         Remove definition and uses of __P.
67562
67563         From coreutils.
67564         * lib/stat.c: Don't declare xmalloc explicitly.
67565         Instead, include "xalloc.h".
67566         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
67567         xrealloc, and xcalloc return values.
67568         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
67569         Improve comment.
67570         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
67571
67572 2003-06-07  Bruno Haible  <bruno@clisp.org>
67573
67574         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
67575         avoid AC_CONFIG_LINKS.
67576         * modules/fnmatch (Makefile.am): Use explicit creation rule for
67577         fnmatch.h, to avoid AC_CONFIG_LINKS.
67578         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
67579
67580 2003-06-07  Bruno Haible  <bruno@clisp.org>
67581
67582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
67583         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
67584         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67585         directory.
67586         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
67587         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67588         directory.
67589
67590 2003-06-06  Jim Meyering  <jim@meyering.net>
67591
67592         Merge from coreutils.
67593         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
67594         Consolidate declarations and initializations of *_base* locals.
67595
67596         Merge from coreutils.
67597         This avoids a core dump on systems without GNU putenv,
67598         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
67599         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
67600         (unsetenv): New static function, from GNU libc.
67601         (rpl_putenv): Use it.
67602
67603         * lib/modechange.c: Remove trailing blanks.
67604
67605         Merge from coreutils.
67606         * lib/fsusage.c: Remove declaration of statfs.
67607         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
67608
67609         * lib/posixtm.c: Include <stdbool.h> unconditionally.
67610
67611 2003-06-06  Jim Meyering  <jim@meyering.net>
67612
67613         * lib/stdbool_.h: Renamed from stdbool.h.in.
67614
67615 2003-06-06  Jim Meyering  <jim@meyering.net>
67616             Bruno Haible  <bruno@clisp.org>
67617
67618         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
67619         Adjust Makefile.am snippet not to redirect directly to target.
67620         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
67621
67622 2003-06-05  Paul Eggert  <eggert@twinsun.com>
67623
67624         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
67625         mismatch, look in future quarters as well as past.  This fixes a
67626         bug when processing fall-backwards gaps immediately after a long
67627         period of daylight-saving time.
67628
67629         * lib/mktime.c: Assume freestanding C89 or better.
67630         (HAVE_LIMITS_H): Remove.  Assume it's 1.
67631         (__P): Remove; not used.
67632         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
67633         (mktime, not_equal_tm, print_tm, check_result,
67634         main): Use prototypes.  Use const * where appropriate.
67635         (main): Fix typo in testing code that uncovered by above changes.
67636         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
67637
67638 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67639
67640         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
67641         locale.h, localeconv.  This merges changes from coreutils.
67642
67643         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
67644         It can be removed after the next Autoconf is released.
67645         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
67646         needed.
67647
67648 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67649
67650         * lib/mktime.c: Fix Debian bug 177940
67651         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
67652         (localtime_offset): Now long int, not time_t, because we want it
67653         to be guaranteed to be signed.  All uses changed.
67654         (__mktime_internal): If overflow would occur when adding offset,
67655         don't add it.
67656
67657         Merge 'human' changes from coreutils.  Rewrite to support
67658         locale-specific notations like thousands separators.
67659         * lib/human.c: Simplify authorship notice.
67660         Include human.h immediately after config.h.
67661         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
67662         <limits.h>: Do not include, since human.h does.
67663         (SIZE_MAX, UINTMAX_MAX): New macros.
67664         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
67665         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
67666         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
67667         (power_letter): Renamed from suffixes.
67668         (generate_suffix_backwards): Remove.
67669         (adjust_value): Now takes int style (because of human.h changes)
67670         and long double value (for greater precision on some platforms).
67671         (group_number): New function.
67672         (human_readable): Use it.  Use integer options, not enum.
67673         Put the options before the sizes in the arg list.
67674         Support all the new options.
67675         The old human_readable function has been removed;
67676         use inttostr.h instead.
67677         (human_readable, default_block_size, humblock):
67678         Use uintmax_t, not int, for block sizes.
67679         (human_readable_inexact, block_size_types): Remove.
67680         (block_size_opts): New constant.
67681         (human_options): Renamed from human_block_size, with new signature
67682         that allows block sizes up to UINTMAX_MAX.  All callers changed.
67683         * lib/human.h: Add copyright and authorship notice.
67684         Include <limits.h> and <stdbool.h> unconditionally.
67685         (PARAMS): Remove.  All uses removed.
67686         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
67687         (enum human_inexact_style): Remove tag; now a nameless enum.
67688         (human_floor, human_ceiling, human_round_to_even): Now have
67689         values 2, 0, 1 rather than -1, 1, 0.
67690         (human_group_digits, human_suppress_point_zero, human_autoscale,
67691         human_base_1024, human_SI, human_B): New constants.
67692         (human_readable_inexact, human_block_size): Remove.
67693         (human_readable): Size args are now uintmax_t, not int.
67694         (human_options): New decl.
67695
67696         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
67697         unnecessary now that we assume C89 or better.  This change
67698         imported from coreutils.
67699
67700         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67701         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
67702         in the 2003-05-30 sync from glibc.
67703
67704         .h files should stand alone, but we shouldn't include <sys/types.h>
67705         if we can get away with just <stddef.h>.
67706
67707         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
67708         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
67709         rather than <sys/types.h>, as we merely need size_t.
67710         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
67711         to get size_t.
67712         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
67713         Include <stdio.h>, to get FILE.
67714         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
67715         memcasecmp.h has included <stddef.h> and all we need is size_t.
67716         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
67717         our interface, instead of including <sys/types.h>
67718
67719 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67720
67721         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
67722         now, as glibc mktime is buggy on non-glibc systems.
67723
67724 2003-06-03  Karl Berry  <karl@gnu.org>
67725
67726         * config/config.sub: update from prep.
67727
67728 2003-06-02  Paul Eggert  <eggert@twinsun.com>
67729
67730         [from coreutils]
67731         Fix some minor time-related bugs with POSIX time arguments.
67732         Some valid time stamps were being rejected (notably -1, and
67733         time stamps before 1900 on 64-bit hosts).  And some invalid
67734         time stamps were being accepted, e.g. September 31.
67735
67736         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
67737         that we can return (time_t) -1 successfully.
67738         * lib/posixtm.c: Likewise.
67739         [HAVE_STDBOOL_H]: Include <stdbool.h>.
67740         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
67741         (t): Remove static var.
67742         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
67743         of static var.  All uses changed.
67744         (year): Do not reject years before 1900; they can occur with
67745         64-bit time_t.
67746         (posix_time_parse): Do not check for out-of-range components;
67747         that is now the caller's responsibility, since our checks were
67748         only approximations.
67749         (posixtime): Use mktime to check for out-of-range components,
67750         since it knows them exactly.
67751         If mktime returns (time_t) -1, check whether an error actually occurred
67752         by invoking localtime on -1.
67753         (main) [TEST_POSIXTIME]: Check for input data errors, and report
67754         posixtime failures better.
67755         Improve the test data (in comments only).
67756
67757 2003-06-02  Karl Berry  <karl@gnu.org>
67758
67759         * config/mkinstalldirs (version): new variable.
67760         (--version): new option.
67761         (usage): improve message.
67762
67763 2003-05-30  Karl Berry  <karl@gnu.org>
67764
67765         * lib/mktime.c: update from libc.
67766
67767 2003-05-30  Bruno Haible  <bruno@clisp.org>
67768
67769         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
67770         * config/config.rpath: Upgrade to gettext-0.12.1.
67771
67772 2003-05-30  Bruno Haible  <bruno@clisp.org>
67773
67774         * m4/gettext.m4: Upgrade to gettext-0.12.1.
67775         * m4/nls.m4: New file, from gettext-0.12.1.
67776         * m4/po.m4: New file, from gettext-0.12.1.
67777         * m4/progtest.m4: Upgrade to gettext-0.12.1.
67778
67779 2003-05-30  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
67782         * lib/localcharset.h: Likewise.
67783         * lib/localcharset.c: Likewise.
67784
67785 2003-05-29  Karl Berry  <karl@gnu.org>
67786
67787         * config/config.rpath: update from gettext.
67788
67789 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67790
67791         Assume the headers required for C89 freestanding compilers.
67792         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
67793         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
67794         * m4/human.m4 (gl_HUMAN): Likewise.
67795         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
67796         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
67797         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67798         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
67799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67800         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
67801
67802 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67803
67804         Assume the headers required for C89 freestanding compilers.
67805         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
67806         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
67807         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
67808         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
67809         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
67810         define, since <limits.h> is guaranteed to do that.
67811         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
67812         * lib/exclude.c: Include <stdbool.h> unconditionally.
67813         * lib/tempname.c: Include <stddef.h> unconditionally.
67814         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
67815         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
67816         <stddef.h> does that.
67817         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
67818         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
67819         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
67820         needed.
67821         * lib/xstrtol.c: Likewise.
67822         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
67823         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
67824
67825         * lib/addext.c (addext): Use assignment rather than cast, to avoid
67826         warnings on some platforms.
67827
67828         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67829         arbitrarily.
67830
67831 2003-05-26  Jim Meyering  <jim@meyering.net>
67832
67833         Merge in a change from coreutils:
67834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
67835         that is guaranteed to be `no'.  Use `no_such_member' to indicate
67836         that condition, rather than `-1' which is slightly misleading.
67837         Change the name of the cache variable to have the gl_ prefix.
67838         Prompted by a patch from Richard Dawe for DJGPP.
67839
67840 2003-05-24  Karl Berry  <karl@gnu.org>
67841
67842         * config/config.guess: update from prep.
67843
67844 2003-05-22  Karl Berry  <karl@gnu.org>
67845
67846         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
67847
67848 2003-05-20  Karl Berry  <karl@gnu.org>
67849
67850         * config/config.guess: update from prep.
67851
67852 2003-05-18  Karl Berry  <karl@gnu.org>
67853
67854         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
67855         might actually be set by the user.
67856
67857         * config/depcomp, install-sh, mdate-sh: update from automake.
67858
67859 2003-05-17  Bruno Haible  <bruno@clisp.org>
67860
67861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
67862         invalid expansion for AC_EGREP_CPP.
67863         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
67864         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
67865         Suggested by Akim Demaille <akim@epita.fr> in
67866         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
67867
67868 2003-05-12  Jim Meyering  <jim@meyering.net>
67869
67870         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
67871         the space-padded-by-default conversion specifiers, %e, %k, %l.
67872
67873 2003-05-12  Bruno Haible  <bruno@clisp.org>
67874
67875         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
67876         the string is longer than 4 KB.
67877
67878 2003-05-11  Karl Berry  <karl@gnu.org>
67879
67880         * config/config.{guess,sub}: update from prep.
67881
67882 2003-05-09  Bruno Haible  <bruno@clisp.org>
67883
67884         * modules/error: Add m4/strerror_r.m4 to file list.
67885
67886 2003-05-03  Bruno Haible  <bruno@clisp.org>
67887
67888         Upgrade to Unicode-4.0.
67889         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
67890         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
67891         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
67892         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
67893         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
67894         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
67895         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
67896         Change width of U+E0100..U+E01EF from 1 to 0.
67897
67898 2003-04-25  Jim Meyering  <jim@meyering.net>
67899
67900         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
67901         of type size_t, not int.
67902
67903 2003-04-25  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/copy-file.c: Include <stddef.h>, for size_t.
67906
67907 2003-04-21  Paul Eggert  <eggert@twinsun.com>
67908
67909         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
67910         code which expansion is under static control.  Patch imported from
67911         Akim Demaille's patch to Bison; see
67912         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
67913
67914 2003-04-14  Bruno Haible  <bruno@clisp.org>
67915
67916         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
67917
67918 2003-04-11  Jim Meyering  <jim@meyering.net>
67919
67920         Merge changes from Coreutils.
67921
67922         2003-03-22  Jim Meyering  <jim@meyering.net>
67923
67924         * lib/strftime.c (widen): Cast alloca return value to proper type.
67925
67926         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
67927
67928         From GNU libc.
67929         * lib/strftime.c (my_strftime): Handle very large width
67930         specifications for numeric values correctly.  Improve checks for
67931         overflow.
67932
67933         2003-01-19  Jim Meyering  <jim@meyering.net>
67934
67935         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
67936         definitions.
67937         (nl_get_alt_digit) [! defined my_strftime]: Define.
67938         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
67939         _nl_get_alt_digit and _nl_get_walt_digit.
67940
67941         * lib/strftime.c (my_strftime): Merge in locale-related changes from
67942         libc. These changes have no effect outside of _LIBC.
67943
67944 2003-04-10  Bruno Haible  <bruno@clisp.org>
67945
67946         * modules/findprog: New file.
67947         * MODULES.html.sh (func_all_modules): Add it.
67948
67949 2003-04-10  Bruno Haible  <bruno@clisp.org>
67950
67951         * m4/findprog.m4: New file.
67952         * m4/eaccess.m4: New file.
67953
67954 2003-04-10  Bruno Haible  <bruno@clisp.org>
67955
67956         * lib/findprog.h: New file, from GNU gettext.
67957         * lib/findprog.c: New file, from GNU gettext.
67958
67959 2003-04-05  Jim Meyering  <jim@meyering.net>
67960
67961         Merge changes from Coreutils.
67962
67963         * lib/exclude.h (PARAMS): Remove definition and uses.
67964         * lib/exclude.c: Remove uses of `PARAMS'.
67965
67966         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
67967         Add test-cases for DOS filenames. Declare program_name.
67968         (main): Set up program_name.  Patch by Rich Dawe.
67969
67970         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67971         error from mntctl.
67972         Use mntctl's return value to drive the entry-processing loop, since
67973         we can't rely on the value of the vmt_length member in the last
67974         entry.  On some systems doing so could result in exhausting
67975         virtual memory.  Based in part on a patch from Mike Jetzer.
67976
67977 2003-04-04  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/linebreak: New file.
67980         * MODULES.html.sh (func_all_modules): Add it.
67981
67982 2003-04-04  Bruno Haible  <bruno@clisp.org>
67983
67984         * m4/linebreak.m4: New file.
67985
67986 2003-04-04  Bruno Haible  <bruno@clisp.org>
67987
67988         * lib/linebreak.h: New file, from GNU gettext.
67989         * lib/linebreak.c: New file, from GNU gettext with slight
67990         modifications.
67991         * lib/lbrkprop.h: New file, from GNU gettext.
67992
67993 2003-04-03  Bruno Haible  <bruno@clisp.org>
67994
67995         * modules/utf8-ucs4: New file.
67996         * modules/utf16-ucs4: New file.
67997         * modules/ucs4-utf8: New file.
67998         * modules/ucs4-utf16: New file.
67999         * MODULES.html.sh (func_all_modules): Add them.
68000
68001 2003-04-03  Bruno Haible  <bruno@clisp.org>
68002
68003         * m4/utf-ucs4.m4: New file.
68004         * m4/ucs4-utf.m4: New file.
68005
68006 2003-04-03  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/utf8-ucs4.h: New file, from GNU gettext.
68009         * lib/utf16-ucs4.h: New file, from GNU gettext.
68010         * lib/ucs4-utf8.h: New file, from GNU gettext.
68011         * lib/ucs4-utf16.h: New file, from GNU gettext.
68012
68013 2003-04-02  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/binary-io: New file.
68016         * MODULES.html.sh (func_all_modules): Add it.
68017
68018 2003-04-02  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/binary-io.h: New file, from GNU gettext.
68021
68022 2003-04-01  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/pathname: New file.
68025         * MODULES.html.sh (func_all_modules): Add it.
68026
68027 2003-04-01  Bruno Haible  <bruno@clisp.org>
68028
68029         * lib/pathname.h: New file, from GNU gettext.
68030         * lib/concatpath.c: New file, from GNU gettext.
68031
68032 2003-03-30  Bruno Haible  <bruno@clisp.org>
68033
68034         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68035
68036 2003-03-30  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68039         function chown() doesn't exist.
68040
68041 2003-03-28  Bruno Haible  <bruno@clisp.org>
68042
68043         * modules/copy-file: New file.
68044         * MODULES.html.sh (func_all_modules): Add it.
68045
68046 2003-03-28  Bruno Haible  <bruno@clisp.org>
68047
68048         * m4/copy-file.m4: New file.
68049
68050 2003-03-28  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/copy-file.h: New file, from GNU gettext.
68053         * lib/copy-file.c: New file, from GNU gettext.
68054
68055 2003-03-18  Jim Meyering  <jim@meyering.net>
68056
68057         * lib/quote.c (quote_n): Fix typo in comment.
68058
68059 2003-03-18  Bruno Haible  <bruno@clisp.org>
68060
68061         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68062         checking.
68063         * m4/onceonly_2_57.m4: Likewise.
68064
68065 2003-03-17  Bruno Haible  <bruno@clisp.org>
68066
68067         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68068         (m4_quote): Remove macro.
68069         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68070
68071 2003-03-14  Jim Meyering  <jim@meyering.net>
68072
68073         Merge changes from Coreutils.
68074         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68075         to be const, in order to avoid warnings.
68076         (obstack_room): Likewise.
68077         (obstack_empty_p): Likewise.
68078
68079 2003-03-14  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68082         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68083
68084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68085
68086         Merge changes from Bison.
68087         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68088         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68089         when compiling Bison 1.875's `bitset bset = obstack_alloc
68090         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68091         * lib/hash.c: Include <stdbool.h> unconditionally.
68092
68093 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68094
68095         * m4/onceonly.m4 (m4_quote): New macro.
68096         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68097         Quote AC_FOREACH variable-expansions properly.
68098
68099 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68100
68101         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68102
68103 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68104
68105         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68106         Reported by Bruce Becker; see:
68107         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68108
68109 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68110             Bruno Haible  <bruno@clisp.org>
68111
68112         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68113         Reported by John Hughes, see
68114         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68115
68116 2003-02-20  Bruno Haible  <bruno@clisp.org>
68117
68118         * MODULES.html.sh (func_all_modules): Add poll.
68119
68120 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68121
68122         * modules/poll: New file.
68123
68124 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68125
68126         * lib/poll_.h: New file.
68127         * lib/poll.c: New file.
68128
68129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68130
68131         * m4/poll.m4: New file.
68132
68133 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68134
68135         * modules/mathl: New file.
68136
68137 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68138
68139         * lib/mathl.h: New file.
68140         * lib/acosl.c: New file.
68141         * lib/asinl.c: New file.
68142         * lib/atanl.c: New file.
68143         * lib/ceill.c: New file.
68144         * lib/cosl.c: New file.
68145         * lib/expl.c: New file.
68146         * lib/floorl.c: New file.
68147         * lib/frexpl.c: New file.
68148         * lib/ldexpl.c: New file.
68149         * lib/logl.c: New file.
68150         * lib/sincosl.c: New file.
68151         * lib/sinl.c: New file.
68152         * lib/sqrtl.c: New file.
68153         * lib/tanl.c: New file.
68154         * lib/trigl.c: New file.
68155         * lib/trigl.h: New file.
68156
68157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68158
68159         * m4/mathl.m4: New file.
68160
68161 2003-02-18  Bruno Haible  <bruno@clisp.org>
68162
68163         * MODULES.html.sh (func_all_modules): Add mathl.
68164
68165 2003-02-17  Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/mkdtemp: New module.
68168         * MODULES.html.sh (func_all_modules): Add it.
68169
68170 2003-02-17  Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68173
68174 2003-02-17  Bruno Haible  <bruno@clisp.org>
68175
68176         * lib/mkdtemp.h: New file, from GNU gettext.
68177         * lib/mkdtemp.c: New file, from GNU gettext.
68178
68179 2003-02-02  Jim Meyering  <jim@meyering.net>
68180
68181         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68182         e.g. glibc-2.2.93.
68183
68184 2003-01-31  Bruno Haible  <bruno@clisp.org>
68185
68186         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68187         'rpl_rename'.
68188         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68189         'rpl_strnlen'.
68190         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68191         'rpl_strtod'.
68192         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68193         'rpl_utime'.
68194
68195 2003-01-31  Bruno Haible  <bruno@clisp.org>
68196
68197         * lib/rename.c: #undef rename before defining rpl_rename.
68198         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68199
68200 2003-01-30  Bruno Haible  <bruno@clisp.org>
68201
68202         * modules/vasnprintf, modules/vasprintf: New modules.
68203         * MODULES.html.sh (func_all_modules): Add them.
68204
68205 2003-01-30  Bruno Haible  <bruno@clisp.org>
68206
68207         * m4/signed.m4: New file, from GNU gettext.
68208         * m4/longdouble.m4: New file, from GNU gettext.
68209         * m4/wchar_t.m4: New file, from GNU gettext.
68210         * m4/wint_t.m4: New file, from GNU gettext.
68211         * m4/vasnprintf.m4: New file.
68212         * m4/vasprintf.m4: New file.
68213
68214 2003-01-30  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/printf-args.h: New file, from GNU gettext.
68217         * lib/printf-args.c: New file, from GNU gettext.
68218         * lib/printf-parse.h: New file, from GNU gettext.
68219         * lib/printf-parse.c: New file, from GNU gettext.
68220         * lib/vasnprintf.h: New file, from GNU gettext.
68221         * lib/vasnprintf.c: New file, from GNU gettext.
68222         * lib/asnprintf.c: New file, from GNU gettext.
68223         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68224         * lib/vasprintf.c: New file, from GNU gettext.
68225         * lib/asprintf.c: New file, from GNU gettext.
68226
68227 2003-01-29  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/stpncpy: New module.
68230         * MODULES.html.sh (func_all_modules): Add it.
68231
68232 2003-01-29  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/stpncpy.m4: New file.
68235
68236 2003-01-29  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68239         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68240
68241 2003-01-28  Bruno Haible  <bruno@clisp.org>
68242
68243         * modules/c-ctype: New module.
68244         * MODULES.html.sh (func_all_modules): Add it.
68245
68246 2003-01-28  Bruno Haible  <bruno@clisp.org>
68247
68248         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68249         Paul Eggert.
68250         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68251         Paul Eggert.
68252
68253 2003-01-27  Bruno Haible  <bruno@clisp.org>
68254
68255         * modules/xsetenv: New module.
68256         * MODULES.html.sh (func_all_modules): Add it.
68257
68258 2003-01-27  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/xsetenv.h: New file, from GNU gettext.
68261         * lib/xsetenv.c: New file, from GNU gettext.
68262
68263 2003-01-23  Jim Meyering  <jim@meyering.net>
68264
68265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68266         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68267
68268 2003-01-23  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/minmax: New module.
68271         * MODULES.html.sh (func_all_modules): Add it.
68272
68273 2003-01-23  Bruno Haible  <bruno@clisp.org>
68274
68275         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68276         Eggert.
68277
68278 2003-01-22  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/exit: New module.
68281         * MODULES.html.sh (func_all_modules): Add it.
68282
68283 2003-01-22  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/exit.h: New file, from GNU gettext.
68286
68287 2003-01-19  Bruno Haible  <bruno@clisp.org>
68288
68289         * gnulib-tool: Recognize option --extract-maintainer.
68290         (func_get_maintainer): New function.
68291         * modules/*: Add Maintainer entry.
68292
68293 2003-01-16  Jim Meyering  <jim@meyering.net>
68294
68295         * m4/regex.m4: The `regex' struct is both input and output.
68296         Initialize it before each use.  Patch by Tim Waugh.
68297
68298 2003-01-16  Bruno Haible  <bruno@clisp.org>
68299
68300         * MODULES.html.sh: Add a table of contents. Add the module name as
68301         leftmost column. Add hyperlinks.
68302
68303 2003-01-15  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68306
68307 2003-01-15  Bruno Haible  <bruno@clisp.org>
68308
68309         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68311         suffix.
68312
68313 2003-01-15  Bruno Haible  <bruno@clisp.org>
68314
68315         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68316
68317 2003-01-15  Bruno Haible  <bruno@clisp.org>
68318
68319         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68320         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68321
68322 2003-01-14  Jim Meyering  <jim@meyering.net>
68323
68324         * lib/same.c (same_name): Tweak a comment.
68325
68326 2003-01-14  Bruno Haible  <bruno@clisp.org>
68327
68328         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68329         when a string comparison is sufficient.
68330
68331 2003-01-14  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68334         'unsigned int'.
68335
68336 2003-01-14  Bruno Haible  <bruno@clisp.org>
68337
68338         * lib/hash-pjw.c: Add comment about low quality of this function.
68339
68340 2003-01-13  Bruno Haible  <bruno@clisp.org>
68341
68342         * modules/stpcpy: Distribute lib/stpcpy.h.
68343         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68344
68345 2003-01-13  Bruno Haible  <bruno@clisp.org>
68346
68347         * modules/*: Add a description.
68348         * modules/strpbrk: Fix Makefile.am snippet.
68349         * modules/strtoimax: Fix dependencies.
68350         * modules/strtoumax: Likewise.
68351
68352 2003-01-13  Bruno Haible  <bruno@clisp.org>
68353
68354         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68355         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68356         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68357
68358 2003-01-13  Bruno Haible  <bruno@clisp.org>
68359
68360         * gnulib-tool (func_create_testdir): Store config/* files in the main
68361         directory.
68362         * config.rpath: Move to ...
68363         * config/config.rpath: ... here.
68364         * modules/gettext: Contains config/config.rpath, not config.rpath.
68365         * modules/iconv: Likewise.
68366
68367 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68368
68369         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68370         to avoid collisions with libcurses and libreadline.
68371
68372         * m4/getstr.m4: Remove.
68373         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68374
68375 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68376
68377         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68378         to avoid collisions with libcurses and libreadline.
68379
68380         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68381         * lib/getstr.h, getstr.c: Remove.
68382         * lib/getline.c: Include "getline.h", to check interface.
68383         Move body of old getstr.c here: this defines MIN_CHUNK and
68384         declares getdelim2, which is renamed from getstr.
68385         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68386
68387         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68388         All uses changed.
68389         * lib/linebuffer.h: Likewise.
68390         (readline): Remove backward-compatibility macro.
68391
68392 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68393
68394         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68395         to avoid collisions with libcurses and libreadline.
68396         * getstr: Remove.
68397         * MODULES.html.sh: Remove getstr.
68398         * modules/getline: Depend on unlocked-io, not getstr.
68399
68400 2003-01-12  Jim Meyering  <jim@meyering.net>
68401
68402         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68403
68404 2003-01-10  Bruno Haible  <bruno@clisp.org>
68405
68406         * modules/alloca: Change Makefile.am requirements. Simplify Include
68407         requirements. Add lib/alloca_.h to file list.
68408
68409 2003-01-10  Bruno Haible  <bruno@clisp.org>
68410
68411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68412
68413 2003-01-10  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/alloca_.h: New file.
68416         * lib/getdate.y: Unconditionally include alloca.h.
68417         * lib/makepath.c: Likewise.
68418         * lib/setenv.c: Likewise.
68419         * lib/userspec.c: Likewise.
68420
68421 2003-01-09  Karl Berry  <karl@gnu.org>
68422
68423         * MODULES.html.sh: include `dirname $0` in PATH, to find
68424         gnulib-tool.
68425
68426 2003-01-09  Bruno Haible  <bruno@clisp.org>
68427
68428         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68429         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68430
68431 2003-01-09  Bruno Haible  <bruno@clisp.org>
68432
68433         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68434
68435 2003-01-09  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/stdbool.h.in: New file.
68438
68439 2003-01-09  Bruno Haible  <bruno@clisp.org>
68440
68441         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68442         * MODULES.html.sh: Likewise.
68443
68444 2003-01-08  Jim Meyering  <jim@meyering.net>
68445
68446         * lib/full-write.c: Undefine and define-away `const' after inclusion
68447         of errno.h, not before.  Suggestion from Bruno Haible.
68448
68449 2003-01-08  Bruno Haible  <bruno@clisp.org>
68450
68451         * modules/full-read: Depend on full-write.
68452
68453 2003-01-08  Bruno Haible  <bruno@clisp.org>
68454
68455         * lib/safe-read.c: Include specification header first, to ensure its
68456         selfcontainedness.
68457         * lib/full-write.c: Likewise.
68458
68459 2003-01-07  Jim Meyering  <jim@meyering.net>
68460
68461         * lib/full-write.c: Rework so that it may serve to define full_read,
68462         too.
68463         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68464
68465 2003-01-07  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/strtoimax.c: Include <stdint.h> as an alternative to
68468         <inttypes.h>.
68469         * lib/xstrtol.h: Likewise.
68470         * lib/xstrtoimax.c: Likewise.
68471         * lib/xstrtoumax.c: Likewise.
68472         * lib/human.h: Likewise.
68473
68474         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
68475         on systems that have <inttypes.h> but not <stdint.h>.
68476
68477 2003-01-07  Bruno Haible  <bruno@clisp.org>
68478
68479         * MODULES.html.sh: Add copyright notice.
68480         (missed_files): Omit CVS directory entries.
68481         (func_module): Make it work with sed-3.02.
68482         * MODULES.txt: Remove file.
68483
68484 2003-01-06  Jim Meyering  <jim@meyering.net>
68485
68486         * lib/version-etc.c: Update year in translatable copyright string.
68487
68488 2003-01-03  Karl Berry  <karl@gnu.org>
68489
68490         * config/config.{guess,sub}: update from prep.
68491
68492 2003-01-02  Karl Berry  <karl@gnu.org>
68493
68494         * doc/COPYING.DOC: belatedly updated to 1.2.
68495
68496 2003-01-01  Karl Berry  <karl@gnu.org>
68497
68498         * gnulib-tool (func_verify_module): report module name $module in
68499         error message, not $1.
68500         * gnulib-tool (create-testdir): don't complain if destdir couldn't
68501         be created, only if it doesn't exist.
68502         * gnulib-tool (last_checkin_date): don't expand the $Date here.
68503
68504 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68505
68506         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
68507
68508 2002-12-31  Paul Eggert  <eggert@twinsun.com>
68509
68510         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
68511         memcmp if strcoll doesn't work.
68512
68513 2002-12-31  Bruno Haible  <bruno@clisp.org>
68514
68515         * lib/utime.c (utime_null): No need to call ftruncate if the file was
68516         nonempty.
68517
68518 2002-12-31  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/memcoll.c (STRCOLL): New macro.
68521         (memcoll): Use it.
68522
68523 2002-12-31  Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/localcharset.h: New file.
68526         * lib/localcharset.c: Include it.
68527         * lib/unicodeio.c: Likewise.
68528
68529 2002-12-31  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
68532         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
68533
68534 2002-12-31  Bruno Haible  <bruno@clisp.org>
68535
68536         * lib/getline.h: Include <stddef.h>, for size_t.
68537
68538         * lib/unicodeio.h: Include <stddef.h>, for size_t.
68539         * lib/unicodeio.c: Don't include <stddef.h>.
68540
68541 2002-12-31  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
68544         HAVE_TM_ZONE.
68545
68546 2002-12-24  Karl Berry  <karl@gnu.org>
68547
68548         * config/config.guess: update from prep.
68549
68550 2002-12-24  Bruno Haible  <bruno@clisp.org>
68551
68552         General infrasructure.
68553         * m4/README: Rewritten.
68554         * m4/onceonly.m4: New file.
68555         * m4/onceonly_2_57.m4: New file.
68556
68557         Module atexit.
68558         * m4/atexit.m4: New file.
68559
68560         Module strtod.
68561         * m4/strtod.m4: New file.
68562
68563         Module strtol.
68564         * m4/strtol.m4: New file.
68565
68566         Module strtoul.
68567         * m4/strtoul.m4: New file.
68568
68569         Module memchr.
68570         * m4/memchr.m4: New file.
68571
68572         Module memcmp.
68573         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
68574         (jm_FUNC_MEMCMP): Invoke it.
68575
68576         Module memcpy.
68577         * m4/memcpy.m4: New file.
68578
68579         Module memmove.
68580         * m4/memmove.m4: New file.
68581
68582         Module memset.
68583         * m4/memset.m4: New file.
68584
68585         Module strcspn.
68586         * m4/strcspn.m4: New file.
68587
68588         Module strpbrk.
68589         * m4/strpbrk.m4: New file.
68590
68591         Module strstr.
68592         * m4/strstr.m4: New file.
68593
68594         Module strerror.
68595         * m4/strerror.m4: New file.
68596
68597         Module mktime.
68598         * m4/mktime.m4: Renamed from jm-mktime.m4.
68599         (gl_PREREQ_MKTIME): New macro.
68600         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
68601
68602         Module malloc.
68603         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
68604         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
68605         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
68606
68607         Module realloc.
68608         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
68609         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
68610         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
68611
68612         Module strftime.
68613         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
68614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
68615         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
68616         gl_TM_GMTOFF.
68617         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
68618
68619         Module xalloc.
68620         * m4/xalloc.m4: New file.
68621
68622         Module alloca.
68623         * m4/alloca.m4: New file.
68624
68625         Module putenv.
68626         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
68627         (jm_FUNC_PUTENV): Invoke it.
68628
68629         Module setenv.
68630         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
68631         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
68632         when invoked twice.
68633         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
68634         gt_FUNC_SETENV.
68635
68636         Module memrchr.
68637         * m4/memrchr.m4: New file.
68638
68639         Module stpcpy.
68640         * m4/stpcpy.m4: New file.
68641
68642         Module strcase.
68643         * m4/strcase.m4: New file.
68644
68645         Module strdup.
68646         * m4/strdup.m4: New file.
68647
68648         Module strnlen.
68649         * m4/strnlen.m4: New file.
68650
68651         Module strndup.
68652         * m4/strndup.m4: New file.
68653
68654         Module xstrtod.
68655         * m4/xstrtod.m4: New file.
68656
68657         Module xstrtol.
68658         * m4/xstrtol.m4: New file.
68659
68660         Module getdate.
68661         * m4/getdate.m4: New file.
68662
68663         Module unlocked-io.
68664         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
68665         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
68666         * m4/jm-glibc-io.m4n: Remove file.
68667
68668         Module long-options.
68669         * m4/long-options.m4: New file.
68670
68671         Module md5.
68672         * m4/md5.m4: New file.
68673
68674         Module sha.
68675         * m4/sha.m4: New file.
68676
68677         Module getstr.
68678         * m4/getstr.m4: New file.
68679
68680         Module getline.
68681         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
68682         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
68683         <sys/types.h>, for size_t. Use the function name gnu_getline, not
68684         simply getline. Infoke gl_PREREQ_GETLINE.
68685
68686         Module obstack.
68687         * m4/obstack.m4: New file.
68688
68689         Module hash.
68690         * m4/hash.m4: New file.
68691
68692         Module readtokens.
68693         * m4/readtokens.m4: New file.
68694
68695         Module strverscmp.
68696         * m4/strverscmp.m4: New file.
68697
68698         Module stdbool.
68699         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
68700         OSF/1.
68701
68702         Module strtoll.
68703         * m4/strtoll.m4: New file.
68704
68705         Module strtoull.
68706         * m4/strtoull.m4: New file.
68707
68708         Module strtoimax.
68709         * m4/strtoimax.m4: New file.
68710
68711         Module strtoumax.
68712         * m4/strtoumax.m4: New file.
68713
68714         Module xstrtoimax.
68715         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
68716         jm_AC_PREREQ_XSTRTOIMAX.
68717         Moved the strtol prerequisites to strtol.m4.
68718         Moved the strtoll prerequisites to strtoll.m4.
68719         Moved the strtoimax prerequisites to strtoimax.m4.
68720
68721         Module xstrtoumax.
68722         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
68723         jm_AC_PREREQ_XSTRTOUMAX.
68724         Moved the strtoul prerequisites to strtoul.m4.
68725         Moved the strtoull prerequisites to strtoull.m4.
68726         Moved the strtoumax prerequisites to strtoumax.m4.
68727
68728         Module chown.
68729         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
68730         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
68731
68732         Module dup2.
68733         * m4/dup2.m4: New file.
68734
68735         Module ftruncate.
68736         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
68737         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
68738
68739         Module getgroups.
68740         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
68741         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
68742
68743         Module gettimeofday.
68744         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
68745         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
68746         gl_PREREQ_GETTIMEOFDAY.
68747
68748         Module mkdir.
68749         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
68750         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
68751
68752         Module mkstemp.
68753         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
68754         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
68755         jm_AC_TYPE_UINTMAX_T.
68756         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
68757
68758         Module stat.
68759         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
68760         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
68761
68762         Module lstat.
68763         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
68764         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
68765
68766         Module timespec.
68767         * m4/timespec.m4 (gl_TIMESPEC): New macro.
68768         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
68769         * m4/st_mtim.m4: Indentation.
68770
68771         Module nanosleep.
68772         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
68773         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
68774         gl_PREREQ_NANOSLEEP.
68775
68776         Module regex.
68777         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
68778         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
68779         (gl_REGEX): New macro.
68780
68781         Module rename.
68782         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
68783         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
68784
68785         Module rmdir.
68786         * m4/rmdir.m4: New file.
68787
68788         Module utime.
68789         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
68790         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
68791         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
68792
68793         Module dirname.
68794         * m4/dirname.m4: New file.
68795
68796         Module getopt.
68797         * m4/getopt.m4: New file.
68798
68799         Module unistd-safer.
68800         * m4/unistd-safer.m4: New file.
68801
68802         Module fnmatch.
68803         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
68804         declaration.
68805         (gl_PREREQ_FNMATCH_EXTRA): New macro.
68806         (gl_FUNC_FNMATCH_POSIX): New macro.
68807         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
68808         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
68809         simply fnmatch.
68810
68811         Module exclude.
68812         * m4/exclude.m4: New file.
68813
68814         Module human.
68815         * m4/human.m4: New file.
68816
68817         Module acl.
68818         * m4/acl.m4: Nop.
68819
68820         Module backupfile.
68821         * m4/backupfile.m4: New file.
68822         * m4/d-ino.m4: Indentation.
68823
68824         Module fsusage.
68825         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
68826         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
68827         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
68828
68829         Module dirfd.
68830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
68831         requirements.
68832
68833         Module euidaccess.
68834         * m4/euidaccess.m4: New file.
68835
68836         Module file-type.
68837         * m4/file-type.m4: New file.
68838
68839         Module fileblocks.
68840         * m4/fileblocks.m4: New file.
68841
68842         Module filemode.
68843         * m4/filemode.m4: New file.
68844
68845         Module isdir.
68846         * m4/isdir.m4: New file.
68847
68848         Module lchown.
68849         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
68850         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
68851
68852         Module makepath.
68853         * m4/makepath.m4: New file.
68854
68855         Module modechange.
68856         * m4/modechange.m4: New file.
68857
68858         Module mountlist.
68859         * m4/mountlist.m4: New file.
68860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
68861         Indentation.
68862
68863         Module path-concat.
68864         * m4/path-concat.m4: New file.
68865
68866         Module pathmax.
68867         * m4/pathmax.m4: New file.
68868
68869         Module same.
68870         * m4/same.m4: New file.
68871
68872         Module save-cwd.
68873         * m4/save-cwd.m4: New file.
68874
68875         Module savedir.
68876         * m4/savedir.m4: New file.
68877
68878         Module xgetcwd.
68879         * m4/xgetcwd.m4: New file.
68880         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
68881
68882         Module xreadlink.
68883         * m4/xreadlink.m4: New file.
68884
68885         Module safe-read.
68886         * m4/safe-read.m4: New file.
68887
68888         Module safe-write.
68889         * m4/safe-write.m4: New file.
68890
68891         Module closeout.
68892         * m4/closeout.m4: New file.
68893
68894         Module stdio-safer.
68895         * m4/stdio-safer.m4: New file.
68896
68897         Module getpass.
68898         * m4/getpass.m4: New file.
68899
68900         Module getugroups.
68901         * m4/getugroups.m4: New file.
68902
68903         Module group-member.
68904         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
68905         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
68906
68907         Module idcache.
68908         * m4/idcache.m4: New file.
68909
68910         Module userspec.
68911         * m4/userspec.m4: New file.
68912
68913         Module gettime.
68914         * m4/clock_time.m4: New file.
68915         * m4/gettime.m4: New file.
68916
68917         Module settime.
68918         * m4/settime.m4: New file.
68919
68920         Module posixtm.
68921         * m4/posixtm.m4: New file.
68922
68923         Module gethostname.
68924         * m4/gethostname.m4: New file.
68925
68926         Module canon-host.
68927         * m4/canon-host.m4: New file.
68928
68929         Module gettext.
68930         * m4/codeset.m4: New file, from gettext-0.11.5.
68931         * m4/gettext.m4: New file, from gettext-0.11.5.
68932         * m4/glibc21.m4: New file, from gettext-0.11.5.
68933         * m4/iconv.m4: New file, from gettext-0.11.5.
68934         * m4/intdiv0.m4: New file, from gettext-0.11.5.
68935         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
68936         * m4/inttypes.m4: New file, from gettext-0.11.5.
68937         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
68938         * m4/isc-posix.m4: New file, from gettext-0.11.5.
68939         * m4/lcmessage.m4: New file, from gettext-0.11.5.
68940         * m4/lib-ld.m4: New file, from gettext-0.11.5.
68941         * m4/lib-link.m4: New file, from gettext-0.11.5.
68942         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
68943         * m4/progtest.m4: New file, from gettext-0.11.5.
68944         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
68945         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
68946         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
68947
68948         Module localcharset.
68949         * m4/localcharset.m4: New file.
68950
68951         Module hard-locale.
68952         * m4/hard-locale.m4: New file.
68953
68954         Module mbswidth.
68955         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
68956         onceonly macros.
68957         * m4/mbrtowc.m4: Add comment.
68958
68959         Module memcasecmp.
68960         * m4/memcasecmp.m4: New file.
68961
68962         Module memcoll.
68963         * m4/memcoll.m4: New file.
68964
68965         Module unicodeio.
68966         * m4/unicodeio.m4: New file.
68967
68968         Module rpmatch.
68969         * m4/rpmatch.m4: New file.
68970
68971         Module yesno.
68972         * m4/yesno.m4: New file.
68973
68974         Module exitfail.
68975         * m4/exitfail.m4: New file.
68976
68977         Module c-stack.
68978         * m4/c-stack.m4 (gl_C_STACK): New macro.
68979         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
68980
68981         Module error.
68982         * m4/error.m4 (gl_ERROR): New macro.
68983         (jm_PREREQ_ERROR): Use onceonly macros.
68984
68985         Module fatal.
68986         * m4/fatal.m4: New file.
68987
68988         Module getloadavg.
68989         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
68990         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
68991
68992         Module getpagesize.
68993         * m4/getpagesize.m4: New file.
68994
68995         Module getusershell.
68996         * m4/getusershell.m4: New file.
68997
68998         Module physmem.
68999         * m4/physmem.m4: New file.
69000
69001         Module posixver.
69002         * m4/posixver.m4: New file.
69003
69004         Module quotearg.
69005         * m4/quotearg.m4: New file.
69006
69007         Module quote.
69008         * m4/quote.m4: New file.
69009
69010         Module readutmp.
69011         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69012
69013         Module sig2str.
69014         * m4/sig2str.m4: New file.
69015
69016         Other.
69017         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69018         ulonglong.m4.
69019         * m4/intmax_t.m4: New file.
69020         * m4/d-type.m4: Indentation.
69021         * m4/jm-macros.m4: Update.
69022         * m4/prereq.m4 (jm_PREREQ): Update.
69023         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69024         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69025         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69026         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69027         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69028         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69029         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69030         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69031         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69032         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69033         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69034         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69035         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69036         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69037         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69038         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69039         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69040         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69041         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69042
69043 2002-12-24  Bruno Haible  <bruno@clisp.org>
69044
69045         * MODULES.txt: Update according to m4/ changes.
69046
69047         Module gettext.
69048         * config.rpath: New file, from gettext-0.11.5.
69049
69050         * modules/*: New module descriptions.
69051         * gnulib-tool: New file.
69052         * MODULES.html.sh: New file.
69053
69054 2002-12-21  Karl Berry  <karl@gnu.org>
69055
69056         * doc/fdl.texi: update to version 1.2.
69057
69058 2002-12-19  Karl Berry  <karl@gnu.org>
69059
69060         * config/config.guess: update from prep.
69061
69062 2002-12-18  Bruno Haible  <bruno@clisp.org>
69063
69064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69065         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69066
69067 2002-12-17  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69070         stdlib.h, string.h.
69071
69072 2002-12-17  Bruno Haible  <bruno@clisp.org>
69073
69074         * lib/canon-host.c (strdup): Remove unused declaration.
69075
69076         * lib/fsusage.c: Include full_read.h.
69077         (get_fs_usage): Use full_read instead of safe_read.
69078
69079         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69080
69081 2002-12-12  Karl Berry  <karl@gnu.org>
69082
69083         * config/config.guess: update from prep.
69084
69085 2002-12-11  Bruno Haible  <bruno@clisp.org>
69086
69087         * m4/setenv.m4: New file, from gettext-0.11.5.
69088
69089 2002-12-11  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69092         not unsetenv().
69093         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69094         modifications:
69095
69096         2002-12-11  Bruno Haible  <bruno@clisp.org>
69097
69098                 * setenv.c (alloca): Fall back to malloc.
69099                 (freea): New macro.
69100                 (setenv): Use freea() to free memory allocated with alloca().
69101
69102         2002-11-13  Bruno Haible  <bruno@clisp.org>
69103
69104                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69105                 function declarations.
69106                 * unsetenv.c (unsetenv): Likewise.
69107
69108         2002-03-04  Bruno Haible  <bruno@clisp.org>
69109
69110                 Portability to AIX 4.3.3.
69111                 * unsetenv.c: New file, extracted from setenv.c.
69112                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69113
69114         2001-12-20  Bruno Haible  <bruno@clisp.org>
69115
69116                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69117                 use malloc instead. For SunOS 4.
69118
69119         2001-12-11  Bruno Haible  <bruno@clisp.org>
69120
69121                 * setenv.c: Declare alloca.
69122                 (compar_fn_t): New typedef.
69123                 (KNOWN_VALUE, STORE_VALUE): Use it.
69124
69125         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69126         setenv.h.
69127
69128 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69129
69130         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69131         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69132         Choose values that are less likely to collide with system fnmatch
69133         options.
69134         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69135         defined (e.g., a pure POSIX system).
69136         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69137         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69138
69139 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69140
69141         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69142         a pain in practice to deal with generated m4 files.  This change
69143         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69144
69145         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69146         and jm-glibc-io.m4, as they are no longer a special case.
69147         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69148         kludge and the auto-generation stuff.  Check only whether the
69149         functions are declared, not whether they exist, since older hosts
69150         that don't declare the functions can't use the optimization anyway.
69151
69152 2002-12-06  Jim Meyering  <jim@meyering.net>
69153
69154         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69155
69156         Merge in changes from libc's misc/error.c, in preparation
69157         for the merge of gnulib's changes back into libc.
69158
69159         * lib/error.c (_): Define only if not already defined.
69160         Move definition to follow all #include directives.
69161         Include unlocked-io.h only if !_LIBC.
69162         [_LIBC]: Include <libio/libioP.h>.
69163         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69164         (fflush): Tweak definition to use INTUSE.
69165         (putc): Define.
69166
69167 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69168
69169         * lib/alloca.c [defined emacs]: Include "lisp.h".
69170         (xalloc_die) [defined emacs]: New macro.
69171         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69172         [! defined emacs]: Include <xalloc.h>.
69173         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69174         (pointer): Typedef to POINTER_TYPE *.
69175         (malloc): Remove decl; we now always use xmalloc.
69176         (alloca): Use old-style definition, since Emacs needs this.
69177         Check for arithmetic overflow when computing combined size.
69178
69179 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69180
69181         Do not generate unlocked-io.h automatically, since it's easier to
69182         maintain it by hand.
69183
69184         * lib/unlocked-io.h: New file, from GNU diffutils,
69185         but with proper copyright notice and attribution.
69186         * lib/gen-uio: Remove.
69187         * lib/Makefile.am: Add copyright notice.
69188         (libfetish_a_SOURCES): Add unlocked-io.h.
69189         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69190         (DISTCLEANFILES, io_functions): Remove macros.
69191         (EXTRA_DIST): Remove gen_uio.
69192         (unlocked-io.h): Remove rule.
69193
69194 2002-12-04  Jim Meyering  <jim@meyering.net>
69195
69196         Reflect the fact that stat.c and lstat.c are no longer generated.
69197         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69198         (DISTCLEANFILES): Likewise.
69199         (EXTRA_DIST): Likewise.
69200         (all_local): Don't depend on stat.c or lstat.c.
69201         (stat.c, lstat.c): Remove rules.
69202         (EXTRA_DIST): Remove xstat.in.
69203
69204         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69205         * lib/stat.c: New file.  Contents mostly from xstat.in.
69206         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69207         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69208
69209         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69210         too.
69211         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69212
69213 2002-12-03  Jim Meyering  <jim@meyering.net>
69214
69215         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69216         but not semantics, to minimize the differences between these two files.
69217         (safe_read): Change comment to mention SAFE_READ_ERROR.
69218
69219         * lib/safe-read.c (IS_EINTR): Define.
69220         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69221
69222 2002-12-02  Jim Meyering  <jim@meyering.net>
69223
69224         * lib/safe-read.c (EINTR): Define.
69225         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69226         (INT_MAX): Provide fallback.
69227         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69228
69229         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69230
69231 2002-12-02  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69234         Define, taken from safe-read.c.
69235         (INT_MAX): Provide fallback.
69236         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69237         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69238
69239         * lib/safe-read.c (EINTR): Remove definition.
69240         (safe_read): Don't use EINTR if it is absent.
69241
69242 2002-12-01  Jim Meyering  <jim@meyering.net>
69243
69244         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69245         zero.
69246         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69247
69248 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69249
69250         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69251         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69252         with `if (! (value < limit)) abort ();', for readability.
69253
69254 2002-11-26  Karl Berry  <karl@gnu.org>
69255
69256         * lib/strdup.c: copy from libc again, with jim's ok.
69257         * lib/.cppi-disable: re-add strdup.c
69258
69259 2002-11-25  Karl Berry  <karl@gnu.org>
69260
69261         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69262         instead of "strtol.c".
69263
69264 2002-11-25  Karl Berry  <karl@gnu.org>
69265
69266         * config/install-sh: update from automake for variable quoting, $0 in
69267         error msgs, etc.
69268
69269         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69270         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69271         entry.
69272
69273 2002-11-25  Jim Meyering  <jim@meyering.net>
69274
69275         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69276
69277 2002-11-24  Karl Berry  <karl@gnu.org>
69278
69279         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69280         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69281
69282 2002-11-24  Jim Meyering  <jim@meyering.net>
69283
69284         Update from coreutils:
69285
69286         * lib/mktime.c: Merge in changes from libc.
69287
69288         Avoid a link-time failure on some Linux systems.
69289         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69290         (otherwise).
69291         (__mon_yday): Declare with the STATIC attribute.
69292         (__mktime_internal): Likewise.
69293         Based on a report from Greg Schafer.
69294
69295 2002-11-23  Jim Meyering  <jim@meyering.net>
69296
69297         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69298         Use `unsigned', not `int', as type of index.
69299
69300         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69301
69302         * lib/fsusage.c: Remove unneeded parentheses around operands of
69303         `defined'.
69304
69305 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69306
69307         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69308         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69309         so that we can be included first.
69310         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69311         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69312         No need to include stddef.h or sys/types.h any more.
69313         Surround local include files with "", not "<>".
69314         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69315         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69316         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69317         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69318         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69319         (ISPRINT): Remove; no longer needed now that we assume C89.
69320
69321         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69322         Preserve errno.
69323
69324         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69325         quotearg_char): Use SIZE_MAX rather than
69326         (size_t) -1 when we are talking about "infinity".
69327
69328         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69329
69330 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69331
69332         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69333         hint that one should use `if (! x) abort ();' rather than `assert
69334         (x);', and anyway it's one less thing to worry about configuring.
69335         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69336         hash_rehash, hash_insert): Use abort rather than assert.
69337
69338 2002-11-22  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/safe-read.h: Assume C89. Add comments.
69341         (safe_read): Change return type to size_t.
69342         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69343         byte counts > SSIZE_MAX correctly.
69344         * lib/safe-write.h: New file.
69345         * lib/safe-write.c: New file.
69346         * lib/full-read.h: New file.
69347         * lib/full-read.c: New file.
69348         * lib/full-write.h: Assume C89. Add comments.
69349         * lib/full-write.c: Include safe-write.h.
69350         (full_write): Rewritten to use safe_write.
69351         Suggested by Jim Meyering and Paul Eggert.
69352
69353 2002-11-21  Jim Meyering  <jim@meyering.net>
69354
69355         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69356
69357         Merge in changes from the coreutils.
69358
69359         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69360         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69361         <stdint.h>.
69362         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69363         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69364         int.  Work more efficiently if X is the same width as uintmax_t.
69365         Do not compare X to -1, to avoid bogus compiler warning.
69366         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69367         Don't assume that f_frsize and f_bsize are the same type.
69368
69369         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69370         warning on FreeBSD.
69371
69372         * lib/makepath.c (make_path): Restore umask *before* creating the final
69373         component.
69374         (make_path): Minor reformatting.
69375
69376         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69377         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69378         HAVE_MALLOC/HAVE_REALLOC.
69379
69380         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69381         dummy ones.  At least on GNU/Linux systems, `auto' means something
69382         else.
69383         From Michael Stone.
69384
69385 2002-11-21  Bruno Haible  <bruno@clisp.org>
69386
69387         Remove case insensitive option matching.
69388         * lib/argmatch.h (argcasematch): Remove declaration.
69389         (ARGCASEMATCH): Remove macro.
69390         (__xargmatch_internal): Remove case_sensitive argument.
69391         (XARGMATCH): Update.
69392         (XARGCASEMATCH): Remove macro.
69393         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69394         case_sensitive argument.
69395         (argcasematch): Remove function.
69396         (__xargmatch_internal): Remove case_sensitive argument.
69397         (main): Use XARGMATCH instead of XARGCASEMATCH.
69398
69399         * lib/xmalloc.c: Change compile-time error message. Add comment about
69400         required autoconf version.
69401
69402 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69403
69404         Merge argmatch cleanups from Bison.  Assume C89.
69405
69406         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69407         Include stdlib.h, for EXIT_FAILURE.
69408         Always include <string.h>, since we assume C89.
69409         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69410         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69411         Include <stddef.h> instead, since it's all we need for size_t.
69412         (PARAMS): Remove.  All uses removed.
69413         (ARRAY_CARDINALITY): Do not bother to #undef.
69414         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69415         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69416         Remove unnecessary parentheses.
69417         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69418         Insert necessary parentheses.
69419         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69420         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69421
69422 2002-11-19  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69425         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69426
69427         * lib/mbswidth.h (PARAMS): Remove macro.
69428         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69429         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69430
69431         * lib/gcd.h (PARAMS): Remove macro.
69432         (gcd): Use ANSI C function declarations.
69433         * lib/gcd.c (gcd): Likewise.
69434
69435 2002-11-15  Bruno Haible  <bruno@clisp.org>
69436
69437         * lib/strcspn.c: Include <stddef.h>.
69438         (strcspn): Use ANSI C function declaration. Change return type to
69439         size_t. Use NULL.
69440         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69441         (strpbrk): Use NULL.
69442         * lib/strpbrk.h (PARAMS): Remove macro.
69443         (strpbrk): Use ANSI C function declaration.
69444         * lib/strstr.c: Don't include <sys/types.h>.
69445         * lib/strstr.h (PARAMS): Remove macro.
69446         (strstr): Use ANSI C function declarations.
69447
69448 2002-11-14  Karl Berry  <karl@gnu.org>
69449
69450         * config/mkinstalldirs: `do' on separate line, instead of
69451         `for var; do'.
69452
69453 2002-11-06  Bruno Haible  <bruno@clisp.org>
69454
69455         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69456         * lib/gcd.c (gcd): Likewise.
69457
69458 2002-11-05  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/gcd.h: New file, from gettext-0.11.5.
69461         * lib/gcd.c: New file, from gettext-0.11.5.
69462
69463 2002-11-05  Bruno Haible  <bruno@clisp.org>
69464
69465         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69466         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69467         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69468         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69469
69470         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
69471         <libintl.h>.
69472         * lib/makepath.c: Include gettext.h instead of <locale.h> and
69473         <libintl.h>.
69474
69475         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
69476         * lib/human.c: Include gettext.h instead of <libintl.h>.
69477         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
69478         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
69479         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
69480         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
69481         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
69482         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
69483         (textdomain): Remove definition.
69484         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
69485
69486         * lib/long-options.c: Remove include of <libintl.h> and definition of
69487         _.
69488         * lib/same.c: Remove include of <libintl.h> and definition of _.
69489
69490 2002-11-04  Owen Taylor  <otaylor@redhat.com>
69491
69492         * lib/config.charset: A few additions for Solaris.
69493
69494 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69495
69496         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
69497         * lib/localcharset.c (locale_charset): Declare as extern "C".
69498
69499 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
69500
69501         * lib/config.charset: msdos in uk_UA uses CP1125.
69502
69503 2002-11-04  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
69506         * lib/strcase.h: New file, from GNU gettext-0.11.5.
69507         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
69508         * lib/strstr.h: New file, from GNU gettext-0.11.5.
69509         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
69510
69511 2002-11-04  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/localcharset.c (locale_charset): Don't return an empty string.
69514
69515 2002-11-04  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
69518         aliases.
69519
69520 2002-11-04  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/config.charset: Update for newest glibc. Add canonical names
69523         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
69524
69525 2002-11-04  Bruno Haible  <bruno@clisp.org>
69526
69527         * lib/config.charset: Add support for NetBSD.
69528
69529 2002-11-04  Bruno Haible  <bruno@clisp.org>
69530
69531         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
69532
69533 2002-11-01  Bruno Haible  <bruno@clisp.org>
69534
69535         * configure.in: Add AC_CONFIG_AUX_DIR call.
69536         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
69537         test/Makefile.
69538         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
69539
69540 2002-09-28  Karl Berry  <karl@gnu.org>
69541
69542         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
69543         installed automake until the next release, since changes have been
69544         made.
69545
69546 2002-09-25  Karl Berry  <karl@gnu.org>
69547
69548         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
69549         * lib/getopt*: copy from libc/posix.
69550         * lib/gettext.h: copy from gettext.
69551         * lib/.cppi-disable: add strdup.c, gettext.h.
69552
69553 2002-09-25  Karl Berry  <karl@gnu.org>
69554
69555         * config/srclist.txt: enable gettext.h check.
69556         * config/config.{guess,sub}: update from prep.
69557         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
69558                 from automake 1.6.3.
69559         See srclist*.
69560
69561 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
69562
69563         * regex.c (PATFETCH): Remove the translating fetch.
69564         (PATFETCH_RAW): Rename to PATFETCH.
69565         (set_image_of_range): New fun.
69566         (SET_RANGE_TABLE_WORK_AREA): Use it.
69567         (regex_compile): Don't translate the pattern chars so eagerly.
69568         Only do it when inserting an `exactn' bytecode or when handling
69569         a char-range.
69570         (mutually_exclusive_p): Avoid empty statement.
69571
69572 2002-07-06  Jim Meyering  <meyering@lucent.com>
69573
69574         * m4/README: Don't mention Makefile.am.in.
69575         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
69576
69577 2002-07-01  Jim Meyering  <meyering@lucent.com>
69578
69579         * lib/c-stack.c: Include sys/time.h.
69580         From Volker Borchert.
69581
69582 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69583
69584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
69585
69586 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69587
69588         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
69589         New macro.  Use it uniformly instead of
69590         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
69591         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
69592         reported by Vin Shelton.
69593
69594 2002-06-22  Paul Eggert  <eggert@twinsun.com>
69595
69596         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
69597         Do not assume SA_SIGINFO behavior.
69598         Bug reported by Jim Meyering on NetBSD 1.5.2.
69599
69600 2002-06-22  Jim Meyering  <meyering@lucent.com>
69601
69602         * m4/c-stack.m4: New file, from diffutils-2.8.2.
69603         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
69604
69605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
69606         now that configure.ac uses AC_GNU_SOURCE.
69607         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
69608         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
69609
69610         Update to latest tools.  Suggestions from Paul Eggert.
69611         * m4/stdbool.m4: New file, from diffutils-2.8.2.
69612         * m4/gnu-source.m4: Update from diffutils-2.8.2.
69613         * m4/fnmatch.m4: Likewise.
69614         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
69615         to AC_HEADER_STDBOOL
69616
69617 2002-06-22  Jim Meyering  <meyering@lucent.com>
69618
69619         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
69620         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
69621
69622 2002-06-22  Jim Meyering  <meyering@lucent.com>
69623
69624         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
69625
69626         * lib/exitfail.c, exitfail.h: Likewise.
69627         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
69628
69629         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
69630         of fnmatch.h.
69631         (EXTRA_DIST): Add fnmatch_loop.c.
69632         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
69633
69634         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
69635         * lib/fnmatch.c: Update from diffutils-2.8.2.
69636         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
69637         * lib/fnmatch.h: Remove file.
69638
69639 2002-06-21  Jim Meyering  <meyering@lucent.com>
69640
69641         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
69642         * m4/mbrtowc.m4: Likewise.
69643
69644         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
69645         * m4/mbswidth.m4: Reflect name change:
69646         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
69647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69648
69649         * m4/lib-link.m4: Update from gettext-0.11.2.
69650         * m4/gettext.m4: Likewise.
69651
69652         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
69653         From Alfred M. Szmidt.
69654
69655 2002-06-18  Paul Eggert  <eggert@twinsun.com>
69656
69657         * lib/file-type.h: Report an error if neither S_ISREG nor
69658         S_IFREG is defined, instead of using a test specific to glibc
69659         2.2.  This should be safe, since POSIX requires S_ISREG and
69660         Unix Version 7 had S_IFREG.  We don't need to check for
69661         <sys/types.h> since we don't use any symbols that it defines.
69662
69663 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
69664
69665         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
69666         $@-t, so that each temporary file name is unique and valid in the first
69667         8 characters, for operation under DOS.
69668
69669 2002-06-15  Paul Eggert  <eggert@twinsun.com>
69670
69671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
69672
69673 2002-06-15  Jim Meyering  <meyering@lucent.com>
69674
69675         Work even with DJGPP 2.03, which lacks support for symlinks.
69676         From Richard Dawe.
69677         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
69678         is defined.
69679         * lib/lchown.c (S_ISLNK): Likewise.
69680
69681 2002-06-15  Jim Meyering  <meyering@lucent.com>
69682
69683         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
69684         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
69685         have been included before this file.
69686
69687 2002-06-14  Jim Meyering  <meyering@lucent.com>
69688
69689         * lib/file-type.h: Use the version from diffutils-2.8.2.
69690         * lib/file-type.c: Likewise.
69691
69692 2002-06-07  Jim Meyering  <meyering@lucent.com>
69693
69694         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
69695         They're needed at least for NetBSD 1.5.2.
69696         ($statxfs_includes): Include those same headers.
69697         ($statxfs_includes): Include sys/vfs.h if available.
69698         ($statxfs_includes): Likewise for sys/statvfs.h.
69699         Check for the following members in both structs statfs and statvfs:
69700         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
69701
69702 2002-06-01  Jim Meyering  <meyering@lucent.com>
69703
69704         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
69705         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
69706
69707 2002-05-28  Jim Meyering  <meyering@lucent.com>
69708
69709         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
69710         Reported by Volker Borchert.
69711
69712 2002-05-27  Jim Meyering  <meyering@lucent.com>
69713
69714         Fix a problem seen only on nonconforming systems whereby ls.c's
69715         use of localtime, and then of gettimeofday would cause trouble:
69716         the localtime call used to initialize rpl_gettimeofday's save
69717         mechanism would clobber ls's current local time information so
69718         that in any long listing the first file would always be listed
69719         with date 1970-01-01.  Analysis by Volker Borchert.
69720
69721         * lib/gettimeofday.c (localtime): Undefine.
69722         (rpl_localtime): New function.
69723
69724 2002-05-27  Jim Meyering  <meyering@lucent.com>
69725
69726         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
69727         localtime.
69728
69729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
69730         use the replacement function; it wouldn't resolve at link time.
69731         Reported by Volker Borchert.
69732
69733 2002-05-22  Jim Meyering  <meyering@lucent.com>
69734
69735         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
69736         file-type.h.
69737         * lib/file-type.h: New file.
69738         * lib/file-type.c (file_type): New file/function.  Extracted from
69739         diffutils.
69740
69741 2002-04-30  Jim Meyering  <meyering@lucent.com>
69742
69743         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
69744
69745 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69746
69747         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
69748
69749 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69750
69751         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
69752         Do not check for alloca.h (no longer used) or stdbool.h (was never
69753         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
69754
69755 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69756
69757         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
69758
69759 2002-04-29  Jim Meyering  <meyering@lucent.com>
69760
69761         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
69762         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
69763         Use AC_FUNC_STRNLEN here instead.
69764
69765         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
69766         With autoconf-2.53a, it's part of AC_PROG_CC.
69767
69768 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69769
69770         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
69771         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
69772
69773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69774
69775         * lib/sig2str.h, lib/sig2str.c: New files.
69776         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
69777
69778 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69779
69780         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
69781         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
69782         of 127, since 64 is the largest conceivable number for ancient
69783         nonstandard hosts.
69784         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
69785
69786 2002-04-28  Jim Meyering  <meyering@lucent.com>
69787
69788         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
69789
69790 2002-04-24  Jim Meyering  <meyering@lucent.com>
69791
69792         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
69793         (jm_PREREQ): Use it.
69794
69795         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
69796         mach/mach.h fcntl.h.
69797         Check for this function: setlocale.
69798
69799 2002-04-24  Jim Meyering  <meyering@lucent.com>
69800
69801         * lib/gettext.h: New file, from Gettext.
69802         * lib/Makefile.am (INCLUDES): Remove -I../intl.
69803         (libfetish_a_SOURCES): Add gettext.h.
69804
69805 2002-04-16  Jim Meyering  <meyering@lucent.com>
69806
69807         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
69808         ut_pid, ut_id, ut_exit.
69809
69810 2002-04-16  Jim Meyering  <meyering@lucent.com>
69811
69812         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
69813         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
69814         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
69815
69816 2002-04-12  Jim Meyering  <meyering@lucent.com>
69817
69818         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
69819         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
69820         existence of the getmntinfo function.  Needed for Darwin 5.3.
69821
69822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
69823         This is necessary at least on Darwin 5.3.
69824
69825         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
69826         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
69827         strnlen.o in the library, and that makes some versions of ranlib
69828         object.
69829
69830 2002-04-12  Jim Meyering  <meyering@lucent.com>
69831
69832         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
69833
69834 2002-04-09  Jim Meyering  <meyering@lucent.com>
69835
69836         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
69837         to be more precise.  Rather than saying we're checking whether the
69838         function `works', say what we're testing.
69839         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
69840         Reported by Bruno Haible.
69841
69842 2002-03-10  Jim Meyering  <meyering@lucent.com>
69843
69844         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
69845         Suggestion from Santiago Vila.
69846
69847 2002-03-08  Jim Meyering  <meyering@lucent.com>
69848
69849         * lib/rename.c: Mention that this wrapper is needed also on
69850         mips-dec-ultrix4.4 systems.
69851
69852 2002-03-02  Jim Meyering  <meyering@lucent.com>
69853
69854         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
69855         not HAVE_CLOCK_SETTIME.
69856
69857 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69858
69859         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
69860         Check for clock_settime.
69861
69862 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69863
69864         * lib/nanosleep.h: Rename to....
69865         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
69866
69867         * lib/gettime.c: New file.
69868         * lib/settime.c: New file.
69869         * lib/stime.c: Remove.
69870
69871         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
69872         timespec.h.  Remove nanosleep.h.
69873
69874 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69875
69876         * m4/acl.m4: New file.
69877         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
69878         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
69879
69880 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69881
69882         * lib/acl.c, lib/acl.h: New files.
69883         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
69884
69885 2002-02-24  Jim Meyering  <meyering@lucent.com>
69886
69887         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
69888         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
69889         cause trouble.  Reported by Nelson Beebe.
69890
69891 2002-02-23  Paul Eggert  <eggert@twinsun.com>
69892
69893         * lib/path-concat.c (xpath_concat): Reorder code to pacify
69894         compilers that don't know that xalloc_die never returns.
69895
69896 2002-02-20  Jim Meyering  <meyering@lucent.com>
69897
69898         * lib/getdate.c: Regenerate using bison-1.33.
69899
69900 2002-02-17  Jim Meyering  <meyering@lucent.com>
69901
69902         * config/config.guess (main): Don't use `head -1'; it's no longer
69903         portable. Use `sed 1q' instead.
69904
69905 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
69906
69907         * m4/codeset.m4: Upgrade to gettext-0.11.
69908         * m4/gettext.m4: Upgrade to gettext-0.11.
69909         * m4/glibc21.m4: Upgrade to gettext-0.11.
69910         * m4/iconv.m4: Upgrade to gettext-0.11.
69911         * m4/isc-posix.m4: Upgrade to gettext-0.11.
69912         * m4/lcmessage.m4: Upgrade to gettext-0.11.
69913         * m4/lib-ld.m4: New file, from gettext-0.11.
69914         * m4/lib-link.m4: New file, from gettext-0.11.
69915         * m4/lib-prefix.m4: New file, from gettext-0.11.
69916         * m4/progtest.m4: Upgrade to gettext-0.11.
69917
69918 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69919
69920         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
69921         (jm_PREREQ): Use it.
69922
69923 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69924
69925         * lib/posixver.c, lib/posixver.h: New files.
69926         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69927
69928 2002-02-02  Paul Eggert  <eggert@twinsun.com>
69929             Bruno Haible  <bruno@clisp.org>
69930
69931         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
69932         (fwrite_success_callback): New declaration.
69933         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
69934         print_unicode_char. Call failure callback instead of error.
69935         (fwrite_success_callback): New function.
69936         (exit_failure_callback): New function.
69937         (fallback_failure_callback): New function.
69938         (print_unicode_char): Call unicode_to_mb.
69939
69940 2002-01-26  Jim Meyering  <meyering@lucent.com>
69941
69942         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
69943         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
69944
69945 2002-01-26  Jim Meyering  <meyering@lucent.com>
69946
69947         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
69948
69949 2002-01-22  Paul Eggert  <eggert@twinsun.com>
69950
69951         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
69952
69953 2002-01-22  Jim Meyering  <meyering@lucent.com>
69954
69955         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
69956         Otherwise, some versions of automake would omit the rule that makes
69957         Makefile from Makefile.in.
69958
69959 2002-01-21  Paul Eggert  <eggert@twinsun.com>
69960
69961         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
69962         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69963         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
69964         (memcoll): Set errno to zero if there is no error.
69965
69966         * lib/quotearg.c (quotearg_buffer_restyled):
69967         Fix bug with quoting buffers containing NUL when backslashing escapes.
69968         This bug was exposed by the other changes in this patch.
69969         (quotearg_n_options): New arg ARGSIZE.
69970         All callers changed.
69971         (quoting_options_from_style): New function.
69972         (quotearg_n_style): Use it.
69973         (quotearg_n_style_mem): New function.
69974
69975         * lib/quotearg.h (quotearg_n_style_mem): New function.
69976
69977 2002-01-19  Jim Meyering  <meyering@lucent.com>
69978
69979         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
69980         Remove useless quotes: DF_PROG="df".
69981         * m4/strnlen.m4: New file.
69982
69983 2002-01-16  Paul Eggert  <eggert@twinsun.com>
69984
69985         * lib/backupfile.c (ISDIGIT): Comment fix.
69986         * lib/getdate.y (ISDIGIT): Likewise.
69987         * lib/posixtm.c (ISDIGIT, year): Likewise.
69988         * lib/strverscmp.c (ISDIGIT): Likewise.
69989         * lib/userspec.c (ISDIGIT): Likewise.
69990
69991 2002-01-16  Jim Meyering  <meyering@lucent.com>
69992
69993         * lib/getdate.y: Add three semicolons, each just before a closing
69994         brace. Bison (as of version 1.31) no longer papers over that mistake.
69995
69996 2002-01-05  Jim Meyering  <meyering@lucent.com>
69997
69998         * lib/version-etc.c (version_etc_copyright): Update copyright year.
69999
70000 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70001
70002         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70003         not silently exit merely because the output buffer happens to
70004         have nothing pending.
70005
70006 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70007
70008         See the big note in ../ChangeLog.
70009         * lib/human.c (suffixes): Prefer K to k for 1024.
70010         (generate_suffix_backwards): New function.
70011         (human_readable_inexact): Use it.
70012         * lib/xstrtol.c (__xstrtol): If there is no number but there
70013         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70014         Accept 'K' as well as 'k'.
70015
70016 2001-12-15  Jim Meyering  <meyering@lucent.com>
70017
70018         * lib/regex.h (__restrict_arr): Update from libc.
70019
70020         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70021         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70022         (STREQ): Define.
70023
70024 2001-12-14  Jim Meyering  <meyering@lucent.com>
70025
70026         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70027         Suggestion from Bruno Haible.
70028
70029 2001-12-10  Jim Meyering  <meyering@lucent.com>
70030
70031         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70032         xrealloc, Instead, include "xalloc.h".
70033         (initbuffer): Don't cast xmalloc return value to char*.
70034         (readline): Reword comment.
70035         Don't cast xrealloc return value to char*
70036         Return NULL, not 0.
70037
70038 2001-12-09  Jim Meyering  <meyering@lucent.com>
70039
70040         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70041         about `signed and unsigned type in conditional expression'.
70042         * lib/posixtm.c (posix_time_parse): Likewise.
70043
70044         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70045
70046         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70047         to avoid a pedantic warning.
70048
70049         * lib/getstr.c: Don't include assert.h.
70050         (getstr): Remove warning-evoking assertions.
70051         Return -1 if offset parameter is out of bounds.
70052         Change the type of a local from int to size_t.
70053
70054         * lib/strftime.c (my_strftime_localtime_r): Include this function
70055         definition in the `#if ! HAVE_TM_GMTOFF' block.
70056
70057         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70058         Include xalloc.h instead.
70059
70060 2001-12-02  Jim Meyering  <meyering@lucent.com>
70061
70062         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70063         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70064         included.
70065
70066         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70067         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70068
70069 2001-11-30  Akim Demaille  <akim@epita.fr>
70070
70071         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70072         before being defined.
70073
70074 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70075
70076         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70077         First arg is int, not unsigned.
70078         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70079         (SIZE_MAX, UINT_MAX): New macros.
70080         (quotearg_n_options): Abort if N is negative.
70081         Avoid overflow check on hosts where size_t is 64 bits and int
70082         is 32 bits, as overflow is impossible there.
70083         Fix off-by-one typo that caused unnecessary reallocation.
70084
70085 2001-11-27  Jim Meyering  <meyering@lucent.com>
70086
70087         * lib/tempname.c: Merge with version from libc.
70088         * lib/regex.c: Likewise.
70089
70090         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70091         systems for which STDC_HEADERS is 0, it was not included, resulting in
70092         a warning about an integer-to-pointer conversion problem with getenv.
70093         Reported by Volker Borchert.
70094
70095 2001-11-26  Jim Meyering  <meyering@lucent.com>
70096
70097         * lib/gtod.h: Remove file.
70098         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70099         * lib/gettimeofday.c: Don't include gtod.h.
70100         (GTOD_init): Remove function.
70101         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70102         Suggestion from Volker Borchert.
70103
70104 2001-11-23  Jim Meyering  <meyering@lucent.com>
70105
70106         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70107         it.
70108         * lib/hash.c (struct hash_table): Define it here instead.
70109
70110 2001-11-22  Jim Meyering  <meyering@lucent.com>
70111
70112         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70113
70114 2001-11-20  Jim Meyering  <meyering@lucent.com>
70115
70116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70117         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70118
70119 2001-11-19  Jim Meyering  <meyering@lucent.com>
70120
70121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70122         directory.  Use "conftestXXXXXX" as the template.
70123         Suggestion from Paul Eggert.
70124
70125         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70126         immediately, so the test doesn't mistakenly hit the max-open-files
70127         limit.
70128
70129 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70130
70131         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70132         (TEMPORARIES): New macro.
70133         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70134         removes an artificial limitation (e.g. HP-UX 10.20, where
70135         TMP_MAX is 17576).
70136
70137 2001-11-18  Jim Meyering  <meyering@lucent.com>
70138
70139         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70140
70141 2001-11-18  Jim Meyering  <meyering@lucent.com>
70142
70143         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70144         on SunOS 4.
70145
70146         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70147         files will be created before anything else.
70148
70149 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70150
70151         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70152         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70153
70154 2001-11-17  Jim Meyering  <meyering@lucent.com>
70155
70156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70157         Prompted by a report from Bob Proulx.
70158
70159         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70160         Instead, require UTILS_FUNC_MKSTEMP.
70161
70162 2001-11-17  Jim Meyering  <meyering@lucent.com>
70163
70164         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70165         Now, that's done as part of AC_FUNC_STRTOD.
70166
70167 2001-11-17  Jim Meyering  <meyering@lucent.com>
70168
70169         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70170         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70171         rather than group writable.  Patch by Juan F. Codagnone.
70172
70173         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70174         xrealloc, Instead, include "xalloc.h".
70175
70176         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70177         Remove explicit declarations of xmalloc, xrealloc,
70178         and xstrdup.  Instead, include "xalloc.h".
70179
70180         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70181         unlocked-io.h.
70182         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70183         Likewise.
70184         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70185
70186         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70187         Reported by Padraig Brady.
70188
70189         * lib/mkstemp.c: #undef mkstemp.
70190         Include config.h.
70191         (rpl_mkstemp): Rename from mkstemp.
70192         Protoize.
70193
70194 2001-11-16  Jim Meyering  <meyering@lucent.com>
70195
70196         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70197         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70198         determine the amount of total physical memory, use pstat_getstatic.
70199         HPUX-11 doesn't define _SC_PHYS_PAGES.
70200         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70201         If sysconf couldn't be used to determine the amount of available
70202         physical memory, use both pstat_getstatic and pstat_getdynamic.
70203         Based on a patch from Bob Proulx.
70204
70205 2001-11-10  Jim Meyering  <meyering@lucent.com>
70206
70207         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70208         (jm_PREREQ): Use it.
70209
70210 2001-11-09  Jim Meyering  <meyering@lucent.com>
70211
70212         * m4/jm-macros.m4: Require autoconf-2.52f.
70213         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70214         Use these AC_-prefixed names, not the AM_-prefixed ones.
70215
70216         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70217
70218 2001-11-05  Jim Meyering  <meyering@lucent.com>
70219
70220         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70221
70222 2001-11-04  Jim Meyering  <meyering@lucent.com>
70223
70224         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70225         $DEFS.
70226
70227 2001-11-03  Jim Meyering  <meyering@lucent.com>
70228
70229         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70230         of AC_DEFUN.
70231
70232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70233         know the name of the variable in the macro definition.
70234
70235 2001-11-03  Jim Meyering  <meyering@lucent.com>
70236
70237         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70238         in argmatch_to_argument call.
70239
70240         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70241         argument.
70242
70243         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70244         e.g., a fault due to an attempt to free a NULL pointer.
70245
70246 2001-11-01  Jim Meyering  <meyering@lucent.com>
70247
70248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70249         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70250
70251 2001-11-01  Jim Meyering  <meyering@lucent.com>
70252
70253         * lib/dirfd.c, lib/dirfd.h: New files.
70254         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70255
70256         * lib/hash.c (hash_print) [TESTING]: Clean up.
70257
70258 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70259
70260         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70261         to avoid a warning if -Wall.
70262
70263 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70264
70265         * README: New file
70266         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70267         (per RMS's instructions, this is now the canonical source)
70268         * lgpl/, gpl/: New directories.
70269
70270 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70271
70272         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70273
70274 2001-10-21  Jim Meyering  <meyering@lucent.com>
70275
70276         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70277         this code would end up calling gettext even in packages built
70278         with --disable-nls.
70279         * lib/getopt.c (_): Likewise.
70280         * lib/regex.c (_): Likewise.
70281
70282 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70283
70284         * m4/error.m4 (jm_PREREQ_ERROR):
70285         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70286         AC_FUNC_STRERROR_R does that.
70287         Check for strerror declaration.
70288
70289         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70290         are supposed to have them these days.
70291         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70292         Merge changes from latest Autoconf CVS.
70293         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70294         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70295         POSIX decided to standardize on the int flavor of strerror_r.
70296
70297 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70298
70299         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70300         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70301         Use strerror_r that is only a macro, even if it is not a function.
70302         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70303         (private_strerror): Use prototypes, not old-style function definition.
70304         (print_errno_message): New function.
70305         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70306         char*-flavored one.
70307         (error_tail, error, error_at_line): Use it.
70308
70309 2001-10-11  Jim Meyering  <meyering@lucent.com>
70310
70311         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70312         and quote_n (1, ... to avoid clobbering a buffer.
70313
70314 2001-10-05  Jim Meyering  <meyering@lucent.com>
70315
70316         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70317         hash-pjw.h.
70318         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70319         * lib/hash-pjw.h: New file.
70320
70321 2001-09-30  Jim Meyering  <meyering@lucent.com>
70322
70323         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70324         `struct fsstat' has the `f_fstypename' member.
70325         Use that to define FS_TYPE, which is now used to make
70326         the getfsstat link test tighter.
70327
70328 2001-09-30  Jim Meyering  <meyering@lucent.com>
70329
70330         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70331         Include <sys/ucred.h>, for Apple Darwin.
70332         Include sys/mount.h and sys/fs_types.h only if available.
70333         (FS_TYPE): Define.
70334         (read_filesystem_list): Use FS_TYPE.
70335
70336 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70337
70338         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70339         a boolean context.
70340
70341 2001-09-29  Jim Meyering  <meyering@lucent.com>
70342
70343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70344         [one-argument getmntent function]): Include stdio.h before mntent.h.
70345         SunOS 4.1.x needs it for the declaration of `FILE'.
70346         Patch by Volker Borchert.
70347
70348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70349         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70350         sys/fs_types.h, and make the link-test for getfsstat guard #include
70351         directives with appropriate #if HAVE_*_H tests so that we can
70352         detect getfsstat on Apple Darwin1.3.7 systems.
70353         Reported by Nelson Beebe.
70354         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70355
70356 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70357
70358         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70359         #defines strtoimax.  Also treat the other strto* functions
70360         like strtoimax.
70361
70362         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70363         Check for strtoul and strtoumax,
70364         as those declarations are made even in the signed case.
70365         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70366         Likewise, for strtol and strtoimax.
70367
70368 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70369
70370         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70371         #defines strtoimax.  Also treat the other strto* functions
70372         like strtoimax.
70373
70374         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70375         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70376         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70377
70378 2001-09-26  Jim Meyering  <meyering@lucent.com>
70379
70380         Most macros in unlocked-io.h had the wrong number of arguments.
70381         * lib/gen-uio: New script.
70382         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70383         * lib/unlocked-io.hin: Remove file.
70384         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70385         rather than trying to embed it here.
70386         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70387         Reported by Padraig Brady.
70388
70389 2001-09-25  Volker Borchert  <bt@teknon.de>
70390
70391         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70392         `result'.
70393
70394 2001-09-24  Jim Meyering  <meyering@lucent.com>
70395
70396         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70397
70398 2001-09-23  Jim Meyering  <meyering@lucent.com>
70399
70400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70401         instead of the mere test for existence of mntent.h.  The latter
70402         would get a false-positive on AIX 3.4 systems.
70403         In the outer getmntent if-block, don't die if neither of the getmntent
70404         tests succeeds.  Instead, just fall through and continue with the
70405         remaining tests.
70406
70407 2001-09-23  Jim Meyering  <meyering@lucent.com>
70408
70409         * lib/mountlist.c: Remove useless parentheses in #if directives.
70410         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70411         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70412
70413 2001-09-22  Jim Meyering  <meyering@lucent.com>
70414
70415         * m4/gettext.m4: New file.  From gettext.
70416         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70417         * m4/progtest.m4: Likewise
70418         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70419         * m4/glibc21.m4: Likewise.
70420
70421         * m4/libintl.m4: Remove.  No longer used.
70422
70423 2001-09-22  Jim Meyering  <meyering@lucent.com>
70424
70425         * lib/localcharset.c: Update from latest gettext.
70426         * lib/config.charset: Likewise.
70427
70428 2001-09-20  Jim Meyering  <meyering@lucent.com>
70429
70430         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70431         strtoimax.
70432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70433         strtoumax.
70434
70435 2001-09-20  Jim Meyering  <meyering@lucent.com>
70436
70437         * lib/xstrtol.c (strtoimax): Guard declaration with
70438         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70439         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70440         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70441         (strtoumax): Likewise, for completeness (it wasn't necessary).
70442
70443 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70444
70445         * lib/strtoimax.c (HAVE_LONG_LONG):
70446         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70447         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70448         to work around bug in IBM C compiler.
70449
70450 2001-09-17  Jim Meyering  <meyering@lucent.com>
70451
70452         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70453         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70454         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70455         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70456         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70457         whenever the right hand side need not be expanded by the shell.
70458
70459 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70460
70461         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70462         library.  It's not correct, as some older glibcs are buggy.
70463         fnmatch wasn't fixed until glibc 2.2.
70464
70465         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
70466         special shell magic here.
70467
70468 2001-09-16  Jim Meyering  <meyering@lucent.com>
70469
70470         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
70471         * m4/jm-macros.m4: Require it.
70472
70473 2001-09-16  Jim Meyering  <meyering@lucent.com>
70474
70475         * lib/mkdir.c: New file.
70476
70477 2001-09-15  Jim Meyering  <meyering@lucent.com>
70478
70479         * m4/jm-macros.m4: Check for help2man.
70480
70481 2001-09-11  Jim Meyering  <meyering@lucent.com>
70482
70483         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
70484         The body, by Paul Eggert, was moved here from configure.in.
70485         * m4/jm-macros.m4: Require UTILS_HOST_OS.
70486
70487 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70488
70489         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
70490         (jm_PREREQ): Use it.
70491
70492 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70493
70494         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
70495         Use ssize_t, not int, to store result of readlink.
70496         Check for ssize_t overflow as well as size_t overflow,
70497         as POSIX says the result of readlink is implementation-defined
70498         when ssize_t overflows.
70499         Remove unnecessary cast to char*.
70500         Use free+malloc instead of realloc, as the storage doesn't need
70501         to be preserved and it's clearer and can be more efficient that way.
70502         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
70503         * lib/xreadlink.h (xreadlink): Update prototype.
70504
70505 2001-09-04  Paul Eggert  <eggert@twinsun.com>
70506
70507         * lib/xgetcwd.c: Revert some of the previous change; intead,
70508         fix the HAVE_GETCWD_NULL code to behave more like the
70509         !HAVE_GETCWD_NULL code used to.
70510
70511         Include "xalloc.h".
70512         (xgetcwd): Do not return NULL when memory is exhausted; instead,
70513         invoke xalloc_die.
70514
70515 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70516
70517         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
70518         sys/param.h, as pathmax.h includes them.
70519
70520 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70521
70522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
70523         (jm_PREREQ_XGETCWD): New macro.
70524
70525         * m4/getcwd.m4: New file.
70526
70527 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70528
70529         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
70530         like the HAVE_GETCWD_NULL code.
70531         Include pathmax.h if not HAVE_GETCWD.
70532         Do not include xalloc.h.
70533         (INITIAL_BUFFER_SIZE): New symbol.
70534         Do not use xmalloc / xrealloc, since the caller is responsible for
70535         handling errors.  Preserve errno around `free' during failure.
70536         Do not overrun buffer when using getwd.
70537
70538 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70539
70540         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
70541         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
70542         getcwd (NULL, 0).
70543
70544 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70545
70546         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
70547         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
70548         spotted by Jim Meyering.
70549
70550 2001-09-03  Jim Meyering  <meyering@lucent.com>
70551
70552         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
70553         failure.
70554
70555 2001-09-02  Jim Meyering  <meyering@lucent.com>
70556
70557         * lib/error.c: Update from GNU libc.
70558
70559 2001-09-01  Jim Meyering  <meyering@lucent.com>
70560
70561         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
70562         Used by df.
70563
70564 2001-09-01  Jim Meyering  <meyering@lucent.com>
70565
70566         * lib/xreadlink.c: New file.
70567         * lib/xreadlink.h: New file.
70568         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
70569         xreadlink.h.
70570
70571         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
70572         doesn't conflict with sparc Solaris 7's definition in
70573         /usr/include/sys/int_types.h.
70574
70575         * lib/exclude.c: Use `""', not `<>' to #include non-system header
70576         files.
70577         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
70578         and strncasecmp as r-values.  Unixware didn't have declarations.
70579
70580 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70581
70582         * lib/xstrtol.h: Add copyright notice.
70583         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
70584         LONGINT_INVALID_SUFFIX_CHAR.
70585
70586 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70587
70588         * lib/xstrtol.c (strtoimax): New decl.
70589
70590 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70591
70592         * lib/xgetcwd.c: Don't include pathmax.h.
70593         Include stdlib.h and unistd.h if available.
70594         Include xalloc.h.
70595         (xmalloc, xstrdup, free): Remove decls.
70596         (xgetcwd): Don't assume sizes fit in unsigned.
70597         Check for overflow when computing sizes.
70598         Simplify reallocation code.
70599
70600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70601
70602         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
70603         a directory's st_size can have an arbitrary value, so the old
70604         usage could waste an arbitrary amount of memory.  All uses
70605         changed.
70606         * lib/savedir.h: Update prototype.
70607
70608 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70609
70610         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
70611
70612         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
70613         old strtoimax.c.
70614
70615         Also, make the following further changes to make this file's
70616         configuration more similar to that of strtol.c:
70617         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
70618         (strtoumax, uintmax_t, strtoull, strtol): Remove.
70619         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
70620         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
70621         changed to signed values.
70622
70623         And make the following changes as well:
70624         Fix copyright notice, as 1999 was missing.
70625         (verify): New macro.
70626         (strtoimax): Check sizes at compile-time, not run-time.
70627         Prefer strtol to strtoll if both work.
70628         (main): Remove; it was not that useful and was a pain to maintain.
70629
70630         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
70631
70632 2001-08-31  Jim Meyering  <meyering@lucent.com>
70633
70634         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
70635         Use an initial, malloc'd, buffer of length 128 rather than
70636         a statically allocated one of length 1024.
70637
70638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70639
70640         Simplify code, partly by assuming autoconf 2.52 semantics.
70641
70642         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
70643
70644         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
70645         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
70646         All uses removed.
70647         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
70648         Move AC_REQUIRE to next-to-top level, to avoid confusion.
70649         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
70650         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
70651         jm_AC_HEADER_INTTYPES_H.
70652         * m4/jm-macros.m4 (jm_MACROS): Likewise.
70653
70654         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
70655
70656         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70657         Quote first arg of AC_DEFUN.
70658         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
70659         since they are needed to parse the include file even if we need
70660         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
70661         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
70662         but with opposite signedness.
70663
70664 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70665
70666         Merge 'exclude' changes from tar 1.13.22.
70667         This fixes one or two unlikely storage allocation overflow bugs,
70668         but doesn't change user-visible behavior otherwise.
70669
70670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70671
70672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
70673         (jm_PREREQ_EXCLUDE): New macro.
70674
70675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70676
70677         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
70678         tm to be declared.
70679
70680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70681
70682         * lib/hash.c: Remove '2001' from copyright notice.
70683
70684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70685
70686         * lib/full-write.h: New file.
70687         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
70688         * lib/full-write.c: Correct credits, as cccp.c no longer
70689         exists and anyway it was so heavily changed from the old cccp
70690         code as to be unrecognizable.  Include full-write.h.
70691         (full_write) Return size_t, with short writes meaning failure.
70692         All callers changed.  This fixes a bug with large buffers
70693         on 64-bit hosts.
70694         * lib/utime.c: Include full-write.h.
70695
70696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70697
70698         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
70699         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
70700         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
70701         Include if available.
70702         (<xalloc.h>): Include
70703         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
70704         (verify): New macro.  Use it to verify that EXCLUDE macros do not
70705         collide with FNM macros.
70706         (struct patopts): New struct.
70707         (struct exclude): Use it, as exclude patterns now come with options.
70708         (new_exclude): Support above changes.
70709         (new_exclude, add_exclude_file):
70710         Initial size must now be a power of two to simplify overflow checking.
70711         (free_exclude, fnmatch_no_wildcards): New function.
70712         (excluded_filename): No longer requires options arg, as the options
70713         are determined by add_exclude.  Now returns bool, not int.
70714         (excluded_filename, add_exclude):
70715         Add support for the fancy new exclusion options.
70716         (add_exclude, add_exclude_file): Now takes int options arg.
70717         Check for arithmetic overflow when computing sizes.
70718         (add_exclude_file): xrealloc might modify errno, so don't
70719         realloc until after errno might be used.
70720
70721         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
70722         New macros.
70723         (free_exclude): New decl.
70724         (add_exclude, add_exclude_file): Now takes int options arg.
70725         (excluded_filename): No longer requires options arg, as the options
70726         are determined by add_exclude.  Now returns bool, not int.
70727
70728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70729
70730         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
70731
70732 2001-08-27  Jim Meyering  <meyering@lucent.com>
70733
70734         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
70735
70736         * lib/version-etc.c (N_): Remove definition.
70737         Revert most of last change.
70738         Instead, simply don't mark the `Copyright...' string for translation.
70739         Based on advice from Paul Eggert.
70740
70741         * lib/strtoxmax.c: Tweak comment.
70742
70743 2001-08-26  Jim Meyering  <meyering@lucent.com>
70744
70745         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
70746
70747         * m4/xstrtoimax.m4: New file.
70748         * m4/xstrtoumax.m4: Add comments explaining why we
70749         AC_REPLACE_FUNCS(strtol).
70750
70751 2001-08-26  Jim Meyering  <meyering@lucent.com>
70752
70753         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
70754         of copyright with `%s' so translators don't get an untranslated
70755         message in 2002.
70756         (COPYRIGHT_YEAR): Define.
70757         (version_etc): Use fprintf rather than fputs.
70758         Suggestion from Ulrich Drepper.
70759
70760         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
70761
70762         * lib/strtoll.c: New file, from GNU libc.
70763         * lib/xstrtoimax.c: New file.
70764
70765         * lib/xstrtol.h: Add xstrtoimax.
70766         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
70767         * lib/strtoimax.c: New file.  Likewise, but first define
70768         STRTOUXMAX_SIGNED.
70769
70770         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
70771         ...
70772         * lib/strtoxmax.c: ... then renamed to this.
70773
70774 2001-08-18  Paul Eggert  <eggert@twinsun.com>
70775
70776         * m4/inttypes.m4: Add AC_PREREQ(2.13).
70777         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
70778         (jm_AC_TYPE_INTMAX_T): New macro.
70779         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
70780
70781         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
70782
70783         * m4/longlong.m4: Renamed from ulonglong.m4.
70784         * m4/inttypes.m4: Renamed from inttypes_h.m4.
70785         * m4/uintmax_t.m4: Removed.
70786
70787 2001-08-13  Paul Eggert  <eggert@twinsun.com>
70788
70789         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
70790         Port to Solaris 8, where 'sed' requires a space after the 'r'
70791         command, and where sh dislikes "$/".  Clean up the spacing a bit.
70792         Redirect output to $tmp just once.
70793
70794 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
70795
70796         * lib/addext.c (<errno.h>): Include.
70797         (errno): Declare if not defined.
70798         (addext): Work correctly when pathconf returns -1 and leaves
70799         errno alone because there is no limit.  Also, work even if
70800         pathconf returns a value greater than SIZE_MAX.
70801
70802 2001-08-12  Jim Meyering  <meyering@lucent.com>
70803
70804         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
70805         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
70806         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
70807         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
70808         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
70809         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
70810         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
70811         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
70812         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
70813         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
70814         utime.m4, utimes.m4, xstrtoumax.m4:
70815         Quote the first argument in each use of AC_DEFUN.
70816
70817 2001-08-12  Jim Meyering  <meyering@lucent.com>
70818
70819         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
70820         Simply `return getcwd (NULL, 0);'.
70821         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
70822         Use 1300 as initial value for length, not PATH_MAX.
70823
70824         * lib/pathmax.h: Clean up cpp syntax.
70825
70826 2001-08-12  Jim Meyering  <meyering@lucent.com>
70827
70828         * lib/gettimeofday.c: New file.
70829         * lib/gtod.h: New file.
70830         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
70831
70832 2001-08-05  Jim Meyering  <meyering@lucent.com>
70833
70834         * m4/jm-macros.m4: Require autoconf-2.52.
70835
70836 2001-08-04  Jim Meyering  <meyering@lucent.com>
70837
70838         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
70839         stmt, to get in sync with glibc.
70840
70841 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70842
70843         The following changes are from gettext 0.10.39 as maintained by
70844         Bruno Haible.
70845
70846         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
70847         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
70848         with inverted sense.  All uses changed.
70849
70850         * lib/mbswidth.c: Don't include <limits.h>.
70851         Include <stdlib.h> and <string.h> unconditionally.
70852         (iswcntrl, mbsinit, ISCNTRL): New macros.
70853         (mbsnwidth): Use K&R style function declarations.
70854         Don't bother checking for MB_LEN_MAX == 1, since the compiler
70855         can optimize it when MB_CUR_MAX == 1.
70856         The width of control characters is zero, not 1.
70857
70858 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70859
70860         The following changes are from gettext 0.10.39 as maintained by
70861         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
70862
70863         * m4/codeset.m4: Upgrade to serial AM1.
70864         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
70865         all uses changed.  Quote first arg of AC_DEFUN.
70866         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
70867
70868         * m4/iconv.m4: Upgrade to serial AM2.
70869         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
70870         Add --with-libconv-prefix.
70871         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
70872         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
70873         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
70874         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
70875         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
70876
70877         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
70878         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
70879         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
70880         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
70881         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
70882         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
70883         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70884         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
70885         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70886
70887         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
70888         string.h any more.
70889
70890         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
70891         not the default value.
70892
70893         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
70894         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
70895         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
70896         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
70897         Also check for iswcntrl, used for wcwidth fallback.
70898         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
70899         to Autoconf 2.13.
70900
70901 2001-08-03  Jim Meyering  <meyering@lucent.com>
70902
70903         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
70904         as it was in the original.  Reported by Paul Eggert.
70905
70906 2001-07-16  Jim Meyering  <meyering@lucent.com>
70907
70908         * m4/gettimeofday.m4: New file.
70909         Prompted by a report from Bernhard Baehr.
70910
70911 2001-07-15  Jim Meyering  <meyering@lucent.com>
70912
70913         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
70914         stuff. Now it's in ../Makefile.cfg.
70915
70916 2001-07-15  Jim Meyering  <meyering@lucent.com>
70917
70918         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
70919         (BUILT_SOURCES): Add unlocked-io.h.
70920         (io_functions): Define.
70921         (unlocked-io.h): New rule.
70922         (DISTCLEANFILES): Add unlocked-io.h.
70923         (all-local): Depend on unlocked-io.h, to ensure it is created.
70924
70925         * lib/unlocked-io.hin: New file
70926
70927         * lib/regex.c: Update from glibc.
70928
70929 2001-07-05  Jim Meyering  <meyering@lucent.com>
70930
70931         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
70932         recommendation.
70933         (libfetish_a_SOURCES): Put all .h files here instead.
70934         Remove a thus-exposed (better checks in automake) duplicate and
70935         two unnecessary .h files.
70936
70937 2001-07-04  Jim Meyering  <meyering@lucent.com>
70938
70939         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
70940         that generates jm-glibc-io.m4 so that it doesn't trigger any make
70941         distcheck failure.
70942
70943 2001-07-02  Jim Meyering  <meyering@lucent.com>
70944
70945         The following changes were prompted by suggestions from Bruno Haible.
70946
70947         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
70948         is now generated.
70949         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
70950         definition of EXTRA_DIST.
70951         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
70952         ensure that the generated file is created/updated whenever the list
70953         of $(unlocked_functions) is changed.
70954         (jm-glibc-io.m4): New rule.
70955         (unlocked-io.h): New rule -- currently unused.
70956
70957 2001-06-24  Jim Meyering  <meyering@lucent.com>
70958
70959         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
70960         unmatched right bracket, rather than kludging it with an extra,
70961         falsely-matching quote in a comment.  Patch by Akim Demaille.
70962
70963 2001-06-11  Jim Meyering  <meyering@lucent.com>
70964
70965         * lib/regex.c: Update from GNU libc.
70966
70967 2001-05-27  Jim Meyering  <meyering@lucent.com>
70968
70969         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
70970         Check for ut_type in struct utmp.
70971
70972 2001-05-27  Jim Meyering  <meyering@lucent.com>
70973
70974         * lib/readutmp.h (UT_TYPE): Define.
70975
70976 2001-05-24  Jim Meyering  <meyering@lucent.com>
70977
70978         * lib/argmatch.c: Include "quote.h".
70979         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
70980         quote function.  Reported by Göran Uddeborg.
70981
70982 2001-05-22  Jim Meyering  <meyering@lucent.com>
70983
70984         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
70985         now that we use the package-supplied version unconditionally.
70986         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
70987
70988 2001-05-21  Jim Meyering  <meyering@lucent.com>
70989
70990         * m4/regex.m4: Change a couple backticks to single quotes to avoid
70991         shell syntax errors.
70992
70993 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70994
70995         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
70996
70997 2001-05-20  Paul Eggert  <eggert@twinsun.com>
70998
70999         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71000         Don't bother to check library strftime, since
71001         we'll be using our own my_strftime function anyway.
71002         Define my_strftime instead of strftime.
71003
71004 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71005
71006         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71007         which is not yet declared.
71008
71009 2001-05-15  Jim Meyering  <meyering@lucent.com>
71010
71011         * m4/regex.m4: Use proper quoting so brackets appear in the test
71012         program.
71013         Reported by, and with help from, Bruno Haible.
71014
71015 2001-05-13  Jim Meyering  <meyering@lucent.com>
71016
71017         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71018         undefined.
71019
71020 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71021
71022         dirname code cleanup.  base_name now behaves more compatibly
71023         with POSIX basename when given file names that have trailing
71024         slashes, and similarly for dir_name.  Add new primitives
71025         base_len and dir_len.  Put the directory-name-related decls
71026         into dirname.h.
71027
71028         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71029         * lib/backupfile.c (base_name): Likewise.
71030         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71031         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71032         * lib/makepath.c (strip_trailing_slashes): Likewise.
71033         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71034         ISSLASH): Likewise.
71035         * lib/rename.c (strip_trailing_slashes): Likewise.
71036         * lib/same.c (base_name): Likewise.
71037         * lib/stripslash.c (ISSLASH): Likewise.
71038
71039         * lib/addext.c: Include <dirname.h> after size_t is defined.
71040         * lib/backupfile.c: Likewise.
71041
71042         * lib/addext.c (addext): Use base_len to trim redundant
71043         trailing slashes instead of doing it ourselves.
71044         But do not trim the last slash if it is not redundant.
71045
71046         * lib/backupfile.c (find_backup_file_name,
71047         max_backup_version): Use base_len instead of rolling it ourselves.
71048         Handle the case of "" and (on DOS) "C:" correctly.
71049
71050         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71051         needed. Include <string.h>, <dirname.h>.
71052         (base_name): Allow file names ending in slashes, other than names
71053         that are all slashes.  In this case, return the basename followed
71054         by the slashes.  This is more general, and can be used in places
71055         where the original base_name purposely had an assertion failure.
71056         (base_len): New function.
71057
71058         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71059         Do not include <assert.h>; no longer needed.
71060         Include xalloc.h.
71061         (memrchr): Remove decl.
71062         (dir_name_r): Remove.
71063         (dir_len): Renamed from dirlen.  All callers changed.
71064         Rewrite in terms of base_name, for simplicity and consistency.
71065         (dir_name): Never return NULL.  All callers changed.
71066         Do not include <stdlib.h> in test program; no longer needed.
71067         return 0; is fine for test program.
71068
71069         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71070         New macros.
71071         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71072
71073         * lib/path-concat.c (path_concat): Use base_len to compute
71074         base length, not strlen; this means we cannot rely on memcpy
71075         to null-terminate.
71076
71077         * lib/same.c (STREQ): Remove.
71078         (same_name): Handle the case where the basename ends in trailing '/'.
71079
71080         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71081         a slash was stripped.  Do not strip the last slash after a
71082         file system prefix.
71083
71084 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71085
71086         * lib/Makefile.am (libfetish_a_SOURCES):
71087         Add strftime.c, since we now compile it on all hosts.
71088
71089         * lib/strftime.c (my_strftime):
71090         Define to nstrftime if emacs, but only if my_strftime is not defined.
71091         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71092         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71093         Add one more extra argument: a nanoseconds value.
71094         All uses changed.
71095         (ns): New macro.
71096         (my_strftime function): Add %N format.
71097         (emacs_strftimeu): Renamed from emacs_strftime,
71098         with extra ut argument.
71099
71100 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71101
71102         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71103
71104 2001-04-21  Jim Meyering  <meyering@lucent.com>
71105
71106         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71107         doesn't interfere.
71108
71109 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71110
71111         * m4/ftruncate.m4: Check for chsize.
71112         Link with ftruncate.o unconditionally if ftruncate is missing.
71113         This was required when cross-compiling to i586-mingw32msvc.
71114
71115 2001-04-08  Jim Meyering  <meyering@lucent.com>
71116
71117         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71118         recomputed; that's necessary when the offset spans a DST transition.
71119         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71120
71121 2001-04-02  Jim Meyering  <meyering@lucent.com>
71122
71123         * lib/regex.h, regex.c: Update from GNU libc.
71124
71125 2001-03-24  Jim Meyering  <meyering@lucent.com>
71126
71127         * m4/jm-macros.m4: Require autoconf-2.49d.
71128
71129 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71130
71131         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71132
71133 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71134
71135         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71136
71137 2001-03-17  Jim Meyering  <meyering@lucent.com>
71138
71139         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71140         now that the version in autoconf is equivalent.
71141         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71142
71143         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71144         Suggestion from Akim Demaille.
71145
71146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71147         (jm_PREREQ_TEMPNAME): New function.
71148
71149 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71150
71151         * lib/tempname.c (uint64_t): Define to uintmax_t if
71152         not defined, and if UINT64_MAX is not defined.
71153         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71154         Reported by John David Anglin.
71155
71156 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71157
71158         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71159         resolve alias if codeset is empty.
71160         * lib/config.charset (BeOS): Use wildcard syntax.
71161
71162 2001-03-13  Jim Meyering  <meyering@lucent.com>
71163
71164         * lib/path-concat.c (path_concat)
71165         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71166         concatenating e.g., `C:' and `foo'.
71167         From Bruno Haible.
71168
71169 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71170
71171         * lib/localcharset.c (locale_charset): Don't use
71172         setlocale(LC_CTYPE,NULL). Don't return NULL.
71173         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71174
71175 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71176
71177         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71178         support for DOS/DJGPP.
71179
71180 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71181
71182         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71183         lacks mkstemp.  Compile our own tempname.c if we compile our own
71184         mkstemp.c, as mkstemp relies on tempname.
71185
71186 2001-03-01  Jim Meyering  <meyering@lucent.com>
71187
71188         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71189         AH_VERBATIM really does output its argument verbatim.
71190
71191 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71192
71193         * lib/Makefile.am (libfetish_a_SOURCES):
71194         Add dup-safer.c, fopen-safer.c.
71195         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71196
71197         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71198         * lib/unistd-safer.h: New files.
71199
71200 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71201
71202         The mkstemp replacement is taken from glibc 2.2.2, with some
71203         portability fixes for use outside glibc, as follows:
71204
71205         * lib/tempname.c (struct_stat64): New macro.
71206         (direxists, __gen_tempname): Use it.
71207         This avoids a portability problem with Solaris 8.
71208
71209         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71210         (<stddef.h>, <stdint.h>, <string.h>):
71211         Include only if STDC_HEADERS || _LIBC.
71212         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71213         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71214         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71215         (__set_errno): Define this macro if <errno.h> doesn't.
71216         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71217         Define these macros if <stdio.h> doesn't.
71218         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71219         Define these macros if <sys/stat.h>
71220         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71221         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71222         __xstat64): Define if not _LIBC.
71223         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71224         (__gen_tempname): Invoke gettimeofday only if
71225         HAVE_GETTIMEOFDAY || _LIBC;
71226         otherwise, fall back on plain "time".
71227         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71228
71229         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71230
71231         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71232
71233 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71234
71235         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71236
71237 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71238
71239         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71240         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71241         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71243
71244 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71245
71246         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71247         Remove workaround macros for hosts that have mbrtowc but not
71248         mbstate_t, as we now insist on proper declarations for both
71249         before using mbrtowc.
71250
71251 2001-02-17  Jim Meyering  <meyering@lucent.com>
71252
71253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71254         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71255         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71256         UnixWare 7.1.1.
71257
71258         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71259         rather than AC_CACHE_VAL.
71260
71261 2001-02-17  Jim Meyering  <meyering@lucent.com>
71262
71263         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71264         around included file name.
71265
71266         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71267
71268         * lib/strftime.c: Update from GNU libc (the only changes were to
71269         comments).
71270
71271 2001-02-17  Jim Meyering  <meyering@lucent.com>
71272
71273         * lib/regex.c: Update from libc.
71274
71275 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71276
71277         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71278         clash.
71279
71280 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71281
71282         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71283         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71284         Reported by Mark Hounschell via Paul Eggert.
71285
71286 2001-02-07  Jim Meyering  <meyering@lucent.com>
71287
71288         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71289
71290 2001-02-05  Jim Meyering  <meyering@lucent.com>
71291
71292         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71293         it includes the patch required for `large file' support with at least
71294         HP-UX's 10.20 /bin/cc.
71295
71296 2001-02-03  Jim Meyering  <meyering@lucent.com>
71297
71298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71299         AS_IF, now that it works once again (mysteriously).
71300         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71301
71302 2001-01-30  Jim Meyering  <meyering@lucent.com>
71303
71304         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71305         * m4/chown.m4: Rename conftestchown to conftest.chown.
71306         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71307         s/conftestdir2/conftest.d2/.
71308         * m4/utimes.m4: s/conftestdata/conftest.data/
71309         Inspired by Pavel Roskin's change in autoconf.
71310
71311 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71312
71313         * lib/config.charset: Update for FreeBSD 4.2.
71314
71315 2001-01-27  Jim Meyering  <meyering@lucent.com>
71316
71317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71318         a use of AS_IF.
71319         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71320
71321 2001-01-26  Jim Meyering  <meyering@lucent.com>
71322
71323         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71324         quotearg.c includes it.
71325
71326 2001-01-26  Jim Meyering  <meyering@lucent.com>
71327
71328         * lib/quotearg.c: Include stddef.h.
71329         * lib/quote.c: Include stddef.h.
71330         Reported by Axel Kittenberger.
71331
71332         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71333         line in double quotes so that it evokes a better diagnostic.
71334         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71335         Reported by Axel Kittenberger.
71336
71337 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71338
71339         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71340         as if it was a `charset'.
71341
71342 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71343
71344         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71345         has const.
71346
71347 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71348
71349         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71350         to avoid a warning.  Add back 'const' to inptr.
71351
71352 2001-01-20  Jim Meyering  <meyering@lucent.com>
71353
71354         Be sure that headers are checked before used in code compiled
71355         for the type checks.
71356         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71357         In place of that, invoke jm_CHECK_ALL_TYPES.
71358         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71359         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71360         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71361         The check for ssize_t was mistakenly run before the test for unistd.h.
71362
71363         The configure-time check for stdbool.h was missing.
71364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71365         (jm_PREREQ_HASH): New function.
71366
71367 2001-01-17  Jim Meyering  <meyering@lucent.com>
71368
71369         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71370         for autoconf-2.49c.
71371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71372
71373 2001-01-16  Jim Meyering  <meyering@lucent.com>
71374
71375         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71376         From Bruno Haible.
71377
71378 2001-01-14  Jim Meyering  <meyering@lucent.com>
71379
71380         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71381         foo and bar.  Create conftestdir/ in the script, not in the C code.
71382         Remove directories in the script, not in the C code.
71383         Remove conftestdir{,2} before trying to create the directory.
71384         Make the entire configure script fail if the mkdir fails.
71385
71386 2001-01-14  Jim Meyering  <meyering@lucent.com>
71387
71388         * lib/rename.c: New file.  From Volker Borchert.
71389         Include stdlib.h, string.h or strings.h, and xalloc.h.
71390         Use strip_trailing_slashes rather than open-coding it.
71391
71392 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71393
71394         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71395
71396 2001-01-03  Jim Meyering  <meyering@lucent.com>
71397
71398         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71399         of local `inptr' to avoid warning with some system declarations of
71400         iconv.
71401
71402 2001-01-02  Volker Borchert  <bt@teknon.de>
71403
71404         * m4/rename.m4: New file.
71405         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71406
71407 2001-01-01  Jim Meyering  <meyering@lucent.com>
71408
71409         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71410         even on systems with utmpx.h.  It's necessary for the declaration of
71411         utmp's ut_user member.  Reported by Andreas Jaeger.
71412
71413         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71414         available. They are required for the declarations of getgrgid and
71415         getpwuid resp.
71416         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71417         Reported by Andreas Jaeger.
71418
71419 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71420
71421         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71422         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71423         so `make install' also works in VPATH builds.
71424
71425 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71426
71427         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71428         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71429         can be used in subdirectories.
71430
71431 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71432
71433         * lib/modechange.c: Do not assume that mode_t uses the
71434         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71435         the other-execute bit of FOO even if S_IXOTH != 1.
71436
71437         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71438         WOTH, XOTH, ALLM): New macros.
71439         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71440          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71441         Use them.
71442         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71443         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71444         (mode_compile):
71445         No need to use uintmax_t; unsigned long is long enough.
71446         Don't bother to get suffix since we don't use it.
71447
71448 2000-12-26  Jim Meyering  <meyering@lucent.com>
71449
71450         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71451         better with autoheader.
71452
71453 2000-12-24  Jim Meyering  <meyering@lucent.com>
71454
71455         * lib/hash.c (is_prime): Return explicit boolean values.
71456         (hash_get_first): Return NULL to appease Irix5.6's 89.
71457         Reported by Nelson Beebe.
71458
71459 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71460
71461         * lib/localcharset.c (locale_charset): Add support for Win32.
71462
71463 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71464
71465         * lib/physmem.h, lib/physmem.c: New files.
71466
71467         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
71468         (noinst_HEADERS): Add physmem.h.
71469
71470         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
71471         't' for compatibility with Solaris 8 sort.
71472
71473 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
71474
71475         * lib/config.charset: Add support for BeOS.
71476
71477 2000-12-17  Jim Meyering  <meyering@lucent.com>
71478
71479         * m4/dos.m4 (jm_AC_DOS): New file and macro.
71480         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
71481
71482 2000-12-16  Jim Meyering  <meyering@lucent.com>
71483
71484         This bug had a serious impact on chown: `chown N:M FILE' (for integer
71485         N and M) would have treated it like `chown N:N FILE'.
71486
71487         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
71488
71489 2000-12-16  Jim Meyering  <meyering@lucent.com>
71490
71491         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
71492         SHELLS_FILE to a file name that's useful on djgpp systems.
71493         Include stdlib.h.
71494         (ADDITIONAL_DEFAULT_SHELLS): Define.
71495         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
71496         Based mostly on a patch from Prashant TR.
71497
71498 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
71499
71500         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
71501         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
71502         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
71503
71504 2000-12-08  Andreas Schwab  <schwab@suse.de>
71505
71506         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
71507         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
71508
71509 2000-12-07  Jim Meyering  <meyering@lucent.com>
71510
71511         * lib/stripslash.c (ISSLASH): Define.
71512         (strip_trailing_slashes): Use ISSLASH rather than comparing against
71513         `/'.
71514         From Prashant TR.
71515
71516         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
71517         (dir_name_r): Declare this function as static.
71518         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
71519         manifest itself on a name containing a mix of slashes and
71520         backslashes.
71521         Make this function work with names starting with a DOS-style
71522         drive letter and colon prefix.
71523         (dir_name): Append `.' if necessary.
71524         Based mostly on patches from Prashant TR and Eli Zaretskii.
71525
71526         * lib/dirname.h (dir_name_r): Remove prototype.
71527
71528 2000-12-06  Paul Eggert  <eggert@twinsun.com>
71529
71530         * m4/off_t-format.m4: Remove this file.
71531         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
71532
71533 2000-12-06  Jim Meyering  <meyering@lucent.com>
71534
71535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
71536         replacement strtoull, we may well need the replacement strtoul, too.
71537         Check for declarations of strtoul and strtoull.
71538         Check for strtol.  Mainly as a cue to cause automake to include
71539         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
71540         Check for limits.h -- strtol.c needs it.
71541
71542 2000-12-05  Jim Meyering  <meyering@lucent.com>
71543
71544         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
71545
71546 2000-12-04  Jim Meyering  <meyering@lucent.com>
71547
71548         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
71549         Also include memory.h, stdlib.h, unistd.h if appropriate.
71550         Reported by Andreas Jaeger (conflicting declaration of malloc).
71551
71552 2000-12-02  Jim Meyering  <meyering@lucent.com>
71553
71554         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
71555         * m4/jm-macros.m4 (jm_MACROS): require it.
71556
71557 2000-12-02  Jim Meyering  <meyering@lucent.com>
71558
71559         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
71560
71561 2000-12-01  Paul Eggert  <eggert@twinsun.com>
71562
71563         * lib/memrchr.c: Include <config.h> before any system include file.
71564
71565 2000-11-30  Jim Meyering  <meyering@lucent.com>
71566
71567         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
71568
71569 2000-11-30  Jim Meyering  <meyering@lucent.com>
71570
71571         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
71572
71573 2000-11-29  Paul Eggert  <eggert@twinsun.com>
71574
71575         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
71576
71577 2000-11-26  Jim Meyering  <meyering@lucent.com>
71578
71579         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
71580
71581 2000-11-22  Paul Eggert  <eggert@twinsun.com>
71582
71583         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
71584         size of (size_t) -1; it's not portable.
71585
71586 2000-11-17  Jim Meyering  <meyering@lucent.com>
71587
71588         * lib/strstr.c: Update from GNU libc.
71589
71590 2000-11-17  Akim Demaille  <akim@epita.fr>
71591
71592         * lib/obstack.h: Formatting changes.
71593         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
71594         prevent type checking.
71595         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
71596         cast the value to (void *): assigning a `foo *' to a `void *'
71597         variable is valid.
71598         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
71599
71600 2000-11-16  Jim Meyering  <meyering@lucent.com>
71601
71602         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
71603
71604 2000-11-11  Jim Meyering  <meyering@lucent.com>
71605
71606         * lib/error.c: Add a couple #includes, merging from GNU libc version.
71607
71608 2000-11-10  Jim Meyering  <meyering@lucent.com>
71609
71610         * lib/obstack.h: Update from GNU libc.
71611         * lib/obstack.c: Likewise.
71612
71613 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
71614
71615         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
71616
71617 2000-11-06  Paul Eggert  <eggert@twinsun.com>
71618
71619         * lib/getusershell.c (setusershell): Use rewind rather than
71620         fseek/fseeko, to avoid configuration hassles with fseeko.
71621         Don't bother opening SHELLS_FILE if shellstream is NULL;
71622         it's not necessary.
71623
71624 2000-11-05  Jim Meyering  <meyering@lucent.com>
71625
71626         * lib/makepath.h (make_dir): Declare.
71627         * lib/makepath.c (make_dir): Remove `static' attribute.
71628         Tweak a comment.
71629
71630 2000-11-04  Jim Meyering  <meyering@lucent.com>
71631
71632         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
71633
71634 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
71635
71636         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
71637         last one in a bucket, advance to the next bucket.
71638
71639 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
71640
71641         * lib/fnmatch.c: Do not comment out all the code if we are using
71642         the GNU C library, because in some cases we are replacing buggy
71643         code in the GNU C library itself.
71644
71645 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
71646
71647         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
71648         (regex_compile): Catch bogus \(\1\).
71649
71650 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71651
71652         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
71653         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
71654         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
71655
71656 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71657
71658         * lib/error.h, getline.h, modechange.h:
71659         Remove "2000" from Copyright line, as the file hasn't been
71660         changed this year other than in the copyright notice.
71661
71662         * lib/xalloc.h: Add "2000" to Copyright line, as this file
71663         was changed this year.
71664
71665 2000-10-29  Jim Meyering  <meyering@lucent.com>
71666
71667         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
71668         renaming.
71669         * m4/ls-mntd-fs.m4: Likewise
71670
71671 2000-10-29  Jim Meyering  <meyering@lucent.com>
71672
71673         * lib/xstat.in: Fix grammar in comment.
71674
71675 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
71676
71677         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
71678         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
71679         doesn't define __restrict_arr.
71680
71681 2000-10-28  Jim Meyering  <meyering@lucent.com>
71682
71683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
71684         (jm_PREREQ_MEMCHR): New function.
71685
71686 2000-10-28  Jim Meyering  <meyering@lucent.com>
71687
71688         * lib/memchr.c: Update from libc.
71689         Adjust for portability:
71690         [HAVE_STDLIB_H]: Include stdlib.h.
71691         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
71692         Undef __memchr, too.
71693         [!weak_alias]: Define __memchr to memchr.
71694
71695         * lib/regex.c: Update from libc.
71696         * lib/regex.h: Likewise.
71697         * lib/getopt1.c: Likewise.
71698         * lib/memcmp.c: Likewise.
71699
71700         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
71701         Avoid using fseek, when possible -- it's broken by design.
71702         Patch by Ulrich Drepper.
71703
71704 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
71705
71706         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
71707         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
71708         Giving in to popular pressure to shut up the compiler with casts.
71709
71710 2000-10-26  Jim Meyering  <meyering@lucent.com>
71711
71712         * lib/strftime.c: Update from libc.
71713
71714 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
71715
71716         * regex.c: More `unsigned char' -> `re_char' changes.
71717         Also change several `int' into `re_wchar_t'.
71718         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
71719         (PUSH_FAILURE_POINTER): Don't cast any more.
71720         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
71721         We want GCC to complain, since this piece of code makes
71722         re_match non-reentrant, which *should* be fixed.
71723         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
71724         (EXTEND_BUFFER): Use RETALLOC.
71725         (SET_LIST_BIT): Don't cast.
71726         (re_wchar_t): New type.
71727         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
71728         that those two functions will always properly return.
71729         (IMMEDIATE_QUIT_CHECK): Cast to void.
71730         (analyse_first): Use recursion rather than an explicit stack.
71731         (re_compile_fastmap): Can't fail anymore.
71732         (re_search_2): Don't check re_compile_fastmap for failure.
71733         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
71734         Now also sets the new value (passed in a new argument).
71735         (re_match_2_internal): Use it.
71736         Also, use a new var `reg' of type size_t when looping through regs
71737         rather than reuse the inappropriate `mcnt'.
71738
71739 2000-10-25  Jim Meyering  <meyering@lucent.com>
71740
71741         * lib/obstack.c: Update from libc.
71742
71743 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
71744
71745         * regex.c (regex_compile): Change the way of handling a range from
71746         a char less than 256 to a char not less than 256.
71747
71748 2000-10-24  Andrew Innes  <andrewi@gnu.org>
71749
71750         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
71751         NT-Emacs only.
71752         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
71753         so that re_search functions only quit when callers expect them to.
71754
71755 2000-10-23  Jim Meyering  <meyering@lucent.com>
71756
71757         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
71758         wrong.  That set_locale call must not have any side effects.
71759         From Paul Eggert.
71760
71761 2000-10-22  Jim Meyering  <meyering@lucent.com>
71762
71763         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
71764         [CYCLIC]: Remove now-unused definition.
71765
71766         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
71767         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
71768         Suggestion from Ulrich Drepper.
71769
71770 2000-10-21  Jim Meyering  <meyering@lucent.com>
71771
71772         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
71773         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
71774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
71775
71776 2000-10-21  Jim Meyering  <meyering@lucent.com>
71777
71778         * lib/dirname.c (memrchr): Declare if necessary.
71779         (dir_name): Remove the restriction that there be no
71780         trailing slashes.  Now, this code skips past them, effectively
71781         ignoring them.
71782         [TEST_DIRNAME] (main): New unit tests.
71783
71784         * lib/memrchr.c: New file from GNU libc.
71785         Undef __memrchr, too.
71786         [!weak_alias]: Define __memrchr to memrchr.
71787         Guard weak_alias use with `#ifdef weak_alias'.
71788
71789 2000-10-21  Jim Meyering  <meyering@lucent.com>
71790
71791         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
71792         (dir_name): Use dir_name_r.
71793         * lib/dirname.h (dir_name_r): Declare it.
71794
71795 2000-10-17  Jim Meyering  <meyering@lucent.com>
71796
71797         * lib/quote.h (PARAMS): Define and use.
71798         Reported by Akim Demaille.
71799
71800         * lib/getopt.c: Update from libc.
71801
71802 2000-10-16  Jim Meyering  <meyering@lucent.com>
71803
71804         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
71805         setlocale.
71806         From Jan Fedak.
71807
71808 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
71809
71810         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
71811
71812 2000-09-25  Jim Meyering  <meyering@lucent.com>
71813
71814         * lib/md5.h (rol): Define (from GnuPG).
71815
71816         * lib/sha.c: Give credit (GnuPG) where due.
71817         (M): Use rol rather than open-coding it.
71818         Add a FIXME comment.
71819
71820 2000-09-21  Jim Meyering  <meyering@lucent.com>
71821
71822         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
71823         Reported by Michael Stone.
71824
71825 2000-09-20  Jim Meyering  <meyering@lucent.com>
71826
71827         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
71828         (noinst_HEADERS): Add sha.h.
71829         Based on code from Scott G. Miller and from GnuPG.
71830
71831 2000-09-18  Jim Meyering  <meyering@lucent.com>
71832
71833         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
71834         LIBS. Otherwise, everyone ends up linking with -lelf for some
71835         configurations.
71836         Reported by Mike Stone.
71837
71838 2000-09-15  Jim Meyering  <meyering@lucent.com>
71839
71840         * lib/regex.c: Update from libc.
71841
71842 2000-09-10  Jim Meyering  <meyering@lucent.com>
71843
71844         * lib/getopt.c (_getopt_internal): Update from glibc.
71845
71846 2000-09-09  Jim Meyering  <meyering@lucent.com>
71847
71848         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
71849         think it should be used as a general replacement for isascii.
71850         * lib/fnmatch.c: Likewise.
71851         * lib/mbswidth.c: Likewise
71852         * lib/regex.c: Likewise.
71853
71854         Don't use atoi.
71855         * lib/userspec.c: Include sys/param.h and limits.h.
71856         Include xstrtol.h.
71857         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71858         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
71859         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
71860         UID, GID.  Check range.
71861
71862 2000-09-06  Jim Meyering  <meyering@lucent.com>
71863
71864         * lib/getopt.c (_getopt_internal): Update from glibc.
71865
71866 2000-08-30  Jim Meyering  <meyering@lucent.com>
71867
71868         * lib/strftime.c: Merge in changes from GNU libc.
71869
71870 2000-08-26  Jim Meyering  <meyering@lucent.com>
71871
71872         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
71873         * m4/fpending.m4: New file.
71874
71875 2000-08-26  Jim Meyering  <meyering@lucent.com>
71876
71877         * lib/closeout.c: Include "__fpending.h".
71878         (close_stdout_status): Return right away if there's nothing to flush.
71879
71880         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
71881         * lib/__fpending.c: New file.
71882         * lib/__fpending.h: New file.
71883
71884 2000-08-20  Jim Meyering  <meyering@lucent.com>
71885
71886         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
71887         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
71888         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
71889
71890 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
71891
71892         Improve fileutils installation on systems where running
71893         programs (like install) can't be unlinked.
71894         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
71895         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
71896
71897 2000-08-07  Paul Eggert  <eggert@twinsun.com>
71898
71899         Standardize on "memory exhausted" instead of "Memory exhausted"
71900         or "virtual memory exhausted".
71901         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
71902         "virtual memory exhausted".
71903         * lib/same.c (same_name): Invoke xalloc_die instead of printing
71904         our own message.
71905         * lib/userspec.c (parse_user_spec): Likewise.
71906         * lib/bumpalloc.h: comment fix
71907         * lib/same.c, userspec.c: Include xalloc.h.
71908
71909         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
71910         not char *const and pointing to a constant array.
71911         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
71912         (xrealloc): Comment fix.
71913
71914         * lib/userspec.c (parse_user_spec):
71915         Don't translate a message until just before returning,
71916         to avoid unnecessary translation.
71917
71918 2000-08-07  Jim Meyering  <meyering@lucent.com>
71919
71920         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
71921         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
71922         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
71923         getgroups.c, gethostname.c, getopt.h, group-member.c,
71924         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
71925         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
71926         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
71927         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
71928         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
71929         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
71930         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
71931         yesno.c: Back out Copyright date changes for each file with no change
71932         this year.  This eases coordination with other programs using the same
71933         source code modules.  From Paul Eggert.
71934
71935 2000-08-06  Paul Eggert  <eggert@twinsun.com>
71936
71937         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
71938         not char, for compatibility with glibc 2.1.3 strftime.c.
71939
71940 2000-08-03  Greg McGary  <greg@mcgary.org>
71941
71942         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
71943         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
71944         (EXTEND_BUFFER): Use them.
71945
71946 2000-08-01  Jim Meyering  <meyering@lucent.com>
71947
71948         * lib/dirname.c (ISSLASH): Define.
71949         (BACKSLASH_IS_PATH_SEPARATOR): Define.
71950         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
71951         both `\' and `/' may be use as path separators.
71952         Based on a patch from Prashant TR.
71953
71954 2000-07-31  Paul Eggert  <eggert@twinsun.com>
71955
71956         * lib/quotearg.c (quotearg_n_options): Don't make the initial
71957         slot vector a constant, since it might get modified.
71958
71959 2000-07-31  Jim Meyering  <meyering@lucent.com>
71960
71961         * lib/xmalloc.c: Use `virtual memory exhausted', not
71962         `Memory exhausted'.
71963         * lib/obstack.c (print_and_abort): Likewise.
71964
71965 2000-07-30  Paul Eggert  <eggert@twinsun.com>
71966
71967         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
71968         buffer, so that the caller can always quote one small
71969         component of a "memory exhausted" message in slot 0.
71970         From a suggestion by Jim Meyering.
71971
71972 2000-07-30  Jim Meyering  <meyering@lucent.com>
71973
71974         * lib/makepath.c (make_path): Quote the other instance, too.
71975
71976         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
71977         (STATIC_BUF_SIZE): Define.
71978         (quotearg_n_options): Use only statically allocated storage when
71979         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
71980         than STATIC_BUF_SIZE.
71981
71982 2000-07-29  Jim Meyering  <meyering@lucent.com>
71983
71984         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
71985         * lib/dirname.c (dir_name): Likewise.
71986
71987         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
71988         `/'.
71989
71990         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
71991         (dir_name): Assert that there are no trailing slashes.
71992
71993 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
71994
71995         * lib/mbswidth.h (mbswidth): Add a flags argument.
71996         (mbswidth): New declaration.
71997         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
71998         * lib/mbswidth.c (mbswidth): Add a flags argument.
71999         (mbsnwidth): New function.
72000
72001 2000-07-24  Jim Meyering  <meyering@lucent.com>
72002
72003         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72004
72005 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72006
72007         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72008
72009 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72010
72011         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72012         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72013         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72014         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72015         invoke multibyte primitives.
72016
72017 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72018
72019         * lib/quotearg.c:
72020         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72021         so that mbstate_t is always defined.
72022
72023         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72024         be 1 in at least one GCC installation, and this configuration
72025         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72026         performance on hosts that have mbrtowc but have only unibyte
72027         locales, but I assume these hosts are rare.
72028
72029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72030
72031         * lib/mbswidth.c (_XOPEN_SOURCE):
72032         Don't define; this causes problems on Solaris 7.
72033         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72034
72035 2000-07-23  Jim Meyering  <meyering@lucent.com>
72036
72037         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72038         too: getgrgid, getpwuid, getuid.
72039
72040 2000-07-23  Jim Meyering  <meyering@lucent.com>
72041
72042         * lib/basename.c (base_name): Add an assertion.
72043
72044 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72045
72046         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72047         shadow its mbsinit function.
72048
72049 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72050
72051         * lib/mbswidth.h: New file.
72052         * lib/mbswidth.c: New file.
72053         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72054         (noinst_HEADERS): Add mbswidth.h.
72055
72056 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72057
72058         * lib/config.charset: Add support for FreeBSD. Improve support for
72059         HP-UX and IRIX 6.
72060
72061 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72062
72063         * m4/mbswidth.m4: New file.
72064         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72065
72066 2000-07-15  Jim Meyering  <meyering@lucent.com>
72067
72068         * lib/makepath.c: Include quote.h.
72069         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72070         corresponding argument in a `quote (...)' call.
72071         Give better diagnostics.
72072
72073         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72074         (noinst_HEADERS): Add quote.h.
72075
72076         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72077         from tar's src/misc.c.
72078         * lib/quote.h: New file.  Prototypes for same.
72079
72080 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72081
72082         From a suggestion by Bruno Haible.
72083         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72084         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72085         to decide whether to define the BeOS workaround macro;
72086         this adjusts to the change to AC_MBSTATE_T.
72087
72088 2000-07-14  Jim Meyering  <meyering@lucent.com>
72089
72090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72091         jm_AC_TYPE_UINTMAX_T.
72092
72093 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72094
72095         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72096
72097         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72098         quotearg_buffer_restyled): Add support for
72099         clocale_quoting_style.  Undo previous change to
72100         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72101         and "{RIGHT QUOTATION MARK}" msgids.
72102
72103 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72104
72105         From a suggestion by Bruno Haible.
72106         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72107         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72108         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72109         and mbstate_t, to a single-part test that simply defines mbstate_t.
72110         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72111         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72112
72113 2000-07-10  Jim Meyering  <meyering@lucent.com>
72114
72115         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72116
72117         * m4/gnu-source.m4: Output to confdefs.h directly.
72118         Suggestion from Akim Demaille.
72119
72120 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72121
72122         The old behavior of quoting `like this' doesn't look good with
72123         newer, ISO-style fonts.  See:
72124         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72125
72126         Instead, quote "like this" by default.  Let the translator
72127         tailor the locale-specific quoting behavior by providing
72128         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72129
72130         * lib/quotearg.c (N_): New macro.
72131         (gettext_default): New function.
72132         (quotearg_buffer_restyled): Use
72133         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72134         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72135
72136 2000-07-09  Jim Meyering  <meyering@lucent.com>
72137
72138         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72139         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72140
72141         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72143
72144 2000-07-09  Jim Meyering  <meyering@lucent.com>
72145
72146         * lib/Most files: Update copyright dates to include 2000.
72147
72148 2000-07-08  Jim Meyering  <meyering@lucent.com>
72149
72150         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72151         if not defined.
72152         (xgethostname): Remove now-unnecessary #ifdef.
72153         Move declaration of `err' into loop where it's used.
72154
72155 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72156         and Bruno Haible  <haible@clisp.cons.org>
72157
72158         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72159         only if the test for an object-type mbstate_t fails.  This
72160         prevents us from mistakenly reporting that mbstate_t is a
72161         system object type after we "#define mbstate_t int" to work
72162         around its lack.
72163
72164 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72165         and Bruno Haible  <haible@clisp.cons.org>
72166
72167         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72168
72169 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72170
72171         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72172         to strerror_r.
72173         Include <ctype.h> for use of isalpha.
72174
72175 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72176
72177         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72178         by allocating a larger buffer. Test the gethostname return value for
72179         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72180         returns an error and ENAMETOOLONG isn't defined.
72181
72182 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72183
72184         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72185         dimension.
72186
72187 2000-07-04  Jim Meyering  <meyering@lucent.com>
72188
72189         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72190         of the deprecated AC_CHECKING.
72191
72192 2000-07-04  Jim Meyering  <meyering@lucent.com>
72193
72194         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72195         Reported by Bruno Haible.
72196
72197 2000-07-04  Jim Meyering  <meyering@lucent.com>
72198
72199         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72200         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72201         lacks mbrtowc.
72202
72203 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72204
72205         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72206         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72207
72208 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72209         and Bruno Haible  <haible@clisp.cons.org>
72210
72211         * lib/quotearg.c (mbrtowc):
72212         Assign to *pwc, and return 1 only if result is nonzero.
72213         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72214
72215 2000-07-03  Jim Meyering  <meyering@lucent.com>
72216
72217         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72218
72219 2000-07-03  Jim Meyering  <meyering@lucent.com>
72220
72221         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72222         This is necessary to get a definition of e.g., UTMP_FILE on
72223         HP-UX 10.20.
72224         From Bob Proulx.
72225
72226 2000-07-02  Jim Meyering  <meyering@lucent.com>
72227
72228         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72229
72230         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72231         AC_LIBOBJ(function_name).
72232         * m4/chown.m4: Likewise.
72233         * m4/fnmatch.m4: Likewise.
72234         * m4/ftruncate.m4: Likewise.
72235         * m4/getgroups.m4: Likewise.
72236         * m4/getline.m4: Likewise.
72237         * m4/group-member.m4: Likewise.
72238         * m4/jm-macros.m4: Likewise.
72239         * m4/lstat.m4: Likewise.
72240         * m4/malloc.m4: Likewise.
72241         * m4/memcmp.m4: Likewise.
72242         * m4/nanosleep.m4: Likewise.
72243         * m4/putenv.m4: Likewise.
72244         * m4/realloc.m4: Likewise.
72245         * m4/regex.m4: Likewise.
72246         * m4/stat.m4: Likewise.
72247         * m4/strftime.m4: Likewise.
72248
72249 2000-07-02  Jim Meyering  <meyering@lucent.com>
72250
72251         * lib/quotearg.c (mbstate_t): Don't define here.
72252
72253 2000-07-02  Jim Meyering  <meyering@lucent.com>
72254
72255         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72256
72257 2000-07-01  Jim Meyering  <meyering@lucent.com>
72258
72259         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72260
72261 2000-07-01  Jim Meyering  <meyering@lucent.com>
72262
72263         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72264         problem.
72265
72266 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72267
72268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72269         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72270
72271 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72272
72273         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72274         per change in ../m4/ls-mntd-fs.m4.
72275         (read_filesystem_list): Ignore symbolic links.
72276
72277 2000-06-29  Jim Meyering  <meyering@lucent.com>
72278
72279         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72280         for declaration of strcmp.
72281
72282         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72283
72284         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72285         Avoid warning by casting result to `char *' to remove `const'.
72286
72287 2000-06-28  Jim Meyering  <meyering@lucent.com>
72288
72289         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72290         included by quotearg.c, for which we perform this test.  From
72291         Bruno Haible.
72292
72293 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72294
72295         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72297         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72298
72299 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72300
72301         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72302
72303 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72304
72305         savedir now sets errno on failure and invokes xmalloc to get memory.
72306         Fix a couple of other minor bugs while we're at it.
72307
72308         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72309         (NAMLEN): Remove macro.
72310         (malloc, realloc): Remove decls.
72311         (stpcpy): Likewise.
72312         ("xalloc.h"): Include.
72313         (NAME_SIZE_DEFAULT): New macro.
72314         (savedir): Use xmalloc / xrealloc to allocate memory.
72315         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72316         Skip "" directory entries.
72317         Use strlen to calculate directory entry length, since the old method
72318         is rarely used these days and isn't worth supporting.
72319         Don't use a pointer after freeing it.
72320         Check for integer overflow when calculating allocation size.
72321         Use memcpy to copy entries, instead of stpcpy.
72322         Set errno properly when returning NULL.
72323         Check for readdir error.
72324
72325 2000-06-26  Jim Meyering  <meyering@lucent.com>
72326
72327         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72328
72329 2000-06-25  Jim Meyering  <meyering@lucent.com>
72330
72331         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72332         Linux header bug when _XOPEN_SOURCE is defined to 500.
72333
72334 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72335
72336         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72337         deficiency.
72338
72339 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72340
72341         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72342         Include xalloc.h.
72343         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72344
72345 2000-06-24  Jim Meyering  <meyering@lucent.com>
72346
72347         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72348         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72349         for which strerror does return char*, but which lacks a conveniently
72350         accessible declaration of the function.  If the compile-test says
72351         strerror_r doesn't work, then resort to a `run'-test that works on
72352         BeOS and segfaults on DEC Unix.
72353
72354 2000-06-24  Jim Meyering  <meyering@lucent.com>
72355
72356         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72357
72358 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72359
72360         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72361         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72362
72363 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72364
72365         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72366         (mbrtowc, mbstate_t): Define substitutes if
72367         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72368         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72369         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72370
72371 2000-06-23  Jim Meyering  <meyering@lucent.com>
72372
72373         * m4/afs.m4: Add missing AC_MSG_RESULT.
72374         Reported by Bruno Haible.
72375
72376         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72377         Suggestion from Bruno Haible.
72378
72379 2000-06-23  Jim Meyering  <meyering@lucent.com>
72380
72381         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72382
72383 2000-06-21  Jim Meyering  <meyering@lucent.com>
72384
72385         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72386
72387 2000-06-21  Jim Meyering  <meyering@lucent.com>
72388
72389         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72390         (noinst_HEADERS): Add getstr.h.
72391
72392         * lib/getline.c (getstr): Move into a separate file.
72393         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72394         the following changes: new parameter, delim2; both delim[12]
72395         parameters have type `int', not `char'.  The latter would lose
72396         with 8-bit delimiters.
72397         * lib/getstr.h: New file.
72398
72399 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72400
72401         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72402         than 1024, return a memory chunk of least possible size, instead
72403         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72404         Use free/xmalloc instead of xrealloc to avoid copying for very long
72405         paths.
72406
72407 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72408
72409         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72410         the empty string.
72411
72412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72413
72414         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72415         address, not strdup.  Include <stdlib.h> and don't declare free().
72416
72417 2000-06-19  Jim Meyering  <meyering@lucent.com>
72418
72419         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72420
72421 2000-06-18  Jim Meyering  <meyering@lucent.com>
72422
72423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72424
72425         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72426         `checking whether...' message to be consistent with that of the
72427         lstat test.
72428
72429 2000-06-18  Jim Meyering  <meyering@lucent.com>
72430
72431         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72432         Besides, these days every porting target provides a mkdir function.
72433
72434         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72435         needed. (this snippet comes from src/system.h).
72436
72437 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72438
72439         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72440
72441 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72442
72443         * lib/human.c (adjust_value): New function.
72444         (human_readable_inexact): Apply rounding style even when
72445         printing approximate values.
72446
72447 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72448
72449         * lib/human.c (human_readable_inexact): Allow an input block
72450         size that is not a multiple of the output block size, and vice versa.
72451         Reported by Piergiorgio Sartor.
72452
72453 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72454
72455         * lib/getdate.y (get_date): Apply relative times after time
72456         zone indicator, not before.  Reported by Todd A. Jacobs.
72457
72458 2000-06-13  Jim Meyering  <meyering@lucent.com>
72459
72460         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72461
72462         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72463
72464 2000-06-12  Paul Eggert  <eggert@twinsun.com>
72465
72466         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
72467
72468 2000-06-12  Jim Meyering  <meyering@lucent.com>
72469
72470         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
72471         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
72472         optional argument.
72473         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
72474         the optional argument, `lib'.
72475
72476 2000-06-08  Jim Meyering  <meyering@lucent.com>
72477
72478         * m4/largefile.m4: Remove file (now that it's part of autoconf).
72479
72480 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72481
72482         Rewrite largefile configuration so that we don't need to run
72483         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
72484         AC_CANONICAL_HOST in configure.in -- jmm]
72485
72486         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
72487         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
72488         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
72489         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
72490         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
72491         All uses changed.
72492         Instead of inspecting the output of getconf, try to compile the
72493         test program without and with the macro definition.
72494         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
72495         for getconf.  Instead, check for the needed flags by compiling
72496         test programs.
72497
72498 2000-06-04  Paul Eggert  <eggert@twinsun.com>
72499
72500         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
72501
72502 2000-06-04  Jim Meyering  <meyering@lucent.com>
72503
72504         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
72505         SunOS 4.1.4 for which gid_t is an unsigned type.
72506
72507 2000-06-03  Jim Meyering  <meyering@lucent.com>
72508
72509         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
72510         now that autoconf requires that.
72511
72512         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
72513         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
72514         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
72515
72516 2000-06-03  Jim Meyering  <meyering@lucent.com>
72517
72518         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
72519
72520 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72521
72522         * m4/glibc21.m4: New file.
72523         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
72524
72525 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72526
72527         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
72528         newer, don't install charset.alias.
72529         * lib/config.charset: Change the Linux/glibc rules so they become empty
72530         on glibc-2.1 or newer.
72531
72532 2000-06-02  Jim Meyering  <meyering@lucent.com>
72533
72534         * lib/mountlist.c: Back out last change.  Instead, do this...
72535         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
72536         me_dummy member using the same `ignore'-testing code.
72537         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
72538         fs_type strings.
72539         From Mark D. Roth.
72540
72541 2000-05-29  Jim Meyering  <meyering@lucent.com>
72542
72543         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
72544         mounts with the `ignore' attribute.  Based on a patch from
72545         Mark D. Roth.
72546
72547 2000-05-28  Jim Meyering  <meyering@lucent.com>
72548
72549         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
72550         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72551         * m4/stat.m4: Likewise.
72552         * m4/lstat.m4: Likewise.
72553         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
72554
72555         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
72556         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
72557
72558 2000-05-26  Jim Meyering  <meyering@lucent.com>
72559
72560         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
72561
72562 2000-05-24  Jim Meyering  <meyering@lucent.com>
72563
72564         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
72565         autoconf requires that.
72566         * m4/lib-check.m4: Likewise.
72567         * m4/jm-macros.m4: Likewise.
72568         * m4/strftime.m4: Likewise.
72569
72570         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
72571         AC_CHECK_DECLS, now that autoconf requires that.
72572
72573 2000-05-22  Jim Meyering  <meyering@lucent.com>
72574
72575         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72576         * m4/lstat.m4: Likewise.
72577
72578 2000-05-22  Jim Meyering  <meyering@lucent.com>
72579
72580         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
72581
72582 2000-05-20  Jim Meyering  <meyering@lucent.com>
72583
72584         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
72585         (jm_PREREQ): Use it.
72586
72587 2000-05-18  Jim Meyering  <meyering@lucent.com>
72588
72589         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
72590         back, too, since it may have been modified by allocate_entry.
72591         (hash_delete): Rewrite to use neither the assignment operator
72592         nor the comma operator in an if-expression.
72593
72594 2000-05-15  Paul Eggert  <eggert@twinsun.com>
72595
72596         * lib/closeout.c:
72597         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
72598         Remove; no longer needed.
72599         "quotearg.h": Add include.
72600         (file_name): Do not bother to explicitly initialize to NULL; it's less
72601         efficient on some hosts.
72602         (close_stdout_status): Remove test as to whether stdout was already
72603         closed; it breaks for the case "echo x | sort >&-".
72604         Quote file name colons.
72605         Do not assume that _("write error") lacks format strings.
72606
72607 2000-05-15  Jim Meyering  <meyering@lucent.com>
72608
72609         * lib/version-etc.c (version_etc_copyright): Update the copyright
72610         string used in all --version output.
72611
72612 2000-05-14  Jim Meyering  <meyering@lucent.com>
72613
72614         * lib/closeout.c (close_stdout_set_file_name): New function.
72615         (close_stdout_status): Use new file-scoped global.
72616         Return right away if fstat says the stdout file descriptor is invalid.
72617         * lib/closeout.h (close_stdout_set_file_name): Declare.
72618
72619 2000-05-10  Jim Meyering  <meyering@lucent.com>
72620
72621         * lib/closeout.c [default_exit_status]: New file-scoped variable.
72622         (close_stdout_set_status): New function.
72623         * lib/closeout.h (close_stdout_set_status): Declare.
72624
72625 2000-05-09  Jim Meyering  <meyering@lucent.com>
72626
72627         * m4/gettext.m4: Rename this...
72628         * m4/libintl.m4: ...to this.
72629
72630 2000-05-08  Jim Meyering  <meyering@lucent.com>
72631
72632         * lib/long-options.c: Don't include closeout.h.
72633         (parse_long_options): Don't call close_stdout for --version.
72634
72635 2000-05-06  Paul Eggert  <eggert@twinsun.com>
72636
72637         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
72638         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
72639         2.1.3 bug.  This avoids a clash when files like regex.c define
72640         _GNU_SOURCE.
72641
72642 2000-05-06  Jim Meyering  <meyering@lucent.com>
72643
72644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
72645         (AC_REPLACE_FUNCS): Add strnlen.
72646
72647         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
72648         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
72649
72650         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
72651         AC_SEARCH_LIBS call for nanosleep.
72652         (LIB_NANOSLEEP): Set and AC_SUBST.
72653
72654 2000-05-06  Jim Meyering  <meyering@lucent.com>
72655
72656         * lib/strnlen.c: Undefine __strnlen and strnlen.
72657         [!weak_alias]: Define __strnlen to strnlen.
72658
72659         * lib/atexit.c: New file, from libiberty.
72660
72661 2000-05-06  Jim Meyering  <meyering@lucent.com>
72662
72663         * lib/closeout.c (close_stdout_status): Also check for errors on the
72664         stderr stream.
72665
72666 2000-05-05  Jim Meyering  <meyering@lucent.com>
72667
72668         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
72669         AC_SEARCH_LIBS call for clock_gettime.
72670         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
72671
72672         * m4/search-libs.m4: Update from autoconf.
72673
72674         su doesn't work on Solaris 2.6.
72675         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
72676         <shadow.h>.  Reported by Dragos Harabor.
72677
72678 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
72679
72680         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
72681         memcpy instead of xmalloc, xrealloc, path_concat.
72682         (locale_charset): Treat empty environment variables as absent.
72683         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
72684
72685 2000-05-04  Jim Meyering  <meyering@lucent.com>
72686
72687         * lib/getopt.c: Update from glibc.
72688         * lib/obstack.c: Likewise.
72689         * lib/obstack.h: Likewise.
72690         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
72691         file
72692
72693         * lib/regex.h: Likewise.
72694         * lib/strndup.c: Likewise.
72695         * lib/strnlen.c: New file, from glibc.
72696
72697 2000-05-03  Jim Meyering  <meyering@lucent.com>
72698
72699         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
72700
72701 2000-05-02  Paul Eggert  <eggert@twinsun.com>
72702
72703         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
72704         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
72705         compile-time test, rather than inspecting host and OS, to
72706         decide whether to define _LARGEFILE_SOURCE.
72707
72708 2000-05-01  Jim Meyering  <meyering@lucent.com>
72709
72710         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
72711
72712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
72713         Based on a patch from Bruno Haible.
72714
72715 2000-05-01  Jim Meyering  <meyering@lucent.com>
72716
72717         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
72718
72719 2000-04-29  Jim Meyering  <meyering@lucent.com>
72720
72721         * lib/path-concat.c: Declare strdup only if it's not defined.
72722         * lib/canon-host.c: Likewise.
72723
72724 2000-04-28  Jim Meyering  <meyering@lucent.com>
72725
72726         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
72727         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
72728         is included first, then limits.h is included by locale.h by libintl.h.
72729         From John David Anglin.
72730
72731 2000-04-25  Jim Meyering  <meyering@lucent.com>
72732
72733         * lib/makepath.c (S_IRWXUGO): Define.
72734         (make_path): Always perform explicit chmod if MODE specifies any
72735         of the `special' permission bits.  Prompted by a bug report against
72736         install from Mate Wierdl and Joost van Baal.
72737
72738 2000-04-18  Jim Meyering  <meyering@lucent.com>
72739
72740         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
72741         (jm_PREREQ): Use it.
72742
72743 2000-04-18  Jim Meyering  <meyering@lucent.com>
72744
72745         * lib/README: New file.
72746
72747         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
72748         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
72749
72750 2000-04-17  Jim Meyering  <meyering@lucent.com>
72751
72752         Get it right :-)
72753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
72754         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
72755         Suggestion from Akim Demaille.
72756
72757 2000-04-17  Jim Meyering  <meyering@lucent.com>
72758
72759         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
72760         the definition of it to rpl_strftime also defined-away the system's
72761         declaration.
72762
72763 2000-04-15  Jim Meyering  <meyering@lucent.com>
72764
72765         Use `C' to denote so-called `contiguous' files, the same way
72766         that tar does.
72767         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
72768         (ftypelet): Use S_ISCTG.
72769         From Michael Deutschmann.
72770
72771 2000-04-14  Jim Meyering  <meyering@lucent.com>
72772
72773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
72774         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
72775         clobbered.
72776
72777 2000-04-14  Jim Meyering  <meyering@lucent.com>
72778
72779         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
72780
72781 2000-04-13  Jim Meyering  <meyering@lucent.com>
72782
72783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
72784         AH_VERBATIM to insert required #ifndef into config.h.in.
72785         Suggestion from Akim Demaille.
72786
72787 2000-04-12  Jim Meyering  <meyering@lucent.com>
72788
72789         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
72790         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
72791         Christian Krackowizer.
72792
72793         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
72794         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
72795         (AC_SYS_LARGEFILE): Require.
72796         (AM_C_PROTOTYPES): Require.
72797
72798 2000-04-08  Jim Meyering  <meyering@lucent.com>
72799
72800         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
72801         names don't conflict.  Reported by Eli Zaretskii.
72802
72803 2000-04-07  Jim Meyering  <meyering@lucent.com>
72804
72805         * lib/putenv.c: Move inclusion of errno.h so it follows that of
72806         sys/types.h, to work around system header problems on AIX 3.2.5.
72807         From Bruno Haible.
72808
72809 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
72810
72811         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
72812         bug.  Deal with the different error behavior of Irix iconv.
72813
72814 2000-04-05  Paul Eggert  <eggert@twinsun.com>
72815
72816         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
72817         IRIX if the installer said otherwise.
72818
72819 2000-04-05  Jim Meyering  <meyering@lucent.com>
72820
72821         Portability tweaks required for ultrix4.3.
72822         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
72823         (jm_CHECK_DECLS): Add getutent to the list of functions.
72824         (_jm_DECL_HEADERS): Add utmpx.h.
72825         From John David Anglin.
72826
72827         * m4/strftime.m4: Back out the 2000-04-02 change.
72828         Instead of that change, simply undefine putenv in the test program.
72829
72830 2000-04-05  Jim Meyering  <meyering@lucent.com>
72831
72832         Portability tweaks required for ultrix4.3.
72833         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
72834         getutent.
72835         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
72836         * lib/canon-host.c: Declare strdup.
72837         * lib/path-concat.c: Likewise.
72838         From John David Anglin.
72839
72840 2000-04-04  Jim Meyering  <meyering@lucent.com>
72841
72842         Be more DOS 8.3-friendly.
72843         * lib/ref-add.sin: Renamed from ref-add.sed.in.
72844         * lib/ref-del.sin: Renamed from ref-del.sed.in.
72845         * lib/Makefile.am: Reflect renaming.
72846         Reported by Eli Zaretskii.
72847
72848         Use a temporary file name that won't clash with `charset.alias'
72849         in the DOS 8.3 name space.
72850         * lib/Makefile.am (charset_tmp): Define.
72851         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
72852         (uninstall-local): Likewise.
72853         Reported by Eli Zaretskii.
72854
72855 2000-04-03  Jim Meyering  <meyering@lucent.com>
72856
72857         * m4/gettext.m4: Fix typo in comment.
72858
72859         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
72860         textutils/configure.in).  Suggestion from Paul Eggert.
72861         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
72862
72863 2000-04-02  Paul Eggert  <eggert@twinsun.com>
72864
72865         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
72866         variable in the shell rather than using putenv, which isn't
72867         portable.  This avoids the configure-time inter-test dependency
72868         on the potentially-renamed putenv function.
72869
72870 2000-03-30  Paul Eggert  <eggert@twinsun.com>
72871
72872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
72873         before checking struct stat.st_blksize, so that
72874         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
72875
72876 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72877
72878         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
72879         since strftime.c uses HAVE_STRFTIME to decide whether to use
72880         the underlying strftime.
72881
72882 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72883
72884         * lib/time/strftime.c (my_strftime): Make sure we call the system
72885         strftime, not ourselves, when invoking the underlying strftime.
72886
72887 2000-03-24  Jim Meyering  <meyering@lucent.com>
72888
72889         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
72890         (charset_alias): Define.
72891         (install-exec-local): Factor out common code.
72892         (uninstall-local): Split lines longer than 80.
72893         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
72894         (SUFFIXES): Define.
72895         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72896         (CLEANFILES): Add ref-add.sed and ref-del.sed.
72897
72898 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
72899
72900         * lib/config.charset: Output a line containing "Packages using this
72901         file".
72902         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
72903         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
72904         ref-del.sed): New rules.
72905
72906 2000-03-17  Jim Meyering  <meyering@lucent.com>
72907
72908         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
72909         Otherwise, include <strings.h>
72910
72911 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
72912
72913         * lib/unicodeio.c (utf8_wctomb): New function.
72914         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
72915         format instead of in UCS-4 with platform dependent endianness.
72916
72917 2000-03-10  Jim Meyering  <meyering@lucent.com>
72918
72919         * m4/lib-check.m4: Look for getspnam in -lgen, too.
72920         From Marco Franzen.
72921
72922 2000-03-07  Paul Eggert  <eggert@twinsun.com>
72923
72924         * lib/savedir.c (savedir): Work even if directory size is
72925         negative; this can happen with some screwy NFS configurations.
72926
72927 2000-03-06  Jim Meyering  <meyering@lucent.com>
72928
72929         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
72930         if it's NULL (because we ran out of memory).  From Bruno Haible.
72931
72932 2000-03-05  Jim Meyering  <meyering@lucent.com>
72933
72934         * lib/localcharset.c ("path-concat.h"): Include.
72935         (get_charset_aliases): Use path_concat instead of ANSI string
72936         concatenation.
72937
72938         * lib/unicodeio.h (PARAMS): Define.
72939         Use it to guard prototype.
72940
72941 2000-03-04  Jim Meyering  <meyering@lucent.com>
72942
72943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
72944         for lib/localcharset.c.
72945
72946 2000-03-04  Jim Meyering  <meyering@lucent.com>
72947
72948         * lib/Makefile.am (install-exec-local): Create $(libdir) before
72949         installing into it.
72950         (uninstall-local): Uncomment this rule so `make distcheck' works
72951         once again.
72952
72953         * lib/unicodeio.c (<errno.h>): Include it.
72954         (errno): Declare if not defined.
72955
72956         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
72957
72958         * lib/config.charset: New version, incorporating remarks from a linux
72959         i18n mailing list.  From Bruno Haible.
72960
72961 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
72962
72963         * m4/codeset.m4: New file.
72964         * m4/iconv.m4: New file.
72965         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
72966
72967 2000-03-03  Jim Meyering  <meyering@lucent.com>
72968
72969         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
72970
72971 2000-03-02  Jim Meyering  <meyering@lucent.com>
72972
72973         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
72974         the messages come out on separate lines.
72975
72976         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
72977         rather than jm_CHECK_DECLARATIONS.
72978         * m4/decl.m4: Remove now-unused file.
72979
72980         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
72981         geteuid.
72982
72983 2000-03-02  Jim Meyering  <meyering@lucent.com>
72984
72985         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
72986
72987 2000-03-01  Jim Meyering  <meyering@lucent.com>
72988
72989         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
72990         * lib/unicodeio.c: Likewise.
72991
72992 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
72993
72994         * lib/config.charset: New file.
72995         * lib/localcharset.c: New file.
72996         * lib/unicodeio.h, lib/unicodeio.c: New files.
72997         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
72998         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
72999         (noinst_HEADERS): Add unicodeio.h.
73000         (all-local, install-exec-local, charset.alias): New targets.
73001
73002 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73003
73004         * lib/quotearg.c (ALERT_CHAR): New macro.
73005         (quotearg_buffer_restyled): Use it.
73006
73007 2000-02-27  Jim Meyering  <meyering@lucent.com>
73008
73009         * m4/check-decl.m4: Add getenv to the list.
73010
73011 2000-02-27  Jim Meyering  <meyering@lucent.com>
73012
73013         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73014         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73015
73016         * lib/backupfile.c: Guard inclusion of stdlib.h with
73017         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73018         Declare malloc if needed.
73019
73020         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73021         `#ifndef HAVE_DECL..'
73022         now that autoconf always defines the HAVE_DECL_ symbols.
73023         * lib/human.c: Likewise.
73024         * lib/same.c: Likewise.
73025         * lib/strtoumax.c: Likewise.
73026
73027         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73028         declaration check was not run.
73029         * lib/hash.c: Likewise.
73030         * lib/human.c: Likewise.
73031         * lib/same.c: Likewise.
73032         * lib/strtoumax.c: Likewise.
73033
73034         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73035         `.', then first look up the entire `.'-containing string as a login
73036         name.
73037
73038 2000-02-23  Jim Meyering  <meyering@lucent.com>
73039
73040         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73041         in place of my hack.
73042
73043 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73044
73045         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73046         (textint): New typedef.
73047         (parser_control): Member year changed from int to textint.
73048         All uses changed.
73049         (YYSTYPE): Removed; replaced by %union with int and textint members.
73050         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73051         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73052         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73053         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73054         (date, number, to_year): Use width of number in digits, not its value,
73055         to determine whether it's a 2-digit year, or a 2-digit time.
73056         (yylex): Store number of digits of numeric tokens.
73057         Reported by John Kendall.
73058
73059         (parser_control): Changed from struct parser_control to typedef (for
73060         consistency).  All uses changed.
73061
73062         (tID): Removed; not used.
73063         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73064
73065 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73066
73067         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73068         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73069
73070 2000-02-12  Jim Meyering  <meyering@lucent.com>
73071
73072         * lib/userspec.c (ISDIGIT): Define it.
73073         (isdigit): Remove definition.
73074         (is_number): Use ISDIGIT, not isdigit.
73075         <libintl.h>: Include.
73076         (_ and N_): Define.
73077         (parse_user_spec): Mark translatable strings.
73078
73079 2000-02-10  Jim Meyering  <meyering@lucent.com>
73080
73081         With these changes, nanosleep.[ch] are finally enough like the other
73082         lib/* replacement files to compile on a few more losing systems.
73083
73084         * lib/nanosleep.h: Don't include config.h.
73085         Remove prototype from declaration of nanosleep.
73086         (PARAMS): Remove now-unneeded definition.
73087         * lib/nanosleep.c: #undef nanosleep.
73088         (rpl_nanosleep): Rename from nanosleep.
73089
73090 2000-02-10  Jim Meyering  <meyering@lucent.com>
73091
73092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73093         gnu_nanosleep to rpl_nanosleep.
73094
73095 2000-02-09  Jim Meyering  <meyering@lucent.com>
73096
73097         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73098         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73099
73100 2000-02-08  Akim Demaille  <akim@epita.fr>
73101
73102         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73103         `[' and `]' and remove uses of `changequote'.
73104         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73105         (AC_SYS_LARGEFILE): Likewise.
73106         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73107         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73108         of changequote.
73109         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73110         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73111         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73112         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73113
73114 2000-02-05  Jim Meyering  <meyering@lucent.com>
73115
73116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73117         Remove explicit use of AC_HEADER_TIME.  It is required by
73118         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73119         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73120         in autoconf whereby the expansion of the latter ended up preceding
73121         the expansion of its prerequisite, AC_HEADER_TIME.
73122         Reported by Volker Borchert.
73123
73124 2000-02-03  Jim Meyering  <meyering@lucent.com>
73125
73126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73127
73128 2000-02-03  Jim Meyering  <meyering@lucent.com>
73129
73130         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73131         rather than with `#if HAVE_UTMPNAME'.
73132
73133 2000-02-02  Jim Meyering  <meyering@lucent.com>
73134
73135         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73136         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73137         Reported by Eli Zaretskii.
73138
73139 2000-02-01  Jim Meyering  <meyering@lucent.com>
73140
73141         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73142
73143 2000-01-31  Jim Meyering  <meyering@lucent.com>
73144
73145         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73146         functions.  Add the time.h and sys/time.h headers along with the
73147         AC_REQUIRE'ment of AC_HEADER_TIME.
73148
73149 2000-01-31  Jim Meyering  <meyering@lucent.com>
73150
73151         * lib/nanosleep.h (nanosleep): Guard declaration with
73152         `#if ! HAVE_DECL_NANOSLEEP'.
73153         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73154         the declaration in that vendor's sys/timers.h.
73155         Reported by Christian Krackowizer.
73156
73157         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73158         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73159         (ISPRINT): Likewise.
73160         Reported by Tom Tromey.
73161
73162 2000-01-30  Jim Meyering  <meyering@lucent.com>
73163
73164         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73165
73166         * m4/prereq.m4 (utmp_includes): Define.
73167         Check for ut_user and ut_name members in both struct utmpx
73168         and struct utmp.
73169
73170 2000-01-30  Jim Meyering  <meyering@lucent.com>
73171
73172         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73173         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73174         header files where only utmpx.ut_user is declared.
73175
73176         * lib/readutmp.h (UT_USER): Define.
73177
73178 2000-01-29  Jim Meyering  <meyering@lucent.com>
73179
73180         * m4/lib-check.m4: New file containing library-related checks from
73181         fileutils and sh-utils (textutils had none).
73182
73183 2000-01-28  Jim Meyering  <meyering@lucent.com>
73184
73185         * m4/perl.m4: Change format of warning message to look more like that
73186         from the missing script.  Suggestion from François Pinard.
73187
73188 2000-01-25  Jim Meyering  <meyering@lucent.com>
73189
73190         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73191         well as time.h in the compile check.
73192         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73193         Fix typo in cross-compiling case: s/yes/no/.
73194
73195 2000-01-23  Jim Meyering  <meyering@lucent.com>
73196
73197         * m4/jm-macros.m4: Move df-related tests here from
73198         fileutils/configure.in
73199
73200         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73201         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73202
73203         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73204         s/space/ac_fsusage_space/.
73205         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73206
73207         * m4/ftruncate.m4: New file (derived from part of
73208         fileutils/configure.in).
73209         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73210         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73211
73212         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73213         AC_SUBST these here, rather than just in sh-util/configure.in, so
73214         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73215         all the same.
73216         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73217         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73218         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73219         (AC_SUBST(POW_LIBM)): Likewise.
73220         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73221
73222 2000-01-23  Jim Meyering  <meyering@lucent.com>
73223
73224         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73225         obstack.c.
73226
73227 2000-01-22  Jim Meyering  <meyering@lucent.com>
73228
73229         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73230
73231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73232
73233         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73234         configure.in
73235         (AC_CHECK_HEADERS): Likewise for sh-utils.
73236         (AC_CHECK_HEADERS): Likewise for textutils.
73237         Merge the three lists of headers.
73238
73239         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73240         from fileutils' configure.in.
73241
73242         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73243         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73244         check-decl.m4.
73245
73246         * m4/check-decl.m4: Use #if rather than #ifdef.
73247         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73248         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73249         (_jm_DECL_HEADERS): Define new function.
73250         (jm_CHECK_DECLARATIONS): Require it.
73251
73252 2000-01-22  Jim Meyering  <meyering@lucent.com>
73253
73254         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73255         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73256         Required for some AIX systems.  Reported by Christian Krackowizer.
73257         [TESTING] (main): New function.
73258
73259         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73260         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73261         letters.
73262
73263         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73264         iswprint.
73265
73266         * lib/strverscmp.c (ISDIGIT): Define.
73267         (strverscmp): Use ISDIGIT, not isdigit.
73268
73269 2000-01-19  Jim Meyering  <meyering@lucent.com>
73270
73271         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73272         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73273         defines `struct timespec' in <sys/time.h>
73274
73275         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73276         Thanks to Akim for explaining.
73277
73278 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73279
73280         * lib/nanosleep.c (nanosleep):
73281         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73282         POSIX.1 doesn't require SA_INTERRUPT and some systems
73283         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73284         it's been part of POSIX.1 since day 1 (in 1988).
73285
73286 2000-01-17  Jim Meyering  <meyering@lucent.com>
73287
73288         * lib/interlock: Remove unused file.  Reported by François Pinard.
73289
73290 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73291
73292         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73293         alert, backslash, formfeed, and vertical tab unnecessarily in
73294         shell quoting style.
73295
73296 2000-01-16  Jim Meyering  <meyering@lucent.com>
73297
73298         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73299         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73300         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73301         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73302
73303 2000-01-16  Jim Meyering  <meyering@lucent.com>
73304
73305         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73306         because the latter didn't work.
73307
73308 2000-01-15  Jim Meyering  <meyering@lucent.com>
73309
73310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73311         (AC_REPLACE_FUNCS): Add memcpy and memset.
73312         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73313         Add strpbrk.
73314         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73315
73316 2000-01-12  Jim Meyering  <meyering@lucent.com>
73317
73318         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73319         (jm_PREREQ): Use it.
73320         (jm_PREREQ_READUTMP): New macro.
73321         (jm_PREREQ): Use it.
73322
73323 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73324
73325         Quote multibyte characters correctly.
73326         * m4/c-bs-a.m4: New file.
73327         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73328         (jm_PREREQ): Use it.
73329
73330 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73331
73332         * m4/uintmax_t.m4: Port to autoconf 2.13.
73333
73334 2000-01-08  Jim Meyering  <meyering@ascend.com>
73335
73336         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73337         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73338
73339 2000-01-04  Jim Meyering  <meyering@ascend.com>
73340
73341         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73342         jm_STRUCT_DIRENT_D_TYPE.
73343         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73344         jm_STRUCT_DIRENT_D_INO.
73345         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73346         jm_STRUCT_UTIMBUF.
73347         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73348         renamings.
73349         * m4/utime.m4: Likewise.
73350
73351         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73352         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73353
73354 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73355
73356         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73357         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73358
73359 2000-01-02  Jim Meyering  <meyering@ascend.com>
73360
73361         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73362         remember if this is necessary.
73363
73364 1999-12-26  Jim Meyering  <meyering@ascend.com>
73365
73366         * m4/jm-macros.m4: Use it here.
73367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73368
73369 1999-12-23  Jim Meyering  <meyering@ascend.com>
73370
73371         * m4/jm-macros.m4: Check for clock_gettime (moved from
73372         fileutils/configure.in)
73373         Check for gettimeofday.
73374
73375 1999-12-20  Jim Meyering  <meyering@ascend.com>
73376
73377         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73378         autoconf-2.14a-1999-12-20.
73379
73380 1999-12-19  Jim Meyering  <meyering@ascend.com>
73381
73382         * m4/lstat-slash.m4: New file.
73383         * m4/jm-macros.m4: Use the new macro:
73384         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73385
73386 1999-12-07  Jim Meyering  <meyering@ascend.com>
73387
73388         * m4/perl.m4: Require that File::Compare be available, too.
73389         Too many systems seem to lack it.
73390
73391         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73392         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73393
73394 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73395
73396         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73397         problem with the QNX 4.25 shell, which doesn't propagate exit
73398         status of failed commands inside shell assignments.
73399
73400 1999-11-17  Jim Meyering  <meyering@ascend.com>
73401
73402         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73403
73404 1999-11-07  Jim Meyering  <meyering@ascend.com>
73405
73406         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73407
73408 1999-11-06  Jim Meyering  <meyering@ascend.com>
73409
73410         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73411         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73412
73413 1999-11-05  Jim Meyering  <meyering@ascend.com>
73414
73415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73416         configure.in of textutils, fileutils, and sh-utils into this one
73417         (shared between those packages) file.
73418         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73419         AC_STRUCT_ST_BLKSIZE.
73420
73421 1999-11-03  Jim Meyering  <meyering@ascend.com>
73422
73423         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73424         of AC_CHECK_TYPE checks includes unistd.h.
73425         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73426         Suggestion from Akim Demaille.
73427
73428 1999-10-30  Jim Meyering  <meyering@ascend.com>
73429
73430         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73431         m4-quoted string.
73432         * m4/ls-mntd-fs.m4: Likewise.
73433         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73434         * m4/jm-winsz1.m4: Likewise.
73435
73436         * m4/const.m4: Remove file, since the fix made it into the experimental
73437         version of autoconf.
73438         * m4/mktime.m4: Likewise.
73439
73440         * m4/check-type.m4: Remove file, now that the latest version of
73441         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73442
73443         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73444         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73445         AC_CHECK_TYPE.
73446
73447 1999-10-04  Jim Meyering  <meyering@ascend.com>
73448
73449         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73450
73451 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73452
73453         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73454         2.95.1 bug with HP-UX 10.20.
73455
73456 1999-09-17  Jim Meyering  <meyering@ascend.com>
73457
73458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73459         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73460         due to missing strdup (against sh-utils-2.0).
73461
73462 1999-08-29  Jim Meyering  <meyering@ascend.com>
73463
73464         * m4/jm-macros.m4: Require jm_BISON.
73465         * m4/bison.m4: New file.
73466
73467 1999-08-17  Paul Eggert  <eggert@twinsun.com>
73468
73469         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
73470         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
73471
73472 1999-08-05  Jim Meyering  <meyering@ascend.com>
73473
73474         * m4/getline.m4: Rename test file from conftestdata to conftest.data
73475         to avoid conflicts with `conftest' on 8+3 filesystems.
73476         Suggestion from Eli Zaretskii.
73477
73478 1999-08-04  Jim Meyering  <meyering@ascend.com>
73479
73480         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
73481         fileutils and sh-utils (textutils's getline test was inadequate).
73482         (AM_FUNC_GETLINE): Run this test.
73483         (AC_CHECK_FUNCS): Check for getdelim.
73484         Reported by Bob Proulx.
73485
73486 1999-08-02  Jim Meyering  <meyering@ascend.com>
73487
73488         * m4/jm-macros.m4: Add a comment.
73489
73490 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73491
73492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
73493         <inttypes.h> defines strtoumax as a macro (and not as a
73494         function).
73495
73496 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73497
73498         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
73499         that we can shift, multiply and divide unsigned long long
73500         values; Ultrix cc can't do it.
73501
73502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73503
73504         * m4/mktime.m4: New file, which is a preview of what should appear
73505         in the next public autoconf release.
73506
73507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73508
73509         * m4/lfs.m4: Remove this file.
73510         * m4/largefile.m4: New file.  It contains the old contents of
73511         lfs.m4, except that all names with prefix AC_LFS have been
73512         changed to use the prefix AC_SYS_LARGEFILE instead, to be
73513         compatible with future autoconf versions.  Also, some minor m4
73514         quoting problems have been fixed.
73515
73516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73517
73518         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
73519         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
73520         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
73521         and simplify the shell code.
73522
73523 1999-08-01  Jim Meyering  <meyering@ascend.com>
73524
73525         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
73526         m4.
73527
73528 1999-07-20  Jim Meyering  <meyering@ascend.com>
73529
73530         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
73531
73532 1999-07-15  Jim Meyering  <meyering@ascend.com>
73533
73534         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
73535
73536 1999-05-22  Jim Meyering  <meyering@ascend.com>
73537
73538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
73539
73540 1999-05-20  Jim Meyering  <meyering@ascend.com>
73541
73542         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
73543         Add a colon after each `then' in case $4 is empty.
73544
73545 1999-05-16  Jim Meyering  <meyering@ascend.com>
73546
73547         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
73548
73549 1999-05-10  Jim Meyering  <meyering@ascend.com>
73550
73551         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
73552
73553         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
73554         AC_FUNC_MKTIME.
73555
73556 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73557
73558         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
73559
73560 1999-05-04  Paul Eggert  <eggert@twinsun.com>
73561
73562         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
73563         not CPPFLAGS, so that linking works correctly in IRIX.
73564
73565 1999-04-30  Paul Eggert  <eggert@twinsun.com>
73566
73567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
73568
73569 1999-04-20  Paul Eggert  <eggert@twinsun.com>
73570
73571         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
73572         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
73573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
73574         jm_AC_TYPE_UNSIGNED_LONG_LONG.
73575         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
73576
73577         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
73578
73579 1999-04-20  Jim Meyering  <meyering@ascend.com>
73580
73581         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
73582         AC_REPLACE xstroull if necessary.  From Paul Eggert.
73583         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
73584
73585 1999-04-18  Jim Meyering  <meyering@ascend.com>
73586
73587         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
73588         * m4/jm-macros.m4: Use it.
73589
73590 1999-04-06  Jim Meyering  <meyering@ascend.com>
73591
73592         * m4/strftime.m4: Remove test for %f.
73593
73594 1999-03-29  Jim Meyering  <meyering@ascend.com>
73595
73596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
73597         superset of the AC_TYPE_* checks in the textutils, fileutils,
73598         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
73599         AC_TYPE_PID_T.
73600
73601 1999-03-28  Jim Meyering  <meyering@ascend.com>
73602
73603         * m4/jm-macros.m4: Define GNU_PACKAGE here.
73604         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
73605         replaced e.g., in the *.sh files of the sh-utils.
73606
73607 1999-03-20  Jim Meyering  <meyering@ascend.com>
73608
73609         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
73610         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
73611         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
73612
73613 1999-03-19  Jim Meyering  <meyering@ascend.com>
73614
73615         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
73616
73617 1999-03-12  Jim Meyering  <meyering@ascend.com>
73618
73619         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
73620
73621 1999-03-07  Jim Meyering  <meyering@ascend.com>
73622
73623         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
73624         declared.
73625
73626 1999-02-17  Jim Meyering  <meyering@ascend.com>
73627
73628         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
73629         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
73630
73631 1999-02-07  Jim Meyering  <meyering@ascend.com>
73632
73633         * m4/group-member.m4: New file -- extracted from sh-utils'
73634         configure.in.
73635
73636         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
73637         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
73638
73639 1999-02-06  Jim Meyering  <meyering@ascend.com>
73640
73641         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
73642         * m4/fnmatch.m4: Likewise.
73643         * m4/getgroups.m4: Likewise.
73644         * m4/lstat.m4: Likewise.
73645         * m4/malloc.m4: Likewise.
73646         * m4/putenv.m4: Likewise.
73647         * m4/realloc.m4: Likewise.
73648         * m4/regex.m4: Likewise.
73649         * m4/stat.m4: Likewise.
73650         * m4/strftime.m4: Likewise.
73651         Suggestion from Alain Magloire.
73652
73653         * m4/chown.m4: Use `.$ac_objext', not `.o'.
73654         * m4/fnmatch.m4: Likewise.
73655         * m4/getgroups.m4: Likewise.
73656         * m4/getline.m4: Likewise.
73657         * m4/lstat.m4: Likewise.
73658         * m4/malloc.m4: Likewise.
73659         * m4/memcmp.m4: Likewise.
73660         * m4/putenv.m4: Likewise.
73661         * m4/realloc.m4: Likewise.
73662         * m4/regex.m4: Likewise.
73663         * m4/stat.m4: Likewise.
73664         * m4/strftime.m4: Likewise.
73665         Suggestion from Alain Magloire.
73666
73667         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
73668         an argument.
73669
73670         * m4/regex.m4: Add a run-time Test for proper operation of
73671         re_compile_pattern.
73672
73673 1999-01-31  Jim Meyering  <meyering@ascend.com>
73674
73675         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
73676
73677 1999-01-30  Jim Meyering  <meyering@ascend.com>
73678
73679         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
73680
73681         * m4/jm-mktime.m4: Make this a wrapper around the official
73682         AM_FUNC_MKTIME rather than my private copy, now that the official one
73683         is up to date.
73684         * m4/mktime.m4: Remove file.
73685
73686         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
73687         * m4/uptime.m4: Likewise.
73688         * m4/uintmax_t.m4: Likewise.
73689
73690 1999-01-28  Jim Meyering  <meyering@ascend.com>
73691
73692         * m4/jm-macros.m4: Use jm_AFS.
73693         * m4/afs.m4: New file (from fileutils' configure.in).
73694
73695         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
73696         * m4/chown.m4: Likewise.
73697         * m4/d-ino.m4: Likewise.
73698         * m4/d-type.m4: Likewise.
73699         * m4/fnmatch.m4: Likewise.
73700         * m4/getgroups.m4: Likewise.
73701         * m4/gettext.m4: Likewise.
73702         * m4/jm-mktime.m4: Likewise.
73703         * m4/jm-winsz2.m4: Likewise.
73704         * m4/lcmessage.m4: Likewise.
73705         * m4/ls-mntd-fs.m4: Likewise.
73706         * m4/malloc.m4: Likewise.
73707         * m4/memcmp.m4: Likewise.
73708         * m4/putenv.m4: Likewise.
73709         * m4/realloc.m4: Likewise.
73710         * m4/st_mtim.m4: Likewise.
73711         * m4/strftime.m4: Likewise.
73712
73713 1999-01-16  Jim Meyering  <meyering@ascend.com>
73714
73715         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
73716         (ARGMATCH_DIE_DECL): Define.
73717
73718 1999-01-12  Jim Meyering  <meyering@ascend.com>
73719
73720         * m4/Makefile.am.in: Rewrite to avoid using fmt.
73721         Reported by Lars Hecking.
73722
73723 1999-01-10  Jim Meyering  <meyering@ascend.com>
73724
73725         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
73726         gross kludge.
73727         * m4/inttypes_h.m4: Likewise.
73728         * m4/lstat.m4: Likewise.
73729         * m4/malloc.m4: Likewise.
73730         * m4/readdir.m4: Likewise.
73731         * m4/realloc.m4: Likewise.
73732         * m4/st_dm_mode.m4: Likewise.
73733         * m4/stat.m4: Likewise.
73734         * m4/utimbuf.m4: Likewise.
73735         * m4/utimes.m4: Likewise.
73736
73737         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
73738         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
73739         comments in config.h.in are meaningful.
73740
73741         * m4/jm-macros.m4: Require autoconf-2.13 here.
73742
73743         * m4/regex.m4: By default, don't use the included regex.c on systems
73744         with glibc 2.  Suggestion from Uli Drepper.
73745
73746 1999-01-02  Jim Meyering  <meyering@ascend.com>
73747
73748         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
73749
73750 1998-12-18  Jim Meyering  <meyering@ascend.com>
73751
73752         * m4/Makefile.am.in (Makefile.am): Simplify rule.
73753         Based on a suggestion from Lars Hecking.
73754
73755 1998-11-16  Paul Eggert  <eggert@twinsun.com>
73756
73757         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
73758
73759 1998-11-16  Jim Meyering  <meyering@ascend.com>
73760
73761         * m4/lfs.m4: Double-quote the `uname...` expression.
73762
73763 1998-11-14  Jim Meyering  <meyering@ascend.com>
73764
73765         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
73766         * m4/stat.m4: Likewise.
73767
73768 1998-11-03  Jim Meyering  <meyering@ascend.com>
73769
73770         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
73771         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
73772
73773 1998-10-18  Jim Meyering  <meyering@ascend.com>
73774
73775         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
73776
73777 1998-10-17  Jim Meyering  <meyering@ascend.com>
73778
73779         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
73780         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
73781         calls for those previously hard-coded headers.  Instead, take a new
73782         parameter.
73783         (jm_CHECK_DECLARATIONS): Reflect interface change.
73784         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
73785         (jm_CHECK_DECL_LOCALTIME_R): New macro.
73786
73787         * m4/mktime.m4: Test for spring-forward gap before long-running test.
73788
73789 1998-10-14  Jim Meyering  <meyering@ascend.com>
73790
73791         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
73792         instead of "TZ=America/Vancouver".  From Paul Eggert.
73793
73794 1998-10-11  Jim Meyering  <meyering@ascend.com>
73795
73796         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
73797         This adds a test for a recently added compatibility fix for mktime.c.
73798         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
73799
73800 1998-09-27  Jim Meyering  <meyering@ascend.com>
73801
73802         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
73803
73804         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
73805         ../configure.in, including a change from Gordon Matzigkeit to allow
73806         cross-compiling for the Hurd.
73807
73808         * m4/glibc.m4: New file/macro to test for the GNU C Library
73809         versions 1 and 2.  From Gordon Matzigkeit.
73810         Indent.
73811
73812 1998-09-21  Jim Meyering  <meyering@ascend.com>
73813
73814         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
73815
73816 1998-08-18  Paul Eggert  <eggert@twinsun.com>
73817
73818         Port nanosecond-resolution times to UnixWare 2.1.2 and
73819         pedantic Solaris 2.6.
73820
73821         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
73822         AC_STRUCT_ST_MTIM.
73823         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
73824         Generate name of ns member, instead of just 1 or undef.
73825         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
73826
73827 1998-08-15  Jim Meyering  <meyering@ascend.com>
73828
73829         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
73830         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
73831         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
73832         instead of jm_TYPE_SSIZE_T.
73833
73834 1998-08-12  Jim Meyering  <meyering@ascend.com>
73835
73836         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
73837
73838 1998-08-02  Jim Meyering  <meyering@ascend.com>
73839
73840         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
73841         in acconfig.h manually.
73842
73843 1998-07-31  Paul Eggert  <eggert@twinsun.com>
73844
73845         * m4/st_mtim.m4: New file.
73846
73847 1998-07-28  Jim Meyering  <meyering@ascend.com>
73848
73849         * m4/utimes.m4: Undef stat.
73850
73851 1998-07-25  Jim Meyering  <meyering@ascend.com>
73852
73853         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
73854         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
73855
73856 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
73857
73858         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
73859         uid and gid actually remain unchanged.
73860
73861 1998-07-07  Jim Meyering  <meyering@ascend.com>
73862
73863         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
73864
73865 1998-07-04  Jim Meyering  <meyering@ascend.com>
73866
73867         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
73868         to prove that this macro can be used in packages without regex.c.
73869
73870 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
73871
73872         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
73873         is to be used.
73874
73875 1998-07-03  Jim Meyering  <meyering@ascend.com>
73876
73877         * m4/gettext.m4: Add -lintl if it's found to be necessary.
73878
73879         * m4/gettext.m4: New file -- from gettext-0.10.35.
73880         * m4/lcmessage.m4: Likewise.
73881         * m4/progtest.m4: Likewise.
73882
73883         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
73884         * m4/jm-macros.m4: Require the new macro.
73885
73886 1998-06-29  Jim Meyering  <meyering@ascend.com>
73887
73888         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
73889         for the definition of NGROUPS (used in a system header included
73890         by sys/mount.h).
73891
73892 1998-06-28  Jim Meyering  <meyering@ascend.com>
73893
73894         * m4/ls-mntd-fs.m4: New file.
73895         * m4/fstypename.m4: New file.
73896
73897         * m4/jm-macros.m4: Require the new macro.
73898         * m4/jm-glibc-io.m4: New file.
73899
73900 1998-05-19  Jim Meyering  <meyering@ascend.com>
73901
73902         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
73903         * m4/lchown.m4: New file.
73904
73905         * m4/Makefile.am.in: New file.
73906         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
73907
73908 1998-05-14  Jim Meyering  <meyering@ascend.com>
73909
73910         * m4/Makefile.am (EXTRA_DIST): Add them.
73911         * m4/jm-macros.m4: New file.
73912         * m4/utimbuf.m4: New file.
73913
73914 1998-05-12  Jim Meyering  <meyering@ascend.com>
73915
73916         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
73917
73918 1998-05-11  Jim Meyering  <meyering@ascend.com>
73919
73920         * m4/isc-posix.m4: New file.
73921
73922 1998-05-10  Jim Meyering  <meyering@ascend.com>
73923
73924         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
73925
73926 1998-05-09  Jim Meyering  <meyering@ascend.com>
73927
73928         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
73929         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
73930         with automake.
73931
73932         * m4/ssize_t.m4: New file.
73933         * m4/mktime.m4: Remove file -- the new automake has this now.
73934
73935 1998-04-26  Jim Meyering  <meyering@ascend.com>
73936
73937         * m4/assert.m4: New file.
73938         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
73939
73940 1998-04-05  Jim Meyering  <meyering@ascend.com>
73941
73942         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
73943         (jm_PREREQ): Use it here.
73944
73945 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
73946
73947         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
73948         in acconfig.h.
73949
73950 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
73951
73952         * m4/prereq.m4: New file.
73953         * m4/error.m4: New file.
73954         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
73955
73956 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
73957
73958         * m4/getline.m4: Don't set am_cv_func_working_getline before the
73959         cache-check for the same variable -- that defeated the purpose of
73960         the test; the test program was never run.  This was a problem only
73961         on systems with losing getline functions -- HP-UX 10.20 is one.
73962         Reported by Bjorn Helgaas.
73963
73964 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
73965
73966         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
73967
73968 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
73969
73970         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
73971
73972         * m4/const.m4: New file.  Use an initializer in this declaration
73973         typedef int charset[2]; const charset x;
73974         Reported by Bob Glickstein.
73975
73976 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
73977
73978         * m4/chown.m4: Fix reversed types on -1 args to chown.
73979         From Kaveh Ghazi.
73980
73981 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
73982
73983         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
73984         Add lseek and memchr.
73985
73986         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
73987         T.E.Dickey <dickey@clark.net> said that some older preprocessors
73988         have a 20-character limit on names.
73989
73990 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
73991
73992         * m4/inttypes_h.m4: New file.
73993         * m4/uintmax_t.m4: New file.
73994         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
73995
73996
73997         -----
73998
73999         Local Variables:
74000         coding: utf-8
74001         End:
74002
74003         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74004
74005         Copying and distribution of this file, with or without
74006         modification, are permitted provided the copyright notice
74007         and this notice are preserved.