avoid gcc warnings about unused macro definitions
[gnulib.git] / ChangeLog
1 2009-03-12  Jim Meyering  <meyering@redhat.com>
2
3         avoid gcc warnings about unused macro definitions
4         * lib/readtokens.c (STREQ): Remove unused definition.
5         * lib/xmalloc.c (SIZE_MAX): Likewise.
6         * lib/openat-die.c (N_): Likewise.
7         * lib/mountlist.c (SIZE_MAX): Remove definition.
8         Instead, include <stdint.h>.
9         * lib/readutmp.c: Likewise.
10         * modules/readutmp (Depends-on): Add stdint.
11         * modules/mountlist (Depends-on): Add stdint.
12         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13
14 2009-03-10  Bruno Haible  <bruno@clisp.org>
15
16         Tests for module 'mbmemcasecoll'.
17         * modules/mbmemcasecoll-tests: New file.
18         * tests/test-mbmemcasecoll1.sh: New file.
19         * tests/test-mbmemcasecoll2.sh: New file.
20         * tests/test-mbmemcasecoll3.sh: New file.
21         * tests/test-mbmemcasecoll.c: New file.
22
23         New module 'mbmemcasecoll'.
24         * lib/mbmemcasecoll.h: New file.
25         * lib/mbmemcasecoll.c: New file.
26         * modules/mbmemcasecoll: New file.
27
28         * tests/test-mbmemcasecmp.h: New file, extracted from
29         tests/test-mbmemcasecmp.c.
30         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32         (main): Update.
33         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34
35 2009-03-09  Bruno Haible  <bruno@clisp.org>
36
37         Tests for module 'mbmemcasecmp'.
38         * modules/mbmemcasecmp-tests: New file.
39         * tests/test-mbmemcasecmp1.sh: New file.
40         * tests/test-mbmemcasecmp2.sh: New file.
41         * tests/test-mbmemcasecmp3.sh: New file.
42         * tests/test-mbmemcasecmp.c: New file.
43
44         New module 'mbmemcasecmp'.
45         * lib/mbmemcasecmp.h: New file.
46         * lib/mbmemcasecmp.c: New file.
47         * modules/mbmemcasecmp: New file.
48
49 2009-03-09  Bruno Haible  <bruno@clisp.org>
50
51         Tests for module 'unicase/ulc-casecoll'.
52         * modules/unicase/ulc-casecoll-tests: New file.
53         * tests/unicase/test-ulc-casecoll1.sh: New file.
54         * tests/unicase/test-ulc-casecoll2.sh: New file.
55         * tests/unicase/test-ulc-casecoll.c: New file.
56
57         New module 'unicase/ulc-casecoll'.
58         * lib/unicase.h (ulc_casecoll): New declaration.
59         * lib/unicase/ulc-casecoll.c: New file.
60         * modules/unicase/ulc-casecoll: New file.
61
62         New module 'unicase/ulc-casexfrm'.
63         * lib/unicase.h (ulc_casexfrm): New declaration.
64         * lib/unicase/ulc-casexfrm.c: New file.
65         * modules/unicase/ulc-casexfrm: New file.
66
67 2009-03-09  Bruno Haible  <bruno@clisp.org>
68
69         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
70         invocations.
71
72         * m4/mbscasecmp.m4: Remove file.
73         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
74         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
75
76         * m4/mbscasestr.m4: Remove file.
77         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
78         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
79
80         * m4/mbschr.m4: Remove file.
81         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
82         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83
84         * m4/mbscspn.m4: Remove file.
85         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
86         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
87
88         * m4/mbslen.m4: Remove file.
89         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
90         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
91
92         * m4/mbsncasecmp.m4: Remove file.
93         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
94         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
95
96         * m4/mbsnlen.m4: Remove file.
97         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
98         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
99
100         * m4/mbspbrk.m4: Remove file.
101         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
102         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
103
104         * m4/mbspcasecmp.m4: Remove file.
105         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
106         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
107
108         * m4/mbsrchr.m4: Remove file.
109         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
110         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
111
112         * m4/mbssep.m4: Remove file.
113         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
114         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
115
116         * m4/mbsspn.m4: Remove file.
117         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
118         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
119
120         * m4/mbsstr.m4: Remove file.
121         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
122         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
123
124         * m4/mbstok_r.m4: Remove file.
125         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
126         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
127
128         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
129
130         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
131         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
132
133         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
134
135 2009-03-08  Bruno Haible  <bruno@clisp.org>
136
137         Tests for module 'unicase/ulc-casecmp'.
138         * modules/unicase/ulc-casecmp-tests: New file.
139         * tests/unicase/test-ulc-casecmp1.sh: New file.
140         * tests/unicase/test-ulc-casecmp2.sh: New file.
141         * tests/unicase/test-ulc-casecmp.c: New file.
142
143         New module 'unicase/ulc-casecmp'.
144         * lib/unicase.h (ulc_casecmp): New declaration.
145         * lib/unicase/ulc-casecmp.c: New file.
146         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
147         'const SRC_UNIT *'.
148         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
149         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
150         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
151         * modules/unicase/ulc-casecmp: New file.
152
153         Tests for module 'unicase/u32-is-cased'.
154         * modules/unicase/u32-is-cased-tests: New file.
155         * tests/unicase/test-u32-is-cased.c: New file.
156
157         Tests for module 'unicase/u16-is-cased'.
158         * modules/unicase/u16-is-cased-tests: New file.
159         * tests/unicase/test-u16-is-cased.c: New file.
160
161         Tests for module 'unicase/u8-is-cased'.
162         * modules/unicase/u8-is-cased-tests: New file.
163         * tests/unicase/test-u8-is-cased.c: New file.
164         * tests/unicase/test-is-cased.h: New file.
165
166         New module 'unicase/u32-is-cased'.
167         * lib/unicase/u32-is-cased.c: New file.
168         * modules/unicase/u32-is-cased: New file.
169
170         New module 'unicase/u16-is-cased'.
171         * lib/unicase/u16-is-cased.c: New file.
172         * modules/unicase/u16-is-cased: New file.
173
174         New module 'unicase/u8-is-cased'.
175         * lib/unicase/u8-is-cased.c: New file.
176         * lib/unicase/u-is-cased.h: New file.
177         * modules/unicase/u8-is-cased: New file.
178
179         Tests for module 'unicase/u32-is-casefolded'.
180         * modules/unicase/u32-is-casefolded-tests: New file.
181         * tests/unicase/test-u32-is-casefolded.c: New file.
182
183         Tests for module 'unicase/u16-is-casefolded'.
184         * modules/unicase/u16-is-casefolded-tests: New file.
185         * tests/unicase/test-u16-is-casefolded.c: New file.
186
187         Tests for module 'unicase/u8-is-casefolded'.
188         * modules/unicase/u8-is-casefolded-tests: New file.
189         * tests/unicase/test-u8-is-casefolded.c: New file.
190         * tests/unicase/test-is-casefolded.h: New file.
191
192         New module 'unicase/u32-is-casefolded'.
193         * lib/unicase/u32-is-casefolded.c: New file.
194         * modules/unicase/u32-is-casefolded: New file.
195
196         New module 'unicase/u16-is-casefolded'.
197         * lib/unicase/u16-is-casefolded.c: New file.
198         * modules/unicase/u16-is-casefolded: New file.
199
200         New module 'unicase/u8-is-casefolded'.
201         * lib/unicase/u8-is-casefolded.c: New file.
202         * modules/unicase/u8-is-casefolded: New file.
203
204         Tests for module 'unicase/u32-is-titlecase'.
205         * modules/unicase/u32-is-titlecase-tests: New file.
206         * tests/unicase/test-u32-is-titlecase.c: New file.
207
208         Tests for module 'unicase/u16-is-titlecase'.
209         * modules/unicase/u16-is-titlecase-tests: New file.
210         * tests/unicase/test-u16-is-titlecase.c: New file.
211
212         Tests for module 'unicase/u8-is-titlecase'.
213         * modules/unicase/u8-is-titlecase-tests: New file.
214         * tests/unicase/test-u8-is-titlecase.c: New file.
215         * tests/unicase/test-is-titlecase.h: New file.
216
217         New module 'unicase/u32-is-titlecase'.
218         * lib/unicase/u32-is-titlecase.c: New file.
219         * modules/unicase/u32-is-titlecase: New file.
220
221         New module 'unicase/u16-is-titlecase'.
222         * lib/unicase/u16-is-titlecase.c: New file.
223         * modules/unicase/u16-is-titlecase: New file.
224
225         New module 'unicase/u8-is-titlecase'.
226         * lib/unicase/u8-is-titlecase.c: New file.
227         * modules/unicase/u8-is-titlecase: New file.
228
229         Tests for module 'unicase/u32-is-lowercase'.
230         * modules/unicase/u32-is-lowercase-tests: New file.
231         * tests/unicase/test-u32-is-lowercase.c: New file.
232
233         Tests for module 'unicase/u16-is-lowercase'.
234         * modules/unicase/u16-is-lowercase-tests: New file.
235         * tests/unicase/test-u16-is-lowercase.c: New file.
236
237         Tests for module 'unicase/u8-is-lowercase'.
238         * modules/unicase/u8-is-lowercase-tests: New file.
239         * tests/unicase/test-u8-is-lowercase.c: New file.
240         * tests/unicase/test-is-lowercase.h: New file.
241
242         New module 'unicase/u32-is-lowercase'.
243         * lib/unicase/u32-is-lowercase.c: New file.
244         * modules/unicase/u32-is-lowercase: New file.
245
246         New module 'unicase/u16-is-lowercase'.
247         * lib/unicase/u16-is-lowercase.c: New file.
248         * modules/unicase/u16-is-lowercase: New file.
249
250         New module 'unicase/u8-is-lowercase'.
251         * lib/unicase/u8-is-lowercase.c: New file.
252         * modules/unicase/u8-is-lowercase: New file.
253
254         Tests for module 'unicase/u32-is-uppercase'.
255         * modules/unicase/u32-is-uppercase-tests: New file.
256         * tests/unicase/test-u32-is-uppercase.c: New file.
257
258         Tests for module 'unicase/u16-is-uppercase'.
259         * modules/unicase/u16-is-uppercase-tests: New file.
260         * tests/unicase/test-u16-is-uppercase.c: New file.
261
262         Tests for module 'unicase/u8-is-uppercase'.
263         * modules/unicase/u8-is-uppercase-tests: New file.
264         * tests/unicase/test-u8-is-uppercase.c: New file.
265         * tests/unicase/test-is-uppercase.h: New file.
266
267         New module 'unicase/u32-is-uppercase'.
268         * lib/unicase/u32-is-uppercase.c: New file.
269         * modules/unicase/u32-is-uppercase: New file.
270
271         New module 'unicase/u16-is-uppercase'.
272         * lib/unicase/u16-is-uppercase.c: New file.
273         * modules/unicase/u16-is-uppercase: New file.
274
275         New module 'unicase/u8-is-uppercase'.
276         * lib/unicase/u8-is-uppercase.c: New file.
277         * modules/unicase/u8-is-uppercase: New file.
278
279         New module 'unicase/u32-is-invariant'.
280         * lib/unicase/u32-is-invariant.c: New file.
281         * modules/unicase/u32-is-invariant: New file.
282
283         New module 'unicase/u16-is-invariant'.
284         * lib/unicase/u16-is-invariant.c: New file.
285         * modules/unicase/u16-is-invariant: New file.
286
287         New module 'unicase/u8-is-invariant'.
288         * lib/unicase/u8-is-invariant.c: New file.
289         * lib/unicase/invariant.h: New file.
290         * lib/unicase/u-is-invariant.h: New file.
291         * modules/unicase/u8-is-invariant: New file.
292
293         Tests for module 'unicase/u32-casecoll'.
294         * modules/unicase/u32-casecoll-tests: New file.
295         * tests/unicase/test-u32-casecoll.c: New file.
296
297         Tests for module 'unicase/u16-casecoll'.
298         * modules/unicase/u16-casecoll-tests: New file.
299         * tests/unicase/test-u16-casecoll.c: New file.
300
301         Tests for module 'unicase/u8-casecoll'.
302         * modules/unicase/u8-casecoll-tests: New file.
303         * tests/unicase/test-u8-casecoll.c: New file.
304
305         New module 'unicase/u32-casecoll'.
306         * lib/unicase/u32-casecoll.c: New file.
307         * modules/unicase/u32-casecoll: New file.
308
309         New module 'unicase/u16-casecoll'.
310         * lib/unicase/u16-casecoll.c: New file.
311         * modules/unicase/u16-casecoll: New file.
312
313         New module 'unicase/u8-casecoll'.
314         * lib/unicase/u8-casecoll.c: New file.
315         * lib/unicase/u-casecoll.h: New file.
316         * modules/unicase/u8-casecoll: New file.
317
318         New module 'unicase/u32-casexfrm'.
319         * lib/unicase/u32-casexfrm.c: New file.
320         * modules/unicase/u32-casexfrm: New file.
321
322         New module 'unicase/u16-casexfrm'.
323         * lib/unicase/u16-casexfrm.c: New file.
324         * modules/unicase/u16-casexfrm: New file.
325
326         New module 'unicase/u8-casexfrm'.
327         * lib/unicase/u8-casexfrm.c: New file.
328         * lib/unicase/u-casexfrm.h: New file.
329         * modules/unicase/u8-casexfrm: New file.
330
331         Tests for module 'unicase/u32-casecmp'.
332         * modules/unicase/u32-casecmp-tests: New file.
333         * tests/unicase/test-u32-casecmp.c: New file.
334
335         Tests for module 'unicase/u16-casecmp'.
336         * modules/unicase/u16-casecmp-tests: New file.
337         * tests/unicase/test-u16-casecmp.c: New file.
338
339         Tests for module 'unicase/u8-casecmp'.
340         * modules/unicase/u8-casecmp-tests: New file.
341         * tests/unicase/test-u8-casecmp.c: New file.
342         * tests/unicase/test-casecmp.h: New file.
343
344         New module 'unicase/u32-casecmp'.
345         * lib/unicase/u32-casecmp.c: New file.
346         * modules/unicase/u32-casecmp: New file.
347
348         New module 'unicase/u16-casecmp'.
349         * lib/unicase/u16-casecmp.c: New file.
350         * modules/unicase/u16-casecmp: New file.
351
352         New module 'unicase/u8-casecmp'.
353         * lib/unicase/u8-casecmp.c: New file.
354         * lib/unicase/u-casecmp.h: New file.
355         * modules/unicase/u8-casecmp: New file.
356
357         Tests for module 'unicase/u32-casefold'.
358         * modules/unicase/u32-casefold-tests: New file.
359         * tests/unicase/test-u32-casefold.c: New file.
360
361         Tests for module 'unicase/u16-casefold'.
362         * modules/unicase/u16-casefold-tests: New file.
363         * tests/unicase/test-u16-casefold.c: New file.
364
365         Tests for module 'unicase/u8-casefold'.
366         * modules/unicase/u8-casefold-tests: New file.
367         * tests/unicase/test-u8-casefold.c: New file.
368
369         New module 'unicase/u32-casefold'.
370         * lib/unicase/u32-casefold.c: New file.
371         * modules/unicase/u32-casefold: New file.
372
373         New module 'unicase/u16-casefold'.
374         * lib/unicase/u16-casefold.c: New file.
375         * modules/unicase/u16-casefold: New file.
376
377         New module 'unicase/u8-casefold'.
378         * lib/unicase/u8-casefold.c: New file.
379         * lib/unicase/u-casefold.h: New file.
380         * modules/unicase/u8-casefold: New file.
381
382         New module 'unicase/tocasefold'.
383         * lib/unicase/casefold.h: New file.
384         * lib/unicase/tocasefold.c: New file.
385         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
386         * modules/unicase/tocasefold: New file.
387
388         Tests for module 'unicase/u32-totitle'.
389         * modules/unicase/u32-totitle-tests: New file.
390         * tests/unicase/test-u32-totitle.c: New file.
391
392         Tests for module 'unicase/u16-totitle'.
393         * modules/unicase/u16-totitle-tests: New file.
394         * tests/unicase/test-u16-totitle.c: New file.
395
396         Tests for module 'unicase/u8-totitle'.
397         * modules/unicase/u8-totitle-tests: New file.
398         * tests/unicase/test-u8-totitle.c: New file.
399
400         New module 'unicase/u32-totitle'.
401         * lib/unicase/u32-totitle.c: New file.
402         * modules/unicase/u32-totitle: New file.
403
404         New module 'unicase/u16-totitle'.
405         * lib/unicase/u16-totitle.c: New file.
406         * modules/unicase/u16-totitle: New file.
407
408         New module 'unicase/u8-totitle'.
409         * lib/unicase/u8-totitle.c: New file.
410         * lib/unicase/u-totitle.h: New file.
411         * modules/unicase/u8-totitle: New file.
412
413         Tests for module 'unicase/u32-tolower'.
414         * modules/unicase/u32-tolower-tests: New file.
415         * tests/unicase/test-u32-tolower.c: New file.
416
417         Tests for module 'unicase/u16-tolower'.
418         * modules/unicase/u16-tolower-tests: New file.
419         * tests/unicase/test-u16-tolower.c: New file.
420
421         Tests for module 'unicase/u8-tolower'.
422         * modules/unicase/u8-tolower-tests: New file.
423         * tests/unicase/test-u8-tolower.c: New file.
424
425         New module 'unicase/u32-tolower'.
426         * lib/unicase/u32-tolower.c: New file.
427         * modules/unicase/u32-tolower: New file.
428
429         New module 'unicase/u16-tolower'.
430         * lib/unicase/u16-tolower.c: New file.
431         * modules/unicase/u16-tolower: New file.
432
433         New module 'unicase/u8-tolower'.
434         * lib/unicase/u8-tolower.c: New file.
435         * modules/unicase/u8-tolower: New file.
436
437         Tests for module 'unicase/u32-toupper'.
438         * modules/unicase/u32-toupper-tests: New file.
439         * tests/unicase/test-u32-toupper.c: New file.
440
441         Tests for module 'unicase/u16-toupper'.
442         * modules/unicase/u16-toupper-tests: New file.
443         * tests/unicase/test-u16-toupper.c: New file.
444
445         Tests for module 'unicase/u8-toupper'.
446         * modules/unicase/u8-toupper-tests: New file.
447         * tests/unicase/test-u8-toupper.c: New file.
448
449         New module 'unicase/u32-toupper'.
450         * lib/unicase/u32-toupper.c: New file.
451         * modules/unicase/u32-toupper: New file.
452
453         New module 'unicase/u16-toupper'.
454         * lib/unicase/u16-toupper.c: New file.
455         * modules/unicase/u16-toupper: New file.
456
457         New module 'unicase/u8-toupper'.
458         * lib/unicase/u8-toupper.c: New file.
459         * modules/unicase/u8-toupper: New file.
460
461         New module 'unicase/u32-casemap'.
462         * lib/unicase/u32-casemap.c: New file.
463         * modules/unicase/u32-casemap: New file.
464
465         New module 'unicase/u16-casemap'.
466         * lib/unicase/u16-casemap.c: New file.
467         * modules/unicase/u16-casemap: New file.
468
469         New module 'unicase/u8-casemap'.
470         * lib/unicase/unicasemap.h: New file.
471         * lib/unicase/u8-casemap.c: New file.
472         * lib/unicase/u-casemap.h: New file.
473         * modules/unicase/u8-casemap: New file.
474
475         New module 'unicase/special-casing'.
476         * lib/unicase/special-casing.h: New file.
477         * lib/unicase/special-casing.c: New file.
478         * lib/unicase/special-casing-table.gperf: New file, generated by
479         gen-uni-tables.c.
480         * modules/unicase/special-casing: New file.
481
482         Tests for module 'unicase/locale-language'.
483         * modules/unicase/locale-language-tests: New file.
484         * tests/unicase/test-locale-language.sh: New file.
485         * tests/unicase/test-locale-language.c: New file.
486
487         New module 'unicase/locale-language'.
488         * lib/unicase/locale-language.c: New file.
489         * lib/unicase/locale-languages.gperf: New file.
490         * modules/unicase/locale-language: New file.
491
492         Generate more tables for case conversion and case folding.
493         * lib/gen-uni-tables.c (SCC_*): New enum items.
494         (struct special_casing_rule): New type.
495         (casing_rules, num_casing_rules, allocated_casing_rules): New
496         variables.
497         (add_casing_rule, fill_casing_rules): New functions.
498         (struct casefold_rule): New type.
499         (casefolding_rules, num_casefolding_rules,
500         allocated_casefolding_rules): New variables.
501         (fill_casefolding_rules): New function.
502         (unicode_casefold): New variable.
503         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
504         sort_casing_rules, output_casing_rules): New functions.
505         (main): Accept to more arguments: SpecialCasing.txt and
506         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
507         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
508         Output mapping for casefolding.
509
510         * lib/unicase.h: Include stdbool.h, uninorm.h.
511         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
512         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
513         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
514         arguments.
515         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
516         resultp arguments.
517         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
518         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
519         resultp arguments.
520         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
521         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
522         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
523         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
524         declarations.
525         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
526
527 2009-03-08  Bruno Haible  <bruno@clisp.org>
528
529         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
530         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
531         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
532         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
533
534 2009-03-07  Bruno Haible  <bruno@clisp.org>
535
536         Adjust u*_normcmp, u*_normcoll API.
537         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
538         u16_normcoll, u32_normcoll): Change failure conventions.
539         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
540         errno and return -1.
541         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
542
543 2009-03-07  Bruno Haible  <bruno@clisp.org>
544
545         Tests for module 'uninorm/u32-normcoll'.
546         * modules/uninorm/u32-normcoll-tests: New file.
547         * tests/uninorm/test-u32-normcoll.c: New file.
548
549         Tests for module 'uninorm/u16-normcoll'.
550         * modules/uninorm/u16-normcoll-tests: New file.
551         * tests/uninorm/test-u16-normcoll.c: New file.
552
553         Tests for module 'uninorm/u8-normcoll'.
554         * modules/uninorm/u8-normcoll-tests: New file.
555         * tests/uninorm/test-u8-normcoll.c: New file.
556
557 2009-03-07  Bruno Haible  <bruno@clisp.org>
558
559         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
560         tests/uninorm/test-u32-normcmp.c.
561         * tests/uninorm/test-u32-normcmp.c: Include it.
562         (test_nonascii): New function, extracted from main. Add some more
563         tests.
564         (main): Invoke test_ascii and test_nonascii.
565         * modules/uninorm/u32-normcmp-tests (Files): Add
566         tests/uninorm/test-u32-normcmp.h.
567         (Depends-on): Remove uninorm/u32-normcmp.
568
569         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
570         tests/uninorm/test-u16-normcmp.c.
571         * tests/uninorm/test-u16-normcmp.c: Include it.
572         (test_nonascii): New function, extracted from main. Add some more
573         tests.
574         (main): Invoke test_ascii and test_nonascii.
575         * modules/uninorm/u16-normcmp-tests (Files): Add
576         tests/uninorm/test-u16-normcmp.h.
577         (Depends-on): Remove uninorm/u16-normcmp.
578
579         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
580         tests/uninorm/test-u8-normcmp.c.
581         * tests/uninorm/test-u8-normcmp.c: Include it.
582         (test_nonascii): New function, extracted from main. Add some more
583         tests.
584         (main): Invoke test_ascii and test_nonascii.
585         * modules/uninorm/u8-normcmp-tests (Files): Add
586         tests/uninorm/test-u8-normcmp.h.
587         (Depends-on): Remove uninorm/u8-normcmp.
588
589 2009-03-07  Bruno Haible  <bruno@clisp.org>
590
591         New module 'uninorm/u32-normcoll'.
592         * lib/uninorm/u32-normcoll.c: New file.
593         * modules/uninorm/u32-normcoll: New file.
594
595         New module 'uninorm/u16-normcoll'.
596         * lib/uninorm/u16-normcoll.c: New file.
597         * modules/uninorm/u16-normcoll: New file.
598
599         New module 'uninorm/u8-normcoll'.
600         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
601         declarations.
602         * lib/uninorm/u8-normcoll.c: New file.
603         * lib/uninorm/u-normcoll.h: New file.
604         * modules/uninorm/u8-normcoll: New file.
605
606         New module 'uninorm/u32-normxfrm'.
607         * lib/uninorm/u32-normxfrm.c: New file.
608         * modules/uninorm/u32-normxfrm: New file.
609
610         New module 'uninorm/u16-normxfrm'.
611         * lib/uninorm/u16-normxfrm.c: New file.
612         * modules/uninorm/u16-normxfrm: New file.
613
614         New module 'uninorm/u8-normxfrm'.
615         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
616         declarations.
617         * lib/uninorm/u8-normxfrm.c: New file.
618         * lib/uninorm/u-normxfrm.h: New file.
619         * modules/uninorm/u8-normxfrm: New file.
620
621 2009-03-07  Bruno Haible  <bruno@clisp.org>
622
623         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
624         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
625         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
626
627 2009-03-07  Bruno Haible  <bruno@clisp.org>
628
629         New module 'memxfrm'.
630         * lib/memxfrm.h: New file.
631         * lib/memxfrm.c: New file.
632         * modules/memxfrm: New file.
633
634 2009-03-07  Bruno Haible  <bruno@clisp.org>
635
636         New module 'memcmp2'.
637         * lib/memcmp2.h: New file.
638         * lib/memcmp2.c: New file.
639         * modules/memcmp2: New file.
640
641 2009-03-07  Bruno Haible  <bruno@clisp.org>
642
643         Tests for module 'uninorm/decomposing-form'.
644         * modules/uninorm/decomposing-form-tests: New file.
645         * tests/uninorm/test-decomposing-form.c: New file.
646
647         New module 'uninorm/decomposing-form'.
648         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
649         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
650         Add 'decomposing_variant' field.
651         * lib/uninorm/decomposing-form.c: New file.
652         * lib/uninorm/nfc.c (uninorm_nfc): Update.
653         * lib/uninorm/nfd.c (uninorm_nfd): Update.
654         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
655         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
656         * modules/uninorm/decomposing-form: New file.
657         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
658         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
659
660 2009-03-07  Bruno Haible  <bruno@clisp.org>
661
662         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
663         strings.
664
665 2009-03-06  Bruno Haible  <bruno@clisp.org>
666
667         Tests for module 'uninorm/u32-normcmp'.
668         * tests/uninorm/test-u32-normcmp.c: New file.
669         * modules/uninorm/u32-normcmp-tests: New file.
670
671         Tests for module 'uninorm/u16-normcmp'.
672         * tests/uninorm/test-u16-normcmp.c: New file.
673         * modules/uninorm/u16-normcmp-tests: New file.
674
675         Tests for module 'uninorm/u8-normcmp'.
676         * tests/uninorm/test-u8-normcmp.c: New file.
677         * modules/uninorm/u8-normcmp-tests: New file.
678
679         New module 'uninorm/u32-normcmp'.
680         * lib/uninorm/u32-normcmp.c: New file.
681         * modules/uninorm/u32-normcmp: New file.
682
683         New module 'uninorm/u16-normcmp'.
684         * lib/uninorm/u16-normcmp.c: New file.
685         * modules/uninorm/u16-normcmp: New file.
686
687         New module 'uninorm/u8-normcmp'.
688         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
689         declarations.
690         * lib/uninorm/u8-normcmp.c: New file.
691         * lib/uninorm/u-normcmp.h: New file.
692         * modules/uninorm/u8-normcmp: New file.
693
694 2009-03-06  Bruno Haible  <bruno@clisp.org>
695
696         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
697         Reported by Eric Blake.
698
699 2009-03-06  Eric Blake  <ebb9@byu.net>
700             Bruno Haible  <bruno@clisp.org>
701
702         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
703         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
704         condition.
705         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
706         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
707         condition.
708         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
709
710 2009-03-06  Eric Blake  <ebb9@byu.net>
711
712         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
713         to avoid compiler warnings.
714         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
715
716 2009-03-05  Bruno Haible  <bruno@clisp.org>
717
718         * tests/test-ftell.c (main): Disable test beyond end of file on
719         FreeMiNT.
720         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
721
722 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
723
724         * lib/filevercmp.c: Move hidden files up in ordering.
725         * tests/test-filevercmp.c: Add tests for hidden files.
726
727 2009-03-04  Bruno Haible  <bruno@clisp.org>
728
729         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
730         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
731         AM_CFLAGS.
732         Reported by Simon Josefsson.
733
734 2009-03-03  Bruno Haible  <bruno@clisp.org>
735
736         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
737         Reported by Simon Josefsson.
738
739         * doc/ld-version-script.texi: Update node reference.
740
741 2009-03-03  Bruno Haible  <bruno@clisp.org>
742
743         * modules/visibility (License): Change to 'unlimited'.
744         Suggested by Simon Josefsson.
745
746 2009-03-03  Jim Meyering  <meyering@redhat.com>
747
748         unlinkdir: cannot_unlink_dir may modify process state
749         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
750         it's neither thread-safe nor appropriate for use in a library.
751
752 2009-03-03  Eric Blake  <ebb9@byu.net>
753
754         test-closein: silence test under Darwin
755         * tests/test-closein.sh: Ignore stderr from cat, since we don't
756         care if it dies from EPIPE or EBADF.
757
758 2009-03-03  Bruno Haible  <bruno@clisp.org>
759
760         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
761         earlier.
762         * doc/visibility.texi: Fix @node and @section.
763
764 2009-03-03  Simon Josefsson  <simon@josefsson.org>
765
766         * doc/gnulib.texi: Link to sections for ld version script and
767         visibility.
768         * doc/visibility.texi: Add @node and @section.
769         * modules/ld-version-script: New module.
770         * m4/ld-version-script.m4: New file.
771         * doc/ld-version-script.texi: New file.
772
773 2009-03-02  David Lutterkort  <lutter@redhat.com>
774
775         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
777
778 2009-03-02  Bruno Haible  <bruno@clisp.org>
779
780         * doc/visibility.texi: Mention libtool's -export-symbols option.
781
782 2009-03-02  Jim Meyering  <meyering@redhat.com>
783
784         announce-gen: new option: --no-print-checksums
785         * build-aux/announce-gen (usage): Describe it.
786         (print_checksums): Print a newline here, not in the [*] footnote.
787         (main): Honor it.
788
789 2009-03-01  Bruno Haible  <bruno@clisp.org>
790
791         Use socklen_t in the native Windows replacements prototypes.
792         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
793         instead of 'int'.
794         * lib/getsockopt.c (rpl_getsockopt): Likewise.
795         * lib/setsockopt.c (rpl_setsockopt): Likewise.
796         * modules/getsockopt (Depends-on): Add socklen.
797         * modules/setsockopt (Depends-on): Add socklen.
798
799 2009-03-01  Bruno Haible  <bruno@clisp.org>
800
801         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
802         least 4.2.
803
804 2009-03-01  Eric Blake  <ebb9@byu.net>
805             Bruno Haible  <bruno@clisp.org>
806
807         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
808         error messages.
809         * lib/wait-process.c (wait_subprocess): Omit error message about
810         deadly signal sent to the child of termsigp != NULL.
811
812 2009-03-01  Eric Blake  <ebb9@byu.net>
813
814         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
815
816 2009-03-01  Bruno Haible  <bruno@clisp.org>
817
818         Avoid a gcc warning.
819         * tests/test-sched.c (b): Make global.
820         Reported by Eric Blake.
821
822 2009-01-19  Martin Lambers  <marlam@marlam.de>
823
824         Provide POSIX semantics for socket timeout options on W32.
825         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
826         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
827         * modules/setsockopt: Depend on sys_time module for struct timeval.
828         * modules/getsockopt: Depend on sys_time module for struct timeval.
829
830 2009-03-01  Simon Josefsson  <simon@josefsson.org>
831
832         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
833         __USE_GNU, for consistency with netdb.in.h.
834         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
835
836 2009-03-01  Bruno Haible  <bruno@clisp.org>
837
838         More support for FreeMiNT.
839         * lib/fseeko.c (rpl_fseeko): Complete last commit.
840         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
841
842 2009-03-01  Bruno Haible  <bruno@clisp.org>
843
844         More support for FreeMiNT.
845         * lib/fpurge.c (fpurge): Correct last commit.
846         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
847
848 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
849
850         Fix unportable awk script in vc-list-files.
851         * build-aux/vc-list-files: In the replacement awk script, use
852         substr with a second argument of 1, not zero.
853         Report by Simon Josefsson.
854
855 2009-02-28  Bruno Haible  <bruno@clisp.org>
856
857         More support for FreeMiNT.
858         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
859         to FreeMiNT today.
860         * lib/fwriting.c (fwriting): Likewise.
861         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
862
863 2009-02-28  Bruno Haible  <bruno@clisp.org>
864
865         * tests/test-freadseek.c (main): Disable test beyond end of file on
866         FreeMiNT.
867         * tests/test-ftello.c (main): Likewise.
868         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
869
870 2009-02-28  Bruno Haible  <bruno@clisp.org>
871
872         Add tentative support for FreeMiNT.
873         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
874         * lib/fpurge.c (fpurge): Likewise.
875         * lib/freadable.c (freadable): Likewise.
876         * lib/freading.c (freading): Likewise.
877         * lib/freadptr.c (freadptr): Likewise.
878         * lib/freadseek.c (freadptrinc): Likewise.
879         * lib/fseeko.c (rpl_fseeko): Likewise.
880         * lib/fseterr.c (fseterr): Likewise.
881         * lib/fwritable.c (fwritable): Likewise.
882         * lib/fwriting.c (fwriting): Likewise.
883         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
884         Hourihane.
885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
886
887 2009-02-28  Bruno Haible  <bruno@clisp.org>
888
889         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
890         SIGCHLD.
891         Reported by Jim Meyering.
892
893 2009-02-28  Bruno Haible  <bruno@clisp.org>
894
895         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
896         Mention the results of these tests on various platforms.
897         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
898         order.
899         * doc/posix-functions/printf.texi: Likewise.
900         * doc/posix-functions/snprintf.texi: Likewise.
901         * doc/posix-functions/sprintf.texi: Likewise.
902         * doc/posix-functions/vfprintf.texi: Likewise.
903         * doc/posix-functions/vprintf.texi: Likewise.
904         * doc/posix-functions/vsnprintf.texi: Likewise.
905         * doc/posix-functions/vsprintf.texi: Likewise.
906         * doc/glibc-functions/obstack_printf.texi: Likewise.
907         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
908
909 2009-02-28  Bruno Haible  <bruno@clisp.org>
910
911         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
912         Reported by Loïc Minier <lool@dooz.org>.
913
914 2009-02-27  Bruno Haible  <bruno@clisp.org>
915
916         * gnulib-tool (func_import): Make the sed expression used to create the
917         sed script for updating the .gitignore file POSIX compliant.
918         Reported by Eric Blake.
919
920 2009-02-27  Bruno Haible  <bruno@clisp.org>
921
922         * gnulib-tool (sed): Don't alias as "sed --posix".
923         Reported by Eric Blake.
924
925 2009-02-27  Bruno Haible  <bruno@clisp.org>
926
927         Avoid test link errors.
928         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
929         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
930         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
931         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
933
934 2009-02-27  Bruno Haible  <bruno@clisp.org>
935
936         Avoid spurious "(cached)" in configure output.
937         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
938         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
940         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
941         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
942         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
943         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
944         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
945         Reported by Eric Blake.
946
947 2009-02-27  Eric Blake  <ebb9@byu.net>
948
949         printf: fix regression in previous patch
950         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
951
952 2009-02-27  Bruno Haible  <bruno@clisp.org>
953
954         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
955         value.
956         * lib/stdint.in.h: Likewise.
957         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
958
959 2009-02-27  Eric Blake  <ebb9@byu.net>
960
961         doc: mention more functions added in cygwin 1.7.0
962         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
963         addition.
964         * doc/posix-functions/open_wmemstream.texi: Likewise.
965         * doc/posix-functions/wcsnlen.texi: Likewise.
966         * doc/posix-functions/wcsnrtombs.texi: Likewise.
967         * doc/posix-functions/wcstod.texi: Likewise.
968         * doc/posix-functions/wcstof.texi: Likewise.
969         * doc/posix-functions/wcstoimax.texi: Likewise.
970         * doc/posix-functions/wcstok.texi: Likewise.
971         * doc/posix-functions/wcstoumax.texi: Likewise.
972
973         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
975         * doc/posix-functions/fprintf.texi: Update.
976         * doc/posix-functions/printf.texi: Update.
977         * doc/posix-functions/snprintf.texi: Update.
978         * doc/posix-functions/sprintf.texi: Update.
979         * doc/posix-functions/vfprintf.texi: Update.
980         * doc/posix-functions/vprintf.texi: Update.
981         * doc/posix-functions/vsnprintf.texi: Update.
982         * doc/posix-functions/vsprintf.texi: Update.
983         * doc/glibc-functions/obstack_printf.texi: Update.
984         * doc/glibc-functions/obstack_vprintf.texi: Update.
985
986 2009-02-26  Eric Blake  <ebb9@byu.net>
987
988         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
989         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
990         compilation bug by using runtime conversion.
991         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
992         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
993         * modules/ceill-tests (Files): Use nan.h.
994         * modules/floorl-tests (Files): Likewise.
995         * modules/frexpl-tests (Files): Likewise.
996         * modules/isnanl-tests (Files): Likewise.
997         * modules/ldexpl-tests (Files): Likewise.
998         * modules/roundl-tests (Files): Likewise.
999         * modules/truncl-tests (Files): Likewise.
1000         * tests/test-ceill.c (main): Use a working NaN.
1001         * tests/test-floorl.c (main): Likewise.
1002         * tests/test-frexpl.c (main): Likewise.
1003         * tests/test-isnan.c (test_long_double): Likewise.
1004         * tests/test-isnanl.h (main): Likewise.
1005         * tests/test-ldexpl.h (main): Likewise.
1006         * tests/test-roundl.h (main): Likewise.
1007         * tests/test-truncl.h (main): Likewise.
1008         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1009
1010 2009-02-26  Eric Blake  <ebb9@byu.net>
1011             Bruno Haible  <bruno@clisp.org>
1012
1013         Work around a *printf bug with %ls on Solaris.
1014         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1015         precision is specified, sprintf stops converting the wide string
1016         argument when the number of bytes that have been produced by this
1017         conversion equals or exceeds the precision.
1018         * doc/posix-functions/fprintf.texi: Update.
1019         * doc/posix-functions/printf.texi: Update.
1020         * doc/posix-functions/snprintf.texi: Update.
1021         * doc/posix-functions/sprintf.texi: Update.
1022         * doc/posix-functions/vfprintf.texi: Update.
1023         * doc/posix-functions/vprintf.texi: Update.
1024         * doc/posix-functions/vsnprintf.texi: Update.
1025         * doc/posix-functions/vsprintf.texi: Update.
1026         * doc/glibc-functions/obstack_printf.texi: Update.
1027         * doc/glibc-functions/obstack_vprintf.texi: Update.
1028
1029 2009-02-26  Eric Blake  <ebb9@byu.net>
1030
1031         stdlib: favor compiler check of random.h
1032         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1033         to avoid an ObjC random.h installed by Swarm.
1034
1035 2009-02-26  Bruno Haible  <bruno@clisp.org>
1036
1037         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1038         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1039         Reported by Gary V. Vaughan <gary@gnu.org>.
1040
1041 2009-02-26  Bruno Haible  <bruno@clisp.org>
1042
1043         Fix *printf behaviour regarding the %ls directive.
1044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1045         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1046         NEED_PRINTF_DIRECTIVE_LS.
1047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1048         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1049         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1050         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1051         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1052         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1053         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1058         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1059         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1061         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1062         * doc/posix-functions/fprintf.texi: Update.
1063         * doc/posix-functions/printf.texi: Update.
1064         * doc/posix-functions/snprintf.texi: Update.
1065         * doc/posix-functions/sprintf.texi: Update.
1066         * doc/posix-functions/vfprintf.texi: Update.
1067         * doc/posix-functions/vprintf.texi: Update.
1068         * doc/posix-functions/vsnprintf.texi: Update.
1069         * doc/posix-functions/vsprintf.texi: Update.
1070         * doc/glibc-functions/obstack_printf.texi: Update.
1071         * doc/glibc-functions/obstack_vprintf.texi: Update.
1072         Reported by Eric Blake.
1073
1074 2009-02-25  Bruno Haible  <bruno@clisp.org>
1075
1076         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1077         with known value.
1078         Reported by Gary V. Vaughan <gary@gnu.org>.
1079
1080 2009-02-25  Bruno Haible  <bruno@clisp.org>
1081
1082         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1083         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1084         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1085         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1086         Reported by Gary V. Vaughan <gary@gnu.org>.
1087
1088 2009-02-25  Bruno Haible  <bruno@clisp.org>
1089
1090         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1091         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1092         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1093         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1094         Reported by Gary V. Vaughan <gary@gnu.org>.
1095
1096 2009-02-25  Eric Blake  <ebb9@byu.net>
1097
1098         tests: skip fseek/ftell tests if ungetc is broken
1099         * m4/ungetc.m4: New file.
1100         * modules/fseek-tests: Split test, so ungetc dependency is
1101         separate from rest of test.
1102         * modules/fseeko-tests: Likewise.
1103         * modules/ftell-tests: Likewise.
1104         * modules/ftello-tests: Likewise.
1105         * tests/test-fseek.c (main): Isolate ungetc dependency.
1106         * tests/test-fseeko.c (main): Likewise.
1107         * tests/test-ftell.c (main): Likewise.
1108         * tests/test-ftello.c (main): Likewise.
1109         * tests/test-fseek2.sh: New file.
1110         * tests/test-fseeko2.sh: Likewise.
1111         * tests/test-ftell2.sh: Likewise.
1112         * tests/test-ftello2.sh: Likewise.
1113
1114 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1115
1116         test-getaddrinfo: fix usage of skip return code 77
1117         * tests/test-gettaddrinfo.c: Return skip code 77 only
1118         for first occurance of skip (4x77 is not 77)
1119
1120 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1121
1122         strtod: avoid C99 decl-after-statement
1123         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1124
1125 2009-02-24  Eric Blake  <ebb9@byu.net>
1126
1127         strtod: detect HP-UX 11.31 bug
1128         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1129         Reported by Gary V. Vaughan.
1130
1131 2009-02-23  Bruno Haible  <bruno@clisp.org>
1132
1133         Fix invalid read past end of memory block.
1134         * lib/vasnprintf.c (DCHAR_SET): Define.
1135         (local_wcslen): Define only when needed.
1136         (local_strnlen, local_wcsnlen): New functions.
1137         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1138         directives that involve a conversion ourselves.
1139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1140         wcsnlen, mbrtowc, wcrtomb.
1141         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1142         * tests/test-vasprintf-posix.c (test_function): Likewise.
1143         * tests/test-snprintf-posix.h (test_function): Likewise.
1144         * tests/test-sprintf-posix.h (test_function): Likewise.
1145         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1146
1147 2009-02-22  Bruno Haible  <bruno@clisp.org>
1148
1149         Implement new clarified decomposition of Hangul syllables.
1150         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1151         of type LTV, return only a pairwise decomposition.
1152         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1153         Likewise.
1154         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1155         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1156         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1157
1158 2009-02-22  Bruno Haible  <bruno@clisp.org>
1159
1160         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1161         zero-length results and shrink excess allocated memory.
1162         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1163         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1164         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1165         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1166         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1167         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1168         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1169         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1170         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1171         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1172         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1173         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1174
1175 2009-02-21  Bruno Haible  <bruno@clisp.org>
1176
1177         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1178         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1179         spaces after a period. Put a space between a macro name and its
1180         argument list. Trivial rewordings.
1181         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1182         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1183         (main): Return 0 explicitly.
1184
1185 2009-02-21  Bruno Haible  <bruno@clisp.org>
1186
1187         Tests for module 'uninorm/filter'.
1188         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1189         * modules/uninorm/filter-tests: New file.
1190
1191         New module 'uninorm/filter'.
1192         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1193         uninorm_filter_flush, uninorm_filter_free): New declarations.
1194         * lib/uninorm/uninorm-filter.c: New file.
1195         * modules/uninorm/filter: New file.
1196
1197 2009-02-21  Bruno Haible  <bruno@clisp.org>
1198
1199         Tests for module 'uninorm/nfkc'.
1200         * tests/uninorm/test-nfkc.c: New file.
1201         * tests/uninorm/test-u8-nfkc.c: New file.
1202         * tests/uninorm/test-u16-nfkc.c: New file.
1203         * tests/uninorm/test-u32-nfkc.c: New file.
1204         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1205         * tests/uninorm/test-u32-nfkc-big.c: New file.
1206         * modules/uninorm/nfkc-tests: New file.
1207
1208         New module 'uninorm/nfkc'.
1209         * lib/uninorm/nfkc.c: New file.
1210         * modules/uninorm/nfkc: New file.
1211
1212         Tests for module 'uninorm/nfkd'.
1213         * tests/uninorm/test-nfkd.c: New file.
1214         * tests/uninorm/test-u8-nfkd.c: New file.
1215         * tests/uninorm/test-u16-nfkd.c: New file.
1216         * tests/uninorm/test-u32-nfkd.c: New file.
1217         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1218         * tests/uninorm/test-u32-nfkd-big.c: New file.
1219         * modules/uninorm/nfkd-tests: New file.
1220
1221         New module 'uninorm/nfkd'.
1222         * lib/uninorm/nfkd.c: New file.
1223         * modules/uninorm/nfkd: New file.
1224
1225         Tests for module 'uninorm/nfc'.
1226         * tests/uninorm/test-nfc.c: New file.
1227         * tests/uninorm/test-u8-nfc.c: New file.
1228         * tests/uninorm/test-u16-nfc.c: New file.
1229         * tests/uninorm/test-u32-nfc.c: New file.
1230         * tests/uninorm/test-u32-nfc-big.sh: New file.
1231         * tests/uninorm/test-u32-nfc-big.c: New file.
1232         * modules/uninorm/nfc-tests: New file.
1233
1234         New module 'uninorm/nfc'.
1235         * lib/uninorm/nfc.c: New file.
1236         * modules/uninorm/nfc: New file.
1237
1238         Tests for module 'uninorm/nfd'.
1239         * tests/uninorm/test-nfd.c: New file.
1240         * tests/uninorm/test-u8-nfd.c: New file.
1241         * tests/uninorm/test-u16-nfd.c: New file.
1242         * tests/uninorm/test-u32-nfd.c: New file.
1243         * tests/uninorm/test-u32-nfd-big.sh: New file.
1244         * tests/uninorm/test-u32-nfd-big.c: New file.
1245         * tests/uninorm/test-u32-normalize-big.h: New file.
1246         * tests/uninorm/test-u32-normalize-big.c: New file.
1247         * tests/uninorm/NormalizationTest.txt: New file, created from
1248         Unicode 5.1.0 NormalizationTest.txt.
1249         * modules/uninorm/nfd-tests: New file.
1250
1251         New module 'uninorm/nfd'.
1252         * lib/uninorm/nfd.c: New file.
1253         * modules/uninorm/nfd: New file.
1254
1255         New module 'uninorm/u32-normalize'.
1256         * lib/uninorm/u32-normalize.c: New file.
1257         * modules/uninorm/u32-normalize: New file.
1258
1259         New module 'uninorm/u16-normalize'.
1260         * lib/uninorm/u16-normalize.c: New file.
1261         * modules/uninorm/u16-normalize: New file.
1262
1263         New module 'uninorm/u8-normalize'.
1264         * lib/uninorm/u8-normalize.c: New file.
1265         * lib/uninorm/normalize-internal.h: New file.
1266         * lib/uninorm/u-normalize-internal.h: New file.
1267         * modules/uninorm/u8-normalize: New file.
1268
1269         New module 'uninorm/decompose-internal'.
1270         * lib/uninorm/decompose-internal.c: New file.
1271         * modules/uninorm/decompose-internal: New file.
1272
1273         Tests for module 'uninorm/composition'.
1274         * tests/uninorm/test-composition.c: New file.
1275         * modules/uninorm/composition-tests: New file.
1276
1277         New module 'uninorm/composition'.
1278         * lib/uninorm/composition.c: New file.
1279         * lib/uninorm/composition-table.gperf: New file, generated by
1280         gen-uni-tables.
1281         * modules/uninorm/composition: New file.
1282
1283         Tests for module 'uninorm/compat-decomposition'.
1284         * tests/uninorm/test-compat-decomposition.c: New file.
1285         * modules/uninorm/compat-decomposition-tests: New file.
1286
1287         New module 'uninorm/compat-decomposition'.
1288         * lib/uninorm/decompose-internal.h: New file.
1289         * lib/uninorm/compat-decomposition.c: New file.
1290         * modules/uninorm/compat-decomposition: New file.
1291
1292         Tests for module 'uninorm/canonical-decomposition'.
1293         * tests/uninorm/test-canonical-decomposition.c: New file.
1294         * modules/uninorm/canonical-decomposition-tests: New file.
1295
1296         New module 'uninorm/canonical-decomposition'.
1297         * lib/uninorm/canonical-decomposition.c: New file.
1298         * modules/uninorm/canonical-decomposition: New file.
1299
1300         Tests for module 'uninorm/decomposition'.
1301         * tests/uninorm/test-decomposition.c: New file.
1302         * modules/uninorm/decomposition-tests: New file.
1303
1304         New module 'uninorm/decomposition'.
1305         * lib/uninorm/decomposition.c: New file.
1306         * modules/uninorm/decomposition: New file.
1307
1308         New module 'uninorm/decomposition-table'.
1309         * lib/uninorm/decomposition-table.h: New file.
1310         * lib/uninorm/decomposition-table.c: New file.
1311         * lib/uninorm/decomposition-table1.h: New file, generated by
1312         gen-uni-tables.
1313         * lib/uninorm/decomposition-table2.h: New file, generated by
1314         gen-uni-tables.
1315         * modules/uninorm/decomposition-table: New file.
1316
1317         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1318         (UC_DECOMP_*): New enumeration items.
1319         (get_decomposition): New function.
1320         (struct decomp_table): New type.
1321         (output_decomposition, output_decomposition_tables): New functions.
1322         (unicode_composition_exclusions): New variable.
1323         (fill_composition_exclusions, debug_output_composition_tables): New
1324         functions.
1325         (main): Accept one more argument. Invoke fill_composition_exclusions.
1326         Output decomposition and composition tables.
1327
1328         New module 'uninorm/base'.
1329         * lib/uninorm.h: New file.
1330         * lib/unictype.h: Update comment.
1331         * modules/uninorm/base: New file.
1332
1333 2009-02-21  David Lutterkort  <lutter@redhat.com>
1334
1335         Tests for module 'safe-alloc'.
1336         * tests/test-safe-alloc.c: New file.
1337         * modules/safe-alloc-tests: New file.
1338
1339         New module 'safe-alloc'.
1340         * lib/safe-alloc.h: New file.
1341         * lib/safe-alloc.c: New file.
1342         * m4/safe-alloc.m4: New file.
1343         * modules/safe-alloc: New file.
1344         * doc/safe-alloc.texi: New file.
1345         * doc/gnulib.texi: Include it.
1346         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1347         safe-alloc.
1348
1349 2009-02-18  Bruno Haible  <bruno@clisp.org>
1350
1351         Fix link error on non-glibc systems.
1352         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1353         variable.
1354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1355
1356 2009-02-18  Jim Meyering  <meyering@redhat.com>
1357
1358         fts: avoid used-uninitialized error due to recent change
1359         * lib/fts.c (fts_read): Guard uses of the new member,
1360         parent->fts_n_dirs_remaining, since it's not relevant for
1361         the parent of a directory specified on the command-line.
1362
1363 2009-02-17  James Youngman  <jay@gnu.org>
1364             Bruno Haible  <bruno@clisp.org>
1365
1366         * m4/include_next.m4: Reformulate comment.
1367
1368 2009-02-16  Jim Meyering  <meyering@redhat.com>
1369
1370         fts: add #if guards so that the fts_lgpl module still builds
1371         * lib/fts.c: Guard just-added hash-table-using parts with
1372         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1373         Reported by Simon Josefsson.
1374
1375 2009-02-15  Bruno Haible  <bruno@clisp.org>
1376
1377         * modules/array-mergesort-tests: New file.
1378         * tests/test-array-mergesort.c: New file.
1379
1380         New module 'array-mergesort'.
1381         * modules/array-mergesort: New file.
1382         * lib/array-mergesort.h: New file.
1383
1384 2009-02-15  Bruno Haible  <bruno@clisp.org>
1385
1386         Fix 2009-02-07 commit.
1387         * lib/gen-uni-tables.c (output_predicate, output_category,
1388         output_combclass, output_bidi_category, output_decimal_digit,
1389         output_digit, output_numeric, output_mirror, output_scripts,
1390         output_ident_category, output_simple_mapping): Fix format directives.
1391         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1392
1393 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1394
1395         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1396         fixes are available from IBM.
1397
1398 2009-02-13  Jim Meyering  <meyering@redhat.com>
1399
1400         fts: arrange not to stat non-directories in more cases
1401         This makes GNU find (when it doesn't need to stat each file)
1402         *much* more efficient at traversing reiserfs file systems.
1403         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1404         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1405         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1406         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1407         (leaf_optimization_applies): New function.
1408         (LCO_hash, LCO_compare): New helper functions.
1409         (link_count_optimize_ok): New function.
1410         (fts_stat): Initialize new member (if dir).
1411         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1412         we've just stat'ed a directory.  Skip the stat call when possible.
1413         ---
1414         Note this AFS-related exchange:
1415         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1416         and note find's pioctl call in find/fstype.c.
1417         But that is necessary only if you want to enable the
1418         optimization for AFS, and for now, I don't.
1419
1420         fts: move a function definition "up" (no semantic change)
1421         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1422         "up" to precede upcoming use of a related function.
1423
1424 2009-02-11  Jim Meyering  <meyering@redhat.com>
1425
1426         fts: correct internal computation of nlinks (optimization-related)
1427         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1428         whether the current entry is a directory, so don't test it.
1429
1430 2009-02-10  Bruno Haible  <bruno@clisp.org>
1431
1432         Tests for module 'uniwbrk/ulc-wordbreaks'.
1433         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1434         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1435         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1436
1437         Tests for module 'uniwbrk/u32-wordbreaks'.
1438         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1439         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1440
1441         Tests for module 'uniwbrk/u16-wordbreaks'.
1442         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1443         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1444
1445         Tests for module 'uniwbrk/u8-wordbreaks'.
1446         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1447         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1448
1449 2009-02-10  Bruno Haible  <bruno@clisp.org>
1450
1451         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1452         property.
1453         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1454         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1455         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1456
1457 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1458
1459         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1460         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1461
1462 2009-02-10  Bruno Haible  <bruno@clisp.org>
1463
1464         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1465         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1466         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1467         * lib/unilbrk/u8-possible-linebreaks.c: Update.
1468         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1469         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1470
1471 2009-02-09  Simon Josefsson  <simon@josefsson.org>
1472
1473         * lib/sockets.h (gl_fd_to_handle): New function.
1474
1475         * tests/test-sockets.c: Call gl_fd_to_handle.
1476
1477 2009-02-09  Bruno Haible  <bruno@clisp.org>
1478
1479         * doc/havelib.texi: Document the conventions on bi-arch systems.
1480
1481 2009-02-08  Bruno Haible  <bruno@clisp.org>
1482
1483         Document the AC_LIB_LINKFLAGS macro.
1484         * doc/havelib.texi: New file, mostly written on 2005-05-24.
1485         * doc/gnulib.texi: Include it.
1486
1487 2009-02-08  Bruno Haible  <bruno@clisp.org>
1488
1489         Fix wrong order of sections, compared to TOC.
1490         * doc/gnulib.texi: Include relocatable-maint.texi after the
1491         "Regular expressions" node, not before.
1492
1493 2009-02-08  Bruno Haible  <bruno@clisp.org>
1494
1495         Tests for module 'unicase/totitle'.
1496         * modules/unicase/totitle-tests: New file.
1497
1498         Tests for module 'unicase/tolower'.
1499         * modules/unicase/tolower-tests: New file.
1500
1501         Tests for module 'unicase/toupper'.
1502         * modules/unicase/toupper-tests: New file.
1503         * tests/unicase/test-mapping-part1.h: New file.
1504         * tests/unicase/test-mapping-part2.h: New file.
1505
1506         New module 'unicase/totitle'.
1507         * modules/unicase/totitle: New file.
1508         * lib/unicase/totitle.c: New file.
1509
1510         New module 'unicase/tolower'.
1511         * modules/unicase/tolower: New file.
1512         * lib/unicase/tolower.c: New file.
1513
1514         New module 'unicase/toupper'.
1515         * modules/unicase/toupper: New file.
1516         * lib/unicase/toupper.c: New file.
1517         * lib/unicase/simple-mapping.h: New file.
1518
1519         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1520         (mapping_table): New structure.
1521         (output_simple_mapping): New function.
1522         (main): Invoke output_simple_mapping_test and output_simple_mapping.
1523         * modules/gen-uni-tables (Description): Update.
1524         * lib/unicase/toupper.h: New file, automatically generated by
1525         gen-uni-tables.
1526         * lib/unicase/tolower.h: New file, automatically generated by
1527         gen-uni-tables.
1528         * lib/unicase/totitle.h: New file, automatically generated by
1529         gen-uni-tables.
1530         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1531         gen-uni-tables.
1532         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1533         gen-uni-tables.
1534         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1535         gen-uni-tables.
1536
1537         New module 'unicase/base'.
1538         * modules/unicase/base: New file.
1539         * lib/unicase.h: New file.
1540
1541 2009-02-08  Bruno Haible  <bruno@clisp.org>
1542
1543         New module 'uniwbrk/ulc-wordbreaks'.
1544         * modules/uniwbrk/ulc-wordbreaks: New file.
1545         * lib/uniwbrk/ulc-wordbreaks.c: New file.
1546
1547         New module 'uniwbrk/u32-wordbreaks'.
1548         * modules/uniwbrk/u32-wordbreaks: New file.
1549         * lib/uniwbrk/u32-wordbreaks.c: New file.
1550
1551         New module 'uniwbrk/u16-wordbreaks'.
1552         * modules/uniwbrk/u16-wordbreaks: New file.
1553         * lib/uniwbrk/u16-wordbreaks.c: New file.
1554
1555         New module 'uniwbrk/u8-wordbreaks'.
1556         * modules/uniwbrk/u8-wordbreaks: New file.
1557         * lib/uniwbrk/u8-wordbreaks.c: New file.
1558         * lib/uniwbrk/u-wordbreaks.h: New file.
1559
1560         New module 'uniwbrk/table'.
1561         * modules/uniwbrk/table: New file.
1562         * lib/uniwbrk/wbrktable.h: New file.
1563         * lib/uniwbrk/wbrktable.c: New file.
1564
1565         New module 'uniwbrk/wordbreak-property'.
1566         * modules/uniwbrk/wordbreak-property: New file.
1567         * lib/uniwbrk/wordbreak-property.c: New file.
1568
1569         * lib/gen-uni-tables.c (WBP_*): New enum items.
1570         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1571         (unicode_org_wbp): New variable.
1572         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1573         New functions.
1574         (wbp_table): New structure.
1575         (output_wbp, output_wbrk_tables): New functions.
1576         (main): Accept additional argument. Invoke fill_org_wbp,
1577         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1578         output_wbrk_tables.
1579         * modules/gen-uni-tables (Description): Update.
1580         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1581         gen-uni-tables.
1582
1583         New module 'uniwbrk/base'.
1584         * modules/uniwbrk/base: New file.
1585         * lib/uniwbrk.h: New file.
1586
1587 2009-02-08  Bruno Haible  <bruno@clisp.org>
1588
1589         Update to Unicode 5.1.0.
1590         * lib/gen-uni-tables.c (is_property_alphabetic): Include
1591         U+2185..U+2188.
1592         (is_property_default_ignorable_code_point): Don't include characters
1593         of category Cc or Cs and not-a-characters.
1594         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1595         U+0D79, U+109E, U+109F, U+A60C.
1596         * lib/unictype/bidi_of.h: Regenerated.
1597         * lib/unictype/blocks.h: Regenerated.
1598         * lib/unictype/categ_C.h: Regenerated.
1599         * lib/unictype/categ_Cf.h: Regenerated.
1600         * lib/unictype/categ_Cn.h: Regenerated.
1601         * lib/unictype/categ_L.h: Regenerated.
1602         * lib/unictype/categ_Ll.h: Regenerated.
1603         * lib/unictype/categ_Lm.h: Regenerated.
1604         * lib/unictype/categ_Lo.h: Regenerated.
1605         * lib/unictype/categ_Lu.h: Regenerated.
1606         * lib/unictype/categ_M.h: Regenerated.
1607         * lib/unictype/categ_Mc.h: Regenerated.
1608         * lib/unictype/categ_Me.h: Regenerated.
1609         * lib/unictype/categ_Mn.h: Regenerated.
1610         * lib/unictype/categ_N.h: Regenerated.
1611         * lib/unictype/categ_Nd.h: Regenerated.
1612         * lib/unictype/categ_Nl.h: Regenerated.
1613         * lib/unictype/categ_No.h: Regenerated.
1614         * lib/unictype/categ_P.h: Regenerated.
1615         * lib/unictype/categ_Pd.h: Regenerated.
1616         * lib/unictype/categ_Pe.h: Regenerated.
1617         * lib/unictype/categ_Pf.h: Regenerated.
1618         * lib/unictype/categ_Pi.h: Regenerated.
1619         * lib/unictype/categ_Po.h: Regenerated.
1620         * lib/unictype/categ_Ps.h: Regenerated.
1621         * lib/unictype/categ_S.h: Regenerated.
1622         * lib/unictype/categ_Sk.h: Regenerated.
1623         * lib/unictype/categ_Sm.h: Regenerated.
1624         * lib/unictype/categ_So.h: Regenerated.
1625         * lib/unictype/categ_of.h: Regenerated.
1626         * lib/unictype/combining.h: Regenerated.
1627         * lib/unictype/ctype_alnum.h: Regenerated.
1628         * lib/unictype/ctype_alpha.h: Regenerated.
1629         * lib/unictype/ctype_graph.h: Regenerated.
1630         * lib/unictype/ctype_lower.h: Regenerated.
1631         * lib/unictype/ctype_print.h: Regenerated.
1632         * lib/unictype/ctype_punct.h: Regenerated.
1633         * lib/unictype/ctype_upper.h: Regenerated.
1634         * lib/unictype/decdigit.h: Regenerated.
1635         * lib/unictype/digit.h: Regenerated.
1636         * lib/unictype/mirror.h: Regenerated.
1637         * lib/unictype/numeric.h: Regenerated.
1638         * lib/unictype/pr_alphabetic.h: Regenerated.
1639         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
1640         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
1641         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
1642         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
1643         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
1644         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
1645         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
1646         * lib/unictype/pr_combining.h: Regenerated.
1647         * lib/unictype/pr_dash.h: Regenerated.
1648         * lib/unictype/pr_decimal_digit.h: Regenerated.
1649         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
1650         * lib/unictype/pr_deprecated.h: Regenerated.
1651         * lib/unictype/pr_diacritic.h: Regenerated.
1652         * lib/unictype/pr_extender.h: Regenerated.
1653         * lib/unictype/pr_format_control.h: Regenerated.
1654         * lib/unictype/pr_grapheme_base.h: Regenerated.
1655         * lib/unictype/pr_grapheme_extend.h: Regenerated.
1656         * lib/unictype/pr_grapheme_link.h: Regenerated.
1657         * lib/unictype/pr_id_continue.h: Regenerated.
1658         * lib/unictype/pr_id_start.h: Regenerated.
1659         * lib/unictype/pr_ideographic.h: Regenerated.
1660         * lib/unictype/pr_ignorable_control.h: Regenerated.
1661         * lib/unictype/pr_lowercase.h: Regenerated.
1662         * lib/unictype/pr_math.h: Regenerated.
1663         * lib/unictype/pr_numeric.h: Regenerated.
1664         * lib/unictype/pr_other_alphabetic.h: Regenerated.
1665         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
1666         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
1667         * lib/unictype/pr_other_id_continue.h: Regenerated.
1668         * lib/unictype/pr_other_lowercase.h: Regenerated.
1669         * lib/unictype/pr_other_math.h: Regenerated.
1670         * lib/unictype/pr_punctuation.h: Regenerated.
1671         * lib/unictype/pr_sentence_terminal.h: Regenerated.
1672         * lib/unictype/pr_soft_dotted.h: Regenerated.
1673         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
1674         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
1675         * lib/unictype/pr_unified_ideograph.h: Regenerated.
1676         * lib/unictype/pr_uppercase.h: Regenerated.
1677         * lib/unictype/pr_xid_continue.h: Regenerated.
1678         * lib/unictype/pr_xid_start.h: Regenerated.
1679         * lib/unictype/pr_zero_width.h: Regenerated.
1680         * lib/unictype/scripts.h: Regenerated.
1681         * lib/unictype/scripts_byname.gperf: Regenerated.
1682         * lib/unictype/sy_java_ident.h: Regenerated.
1683         * lib/unilbrk/lbrkprop1.h: Regenerated.
1684         * lib/unilbrk/lbrkprop2.h: Regenerated.
1685         * tests/unictype/test-categ_C.c: Regenerated.
1686         * tests/unictype/test-categ_Cf.c: Regenerated.
1687         * tests/unictype/test-categ_Cn.c: Regenerated.
1688         * tests/unictype/test-categ_L.c: Regenerated.
1689         * tests/unictype/test-categ_Ll.c: Regenerated.
1690         * tests/unictype/test-categ_Lm.c: Regenerated.
1691         * tests/unictype/test-categ_Lo.c: Regenerated.
1692         * tests/unictype/test-categ_Lu.c: Regenerated.
1693         * tests/unictype/test-categ_M.c: Regenerated.
1694         * tests/unictype/test-categ_Mc.c: Regenerated.
1695         * tests/unictype/test-categ_Me.c: Regenerated.
1696         * tests/unictype/test-categ_Mn.c: Regenerated.
1697         * tests/unictype/test-categ_N.c: Regenerated.
1698         * tests/unictype/test-categ_Nd.c: Regenerated.
1699         * tests/unictype/test-categ_Nl.c: Regenerated.
1700         * tests/unictype/test-categ_No.c: Regenerated.
1701         * tests/unictype/test-categ_P.c: Regenerated.
1702         * tests/unictype/test-categ_Pd.c: Regenerated.
1703         * tests/unictype/test-categ_Pe.c: Regenerated.
1704         * tests/unictype/test-categ_Pf.c: Regenerated.
1705         * tests/unictype/test-categ_Pi.c: Regenerated.
1706         * tests/unictype/test-categ_Po.c: Regenerated.
1707         * tests/unictype/test-categ_Ps.c: Regenerated.
1708         * tests/unictype/test-categ_S.c: Regenerated.
1709         * tests/unictype/test-categ_Sk.c: Regenerated.
1710         * tests/unictype/test-categ_Sm.c: Regenerated.
1711         * tests/unictype/test-categ_So.c: Regenerated.
1712         * tests/unictype/test-ctype_alnum.c: Regenerated.
1713         * tests/unictype/test-ctype_alpha.c: Regenerated.
1714         * tests/unictype/test-ctype_graph.c: Regenerated.
1715         * tests/unictype/test-ctype_lower.c: Regenerated.
1716         * tests/unictype/test-ctype_print.c: Regenerated.
1717         * tests/unictype/test-ctype_punct.c: Regenerated.
1718         * tests/unictype/test-ctype_upper.c: Regenerated.
1719         * tests/unictype/test-decdigit.h: Regenerated.
1720         * tests/unictype/test-digit.h: Regenerated.
1721         * tests/unictype/test-numeric.h: Regenerated.
1722         * tests/unictype/test-pr_alphabetic.c: Regenerated.
1723         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
1724         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
1725         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
1726         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
1727         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
1728         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
1729         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
1730         * tests/unictype/test-pr_combining.c: Regenerated.
1731         * tests/unictype/test-pr_dash.c: Regenerated.
1732         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
1733         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
1734         * tests/unictype/test-pr_deprecated.c: Regenerated.
1735         * tests/unictype/test-pr_diacritic.c: Regenerated.
1736         * tests/unictype/test-pr_extender.c: Regenerated.
1737         * tests/unictype/test-pr_format_control.c: Regenerated.
1738         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
1739         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
1740         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
1741         * tests/unictype/test-pr_id_continue.c: Regenerated.
1742         * tests/unictype/test-pr_id_start.c: Regenerated.
1743         * tests/unictype/test-pr_ideographic.c: Regenerated.
1744         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
1745         * tests/unictype/test-pr_lowercase.c: Regenerated.
1746         * tests/unictype/test-pr_math.c: Regenerated.
1747         * tests/unictype/test-pr_numeric.c: Regenerated.
1748         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
1749         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
1750         Regenerated.
1751         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
1752         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
1753         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
1754         * tests/unictype/test-pr_other_math.c: Regenerated.
1755         * tests/unictype/test-pr_punctuation.c: Regenerated.
1756         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
1757         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
1758         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
1759         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
1760         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
1761         * tests/unictype/test-pr_uppercase.c: Regenerated.
1762         * tests/unictype/test-pr_xid_continue.c: Regenerated.
1763         * tests/unictype/test-pr_xid_start.c: Regenerated.
1764         * tests/unictype/test-pr_zero_width.c: Regenerated.
1765
1766         Update to Unicode 5.1.0.
1767         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
1768         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
1769         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
1770         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
1771         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
1772         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
1773         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
1774         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
1775         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
1776         (nonspacing_table_ind): Update.
1777         * tests/uniwidth/test-uc_width2.sh: Update expected result.
1778
1779         Update to Unicode 5.1.0.
1780         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
1781         code transform.
1782         * lib/uniname/uniname.c (unicode_character_name,
1783         unicode_name_character): Add the range 0x1Fxxx to the code transform.
1784         * lib/uniname/uninames.h: Regenerated.
1785         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
1786
1787 2009-02-07  Bruno Haible  <bruno@clisp.org>
1788
1789         Merge gen-ctype and gen-lbrk into a single program.
1790         * lib/gen-uni-tables.c: New file, incorporating
1791         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
1792         Add directory prefixes to the names of the generated files.
1793         * lib/unictype/gen-ctype.c: Remove file.
1794         * lib/unilbrk/gen-lbrk.c: Remove file.
1795         * modules/gen-uni-tables: New file.
1796         * modules/unictype/gen-ctype: Remove file.
1797         * modules/unilbrk/gen-lbrk: Remove file.
1798
1799 2009-02-07  Bruno Haible  <bruno@clisp.org>
1800
1801         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
1802
1803         New module 'unistr/u32-strcoll'.
1804         * modules/unistr/u32-strcoll: New file.
1805         * lib/unistr/u32-strcoll.c: New file.
1806
1807         New module 'unistr/u16-strcoll'.
1808         * modules/unistr/u16-strcoll: New file.
1809         * lib/unistr/u16-strcoll.c: New file.
1810
1811         New module 'unistr/u8-strcoll'.
1812         * modules/unistr/u8-strcoll: New file.
1813         * lib/unistr/u8-strcoll.c: New file.
1814         * lib/unistr/u-strcoll.h: New file.
1815
1816 2009-02-07  Bruno Haible  <bruno@clisp.org>
1817
1818         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
1819         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1820         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1821         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
1822         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
1823         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
1824
1825 2009-02-07  Bruno Haible  <bruno@clisp.org>
1826
1827         Make 64-bit clean.
1828         * lib/unictype/gen-ctype.c (output_predicate, output_category,
1829         output_combclass, output_bidi_category, output_decimal_digit,
1830         output_digit, output_numeric, output_mirror, output_scripts,
1831         output_ident_category): Use proper width specifier in format strings.
1832
1833 2009-02-07  Bruno Haible  <bruno@clisp.org>
1834
1835         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
1836         failure behaviour.
1837
1838 2009-02-07  Jim Meyering  <meyering@redhat.com>
1839
1840         regex: avoid compilation failure with upcoming gcc-4.4
1841         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
1842         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
1843         "... error: integer overflow in preprocessor expression".
1844
1845 2009-02-05  Ben Pfaff  <blp@gnu.org>
1846
1847         Fix link errors on Windows when close module is used.
1848         * modules/close: Add $(LIB_CLOSE) to Link section.
1849         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
1850         $(LIB_CLOSE) on Windows.
1851
1852 2009-02-05  Jim Meyering  <meyering@redhat.com>
1853
1854         still avoid unused-parameter warnings, but do it cleanly
1855         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
1856         (get_fs_usage): Cast to void instead.
1857         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
1858         (dev_from_mount_options, read_file_system_list): Cast to void.
1859         Prompted by Bruno Haible.
1860
1861 2009-02-04  Jim Meyering  <meyering@redhat.com>
1862
1863         fsusage.c: correct copyright year
1864         * lib/fsusage.c: Reflect year in which the change is pushed into
1865
1866         avoid misc. warnings
1867         * lib/fsusage.c (UNUSED_PARAM): Define.
1868         (get_fs_usage): Mark parameter "disk" as unused.
1869         * lib/getugroups.c (getgrent): Use "void" in prototype.
1870         * lib/mountlist.c: Mark unused parameters.
1871         (read_file_system_list): Declare a local with "const".
1872         * lib/nanosleep.c (getnow): Declare static.
1873         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
1874
1875         dirfd: set errno upon failure
1876         * lib/dirfd.c: Include <errno.h>.
1877         Set errno to ENOTSUP when returning -1.
1878         * modules/dirfd (Depends-on): Add errno.
1879         Suggested by John Kodis <kodis@comcast.net>.
1880
1881 2009-02-01  Bruno Haible  <bruno@clisp.org>
1882
1883         Don't assume sizeof (long) >= sizeof (void *).
1884         * lib/memcmp.c: Include stdint.h.
1885         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
1886         srcp2 to 'const byte *'.
1887         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
1888         types to uintptr_t.
1889         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
1890         * modules/memcmp (Depends-on): Add stdint.
1891         Reported by Ozkan Sezer <sezeroz@gmail.com>.
1892
1893 2009-01-30  Eric Blake  <ebb9@byu.net>
1894
1895         fix more require-before-expand issues
1896         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
1897         expand, AC_PROG_AWK.
1898         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
1899
1900 2009-01-28  Eric Blake  <ebb9@byu.net>
1901
1902         version-etc: use consistent URL formatting
1903         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
1904         Improve formatting.  Use fputs for string without %.
1905
1906 2009-01-28  Jim Meyering  <meyering@redhat.com>
1907
1908         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
1909         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
1910         "underquoted definition of NAME" from autoconf-2.59.
1911
1912 2009-01-28  Bruno Haible  <bruno@clisp.org>
1913
1914         * doc/gnulib.texi: Add "Obsolete modules" to index.
1915
1916 2009-01-28  Jim Meyering  <meyering@redhat.com>
1917
1918         useless-if-before-free: recognize more variants
1919         * build-aux/useless-if-before-free: Also recognize e.g.,
1920         if (NULL != p) free (p);
1921
1922 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
1923
1924         test-getaddrinfo: skip (don't fail) this test when there's no network
1925         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
1926         on the presumption that it means you lack network access.
1927
1928 2009-01-26  Jim Meyering  <meyering@redhat.com>
1929
1930         fflush: avoid warnings on modern systems
1931         * lib/fflush.c (rpl_fflush): Move declarations of locals,
1932         pos and result, into scopes where they're used.
1933
1934 2009-01-26  Eric Blake  <ebb9@byu.net>
1935
1936         Silence warning reintroduced by recent extensions patch.
1937         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
1938         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
1939         autoconf.
1940
1941         Backport improved autoconf semantics of AC_DEFUN_ONCE.
1942         * m4/00gnulib.m4: New file.
1943         * gnulib-tool (func_get_filelist): Always use it.
1944         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
1945         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
1946
1947 2009-01-25  Bruno Haible  <bruno@clisp.org>
1948
1949         Make test-quotearg work on MacOS X and AIX.
1950         * tests/test-quotearg.sh: New file.
1951         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
1952         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
1953         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
1954         include <libintl.h>.
1955         (fake_locale): Remove variable.
1956         (gettext, dgettext, dcgettext): Remove functions.
1957         (main): Instead of setting a fake locale, set a real locale. Call
1958         textdomain and bindtextdomain.
1959         * modules/quotearg-tests (Files): Add the new files.
1960         (Depends-on): Add gettext, setenv, unsetenv.
1961         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
1962         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
1963         Augment TESTS_ENVIRONMENT.
1964
1965 2009-01-25  Bruno Haible  <bruno@clisp.org>
1966
1967         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
1968         fr_FR.ISO8859-1 locale on MacOS X.
1969         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
1970         ja_JP.eucJP locale on MacOS X.
1971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
1972         zh_CN.GB18030 locale on MacOS X.
1973
1974 2009-01-25  Bruno Haible  <bruno@clisp.org>
1975
1976         Avoid link errors on MacOS X 10.3.
1977         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
1978         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
1979
1980 2009-01-25  Bruno Haible  <bruno@clisp.org>
1981
1982         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
1983         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
1984         * modules/pipe (Files): Remove m4/posix_spawn.m4.
1985         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
1986         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
1987         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
1988         posix_spawnattr_init, posix_spawnattr_setsigmask,
1989         posix_spawnattr_setflags, posix_spawnattr_destroy.
1990
1991         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
1992         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
1993         * modules/execute (Files): Remove m4/posix_spawn.m4.
1994         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
1995         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
1996         posix_spawnattr_init, posix_spawnattr_setsigmask,
1997         posix_spawnattr_setflags, posix_spawnattr_destroy.
1998
1999 2009-01-25  Bruno Haible  <bruno@clisp.org>
2000
2001         * lib/glthread/threadlib.c: Include <stdlib.h>.
2002
2003 2009-01-25  Bruno Haible  <bruno@clisp.org>
2004
2005         * lib/glthread/threadlib.c (dummy): New declaration.
2006
2007 2009-01-25  Bruno Haible  <bruno@clisp.org>
2008
2009         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2010         multibyte characters also for the GB18030 encoding. Don't crash when
2011         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2012
2013 2009-01-25  Bruno Haible  <bruno@clisp.org>
2014
2015         Avoid redefining 'struct random_data' on OSF/1 5.1.
2016         * lib/stdlib.in.h: Include <random.h> if it exists.
2017         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2018         HAVE_RANDOM_H. Include <random.h> when testing whether
2019         'struct random_data' exists.
2020         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2021
2022 2009-01-25  Bruno Haible  <bruno@clisp.org>
2023
2024         Don't install charset.alias on MacOS X >= 10.3.
2025         * lib/localcharset.c (DARWIN7): New macro.
2026         (get_charset_aliases): Hardcode the result for Darwin7.
2027         * modules/localcharset (install-exec-local): Don't install
2028         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2029
2030 2009-01-25  Bruno Haible  <bruno@clisp.org>
2031
2032         Don't install charset.alias on mingw and Cygwin.
2033         * modules/localcharset (install-exec-local): Don't install
2034         charset.alias on mingw and Cygwin, if the file does not yet exist.
2035         The result for these platforms is hardcoded in localcharset.c.
2036
2037 2009-01-25  Bruno Haible  <bruno@clisp.org>
2038
2039         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2041         before requiring AC_USE_SYSTEM_EXTENSIONS.
2042
2043 2009-01-25  Jim Meyering  <meyering@redhat.com>
2044
2045         c-strtod: avoid warnings
2046         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2047         "assignment discards qualifiers from pointer target type" warnings.
2048
2049 2009-01-24  Bruno Haible  <bruno@clisp.org>
2050
2051         Add support for non-UTF-8 locales on MacOS X.
2052         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2053         canonical encodings. For Darwin 7 and newer, don't map traditional
2054         encodings to UTF-8.
2055         Reported by Vincent Lefevre <vincent@vinc17.org>
2056         at <http://savannah.gnu.org/bugs/?25235>.
2057
2058 2009-01-24  Bruno Haible  <bruno@clisp.org>
2059
2060         * doc/gnulib.texi (Obsolete modules): New section.
2061         Reported by Mike Frysinger <vapier@gentoo.org>.
2062
2063 2009-01-24  Bruno Haible  <bruno@clisp.org>
2064
2065         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2066         (%.dvi): New rule.
2067
2068 2009-01-24  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2071         Reported by Eric Blake.
2072
2073 2009-01-24  Bruno Haible  <bruno@clisp.org>
2074
2075         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2076         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2077         Reported by Gary V. Vaughan <gary@gnu.org>.
2078
2079 2009-01-24  Bruno Haible  <bruno@clisp.org>
2080
2081         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2082
2083 2009-01-23  Bruno Haible  <bruno@clisp.org>
2084
2085         Make c-strtod, c-strtold usable in libraries.
2086         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2087         (C_STRTOD): Call strdup instead of xstrdup.
2088         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2089         * modules/c-strtold (Depends-on): Likewise.
2090         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2091         * NEWS: Mention the change.
2092         Reported by Michael Gold <mgold@ncf.ca>.
2093
2094 2009-01-23  Jim Meyering  <meyering@redhat.com>
2095
2096         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2097         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2098         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2099
2100 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2101
2102         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2103         GNU CoreUtils.
2104         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2105         * modules/version-etc (Description): Update.
2106
2107 2009-01-22  Bruno Haible  <bruno@clisp.org>
2108
2109         Cache the C locale object.
2110         * lib/c-strtod.c (c_locale_cache): New variable.
2111         (c_locale): New function.
2112         (C_STRTOD): Use it, and don't call freelocale.
2113         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2114         Suggested by Paolo Bonzini.
2115
2116 2009-01-21  Bruno Haible  <bruno@clisp.org>
2117
2118         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2119         conditions other than overflow.
2120
2121 2009-01-21  Bruno Haible  <bruno@clisp.org>
2122
2123         * lib/c-strtod.c: Include errno.h.
2124         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2125         value from STRTOD_L and STRTOD.
2126
2127 2009-01-21  Bruno Haible  <bruno@clisp.org>
2128         and Jim Meyering  <meyering@redhat.com>
2129
2130         nanosleep: skip configure test (fail it) for apple universal builds
2131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2132         universal builds, assume that nanosleep does not work.
2133         * modules/nanosleep (Depends-on): Add multiarch.
2134
2135         mktime: skip configure test (fail it) for apple universal builds
2136         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2137         universal builds, assume that mktime does not work.
2138         * modules/mktime (Depends-on): Add multiarch.
2139
2140 2009-01-21  Eric Blake  <ebb9@byu.net>
2141
2142         multiarch: avoid expand-before-require warning
2143         * modules/multiarch (configure.ac): Require, rather than expand,
2144         gl_MULTIARCH.
2145         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2146         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2147         enforce that all clients require it.  Partial reversion of
2148         2008-12-29 patch.
2149
2150         error: avoid expand-before-require warning
2151         * modules/errno (configure.ac): Require, rather than expand,
2152         gl_HEADER_ERRNO_H.
2153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2154         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2155         enforce that all clients require it.
2156
2157         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2158         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2159         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2160         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2161
2162 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2163
2164         Revert:
2165         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2166
2167         regex: do not depend on obsolete modules.
2168         * modules/regex: Remove memcmp and memmove.
2169
2170 2009-01-20  Bruno Haible  <bruno@clisp.org>
2171
2172         Make the 'link' module link on Windows NT 4.
2173         * lib/link.c (_WIN32_WINNT): Don't define.
2174         (CreateHardLinkFuncType): New type.
2175         (CreateHardLinkFunc, initialized): New variables.
2176         (initialize): New function.
2177         (link): Invoke CreateHardLink indirectly through the function pointer.
2178
2179 2009-01-20  Bruno Haible  <bruno@clisp.org>
2180
2181         Fix compilation failure on mingw.
2182         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2183
2184 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2185
2186         * doc/c-strtod.texi: Mention a couple of restrictions.
2187
2188 2009-01-20  Jim Meyering  <meyering@redhat.com>
2189
2190         gettimeofday: move more declarations out of functions
2191         * lib/gettimeofday.c: Move extern declarations of tzset and
2192         gmtime out of containing functions.  Prompted by Bruno Haible.
2193
2194 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2195
2196         regex: do not depend on obsolete modules.
2197         * modules/regex: Remove memcmp and memmove.
2198
2199 2009-01-19  Bruno Haible  <bruno@clisp.org>
2200
2201         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2202         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2203         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2204         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2205         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2206
2207 2009-01-19  Bruno Haible  <bruno@clisp.org>
2208
2209         * tests/test-link.c: Include <errno.h>.
2210         (main): Exit with code 77 when a hard link cannot be created due to
2211         the file system.
2212         * tests/test-link.sh: Skip test when a hard link cannot be created due
2213         to the file system.
2214         Suggested by Eric Blake.
2215
2216 2009-01-19  Martin Lambers  <marlam@marlam.de>
2217
2218         * modules/link-tests: New file.
2219         * tests/test-link.sh: New file.
2220         * tests/test-link.c: New file.
2221
2222 2009-01-19  Eric Blake  <ebb9@byu.net>
2223
2224         doc: mention another function added in cygwin 1.7.0
2225         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2226         Another new function in cygwin 1.7.
2227
2228 2009-01-19  Bruno Haible  <bruno@clisp.org>
2229
2230         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2231         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2232         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2233         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2234         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2235         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2236         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2237         * m4/md4.m4 (gl_MD4): Likewise.
2238         * m4/md5.m4 (gl_MD5): Likewise.
2239         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2240         * m4/sha1.m4 (gl_SHA1): Likewise.
2241         * m4/sha256.m4 (gl_SHA256): Likewise.
2242         * m4/sha512.m4 (gl_SHA512): Likewise.
2243
2244 2009-01-19  Bruno Haible  <bruno@clisp.org>
2245
2246         * modules/uniname/uniname-tests (Depends-on): Add progname.
2247         * tests/uniname/test-uninames.c: Include progname.h.
2248         (main): Call set_program_name.
2249
2250         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2251         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2252         (main): Call set_program_name.
2253
2254         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2255         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2256         (main): Call set_program_name.
2257
2258         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2259         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2260         (main): Call set_program_name.
2261
2262         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2263         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2264         (main): Call set_program_name.
2265
2266         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2267         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2268         (main): Call set_program_name.
2269
2270         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2271         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2272         (main): Call set_program_name.
2273
2274         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2275         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2276         (main): Call set_program_name.
2277
2278         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2279         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2280         (main): Call set_program_name.
2281
2282 2009-01-19  Eric Blake  <ebb9@byu.net>
2283
2284         test-unistd: test previous patch
2285         * tests/test-unistd.c: Test *_FILENO macros.
2286
2287         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2288         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2289         Guarantee a definition.
2290         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2291         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2292         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2293         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2294         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2295         Likewise.
2296         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2297         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2298         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2299         Likewise.
2300         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2301         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2302         (STDERR_FILENO): Likewise.
2303         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2304         (STDERR_FILENO): Likewise.
2305         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2306         (STDERR_FILENO): Likewise.
2307         Reported by Elbert Pol.
2308
2309 2009-01-19  Eric Blake  <ebb9@byu.net>
2310
2311         doc: mention more functions added in cygwin 1.7.0
2312         * doc/posix-functions/abort.texi (abort): Update wording related
2313         to cygwin.
2314         * doc/posix-functions/daylight.texi (daylight): Likewise.
2315         * doc/posix-functions/optarg.texi (optarg): Likewise.
2316         * doc/posix-functions/optarg.texi (opterr): Likewise.
2317         * doc/posix-functions/optarg.texi (optind): Likewise.
2318         * doc/posix-functions/optarg.texi (optopt): Likewise.
2319         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2320         worked in 1.5.x, and was withdrawn in 1.7.
2321         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2322         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2323         cygwin versions.
2324         * doc/posix-functions/perror.texi (perror): Likewise.
2325         * doc/posix-functions/printf.texi (printf): Likewise.
2326         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2327         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2328         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2329         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2330         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2331         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2332         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2333         Likewise.
2334         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2335         Likewise.
2336         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2337         this function.
2338         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2339         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2340         Likewise.
2341         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2342         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2343         * doc/posix-functions/confstr.texi (confstr): Likewise.
2344         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2345         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2346         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2347         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2348         * doc/posix-functions/fputws.texi (fputws): Likewise.
2349         * doc/posix-functions/fwide.texi (fwide): Likewise.
2350         * doc/posix-functions/getwc.texi (getwc): Likewise.
2351         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2352         * doc/posix-functions/putwc.texi (putwc): Likewise.
2353         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2354         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2355         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2356         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2357         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2358         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2359         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2360         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2361         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2362         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2363         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2364
2365 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2366
2367         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2368         * lib/ioctl.c: Include <sys/ioctl.h>.
2369
2370 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2371
2372         * modules/getdate-tests (Depends-on): Add progname.
2373         * tests/test-getdate.c: Use progname module, to avoid link errors
2374         on non-glibc systems.
2375
2376 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2377
2378         * modules/filenamecat-tests (Depends-on): Add progname.
2379         * modules/fstrcmp-tests (Depends-on): Likewise.
2380
2381         * tests/test-filenamecat.c: Use progname module, to avoid link
2382         errors on non-glibc systems.
2383         * tests/test-fstrcmp.c: Likewise.
2384
2385 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2386
2387         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2388         * lib/gettimeofday.c: Move extern declaration out of function.
2389
2390 2009-01-18  Bruno Haible  <bruno@clisp.org>
2391
2392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2393         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2394         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2395
2396 2009-01-18  Bruno Haible  <bruno@clisp.org>
2397
2398         * lib/strftime.c (MEMPCPY): Remove unused macro.
2399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2400
2401 2009-01-18  Martin Lambers  <marlam@marlam.de>
2402
2403         New module 'link'.
2404         * lib/unistd.in.h (link): New declaration.
2405         * lib/link.c: New file.
2406         * m4/link.m4: New file.
2407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2408         HAVE_LINK.
2409         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2410         * modules/link: New file.
2411         * doc/posix-functions/link.texi: Mention the new module.
2412
2413 2009-01-18  Bruno Haible  <bruno@clisp.org>
2414
2415         * tests/test-avltree_list.c (main): Call set_program_name.
2416         * tests/test-avltree_oset.c (main): Likewise.
2417         * tests/test-obstack-printf.c: Include progname.h.
2418         (main): Call set_program_name.
2419         * tests/test-quotearg.c: Include progname.h.
2420         (main): Call set_program_name.
2421         * tests/test-xmemdup0.c: Include progname.h.
2422         (main): Call set_program_name.
2423
2424 2009-01-18  Bruno Haible  <bruno@clisp.org>
2425
2426         New module 'alphasort'.
2427         * lib/dirent.in.h (alphasort): New declaration.
2428         * lib/alphasort.c: New file, from glibc with modifications.
2429         * m4/alphasort.m4: New file.
2430         * modules/alphasort: New file.
2431         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2432         HAVE_ALPHASORT.
2433         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2434         HAVE_ALPHASORT.
2435         * doc/posix-functions/alphasort.texi: Mention the new module and the
2436         portability problems.
2437
2438 2009-01-18  Bruno Haible  <bruno@clisp.org>
2439
2440         New module 'scandir'.
2441         * lib/dirent.in.h (scandir): New declaration.
2442         * lib/scandir.c: New file, from glibc with modifications.
2443         * m4/scandir.m4: New file.
2444         * modules/scandir: New file.
2445         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2446         HAVE_SCANDIR.
2447         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2448         HAVE_SCANDIR.
2449         * doc/posix-functions/scandir.texi: Mention the new module and the
2450         portability problems.
2451
2452 2009-01-17  Bruno Haible  <bruno@clisp.org>
2453
2454         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2455         Update documentation.
2456         (func_remove_suffix): Escape all dots in the suffix. Update
2457         documentation.
2458         (func_filter_filelist): Update documentation.
2459         Reported by Ralf Wildenhues.
2460
2461 2009-01-17  Bruno Haible  <bruno@clisp.org>
2462
2463         * modules/dprintf-posix-tests: New file.
2464         * tests/test-dprintf-posix.sh: New file.
2465         * tests/test-dprintf-posix.c: New file.
2466
2467         New modules 'dprintf', 'dprintf-posix'.
2468         * lib/stdio.in.h (dprintf): New declaration.
2469         * lib/dprintf.c: New file.
2470         * m4/dprintf.m4: New file.
2471         * m4/dprintf-posix.m4: New file.
2472         * modules/dprintf: New file.
2473         * modules/dprintf-posix: New file.
2474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2475         HAVE_DPRINTF, REPLACE_DPRINTF.
2476         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2477         HAVE_DPRINTF, REPLACE_DPRINTF.
2478         * doc/posix-functions/dprintf.texi: Mention the new modules.
2479
2480 2009-01-17  Bruno Haible  <bruno@clisp.org>
2481
2482         * modules/vdprintf-posix-tests: New file.
2483         * tests/test-vdprintf-posix.sh: New file.
2484         * tests/test-vdprintf-posix.c: New file.
2485
2486         New modules 'vdprintf', 'vdprintf-posix'.
2487         * lib/stdio.in.h (vdprintf): New declaration.
2488         * lib/vdprintf.c: New file.
2489         * m4/vdprintf.m4: New file.
2490         * m4/vdprintf-posix.m4: New file.
2491         * modules/vdprintf: New file.
2492         * modules/vdprintf-posix: New file.
2493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2494         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2495         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2496         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2497         * doc/posix-functions/vdprintf.texi: Mention the new modules.
2498
2499 2009-01-17  Bruno Haible  <bruno@clisp.org>
2500
2501         Fix replacement of fopen on mingw.
2502         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2503         mingw.
2504
2505 2009-01-17  Bruno Haible  <bruno@clisp.org>
2506
2507         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2508         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2509
2510 2009-01-17  Bruno Haible  <bruno@clisp.org>
2511
2512         Avoid test-fflush2.sh failure on mingw.
2513         * tests/test-fflush2.c: Include binary-io.h.
2514         (main): Put standard input into binary mode.
2515         * modules/fflush-tests (Depends-on): Add binary-io.
2516
2517 2009-01-17  Bruno Haible  <bruno@clisp.org>
2518
2519         * lib/wchar.in.h: In another particular situation, include only the
2520         system's <wchar.h> file.
2521         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2522         Reported by Albert Chin-A-Young <china@thewrittenword.com>
2523         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2524
2525 2009-01-17  Bruno Haible  <bruno@clisp.org>
2526
2527         Support for stripping executables in --enable-relocatable.
2528         * build-aux/install-reloc: Expect one more argument, or an environment
2529         variable RELOC_STRIP_PROG. If set, strip the destination program and
2530         its wrapper.
2531         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2532         RELOC_STRIP_PROG.
2533         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2534         to set RELOCATABLE_STRIP.
2535         * NEWS: Mention the new Makefile requirement.
2536
2537 2009-01-17  Bruno Haible  <bruno@clisp.org>
2538
2539         * build-aux/install-reloc: Remove debugging information left over by
2540         C compiler on MacOS X.
2541
2542 2009-01-17  Bruno Haible  <bruno@clisp.org>
2543
2544         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2545         * lib/progreloc.c (find_executable): Fix type of pointer passed to
2546         _NSGetExecutablePath.
2547
2548 2009-01-16  Jim Meyering  <meyering@redhat.com>
2549
2550         strerror: avoid warnings about discarding "const"
2551         * lib/strerror.c (rpl_strerror): Instead of returning a const
2552         string from each and every "case", use a variable, and add a single
2553         cast after the switch.
2554
2555 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
2556
2557         * lib/arpa_inet.in.h: Add extern "C" block for C++.
2558
2559 2009-01-16  Bruno Haible  <bruno@clisp.org>
2560
2561         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2562         array initializer syntax that also works in C++ mode.
2563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2564
2565 2009-01-16  Jim Meyering  <meyering@redhat.com>
2566
2567         poll: suppress a warning
2568         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2569         to ignore "...unsigned expression < 0 is always false" warnings.
2570
2571 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
2572
2573         poll: remove declarations of unused variables
2574         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2575         sockbuf and optlen.
2576
2577 2009-01-15  Bruno Haible  <bruno@clisp.org>
2578
2579         Make fflush-after-ungetc POSIX compliant on BSD systems.
2580         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2581         (clear_ungetc_buffer): Implement also for other systems.
2582         (rpl_fflush): On glibc systems, invoke
2583         clear_ungetc_buffer_preserving_position. Otherwise, invoke
2584         clear_ungetc_buffer after fetching the stream's position, not before.
2585
2586 2009-01-15  Bruno Haible  <bruno@clisp.org>
2587
2588         Make fflush-after-ungetc POSIX compliant on glibc systems.
2589         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2590         after ungetc.
2591         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2592         (rpl_fflush): On glibc systems, simply call the system's fflush
2593         function after clearing the ungetc buffer.
2594         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2595         Instead, lseek only to the end of file, then use the system's fseeko
2596         for the rest. On glibc systems, reset the EOF indicator bit.
2597
2598 2009-01-15  Jim Meyering  <meyering@redhat.com>
2599
2600         openmp.m4: revert quote-adding change, for portability to older autoconf
2601         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2602         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2603         Simon Josefsson noticed the problem when using autoconf-2.61.
2604
2605 2009-01-15  Bruno Haible  <bruno@clisp.org>
2606
2607         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2608         * tests/test-fflush2.c (ASSERT): Always fail.
2609         (main): Add two tests for fflush() after ungetc(), taking into account
2610         the Austin Group's clarification.
2611         Suggested by Eric Blake.
2612
2613 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
2614
2615         mktime.m4: remove K&R-style function prototypes
2616         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
2617         for the Sun C++ compiler.
2618
2619 2009-01-14  Bruno Haible  <bruno@clisp.org>
2620
2621         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
2622         while including <wchar.h>.
2623         * lib/wchar.in.h: In two particular situations on HP-UX, include only
2624         the system's <wchar.h> file.
2625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2626
2627 2009-01-14  Bruno Haible  <bruno@clisp.org>
2628
2629         * m4/csharp.m4: Don't mention gettext on the serial number line.
2630         * m4/csharpexec.m4: Likewise.
2631         * m4/eaccess.m4: Likewise.
2632         * m4/javaexec.m4: Likewise.
2633         * m4/sig_atomic_t.m4: Likewise.
2634         * m4/tmpdir.m4: Likewise.
2635         * m4/intldir.m4: Bump gettext version.
2636         * m4/lib-ld.m4: Likewise.
2637
2638 2009-01-14  Bruno Haible  <bruno@clisp.org>
2639
2640         * lib/progname.c (set_program_name): Add more comments.
2641         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2642
2643 2009-01-14  Simon Josefsson  <simon@josefsson.org>
2644
2645         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
2646         were sys/stat.h does not define it.
2647
2648 2009-01-14  Jim Meyering  <meyering@redhat.com>
2649
2650         many *.m4 files: improve m4 quoting
2651         99% of this change was performed by running the following commands:
2652         git ls-files | grep '\.m4$' | xargs perl -pi \
2653           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
2654           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2655           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2656           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
2657         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
2658         The remainder were to add Copyright dates, increment serial numbers,
2659         undo some changes in comments, exclude m4/intl.m4, and add quotes
2660         around the "1" in ",1" where the unusual spacing prohibited the
2661         above regexps from doing the job.  For more details, see
2662         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
2663         * m4/acl.m4: Modified.
2664         * m4/afs.m4: Likewise.
2665         * m4/alloca.m4: Likewise.
2666         * m4/argp.m4: Likewise.
2667         * m4/argz.m4: Likewise.
2668         * m4/atexit.m4: Likewise.
2669         * m4/bison-i18n.m4: Likewise.
2670         * m4/bison.m4: Likewise.
2671         * m4/byteswap.m4: Likewise.
2672         * m4/c-stack.m4: Likewise.
2673         * m4/c-strtod.m4: Likewise.
2674         * m4/calloc.m4: Likewise.
2675         * m4/canonicalize-lgpl.m4: Likewise.
2676         * m4/chown.m4: Likewise.
2677         * m4/clock_time.m4: Likewise.
2678         * m4/codeset.m4: Likewise.
2679         * m4/copy-file.m4: Likewise.
2680         * m4/csharp.m4: Likewise.
2681         * m4/csharpcomp.m4: Likewise.
2682         * m4/csharpexec.m4: Likewise.
2683         * m4/d-ino.m4: Likewise.
2684         * m4/d-type.m4: Likewise.
2685         * m4/dirfd.m4: Likewise.
2686         * m4/double-slash-root.m4: Likewise.
2687         * m4/eaccess.m4: Likewise.
2688         * m4/eealloc.m4: Likewise.
2689         * m4/environ.m4: Likewise.
2690         * m4/errno_h.m4: Likewise.
2691         * m4/euidaccess.m4: Likewise.
2692         * m4/execute.m4: Likewise.
2693         * m4/fatal-signal.m4: Likewise.
2694         * m4/fchdir.m4: Likewise.
2695         * m4/fcntl_h.m4: Likewise.
2696         * m4/fileblocks.m4: Likewise.
2697         * m4/filenamecat.m4: Likewise.
2698         * m4/findprog.m4: Likewise.
2699         * m4/flexmember.m4: Likewise.
2700         * m4/fnmatch.m4: Likewise.
2701         * m4/fopen.m4: Likewise.
2702         * m4/fpending.m4: Likewise.
2703         * m4/fprintf-posix.m4: Likewise.
2704         * m4/free.m4: Likewise.
2705         * m4/frexp.m4: Likewise.
2706         * m4/frexpl.m4: Likewise.
2707         * m4/fsusage.m4: Likewise.
2708         * m4/ftruncate.m4: Likewise.
2709         * m4/gc-camellia.m4: Likewise.
2710         * m4/gc-random.m4: Likewise.
2711         * m4/gc.m4: Likewise.
2712         * m4/getaddrinfo.m4: Likewise.
2713         * m4/getcwd-abort-bug.m4: Likewise.
2714         * m4/getcwd-path-max.m4: Likewise.
2715         * m4/getdate.m4: Likewise.
2716         * m4/getdomainname.m4: Likewise.
2717         * m4/getgroups.m4: Likewise.
2718         * m4/gethostname.m4: Likewise.
2719         * m4/gethrxtime.m4: Likewise.
2720         * m4/getline.m4: Likewise.
2721         * m4/getloadavg.m4: Likewise.
2722         * m4/getndelim2.m4: Likewise.
2723         * m4/getpass.m4: Likewise.
2724         * m4/gettext.m4: Likewise.
2725         * m4/gettime.m4: Likewise.
2726         * m4/gettimeofday.m4: Likewise.
2727         * m4/gnulib-common.m4: Likewise.
2728         * m4/group-member.m4: Likewise.
2729         * m4/host-os.m4: Likewise.
2730         * m4/iconv.m4: Likewise.
2731         * m4/iconv_open.m4: Likewise.
2732         * m4/inet_ntop.m4: Likewise.
2733         * m4/inet_pton.m4: Likewise.
2734         * m4/inline.m4: Likewise.
2735         * m4/intldir.m4: Likewise.
2736         * m4/intlmacosx.m4: Likewise.
2737         * m4/intmax.m4: Likewise.
2738         * m4/intmax_t.m4: Likewise.
2739         * m4/inttypes.m4: Likewise.
2740         * m4/inttypes_h.m4: Likewise.
2741         * m4/inttypes-pri.m4: Likewise.
2742         * m4/isapipe.m4: Likewise.
2743         * m4/isnand.m4: Likewise.
2744         * m4/isnanf.m4: Likewise.
2745         * m4/isnanl.m4: Likewise.
2746         * m4/javacomp.m4: Likewise.
2747         * m4/javaexec.m4: Likewise.
2748         * m4/jm-winsz1.m4: Likewise.
2749         * m4/jm-winsz2.m4: Likewise.
2750         * m4/lchown.m4: Likewise.
2751         * m4/lcmessage.m4: Likewise.
2752         * m4/ldexpl.m4: Likewise.
2753         * m4/lib-ld.m4: Likewise.
2754         * m4/lib-link.m4: Likewise.
2755         * m4/libsigsegv.m4: Likewise.
2756         * m4/link-follow.m4: Likewise.
2757         * m4/localcharset.m4: Likewise.
2758         * m4/locale-fr.m4: Likewise.
2759         * m4/locale-ja.m4: Likewise.
2760         * m4/locale-tr.m4: Likewise.
2761         * m4/locale-zh.m4: Likewise.
2762         * m4/lock.m4: Likewise.
2763         * m4/longlong.m4: Likewise.
2764         * m4/ls-mntd-fs.m4: Likewise.
2765         * m4/lstat.m4: Likewise.
2766         * m4/malloc.m4: Likewise.
2767         * m4/mathl.m4: Likewise.
2768         * m4/mbrtowc.m4: Likewise.
2769         * m4/mbstate_t.m4: Likewise.
2770         * m4/mbswidth.m4: Likewise.
2771         * m4/memchr.m4: Likewise.
2772         * m4/memcmp.m4: Likewise.
2773         * m4/memcpy.m4: Likewise.
2774         * m4/memmem.m4: Likewise.
2775         * m4/memmove.m4: Likewise.
2776         * m4/mempcpy.m4: Likewise.
2777         * m4/memrchr.m4: Likewise.
2778         * m4/memset.m4: Likewise.
2779         * m4/minmax.m4: Likewise.
2780         * m4/mkdir-slash.m4: Likewise.
2781         * m4/mkdtemp.m4: Likewise.
2782         * m4/mktime.m4: Likewise.
2783         * m4/mmap-anon.m4: Likewise.
2784         * m4/mountlist.m4: Likewise.
2785         * m4/nanosleep.m4: Likewise.
2786         * m4/nls.m4: Likewise.
2787         * m4/nocrash.m4: Likewise.
2788         * m4/open.m4: Likewise.
2789         * m4/openat.m4: Likewise.
2790         * m4/openmp.m4: Likewise.
2791         * m4/pathmax.m4: Likewise.
2792         * m4/perl.m4: Likewise.
2793         * m4/physmem.m4: Likewise.
2794         * m4/pipe.m4: Likewise.
2795         * m4/po.m4: Likewise.
2796         * m4/poll.m4: Likewise.
2797         * m4/posixtm.m4: Likewise.
2798         * m4/posixver.m4: Likewise.
2799         * m4/printf-frexp.m4: Likewise.
2800         * m4/printf-frexpl.m4: Likewise.
2801         * m4/printf-posix.m4: Likewise.
2802         * m4/printf-posix-rpl.m4: Likewise.
2803         * m4/printf.m4: Likewise.
2804         * m4/progtest.m4: Likewise.
2805         * m4/putenv.m4: Likewise.
2806         * m4/readline.m4: Likewise.
2807         * m4/readlink.m4: Likewise.
2808         * m4/readutmp.m4: Likewise.
2809         * m4/realloc.m4: Likewise.
2810         * m4/regex.m4: Likewise.
2811         * m4/relocatable.m4: Likewise.
2812         * m4/relocatable-lib.m4: Likewise.
2813         * m4/rename-dest-slash.m4: Likewise.
2814         * m4/rename.m4: Likewise.
2815         * m4/rmdir-errno.m4: Likewise.
2816         * m4/rmdir.m4: Likewise.
2817         * m4/roundf.m4: Likewise.
2818         * m4/roundl.m4: Likewise.
2819         * m4/rpmatch.m4: Likewise.
2820         * m4/save-cwd.m4: Likewise.
2821         * m4/selinux-selinux-h.m4: Likewise.
2822         * m4/setenv.m4: Likewise.
2823         * m4/settime.m4: Likewise.
2824         * m4/sig2str.m4: Likewise.
2825         * m4/sig_atomic_t.m4: Likewise.
2826         * m4/signalblocking.m4: Likewise.
2827         * m4/signbit.m4: Likewise.
2828         * m4/sigpipe.m4: Likewise.
2829         * m4/sockets.m4: Likewise.
2830         * m4/sockpfaf.m4: Likewise.
2831         * m4/st_dm_mode.m4: Likewise.
2832         * m4/stat-time.m4: Likewise.
2833         * m4/stdbool.m4: Likewise.
2834         * m4/stdint.m4: Likewise.
2835         * m4/stdint_h.m4: Likewise.
2836         * m4/stpcpy.m4: Likewise.
2837         * m4/stpncpy.m4: Likewise.
2838         * m4/strcase.m4: Likewise.
2839         * m4/strchrnul.m4: Likewise.
2840         * m4/strcspn.m4: Likewise.
2841         * m4/strdup.m4: Likewise.
2842         * m4/strftime.m4: Likewise.
2843         * m4/strndup.m4: Likewise.
2844         * m4/strnlen.m4: Likewise.
2845         * m4/strpbrk.m4: Likewise.
2846         * m4/strptime.m4: Likewise.
2847         * m4/strsep.m4: Likewise.
2848         * m4/strtod.m4: Likewise.
2849         * m4/strtoimax.m4: Likewise.
2850         * m4/strtok_r.m4: Likewise.
2851         * m4/strtol.m4: Likewise.
2852         * m4/strtoll.m4: Likewise.
2853         * m4/strtoul.m4: Likewise.
2854         * m4/strtoull.m4: Likewise.
2855         * m4/strtoumax.m4: Likewise.
2856         * m4/strverscmp.m4: Likewise.
2857         * m4/threadlib.m4: Likewise.
2858         * m4/timegm.m4: Likewise.
2859         * m4/tm_gmtoff.m4: Likewise.
2860         * m4/tmpdir.m4: Likewise.
2861         * m4/tmpfile.m4: Likewise.
2862         * m4/tzset.m4: Likewise.
2863         * m4/uintmax_t.m4: Likewise.
2864         * m4/unlinkdir.m4: Likewise.
2865         * m4/unlocked-io.m4: Likewise.
2866         * m4/uptime.m4: Likewise.
2867         * m4/userspec.m4: Likewise.
2868         * m4/utimbuf.m4: Likewise.
2869         * m4/utime.m4: Likewise.
2870         * m4/utimes-null.m4: Likewise.
2871         * m4/utimes.m4: Likewise.
2872         * m4/vararrays.m4: Likewise.
2873         * m4/vasnprintf.m4: Likewise.
2874         * m4/vfprintf-posix.m4: Likewise.
2875         * m4/vprintf-posix.m4: Likewise.
2876         * m4/wait-process.m4: Likewise.
2877         * m4/wchar_t.m4: Likewise.
2878         * m4/wint_t.m4: Likewise.
2879         * m4/write-any-file.m4: Likewise.
2880         * m4/yield.m4: Likewise.
2881
2882 2009-01-13  Bruno Haible  <bruno@clisp.org>
2883
2884         Avoid test-copy-file.sh failures when ACL support insufficient.
2885         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
2886         TESTS_ENVIRONMENT.
2887         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
2888         Reported by Jim Meyering.
2889
2890 2009-01-13  Bruno Haible  <bruno@clisp.org>
2891
2892         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
2893         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
2894         * modules/unistdio/u8-printf-parse (Files): Likewise.
2895         * modules/unistdio/u32-printf-parse (Files): Likewise.
2896         * modules/unistdio/ulc-printf-parse (Files): Likewise.
2897
2898 2009-01-13  Simon Josefsson  <simon@josefsson.org>
2899
2900         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
2901         and m4/inttypes_h.m4 too.
2902
2903 2009-01-12  Eric Blake  <ebb9@byu.net>
2904
2905         tests: IRIX 6.2 cc can't compile -0.0 into .data
2906         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
2907         rather than at compile-time.
2908         * tests/test-floorl.c (minus_zero): Likewise.
2909         * tests/test-frexpl.c (minus_zero): Likewise.
2910         * tests/test-isnan.c (minus_zerol): Likewise.
2911         * tests/test-isnanl.h (minus_zero): Likewise.
2912         * tests/test-ldexpl.c (minus_zero): Likewise.
2913         * tests/test-roundl.c (minus_zero): Likewise.
2914         * tests/test-signbit.c (minus_zerol): Likewise.
2915         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
2916         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
2917         * tests/test-truncl.c (minus_zero): Likewise.
2918         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
2919         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
2920         Reported by Tom G. Christensen and Nelson H. F. Beebe.
2921
2922 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
2923
2924         regex: fix glibc bug 9697
2925         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2926         handling.
2927
2928 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
2929
2930         regex: fix glibc bug 697
2931         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2932         being NULL also if there are no backreferences.
2933
2934 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
2935
2936         regex: merge glibc changes
2937         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2938         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2939         re_string_skip_chars, re_string_reconstruct): Likewise.
2940         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2941
2942 2009-01-07  Jim Meyering  <meyering@redhat.com>
2943
2944         poll: filter through cppi
2945         * lib/poll.c: Indent cpp directives to reflect nesting.
2946
2947 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
2948
2949         poll: don't return uninitialized
2950         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
2951
2952 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
2953
2954         avoid compile failure on AIX 6.1
2955         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
2956         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
2957
2958 2009-01-04  Jim Meyering  <meyering@redhat.com>
2959
2960         remove duplicate inclusion of <stdio.h>
2961         * tests/test-fprintf-posix.c: Likewise.
2962         * tests/test-printf-posix.c: Likewise.
2963         * tests/test-snprintf-posix.c: Likewise.
2964         * tests/test-sprintf-posix.c: Likewise.
2965         * tests/test-vasprintf-posix.c: Likewise.
2966         * tests/test-vfprintf-posix.c: Likewise.
2967         * tests/test-vprintf-posix.c: Likewise.
2968         * tests/test-vsnprintf-posix.c: Likewise.
2969         * tests/test-vsprintf-posix.c: Likewise.
2970
2971 2009-01-03  Jim Meyering  <meyering@redhat.com>
2972
2973         gnulib-tool: fix sed-based filtering
2974         * gnulib-tool (func_filter_filelist): Remove extra backslash
2975         in sed_fff_filter definition.
2976
2977 2009-01-02  Jim Meyering  <meyering@redhat.com>
2978
2979         strftime: avoid compilation failure on Solaris 2.6
2980         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
2981         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
2982         Don't #define mbrlen or mbsinit, since now they're guaranteed to
2983         be available.  Reported by Tom G. Christensen.  Details in
2984         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
2985
2986 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2987             Bruno Haible  <bruno@clisp.org>
2988
2989         Speed up gnulib-tool by doing more string processing through shell
2990         built-ins.
2991         * gnulib-tool (fast_func_append): New variable.
2992         (func_remove_prefix, func_remove_suffix): New functions.
2993         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
2994         (func_filter_filelist): New function.
2995         (func_get_dependencies): Use func_remove_suffix instead of sed.
2996         (func_get_automake_snippet): Use func_filter_filelist instead of a
2997         subshell and sed invocation.
2998
2999 2009-01-01  Bruno Haible  <bruno@clisp.org>
3000
3001         Fix a security bug.
3002         * gnulib-tool (func_import, import, update): Don't allow the characters
3003         '"', '$', '`', '\' in macro arguments that become part of commands that
3004         are evaluated.
3005
3006 2009-01-01  Bruno Haible  <bruno@clisp.org>
3007
3008         * gnulib-tool (func_reset_sigpipe): Add more comments.
3009
3010 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3011
3012         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3013         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3014         already know the answer.
3015
3016 2009-01-01  Jim Meyering  <meyering@redhat.com>
3017
3018         * lib/version-etc.c (version_etc_va): Update copyright year.
3019
3020 2008-12-30  Bruno Haible  <bruno@clisp.org>
3021
3022         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3023         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3024         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3025
3026 2008-12-29  Eric Blake  <ebb9@byu.net>
3027
3028         multiarch: avoid autoconf AC_REQUIRE bug
3029         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3030         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3031         2.63 and older.
3032         Reported by Bruno Haible, and analyzed in
3033         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3034
3035 2008-12-29  Bruno Haible  <bruno@clisp.org>
3036
3037         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3038         files in subdirectories correctly.
3039         Reported by Ralf Wildenhues.
3040
3041 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3042
3043         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3044         rather than 'join FILE -', for Solaris join.
3045
3046 2008-12-29  Bruno Haible  <bruno@clisp.org>
3047
3048         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3049         quoting.
3050         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3051         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3052         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3053         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3054         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3055         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3056         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3057         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3058         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3059         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3060         * m4/nls.m4 (AM_NLS): Likewise.
3061         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3062         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3063         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3064         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3065         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3066         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3067         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3068         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3069         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3070         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3071         * m4/xsize.m4 (gl_XSIZE): Likewise.
3072         Suggested by Jim Meyering.
3073
3074 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3075
3076         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3077         * lib/parse-duration.c: use a switch instead of cascading if's.
3078
3079 2008-12-29  Eric Blake  <ebb9@byu.net>
3080
3081         wchar.h: supply WEOF on Irix 5.3
3082         * lib/wchar.in.h (wint_t): Also supply WEOF.
3083         * lib/wctype.in.h (wint_t): Likewise.
3084         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3085         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3086         Reported by Tom G. Christensen.
3087
3088 2008-12-26  Bruno Haible  <bruno@clisp.org>
3089
3090         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3091         i486, i586, i686.
3092
3093 2008-12-26  Bruno Haible  <bruno@clisp.org>
3094
3095         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3096
3097 2008-12-26  Bruno Haible  <bruno@clisp.org>
3098
3099         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3100         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3101         not __STDC_CONSTANT_MACROS.
3102         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3103
3104 2008-12-25  Bruno Haible  <bruno@clisp.org>
3105
3106         Add support for universal builds to vasnprintf.
3107         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3108         universal builds, guess no.
3109         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3110         * modules/vasprintf-posix (Depends-on): Likewise.
3111         * modules/fprintf-posix (Depends-on): Likewise.
3112         * modules/vfprintf-posix (Depends-on): Likewise.
3113         * modules/snprintf-posix (Depends-on): Likewise.
3114         * modules/vsnprintf-posix (Depends-on): Likewise.
3115         * modules/sprintf-posix (Depends-on): Likewise.
3116         * modules/vsprintf-posix (Depends-on): Likewise.
3117         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3118         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3119         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3120         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3121         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3122         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3123         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3124
3125         Add support for universal builds to <inttypes.h>.
3126         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3127         _SCNu64_PREFIX): In Apple
3128         universal builds, define directly, using _LP64.
3129         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3130         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3131         * modules/inttypes (Depends-on): Add multiarch.
3132         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3133
3134         Add support for universal builds to <stdint.h>.
3135         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3136         universal builds, define directly, using _LP64.
3137         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3138         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3139         and size_t.
3140         * modules/stdint (Depends-on): Add multiarch.
3141         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3142
3143         New module 'multiarch'.
3144         * modules/multiarch: New file.
3145         * m4/multiarch.m4: New file.
3146
3147 2008-12-25  Bruno Haible  <bruno@clisp.org>
3148
3149         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3150
3151 2008-12-25  Bruno Haible  <bruno@clisp.org>
3152
3153         * modules/btowc (License): Relicense under LGPLv2+.
3154         * modules/mbsinit (License): Likewise.
3155         * modules/mbrtowc (License): Likewise.
3156         * modules/wcrtomb (License): Likewise.
3157         * modules/streq (License): Likewise.
3158         Reported by David Lutterkort <lutter@redhat.com>.
3159
3160 2008-12-23  Bruno Haible  <bruno@clisp.org>
3161
3162         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3163
3164 2008-12-23  Bruno Haible  <bruno@clisp.org>
3165
3166         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3168         GETADDRINFO_LIB, not in LIBS.
3169         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3170         * modules/canon-host (Link): Likewise.
3171         * NEWS: Mention the change.
3172         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3173         GETADDRINFO_LIB.
3174
3175 2008-12-22  Bruno Haible  <bruno@clisp.org>
3176
3177         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3178         * doc/posix-functions/iswalpha_l.texi: Likewise.
3179         * doc/posix-functions/iswblank_l.texi: Likewise.
3180         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3181         * doc/posix-functions/iswctype_l.texi: Likewise.
3182         * doc/posix-functions/iswdigit_l.texi: Likewise.
3183         * doc/posix-functions/iswgraph_l.texi: Likewise.
3184         * doc/posix-functions/iswlower_l.texi: Likewise.
3185         * doc/posix-functions/iswprint_l.texi: Likewise.
3186         * doc/posix-functions/iswpunct_l.texi: Likewise.
3187         * doc/posix-functions/iswspace_l.texi: Likewise.
3188         * doc/posix-functions/iswupper_l.texi: Likewise.
3189         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3190         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3191         * doc/posix-functions/open_wmemstream.texi: Likewise.
3192         * doc/posix-functions/swscanf.texi: Likewise.
3193         * doc/posix-functions/towctrans_l.texi: Likewise.
3194         * doc/posix-functions/towlower.texi: Likewise.
3195         * doc/posix-functions/towlower_l.texi: Likewise.
3196         * doc/posix-functions/towupper.texi: Likewise.
3197         * doc/posix-functions/towupper_l.texi: Likewise.
3198         * doc/posix-functions/vfwprintf.texi: Likewise.
3199         * doc/posix-functions/vfwscanf.texi: Likewise.
3200         * doc/posix-functions/vswscanf.texi: Likewise.
3201         * doc/posix-functions/vwprintf.texi: Likewise.
3202         * doc/posix-functions/vwscanf.texi: Likewise.
3203         * doc/posix-functions/wcpcpy.texi: Likewise.
3204         * doc/posix-functions/wcpncpy.texi: Likewise.
3205         * doc/posix-functions/wcscasecmp.texi: Likewise.
3206         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3207         * doc/posix-functions/wcscoll_l.texi: Likewise.
3208         * doc/posix-functions/wcsdup.texi: Likewise.
3209         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3210         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3211         * doc/posix-functions/wcsnlen.texi: Likewise.
3212         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3213         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3214         * doc/posix-functions/wctrans_l.texi: Likewise.
3215         * doc/posix-functions/wctype_l.texi: Likewise.
3216         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3217         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3218         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3219         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3220         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3221         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3222         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3223         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3224         * doc/glibc-functions/wcschrnul.texi: Likewise.
3225         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3226         * doc/glibc-functions/wcstod_l.texi: Likewise.
3227         * doc/glibc-functions/wcstof_l.texi: Likewise.
3228         * doc/glibc-functions/wcstol_l.texi: Likewise.
3229         * doc/glibc-functions/wcstold_l.texi: Likewise.
3230         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3231         * doc/glibc-functions/wcstoq.texi: Likewise.
3232         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3233         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3234         * doc/glibc-functions/wcstouq.texi: Likewise.
3235         * doc/glibc-functions/wmempcpy.texi: Likewise.
3236
3237 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3238             Eric Blake  <ebb9@byu.net>
3239             Paolo Bonzini  <bonzini@gnu.org>
3240             Bruno Haible  <bruno@clisp.org>
3241
3242         Make c-stack work on Haiku.
3243         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3244         (c_stack_action): Use SA_ONSTACK flag.
3245
3246 2008-12-22  Bruno Haible  <bruno@clisp.org>
3247
3248         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3249
3250 2008-12-22  Bruno Haible  <bruno@clisp.org>
3251
3252         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3253         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3254         being overridden.
3255         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3256         New macros.
3257         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3259         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3260         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3261
3262 2008-12-22  Bruno Haible  <bruno@clisp.org>
3263
3264         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3265         from test code.
3266
3267 2008-12-22  Eric Blake  <ebb9@byu.net>
3268
3269         Avoid gcc warnings on cygwin.
3270         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3271         Avoid unused variable.
3272         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3273         Likewise.
3274
3275 2008-12-22  Bruno Haible  <bruno@clisp.org>
3276
3277         Remove HAVE_MBRTOWC conditionals.
3278         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3279         (mbscasecmp): Assume mbrtowc function.
3280         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3281         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3282         * lib/mbschr.c: Include mbuiter.h unconditionally.
3283         (mbschr): Assume mbrtowc function.
3284         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3285         (mbscspn): Assume mbrtowc function.
3286         * lib/mbslen.c: Include mbuiter.h unconditionally.
3287         (mbslen): Assume mbrtowc function.
3288         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3289         (mbsncasecmp): Assume mbrtowc function.
3290         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3291         (mbsnlen): Assume mbrtowc function.
3292         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3293         (mbspbrk): Assume mbrtowc function.
3294         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3295         (mbspcasecmp): Assume mbrtowc function.
3296         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3297         (mbsrchr): Assume mbrtowc function.
3298         * lib/mbssep.c: Include mbuiter.h unconditionally.
3299         (mbssep): Assume mbrtowc function.
3300         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3301         (mbsspn): Assume mbrtowc function.
3302         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3303         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3304         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3305         (mbstok_r): Assume mbrtowc function.
3306         * lib/propername.c: Include mbuiter.h unconditionally.
3307         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3308         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3309         (trim2): Assume mbrtowc function.
3310         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3311         (mbsnwidth): Assume mbrtowc function.
3312         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3313         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3314         fallback definitions.
3315         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3316
3317 2008-12-22  Bruno Haible  <bruno@clisp.org>
3318
3319         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3320
3321 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3322
3323         * modules/regex: Request emulations for the mb*/wc* functions we need.
3324         * m4/regex.m4: Don't look for those functions here.
3325         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3326
3327 2008-12-22  Bruno Haible  <bruno@clisp.org>
3328
3329         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3330
3331 2008-12-21  Bruno Haible  <bruno@clisp.org>
3332
3333         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3334         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3335         (Include): Remove conditionalization.
3336         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3337         (Include): Remove conditionalization.
3338         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3339         (Include): Remove conditionalization.
3340         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3341         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3342         * NEWS: Mention the change.
3343         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3344         via Sergey Poznyakoff <gray@gnu.org.ua>.
3345
3346 2008-12-21  Bruno Haible  <bruno@clisp.org>
3347
3348         * MODULES.html.sh (Extended multibyte and wide character utilities
3349         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3350         wcrtomb, wcsrtombs.
3351         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3352         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3353         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3354         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3355
3356 2008-12-21  Bruno Haible  <bruno@clisp.org>
3357
3358         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3359
3360 2008-12-21  Bruno Haible  <bruno@clisp.org>
3361
3362         * modules/wcsnrtombs-tests: New file.
3363         * tests/test-wcsnrtombs1.sh: New file.
3364         * tests/test-wcsnrtombs2.sh: New file.
3365         * tests/test-wcsnrtombs3.sh: New file.
3366         * tests/test-wcsnrtombs4.sh: New file.
3367         * tests/test-wcsnrtombs.c: New file.
3368
3369         New module 'wcsnrtombs'.
3370         * lib/wchar.in.h (wcsnrtombs): New declaration.
3371         * lib/wcsnrtombs.c: New file.
3372         * lib/wcsrtombs-state.c: New file.
3373         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3374         (internal_state): Remove variable.
3375         * m4/wcsnrtombs.m4: New file.
3376         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3377         compilation units.
3378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3379         HAVE_WCSNRTOMBS.
3380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3381         HAVE_WCSNRTOMBS.
3382         * modules/wcsnrtombs: New file.
3383         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3384         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3385
3386 2008-12-21  Bruno Haible  <bruno@clisp.org>
3387
3388         * modules/wcsrtombs-tests: New file.
3389         * tests/test-wcsrtombs1.sh: New file.
3390         * tests/test-wcsrtombs2.sh: New file.
3391         * tests/test-wcsrtombs3.sh: New file.
3392         * tests/test-wcsrtombs4.sh: New file.
3393         * tests/test-wcsrtombs.c: New file.
3394
3395         New module 'wcsrtombs'.
3396         * lib/wchar.in.h (wcsrtombs): New declaration.
3397         * lib/wcsrtombs.c: New file.
3398         * m4/wcsrtombs.m4: New file.
3399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3400         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3402         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3403         * modules/wcsrtombs: New file.
3404         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3405         bugs.
3406
3407 2008-12-21  Bruno Haible  <bruno@clisp.org>
3408
3409         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3410         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3412         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3413         if not correct.
3414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3415         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3416         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3417         m4/locale-zh.m4, m4/codeset.m4.
3418         * doc/posix-functions/wcrtomb.texi: Document the bug.
3419
3420 2008-12-21  Bruno Haible  <bruno@clisp.org>
3421
3422         Work around a btowc() bug on IRIX 6.5.
3423         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3424         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3425         REPLACE_WTOBC if not.
3426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3427         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3428         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3429
3430 2008-12-21  Bruno Haible  <bruno@clisp.org>
3431
3432         * modules/wcrtomb-tests: New file.
3433         * tests/test-wcrtomb.sh: New file.
3434         * tests/test-wcrtomb.c: New file.
3435
3436         New module 'wcrtomb'.
3437         * lib/wchar.in.h (wcrtomb): New declaration.
3438         * lib/wcrtomb.c: New file.
3439         * m4/wcrtomb.m4: New file.
3440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3441         HAVE_WCRTOMB.
3442         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3443         HAVE_WCRTOMB.
3444         * modules/wcrtomb: New file.
3445         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3446
3447 2008-12-21  Bruno Haible  <bruno@clisp.org>
3448
3449         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3450         * modules/mbsrtowcs (Files): Likewise.
3451         * modules/wctob (Files): Likewise.
3452         * modules/c-strcase-tests (Files): Likewise.
3453         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3454         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3455         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3456         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3457         * modules/vasnprintf-posix-tests (Files): Likewise.
3458
3459 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3460
3461         gitlog-to-changelog: pass all command-line arguments to git-log
3462         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3463         it is sometimes convenient to filter the commits in various ways.
3464         gitlog-to-changelog only allows --since to specify a start date,
3465         but git-log itself supports many other filtering mechanisms.
3466         At the moment, I want to filter by branch name.  Rather than
3467         adding a --branch option to gitlog-to-changelog, it seems more
3468         flexible to simply pass all options directly to git-log and let
3469         git do the work.  Notice that this effectively makes --since a
3470         redundant option for gitlog-to-changelog, but removing it would
3471         require current usage to change since calls would then require
3472         an additional '--'.
3473
3474 2008-12-21  Bruno Haible  <bruno@clisp.org>
3475
3476         * modules/mbsnrtowcs-tests: New file.
3477         * tests/test-mbsnrtowcs1.sh: New file.
3478         * tests/test-mbsnrtowcs2.sh: New file.
3479         * tests/test-mbsnrtowcs3.sh: New file.
3480         * tests/test-mbsnrtowcs4.sh: New file.
3481         * tests/test-mbsnrtowcs.c: New file.
3482
3483         New module 'mbsnrtowcs'.
3484         * lib/wchar.in.h (mbsnrtowcs): New declaration.
3485         * lib/mbsnrtowcs.c: New file.
3486         * lib/mbsrtowcs-state.c: New file.
3487         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3488         (internal_state): Remove variable.
3489         * m4/mbsnrtowcs.m4: New file.
3490         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3491         compilation units.
3492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3493         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3494         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3495         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3496         * modules/mbsnrtowcs: New file.
3497         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3498         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3499         portability problem.
3500
3501 2008-12-21  Bruno Haible  <bruno@clisp.org>
3502
3503         Work around mbsrtowcs bug.
3504         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3505         (gl_FUNC_MBSRTOWCS): Invoke it.
3506         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3507         m4/locale-zh.m4.
3508         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3509
3510 2008-12-21  Bruno Haible  <bruno@clisp.org>
3511
3512         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3513
3514 2008-12-21  Bruno Haible  <bruno@clisp.org>
3515
3516         Update doc for AIX.
3517         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3518         16-bit wchar_t type.
3519         * doc/posix-functions/btowc.texi: Likewise.
3520         * doc/posix-functions/fgetwc.texi: Likewise.
3521         * doc/posix-functions/fgetws.texi: Likewise.
3522         * doc/posix-functions/fputwc.texi: Likewise.
3523         * doc/posix-functions/fputws.texi: Likewise.
3524         * doc/posix-functions/fwide.texi: Likewise.
3525         * doc/posix-functions/fwprintf.texi: Likewise.
3526         * doc/posix-functions/fwscanf.texi: Likewise.
3527         * doc/posix-functions/getwchar.texi: Likewise.
3528         * doc/posix-functions/getwc.texi: Likewise.
3529         * doc/posix-functions/iswalnum.texi: Likewise.
3530         * doc/posix-functions/iswalpha.texi: Likewise.
3531         * doc/posix-functions/iswblank.texi: Likewise.
3532         * doc/posix-functions/iswcntrl.texi: Likewise.
3533         * doc/posix-functions/iswctype.texi: Likewise.
3534         * doc/posix-functions/iswdigit.texi: Likewise.
3535         * doc/posix-functions/iswgraph.texi: Likewise.
3536         * doc/posix-functions/iswlower.texi: Likewise.
3537         * doc/posix-functions/iswprint.texi: Likewise.
3538         * doc/posix-functions/iswpunct.texi: Likewise.
3539         * doc/posix-functions/iswspace.texi: Likewise.
3540         * doc/posix-functions/iswupper.texi: Likewise.
3541         * doc/posix-functions/iswxdigit.texi: Likewise.
3542         * doc/posix-functions/mbrtowc.texi: Likewise.
3543         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3544         * doc/posix-functions/mbstowcs.texi: Likewise.
3545         * doc/posix-functions/mbtowc.texi: Likewise.
3546         * doc/posix-functions/putwchar.texi: Likewise.
3547         * doc/posix-functions/putwc.texi: Likewise.
3548         * doc/posix-functions/swprintf.texi: Likewise.
3549         * doc/posix-functions/tolower.texi: Likewise.
3550         * doc/posix-functions/toupper.texi: Likewise.
3551         * doc/posix-functions/towctrans.texi: Likewise.
3552         * doc/posix-functions/ungetwc.texi: Likewise.
3553         * doc/posix-functions/vswprintf.texi: Likewise.
3554         * doc/posix-functions/wcrtomb.texi: Likewise.
3555         * doc/posix-functions/wcscat.texi: Likewise.
3556         * doc/posix-functions/wcschr.texi: Likewise.
3557         * doc/posix-functions/wcscmp.texi: Likewise.
3558         * doc/posix-functions/wcscoll.texi: Likewise.
3559         * doc/posix-functions/wcscpy.texi: Likewise.
3560         * doc/posix-functions/wcscspn.texi: Likewise.
3561         * doc/posix-functions/wcsftime.texi: Likewise.
3562         * doc/posix-functions/wcslen.texi: Likewise.
3563         * doc/posix-functions/wcsncat.texi: Likewise.
3564         * doc/posix-functions/wcsncmp.texi: Likewise.
3565         * doc/posix-functions/wcsncpy.texi: Likewise.
3566         * doc/posix-functions/wcspbrk.texi: Likewise.
3567         * doc/posix-functions/wcsrchr.texi: Likewise.
3568         * doc/posix-functions/wcsrtombs.texi: Likewise.
3569         * doc/posix-functions/wcsspn.texi: Likewise.
3570         * doc/posix-functions/wcsstr.texi: Likewise.
3571         * doc/posix-functions/wcstod.texi: Likewise.
3572         * doc/posix-functions/wcstof.texi: Likewise.
3573         * doc/posix-functions/wcstoimax.texi: Likewise.
3574         * doc/posix-functions/wcstok.texi: Likewise.
3575         * doc/posix-functions/wcstold.texi: Likewise.
3576         * doc/posix-functions/wcstoll.texi: Likewise.
3577         * doc/posix-functions/wcstol.texi: Likewise.
3578         * doc/posix-functions/wcstombs.texi: Likewise.
3579         * doc/posix-functions/wcstoull.texi: Likewise.
3580         * doc/posix-functions/wcstoul.texi: Likewise.
3581         * doc/posix-functions/wcstoumax.texi: Likewise.
3582         * doc/posix-functions/wcswidth.texi: Likewise.
3583         * doc/posix-functions/wcsxfrm.texi: Likewise.
3584         * doc/posix-functions/wctob.texi: Likewise.
3585         * doc/posix-functions/wctomb.texi: Likewise.
3586         * doc/posix-functions/wctrans.texi: Likewise.
3587         * doc/posix-functions/wctype.texi: Likewise.
3588         * doc/posix-functions/wcwidth.texi: Likewise.
3589         * doc/posix-functions/wmemchr.texi: Likewise.
3590         * doc/posix-functions/wmemcmp.texi: Likewise.
3591         * doc/posix-functions/wmemcpy.texi: Likewise.
3592         * doc/posix-functions/wmemmove.texi: Likewise.
3593         * doc/posix-functions/wmemset.texi: Likewise.
3594         * doc/posix-functions/wprintf.texi: Likewise.
3595         * doc/posix-functions/wscanf.texi: Likewise.
3596
3597 2008-12-21  Bruno Haible  <bruno@clisp.org>
3598
3599         Update doc for HP-UX 11.11.
3600         * doc/posix-functions/btowc.texi: Clarify that the function is missing
3601         in HP-UX version 11.00, not in all versions of HP-UX 11.
3602         * doc/posix-functions/fwide.texi: Likewise.
3603         * doc/posix-functions/fwprintf.texi: Likewise.
3604         * doc/posix-functions/fwscanf.texi: Likewise.
3605         * doc/posix-functions/inet_ntop.texi: Likewise.
3606         * doc/posix-functions/inet_pton.texi: Likewise.
3607         * doc/posix-functions/mbrlen.texi: Likewise.
3608         * doc/posix-functions/mbrtowc.texi: Likewise.
3609         * doc/posix-functions/mbsinit.texi: Likewise.
3610         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3611         * doc/posix-functions/swprintf.texi: Likewise.
3612         * doc/posix-functions/swscanf.texi: Likewise.
3613         * doc/posix-functions/towctrans.texi: Likewise.
3614         * doc/posix-functions/vfwprintf.texi: Likewise.
3615         * doc/posix-functions/vswprintf.texi: Likewise.
3616         * doc/posix-functions/vwprintf.texi: Likewise.
3617         * doc/posix-functions/wcrtomb.texi: Likewise.
3618         * doc/posix-functions/wcsrtombs.texi: Likewise.
3619         * doc/posix-functions/wcsstr.texi: Likewise.
3620         * doc/posix-functions/wctob.texi: Likewise.
3621         * doc/posix-functions/wctrans.texi: Likewise.
3622         * doc/posix-functions/wmemchr.texi: Likewise.
3623         * doc/posix-functions/wmemcmp.texi: Likewise.
3624         * doc/posix-functions/wmemcpy.texi: Likewise.
3625         * doc/posix-functions/wmemmove.texi: Likewise.
3626         * doc/posix-functions/wmemset.texi: Likewise.
3627         * doc/posix-functions/wprintf.texi: Likewise.
3628         * doc/posix-functions/wscanf.texi: Likewise.
3629
3630 2008-12-21  Bruno Haible  <bruno@clisp.org>
3631
3632         Work around a portability problem.
3633         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
3634         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
3635
3636 2008-12-20  Bruno Haible  <bruno@clisp.org>
3637
3638         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
3639         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
3640         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
3641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
3642         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
3643
3644         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
3645         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
3646         set.
3647         (GNULIB_defined_mbstate_t): New macro.
3648         (mbsinit): Redefine if REPLACE_MBSINIT is set.
3649         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
3650         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
3651         reuses the system's mbrtowc function but works around the bugs.
3652         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
3653         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
3654         macros.
3655         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
3656         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
3657         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
3658         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
3659         REPLACE_MBSINIT if mbsinit needs to be overridden.
3660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
3661         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3662         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
3663         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3664         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3665         m4/locale-zh.m4.
3666         (Depends): Add mbsinit.
3667         * modules/mbsinit (Depends): Add mbrtowc.
3668         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
3669
3670 2008-12-20  Bruno Haible  <bruno@clisp.org>
3671
3672         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
3673         so that there are no conversion errors on AIX.
3674         * tests/test-mbsrtowcs.c (main): LIkewise.
3675
3676 2008-12-20  Bruno Haible  <bruno@clisp.org>
3677
3678         Work around wctob bug on Solaris <= 9.
3679         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
3680         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
3681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
3682         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
3683         * modules/wctob (Files): Add m4/locale-fr.m4.
3684         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
3685
3686 2008-12-20  Bruno Haible  <bruno@clisp.org>
3687
3688         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
3689         /dev/null.
3690         * tests/test-select-in.sh: Likewise.
3691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3692
3693 2008-12-20  Bruno Haible  <bruno@clisp.org>
3694
3695         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
3696         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
3697         Cygwin 1.5.x.
3698
3699 2008-12-20  Bruno Haible  <bruno@clisp.org>
3700
3701         Ensure mbstate_t is defined on HP-UX 11.11.
3702         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
3703         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
3704         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
3705         AC_USE_SYSTEM_EXTENSIONS.
3706         * modules/fnmatch (Depends-on): Add extensions.
3707         * modules/mbrlen (Depends-on): Likewise.
3708         * modules/mbrtowc (Depends-on): Likewise.
3709         * modules/mbsinit (Depends-on): Likewise.
3710         * modules/mbsrtowcs (Depends-on): Likewise.
3711         * modules/mbswidth (Depends-on): Likewise.
3712         * modules/quotearg (Depends-on): Likewise.
3713         * modules/strftime (Depends-on): Likewise.
3714
3715 2008-12-20  Bruno Haible  <bruno@clisp.org>
3716
3717         Ensure wctob is declared on IRIX 6.5.
3718         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
3719         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
3720         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
3721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
3722         of HAVE_WCTOB.
3723         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
3724         HAVE_WCTOB.
3725         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
3726
3727 2008-12-19  Bruno Haible  <bruno@clisp.org>
3728
3729         * modules/mbsrtowcs-tests: New file.
3730         * tests/test-mbsrtowcs1.sh: New file.
3731         * tests/test-mbsrtowcs2.sh: New file.
3732         * tests/test-mbsrtowcs3.sh: New file.
3733         * tests/test-mbsrtowcs4.sh: New file.
3734         * tests/test-mbsrtowcs.c: New file.
3735
3736         New module 'mbsrtowcs'.
3737         * lib/wchar.in.h (mbsrtowcs): New declaration.
3738         * lib/mbsrtowcs.c: New file.
3739         * m4/mbsrtowcs.m4: New file.
3740         * modules/mbsrtowcs: New file.
3741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
3742         HAVE_MBSRTOWCS.
3743         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
3744         HAVE_MBSRTOWCS.
3745         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
3746
3747 2008-12-19  Bruno Haible  <bruno@clisp.org>
3748
3749         New module 'mbrlen'.
3750         * lib/wchar.in.h (mbrlen): New declaration.
3751         * lib/mbrlen.c: New file.
3752         * m4/mbrlen.m4: New file.
3753         * modules/mbrlen: New file.
3754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
3755         HAVE_MBRLEN.
3756         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
3757         HAVE_MBRLEN.
3758         * doc/posix-functions/mbrlen.texi: Document the new module.
3759
3760 2008-12-19  Bruno Haible  <bruno@clisp.org>
3761
3762         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
3763         * modules/mbrtowc (Depends-on): Add verify.
3764         Suggested by Paul Eggert.
3765
3766 2008-12-18  Bruno Haible  <bruno@clisp.org>
3767
3768         * modules/mbsinit-tests: New file.
3769         * tests/test-mbsinit.sh: New file.
3770         * tests/test-mbsinit.c: New file.
3771
3772 2008-12-18  Bruno Haible  <bruno@clisp.org>
3773
3774         * modules/mbrtowc-tests: New file.
3775         * tests/test-mbrtowc1.sh: New file.
3776         * tests/test-mbrtowc2.sh: New file.
3777         * tests/test-mbrtowc3.sh: New file.
3778         * tests/test-mbrtowc4.sh: New file.
3779         * tests/test-mbrtowc.c: New file.
3780
3781         New module 'mbrtowc'.
3782         * lib/wchar.in.h (mbstate_t): Override when the system does not have
3783         mbsinit and mbrtowc.
3784         (mbrtowc): New declaration.
3785         * lib/mbrtowc.c: New file.
3786         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
3787         * modules/mbrtowc: New file.
3788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
3789         HAVE_MBRTOWC.
3790         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
3791         HAVE_MBRTOWC.
3792         * doc/posix-functions/mbrtowc.texi: Document the new module.
3793
3794 2008-12-18  Bruno Haible  <bruno@clisp.org>
3795
3796         New module 'wctob'.
3797         * lib/wchar.in.h (wctob): New declaration.
3798         * lib/wctob.c: New file.
3799         * m4/wctob.m4: New file.
3800         * modules/wctob: New file.
3801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
3802         HAVE_WCTOB.
3803         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
3804         * doc/posix-functions/wctob.texi: Document the new module.
3805
3806 2008-12-18  Bruno Haible  <bruno@clisp.org>
3807
3808         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
3809         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
3810
3811 2008-12-18  Simon Josefsson  <simon@josefsson.org>
3812
3813         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
3814         G. Christensen" <tgc@jupiterrise.com>.
3815
3816         * lib/flock.c: Need to include errno.h.  Reported by "Tom
3817         G. Christensen" <tgc@jupiterrise.com>.
3818
3819         * lib/flock.c: Need to include string.h.  Reported by "Tom
3820         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
3821         <ebb9@byu.net>.
3822
3823 2008-12-18  Bruno Haible  <bruno@clisp.org>
3824
3825         * m4/locale-ja.m4: New file, from GNU gettext.
3826
3827 2008-12-17  Bruno Haible  <bruno@clisp.org>
3828
3829         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
3830         Suggested by Eric Blake.
3831
3832 2008-12-17  Bruno Haible  <bruno@clisp.org>
3833
3834         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
3835
3836 2008-12-17  Bruno Haible  <bruno@clisp.org>
3837
3838         * lib/mbsinit.c: Include verify.h. Verify an assumption.
3839         * modules/mbsinit (Depends-on): Add verify.
3840         Suggested by Paul Eggert.
3841
3842 2008-12-17  Bruno Haible  <bruno@clisp.org>
3843
3844         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
3845         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
3846         gl_FUNC_MBRTOWC.
3847         * m4/mbiter.m4 (gl_MBITER): LIkewise.
3848         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
3849         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
3850         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
3851         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
3852         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
3853         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
3854         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
3855         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
3856         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
3857         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
3858         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
3859         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
3860         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
3861         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
3862         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3863         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
3864         * modules/trim (configure.ac): Likewise.
3865
3866 2008-12-17  Bruno Haible  <bruno@clisp.org>
3867
3868         * modules/btowc-tests: New file.
3869         * tests/test-btowc1.sh: New file.
3870         * tests/test-btowc2.sh: New file.
3871         * tests/test-btowc.c: New file.
3872
3873         New module 'btowc'.
3874         * lib/wchar.in.h (btowc): New declaration.
3875         * lib/btowc.c: New file.
3876         * m4/btowc.m4: New file.
3877         * modules/btowc: New file.
3878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
3879         HAVE_BTOWC.
3880         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
3881         * doc/posix-functions/btowc.texi: Document the new module.
3882
3883 2008-12-17  Bruno Haible  <bruno@clisp.org>
3884
3885         New module 'mbsinit'.
3886         * lib/wchar.in.h (mbsinit): New declaration.
3887         * lib/mbsinit.c: New file.
3888         * m4/mbsinit.m4: New file.
3889         * modules/mbsinit: New file.
3890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
3891         HAVE_MBSINIT.
3892         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
3893         HAVE_MBSINIT.
3894         * doc/posix-functions/mbsinit.texi: Document the new module.
3895
3896 2008-12-16  Bruno Haible  <bruno@clisp.org>
3897
3898         * lib/unistd.in.h: Add comment.
3899         * tests/test-environ.c: Don't include <stdlib.h>.
3900
3901 2008-12-16  Bruno Haible  <bruno@clisp.org>
3902
3903         * lib/parse-duration.h (parse_duration): Document return value
3904         convention.
3905         * lib/parse-duration.c: Include specification header first. Add
3906         comments.
3907         (_): Remove macro.
3908         (parse_year_month_day, parse_hour_minute_second): Move side effects
3909         outside of strchr call.
3910         (parse_non_iso8601): Move side effects outside of isspace call.
3911         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
3912         call.
3913
3914 2008-12-16  Bruno Haible  <bruno@clisp.org>
3915
3916         * tests/test-parse-duration.sh: Produce no output when the test
3917         succeeds.
3918
3919 2008-12-16  Bruno Haible  <bruno@clisp.org>
3920
3921         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
3922         expressions.
3923
3924 2008-12-15  Bruno Haible  <bruno@clisp.org>
3925
3926         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
3927         * doc/glibc-functions/flistxattr.texi: Likewise.
3928         * doc/glibc-functions/fopencookie.texi: Likewise.
3929         * doc/glibc-functions/fremovexattr.texi: Likewise.
3930         * doc/glibc-functions/fsetxattr.texi: Likewise.
3931         * doc/glibc-functions/getxattr.texi: Likewise.
3932         * doc/glibc-functions/lgetxattr.texi: Likewise.
3933         * doc/glibc-functions/listxattr.texi: Likewise.
3934         * doc/glibc-functions/llistxattr.texi: Likewise.
3935         * doc/glibc-functions/lremovexattr.texi: Likewise.
3936         * doc/glibc-functions/lsetxattr.texi: Likewise.
3937         * doc/glibc-functions/removexattr.texi: Likewise.
3938         * doc/glibc-functions/setxattr.texi: Likewise.
3939         * doc/posix-functions/open_memstream.texi: Likewise.
3940
3941 2008-12-15  Eric Blake  <ebb9@byu.net>
3942
3943         Update doc for cygwin 1.7.
3944         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
3945         functions.
3946         * doc/posix-functions/fchmodat.texi: Likewise.
3947         * doc/posix-functions/fchownat.texi: Likewise.
3948         * doc/posix-functions/fdopendir.texi: Likewise.
3949         * doc/posix-functions/fmemopen.texi: Likewise.
3950         * doc/posix-functions/freeaddrinfo.texi: Likewise.
3951         * doc/posix-functions/fstatat.texi: Likewise.
3952         * doc/posix-functions/futimens.texi: Likewise.
3953         * doc/posix-functions/gai_strerror.texi: Likewise.
3954         * doc/posix-functions/getaddrinfo.texi: Likewise.
3955         * doc/posix-functions/getnameinfo.texi: Likewise.
3956         * doc/posix-functions/if_freenameindex.texi: Likewise.
3957         * doc/posix-functions/if_indextoname.texi: Likewise.
3958         * doc/posix-functions/if_nameindex.texi: Likewise.
3959         * doc/posix-functions/if_nametoindex.texi: Likewise.
3960         * doc/posix-functions/insque.texi: Likewise.
3961         * doc/posix-functions/linkat.texi: Likewise.
3962         * doc/posix-functions/llrint.texi: Likewise.
3963         * doc/posix-functions/llrintf.texi: Likewise.
3964         * doc/posix-functions/llrintl.texi: Likewise.
3965         * doc/posix-functions/lockf.texi: Likewise.
3966         * doc/posix-functions/lrintl.texi: Likewise.
3967         * doc/posix-functions/mkdirat.texi: Likewise.
3968         * doc/posix-functions/mkfifoat.texi: Likewise.
3969         * doc/posix-functions/mknodat.texi: Likewise.
3970         * doc/posix-functions/mq_close.texi: Likewise.
3971         * doc/posix-functions/mq_getattr.texi: Likewise.
3972         * doc/posix-functions/mq_notify.texi: Likewise.
3973         * doc/posix-functions/mq_open.texi: Likewise.
3974         * doc/posix-functions/mq_receive.texi: Likewise.
3975         * doc/posix-functions/mq_send.texi: Likewise.
3976         * doc/posix-functions/mq_setattr.texi: Likewise.
3977         * doc/posix-functions/mq_timedreceive.texi: Likewise.
3978         * doc/posix-functions/mq_timedsend.texi: Likewise.
3979         * doc/posix-functions/mq_unlink.texi: Likewise.
3980         * doc/posix-functions/open_memstream.texi: Likewise.
3981         * doc/posix-functions/openat.texi: Likewise.
3982         * doc/posix-functions/posix_fadvise.texi: Likewise.
3983         * doc/posix-functions/posix_fallocate.texi: Likewise.
3984         * doc/posix-functions/posix_madvise.texi: Likewise.
3985         * doc/posix-functions/posix_memalign.texi: Likewise.
3986         * doc/posix-functions/posix_openpt.texi: Likewise.
3987         * doc/posix-functions/readlinkat.texi: Likewise.
3988         * doc/posix-functions/remque.texi: Likewise.
3989         * doc/posix-functions/renameat.texi: Likewise.
3990         * doc/posix-functions/rintl.texi: Likewise.
3991         * doc/posix-functions/sem_unlink.texi: Likewise.
3992         * doc/posix-functions/shm_open.texi: Likewise.
3993         * doc/posix-functions/shm_unlink.texi: Likewise.
3994         * doc/posix-functions/signgam.texi: Likewise.
3995         * doc/posix-functions/sigset.texi: Likewise.
3996         * doc/posix-functions/stpcpy.texi: Likewise.
3997         * doc/posix-functions/stpncpy.texi: Likewise.
3998         * doc/posix-functions/strerror.texi: Likewise.
3999         * doc/posix-functions/strtod.texi: Likewise.
4000         * doc/posix-functions/symlinkat.texi: Likewise.
4001         * doc/posix-functions/unlinkat.texi: Likewise.
4002         * doc/posix-functions/utimensat.texi: Likewise.
4003         * doc/glibc-functions/bindresvport.texi: Likewise.
4004         * doc/glibc-functions/dn_expand.texi: Likewise.
4005         * doc/glibc-functions/exp10.texi: Likewise.
4006         * doc/glibc-functions/exp10f.texi: Likewise.
4007         * doc/glibc-functions/fgetxattr.texi: Likewise.
4008         * doc/glibc-functions/flistxattr.texi: Likewise.
4009         * doc/glibc-functions/fopencookie.texi: Likewise.
4010         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4011         * doc/glibc-functions/fremovexattr.texi: Likewise.
4012         * doc/glibc-functions/fsetxattr.texi: Likewise.
4013         * doc/glibc-functions/getifaddrs.texi: Likewise.
4014         * doc/glibc-functions/getxattr.texi: Likewise.
4015         * doc/glibc-functions/lgetxattr.texi: Likewise.
4016         * doc/glibc-functions/listxattr.texi: Likewise.
4017         * doc/glibc-functions/llistxattr.texi: Likewise.
4018         * doc/glibc-functions/lremovexattr.texi: Likewise.
4019         * doc/glibc-functions/lsetxattr.texi: Likewise.
4020         * doc/glibc-functions/pow10.texi: Likewise.
4021         * doc/glibc-functions/pow10f.texi: Likewise.
4022         * doc/glibc-functions/rcmd_af.texi: Likewise.
4023         * doc/glibc-functions/removexattr.texi: Likewise.
4024         * doc/glibc-functions/res_init.texi: Likewise.
4025         * doc/glibc-functions/res_mkquery.texi: Likewise.
4026         * doc/glibc-functions/res_query.texi: Likewise.
4027         * doc/glibc-functions/res_querydomain.texi: Likewise.
4028         * doc/glibc-functions/res_send.texi: Likewise.
4029         * doc/glibc-functions/rresvport_af.texi: Likewise.
4030         * doc/glibc-functions/setxattr.texi: Likewise.
4031         * doc/glibc-functions/strcasestr.texi: Likewise.
4032
4033 2008-12-15  Bruno Haible  <bruno@clisp.org>
4034
4035         Fix compilation error on OSF/1 4.0.
4036         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4037         <sys/time.h>, simply delegate to the system header.
4038         Reported by Daniel Richard G. <oss@teragram.com>.
4039
4040 2008-12-15  Bruno Haible  <bruno@clisp.org>
4041
4042         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4043         * doc/posix-functions/fchmodat.texi: Likewise.
4044         * doc/posix-functions/fchownat.texi: Likewise.
4045         * doc/posix-functions/fdopendir.texi: Likewise.
4046         * doc/posix-functions/fstatat.texi: Likewise.
4047         * doc/posix-functions/mkdirat.texi: Likewise.
4048         * doc/posix-functions/unlinkat.texi: Likewise.
4049
4050 2008-12-14  Bruno Haible  <bruno@clisp.org>
4051
4052         Update doc for POSIX:2008.
4053         * doc/posix-functions/faccessat.texi: New file.
4054         * doc/posix-functions/fchmodat.texi: New file.
4055         * doc/posix-functions/fchownat.texi: New file.
4056         * doc/posix-functions/fdopendir.texi: New file.
4057         * doc/posix-functions/fstatat.texi: New file.
4058         * doc/posix-functions/futimens.texi: New file.
4059         * doc/posix-functions/linkat.texi: New file.
4060         * doc/posix-functions/mkdirat.texi: New file.
4061         * doc/posix-functions/mkfifoat.texi: New file.
4062         * doc/posix-functions/mknodat.texi: New file.
4063         * doc/posix-functions/open_wmemstream.texi: New file.
4064         * doc/posix-functions/openat.texi: New file.
4065         * doc/posix-functions/psiginfo.texi: New file.
4066         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4067         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4068         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4069         * doc/posix-functions/readlinkat.texi: New file.
4070         * doc/posix-functions/renameat.texi: New file.
4071         * doc/posix-functions/strerror_l.texi: New file.
4072         * doc/posix-functions/symlinkat.texi: New file.
4073         * doc/posix-functions/unlinkat.texi: New file.
4074         * doc/posix-functions/utimensat.texi: New file.
4075         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4076
4077 2008-12-14  Bruno Haible  <bruno@clisp.org>
4078
4079         Update doc for POSIX:2008.
4080         * doc/posix-functions/alphasort.texi: Renamed from
4081         doc/glibc-functions/alphasort.texi.
4082         * doc/posix-functions/dirfd.texi: Renamed from
4083         doc/glibc-functions/dirfd.texi.
4084         * doc/posix-functions/dprintf.texi: Renamed from
4085         doc/glibc-functions/dprintf.texi.
4086         * doc/posix-functions/duplocale.texi: Renamed from
4087         doc/glibc-functions/duplocale.texi.
4088         * doc/posix-functions/fexecve.texi: Renamed from
4089         doc/glibc-functions/fexecve.texi.
4090         * doc/posix-functions/fmemopen.texi: Renamed from
4091         doc/glibc-functions/fmemopen.texi.
4092         * doc/posix-functions/freelocale.texi: Renamed from
4093         doc/glibc-functions/freelocale.texi.
4094         * doc/posix-functions/getdate_err.texi: Renamed from
4095         doc/glibc-functions/getdate_err.texi.
4096         * doc/posix-functions/isalnum_l.texi: Renamed from
4097         doc/glibc-functions/isalnum_l.texi.
4098         * doc/posix-functions/isalpha_l.texi: Renamed from
4099         doc/glibc-functions/isalpha_l.texi.
4100         * doc/posix-functions/isblank_l.texi: Renamed from
4101         doc/glibc-functions/isblank_l.texi.
4102         * doc/posix-functions/iscntrl_l.texi: Renamed from
4103         doc/glibc-functions/iscntrl_l.texi.
4104         * doc/posix-functions/isdigit_l.texi: Renamed from
4105         doc/glibc-functions/isdigit_l.texi.
4106         * doc/posix-functions/isgraph_l.texi: Renamed from
4107         doc/glibc-functions/isgraph_l.texi.
4108         * doc/posix-functions/islower_l.texi: Renamed from
4109         doc/glibc-functions/islower_l.texi.
4110         * doc/posix-functions/isprint_l.texi: Renamed from
4111         doc/glibc-functions/isprint_l.texi.
4112         * doc/posix-functions/ispunct_l.texi: Renamed from
4113         doc/glibc-functions/ispunct_l.texi.
4114         * doc/posix-functions/isspace_l.texi: Renamed from
4115         doc/glibc-functions/isspace_l.texi.
4116         * doc/posix-functions/isupper_l.texi: Renamed from
4117         doc/glibc-functions/isupper_l.texi.
4118         * doc/posix-functions/iswalnum_l.texi: Renamed from
4119         doc/glibc-functions/iswalnum_l.texi.
4120         * doc/posix-functions/iswalpha_l.texi: Renamed from
4121         doc/glibc-functions/iswalpha_l.texi.
4122         * doc/posix-functions/iswblank_l.texi: Renamed from
4123         doc/glibc-functions/iswblank_l.texi.
4124         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4125         doc/glibc-functions/iswcntrl_l.texi.
4126         * doc/posix-functions/iswctype_l.texi: Renamed from
4127         doc/glibc-functions/iswctype_l.texi.
4128         * doc/posix-functions/iswdigit_l.texi: Renamed from
4129         doc/glibc-functions/iswdigit_l.texi.
4130         * doc/posix-functions/iswgraph_l.texi: Renamed from
4131         doc/glibc-functions/iswgraph_l.texi.
4132         * doc/posix-functions/iswlower_l.texi: Renamed from
4133         doc/glibc-functions/iswlower_l.texi.
4134         * doc/posix-functions/iswprint_l.texi: Renamed from
4135         doc/glibc-functions/iswprint_l.texi.
4136         * doc/posix-functions/iswpunct_l.texi: Renamed from
4137         doc/glibc-functions/iswpunct_l.texi.
4138         * doc/posix-functions/iswspace_l.texi: Renamed from
4139         doc/glibc-functions/iswspace_l.texi.
4140         * doc/posix-functions/iswupper_l.texi: Renamed from
4141         doc/glibc-functions/iswupper_l.texi.
4142         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4143         doc/glibc-functions/iswxdigit_l.texi.
4144         * doc/posix-functions/isxdigit_l.texi: Renamed from
4145         doc/glibc-functions/isxdigit_l.texi.
4146         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4147         doc/glibc-functions/mbsnrtowcs.texi.
4148         * doc/posix-functions/mkdtemp.texi: Renamed from
4149         doc/glibc-functions/mkdtemp.texi.
4150         * doc/posix-functions/newlocale.texi: Renamed from
4151         doc/glibc-functions/newlocale.texi.
4152         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4153         doc/glibc-functions/nl_langinfo_l.texi.
4154         * doc/posix-functions/open_memstream.texi: Renamed from
4155         doc/glibc-functions/open_memstream.texi.
4156         * doc/posix-functions/opterr.texi: Renamed from
4157         doc/glibc-functions/opterr.texi.
4158         * doc/posix-functions/optind.texi: Renamed from
4159         doc/glibc-functions/optind.texi.
4160         * doc/posix-functions/optopt.texi: Renamed from
4161         doc/glibc-functions/optopt.texi.
4162         * doc/posix-functions/psignal.texi: Renamed from
4163         doc/glibc-functions/psignal.texi.
4164         * doc/posix-functions/scandir.texi: Renamed from
4165         doc/glibc-functions/scandir.texi.
4166         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4167         doc/glibc-functions/sched_get_priority_min.texi.
4168         * doc/posix-functions/signgam.texi: Renamed from
4169         doc/glibc-functions/signgam.texi.
4170         * doc/posix-functions/stpcpy.texi: Renamed from
4171         doc/glibc-functions/stpcpy.texi.
4172         * doc/posix-functions/stpncpy.texi: Renamed from
4173         doc/glibc-functions/stpncpy.texi.
4174         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4175         doc/glibc-functions/strcasecmp_l.texi.
4176         * doc/posix-functions/strcoll_l.texi: Renamed from
4177         doc/glibc-functions/strcoll_l.texi.
4178         * doc/posix-functions/strfmon_l.texi: Renamed from
4179         doc/glibc-functions/strfmon_l.texi.
4180         * doc/posix-functions/strftime_l.texi: Renamed from
4181         doc/glibc-functions/strftime_l.texi.
4182         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4183         doc/glibc-functions/strncasecmp_l.texi.
4184         * doc/posix-functions/strndup.texi: Renamed from
4185         doc/glibc-functions/strndup.texi.
4186         * doc/posix-functions/strnlen.texi: Renamed from
4187         doc/glibc-functions/strnlen.texi.
4188         * doc/posix-functions/strsignal.texi: Renamed from
4189         doc/glibc-functions/strsignal.texi.
4190         * doc/posix-functions/strxfrm_l.texi: Renamed from
4191         doc/glibc-functions/strxfrm_l.texi.
4192         * doc/posix-functions/timer_gettime.texi: Renamed from
4193         doc/glibc-functions/timer_gettime.texi.
4194         * doc/posix-functions/tolower_l.texi: Renamed from
4195         doc/glibc-functions/tolower_l.texi.
4196         * doc/posix-functions/toupper_l.texi: Renamed from
4197         doc/glibc-functions/toupper_l.texi.
4198         * doc/posix-functions/towctrans_l.texi: Renamed from
4199         doc/glibc-functions/towctrans_l.texi.
4200         * doc/posix-functions/towlower_l.texi: Renamed from
4201         doc/glibc-functions/towlower_l.texi.
4202         * doc/posix-functions/towupper_l.texi: Renamed from
4203         doc/glibc-functions/towupper_l.texi.
4204         * doc/posix-functions/uselocale.texi: Renamed from
4205         doc/glibc-functions/uselocale.texi.
4206         * doc/posix-functions/vdprintf.texi: Renamed from
4207         doc/glibc-functions/vdprintf.texi.
4208         * doc/posix-functions/wcpcpy.texi:
4209         Renamed from doc/glibc-functions/wcpcpy.texi.
4210         * doc/posix-functions/wcpncpy.texi: Renamed from
4211         doc/glibc-functions/wcpncpy.texi.
4212         * doc/posix-functions/wcscasecmp.texi: Renamed from
4213         doc/glibc-functions/wcscasecmp.texi.
4214         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4215         doc/glibc-functions/wcscasecmp_l.texi.
4216         * doc/posix-functions/wcscoll_l.texi: Renamed from
4217         doc/glibc-functions/wcscoll_l.texi.
4218         * doc/posix-functions/wcsdup.texi: Renamed from
4219         doc/glibc-functions/wcsdup.texi.
4220         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4221         doc/glibc-functions/wcsncasecmp.texi.
4222         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4223         doc/glibc-functions/wcsncasecmp_l.texi.
4224         * doc/posix-functions/wcsnlen.texi: Renamed from
4225         doc/glibc-functions/wcsnlen.texi.
4226         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4227         doc/glibc-functions/wcsnrtombs.texi.
4228         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4229         doc/glibc-functions/wcsxfrm_l.texi.
4230         * doc/posix-functions/wctrans_l.texi: Renamed from
4231         doc/glibc-functions/wctrans_l.texi.
4232         * doc/posix-functions/wctype_l.texi: Renamed from
4233         doc/glibc-functions/wctype_l.texi.
4234         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4235         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4236         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4237         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4238         these subsections.
4239         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4240         Remove sections.
4241
4242 2008-12-14  Bruno Haible  <bruno@clisp.org>
4243
4244         Update doc for POSIX:2008.
4245         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4246
4247 2008-12-14  Bruno Haible  <bruno@clisp.org>
4248
4249         Update doc for POSIX:2008.
4250         * doc/pastposix-functions/bcmp.texi: Renamed from
4251         doc/posix-functions/bcmp.texi.
4252         * doc/pastposix-functions/bcopy.texi: Renamed from
4253         doc/posix-functions/bcopy.texi.
4254         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4255         doc/posix-functions/bsd_signal.texi.
4256         * doc/pastposix-functions/bzero.texi: Renamed from
4257         doc/posix-functions/bzero.texi.
4258         * doc/pastposix-functions/ecvt.texi: Renamed from
4259         doc/posix-functions/ecvt.texi.
4260         * doc/pastposix-functions/fcvt.texi: Renamed from
4261         doc/posix-functions/fcvt.texi.
4262         * doc/pastposix-functions/ftime.texi: Renamed from
4263         doc/posix-functions/ftime.texi.
4264         * doc/pastposix-functions/gcvt.texi: Renamed from
4265         doc/posix-functions/gcvt.texi.
4266         * doc/pastposix-functions/getcontext.texi: Renamed from
4267         doc/posix-functions/getcontext.texi.
4268         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4269         doc/posix-functions/gethostbyaddr.texi.
4270         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4271         doc/posix-functions/gethostbyname.texi.
4272         * doc/pastposix-functions/getwd.texi: Renamed from
4273         doc/posix-functions/getwd.texi.
4274         * doc/pastposix-functions/h_errno.texi: Renamed from
4275         doc/posix-functions/h_errno.texi.
4276         * doc/pastposix-functions/index.texi: Renamed from
4277         doc/posix-functions/index.texi.
4278         * doc/pastposix-functions/makecontext.texi: Renamed from
4279         doc/posix-functions/makecontext.texi.
4280         * doc/pastposix-functions/mktemp.texi: Renamed from
4281         doc/posix-functions/mktemp.texi.
4282         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4283         doc/posix-functions/pthread_attr_getstackaddr.texi.
4284         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4285         doc/posix-functions/pthread_attr_setstackaddr.texi.
4286         * doc/pastposix-functions/rindex.texi: Renamed from
4287         doc/posix-functions/rindex.texi.
4288         * doc/pastposix-functions/scalb.texi: Renamed from
4289         doc/posix-functions/scalb.texi.
4290         * doc/pastposix-functions/setcontext.texi: Renamed from
4291         doc/posix-functions/setcontext.texi.
4292         * doc/pastposix-functions/swapcontext.texi: Renamed from
4293         doc/posix-functions/swapcontext.texi.
4294         * doc/pastposix-functions/ualarm.texi: Renamed from
4295         doc/posix-functions/ualarm.texi.
4296         * doc/pastposix-functions/usleep.texi: Renamed from
4297         doc/posix-functions/usleep.texi.
4298         * doc/pastposix-functions/vfork.texi: Renamed from
4299         doc/posix-functions/vfork.texi.
4300         * doc/pastposix-functions/wcswcs.texi: Renamed from
4301         doc/posix-functions/wcswcs.texi.
4302         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4303         (Function Substitutes): Update.
4304
4305 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4306
4307         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4308         m4/strerror.m4.
4309
4310 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4311             Bruno Haible  <bruno@clisp.org>
4312
4313         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4314
4315 2008-12-13  Bruno Haible  <bruno@clisp.org>
4316
4317         * modules/strtoull (Depends-on): Remove unistd.
4318
4319 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4320
4321         * modules/strtoull (Depends-on): Add stdlib.
4322
4323 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4324
4325         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4326
4327 2008-12-10  Jim Meyering  <meyering@redhat.com>
4328
4329         gl_ASSERT: don't say assertions are disabled when they're not
4330         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4331         "checking whether to enable assertions... no", when they are in
4332         fact enabled.  This is solely a bug in the output of configure.
4333         In spite of saying "no", NDEBUG was not defined in that case.
4334         Also, as noted by Eric Blake, leave assertions enabled upon
4335         --enable-assert=INVALID.
4336
4337 2008-12-10  Bruno Haible  <bruno@clisp.org>
4338
4339         Change MODULES.html to refer to POSIX:2008 where possible.
4340         * MODULES.html.sh (POSIX2008_URL): New variable.
4341         (posix_headers): Remove sys/timeb, ucontext.
4342         (posix2001_headers): New variable.
4343         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4344         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4345         index, makecontext, mktemp, pthread_attr_getstackaddr,
4346         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4347         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4348         (posix2001_functions): New variable.
4349         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4350         otherwise.
4351
4352 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4353
4354         add missing include to parse-duration.c
4355         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4356         * modules/parse-duration (Depends-on): Add xalloc.
4357
4358         fix sed script reading maint.mk
4359         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4360         (syntax-check-rules): Use it.
4361
4362 2008-12-09  Bruno Haible  <bruno@clisp.org>
4363
4364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4365         MacOS X 10.4/PowerPC.
4366         Reported by Simon Josefsson.
4367
4368 2008-12-08  Jim Meyering  <meyering@redhat.com>
4369
4370         work around mingw's lack of some S_IF definitions
4371         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4372         Reported by Simon Josefsson.
4373
4374 2008-12-08  Bruno Haible  <bruno@clisp.org>
4375
4376         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4377         applied to variables. Needed on MacOS X 10.4/PowerPC.
4378         Reported by Simon Josefsson.
4379
4380 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4381         and Eric Blake  <ebb9@byu.net>
4382
4383         assert: honor --enable-assert
4384         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4385         order to honor --enable-assert, rather than treating it as a
4386         synonym for --disable-assert.
4387
4388 2008-12-08  Jim Meyering  <meyering@redhat.com>
4389
4390         * lib/posixtm.c: Remove now-useless declaration of mktime.
4391
4392         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4393
4394 2008-12-07  Bruno Haible  <bruno@clisp.org>
4395
4396         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4397         test_once): Mark functions as static.
4398         * tests/test-tls.c (test_tls): Likewise.
4399
4400 2008-12-07  Bruno Haible  <bruno@clisp.org>
4401
4402         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4403         iconv_register_autodetect.
4404
4405 2008-12-07  Jim Meyering  <meyering@redhat.com>
4406
4407         posixtm.c: avoid a warning
4408         * lib/posixtm.c (posixtime): Don't initialize tm0.
4409         It's no longer needed to placate gcc4's -Wuninitialized,
4410         and the attempt to placate would elicit a new warning.
4411
4412         unicodeio.c: mark unused parameters
4413         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4414         (fallback_failure_callback): Likewise.
4415
4416 2008-12-07  Bruno Haible  <bruno@clisp.org>
4417
4418         * gnulib-tool (func_create_testdir): When building the tests
4419         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4420         Reported by Simon Josefsson.
4421
4422 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4423
4424         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4425
4426 2008-12-06  Bruno Haible  <bruno@clisp.org>
4427
4428         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4429         Suggested by Eric Blake.
4430
4431 2008-12-06  Bruno Haible  <bruno@clisp.org>
4432
4433         Fix a c-stack test failure on MacOS X.
4434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4435         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4436         handler for SIGBUS as well.
4437         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4438         install a signal handler for SIGBUS as well.
4439         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4440
4441 2008-12-06  Bruno Haible  <bruno@clisp.org>
4442
4443         Advocacy documentation.
4444         * doc/gnulib-intro.texi (Benefits): New section.
4445         * doc/gnulib.texi: Update.
4446
4447 2008-12-06  Bruno Haible  <bruno@clisp.org>
4448
4449         Document the 'manywarnings' module.
4450         * doc/manywarnings.texi: New file.
4451         * doc/gnulib.texi: Include it.
4452
4453 2008-12-05  Eric Blake  <ebb9@byu.net>
4454
4455         tests: silence some gcc warnings
4456         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4457         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4458         type mismatches.
4459
4460 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4461             Bruno Haible  <bruno@clisp.org>
4462
4463         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4464
4465 2008-11-29  Jim Meyering  <meyering@redhat.com>
4466
4467         unicodeio.c: mark unused parameters
4468         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4469         (fallback_failure_callback): Likewise.
4470
4471         fts: fix a thinko
4472         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
4473         (set_stat_type): Return S_IF*-valued "type" directly.
4474         Prompted by James Youngman's spotting a related bug.
4475         Confirmed by further testing through find.
4476
4477         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4478         * lib/fts.c (D_TYPE): Define.
4479         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4480         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4481         (s_ifmt_shift_bits): New function.
4482         (set_stat_type): New function.
4483         (fts_build): When not calling fts_stat, call set_stat_type
4484         to propagate dirent.d_type info to fts_read caller.
4485         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4486         fts_statp->st_mode type information may be valid.
4487
4488 2008-11-28  Simon Josefsson  <simon@josefsson.org>
4489
4490         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
4491         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
4492         <sds@gnu.org>.
4493
4494 2008-11-20  Bruno Haible  <bruno@clisp.org>
4495
4496         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4497         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4498         INCLUDE_NEXT.
4499         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4500         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4501         * modules/math (Makefile.am): Substitute
4502         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4504
4505 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
4506             Bruno Haible  <bruno@clisp.org>
4507
4508         * lib/stdint.in.h: Define all type macros so that their expansion is
4509         a single typedef'ed token. Fixes a compilation failure in Boost which
4510         does "using ::int8_t;".
4511
4512 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4513
4514         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4515         gl_MANYWARN_ALL_GCC.
4516         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4517         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
4518         * modules/manywarnings: New file.
4519         * MODULES.html.sh: Mention manywarnings module.
4520
4521 2008-11-18  Bruno Haible  <bruno@clisp.org>
4522
4523         * doc/gnulib-tool.texi (Unit tests): New section.
4524
4525 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4526
4527         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4528         paths like 'lib/po/foo.po'.
4529
4530 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4531
4532         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
4533         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4534
4535 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4536
4537         * m4/warnings.m4: Use CPPFLAGS to really check whether the
4538         parameter works.
4539
4540 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4541
4542         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4543
4544 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4545
4546         * modules/parse-duration-tests: New file.
4547         * tests/test-parse-duration.sh: New file.
4548         * tests/test-parse-duration.c: New file.
4549
4550         New module 'parse-duration'.
4551         * lib/parse-duration.h: New file.
4552         * lib/parse-duration.c: New file.
4553         * modules/parse-duration: New file.
4554
4555 2008-11-17  Bruno Haible  <bruno@clisp.org>
4556
4557         * tests/test-select-out.sh: Comment out the first pipe test.
4558         Reported by Simon Josefsson.
4559
4560 2008-11-17  Bruno Haible  <bruno@clisp.org>
4561
4562         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4564         gl_HOSTENT.
4565
4566 2008-11-17  Bruno Haible  <bruno@clisp.org>
4567
4568         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4569         -lnetwork and -lnet. Needed for Haiku and BeOS.
4570
4571 2008-11-16  Bruno Haible  <bruno@clisp.org>
4572
4573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4574
4575 2008-11-16  Bruno Haible  <bruno@clisp.org>
4576
4577         Avoid test failure on Haiku.
4578         * tests/test-fsync.c: Include <errno.h>.
4579         (main): Don't require that fsync (0) fails.
4580
4581 2008-11-15  Bruno Haible  <bruno@clisp.org>
4582
4583         New module 'hostent'.
4584         * modules/hostent: New file.
4585         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4586
4587 2008-11-15  Bruno Haible  <bruno@clisp.org>
4588
4589         New module 'servent'.
4590         * modules/servent: New file.
4591         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4592
4593 2008-11-15  Bruno Haible  <bruno@clisp.org>
4594
4595         Avoid generating same test program with two different rules.
4596         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4597         test-frexp to test-frexp-nolibm.
4598         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4599         test-frexpl to test-frexpl-nolibm.
4600
4601 2008-11-15  Bruno Haible  <bruno@clisp.org>
4602
4603         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4604         $(FREXPL_LIBM).
4605
4606 2008-11-15  Bruno Haible  <bruno@clisp.org>
4607
4608         * lib/netdb.in.h: Activate the definitions also when the system's
4609         <netdb.h> has 'struct addrinfo'.
4610         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
4611         EAI_OVERFLOW or AI_NUMERICSERV.
4612         * doc/posix-headers/netdb.texi: Document the problem.
4613
4614 2008-11-15  Bruno Haible  <bruno@clisp.org>
4615
4616         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
4617
4618         Make the 'sched' module work on platforms where <sched.h> exists but
4619         is incomplete (such as Haiku).
4620         * lib/sched.in.h; Include the system's <sched.h> if it exists.
4621         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
4622         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
4623         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
4624         HAVE_STRUCT_SCHED_PARAM.
4625         * modules/sched (Depends-on): Add include_next.
4626         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
4627         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
4628         * doc/posix-headers/sched.texi: Document the issue.
4629
4630 2008-11-13  Jim Meyering  <meyering@redhat.com>
4631
4632         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
4633         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
4634         test would fail due to the difference in the Report bugs to ...
4635         line.  The expected address is empty, "<>", while the actual
4636         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
4637
4638 2008-11-12  Bruno Haible  <bruno@clisp.org>
4639
4640         lstat: don't compile lstat.c on systems lacking lstat
4641         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
4642         which don't have lstat; this is handled by lib/sys_stat.in.h already.
4643         Reported by Daniel P. Berrange via Jim Meyering.
4644
4645 2008-11-12  Jim Meyering  <meyering@redhat.com>
4646
4647         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
4648
4649 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4650
4651         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
4652         instead.
4653
4654 2008-11-12  Bruno Haible  <bruno@clisp.org>
4655
4656         * lib/unicodeio.c: Include unistr.h.
4657         (utf8_wctomb): Remove function.
4658         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
4659
4660 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4661
4662         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
4663         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
4664         <bruno@clisp.org>.
4665         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
4666
4667 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4668
4669         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
4670         * doc/gnulib.texi: Add section for warnings.
4671
4672 2008-11-11  Bruno Haible  <bruno@clisp.org>
4673
4674         * lib/sockets.h: Add a comment.
4675
4676 2008-11-11  Karl Berry  <karl@gnu.org>
4677
4678         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
4679
4680 2008-11-11  Eric Blake  <ebb9@byu.net>
4681
4682         fdl.texi: avoid git symlinks
4683         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
4684
4685 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4686
4687         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
4688
4689 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4690
4691         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
4692         (gl_WARN_ADD): Substitute $2 if literal.
4693
4694 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4695
4696         * m4/warning.m4: Remove.
4697
4698 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4699
4700         * m4/warnings.m4: Almost complete rewrite. :-)
4701
4702 2008-11-10  Simon Josefsson  <simon@josefsson.org>
4703
4704         * modules/warnings: New module.
4705         * m4/warnings.m4: New file.
4706         * MODULES.html.sh: Mention warnings module.
4707         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
4708         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4709
4710 2008-11-10  Eric Blake  <ebb9@byu.net>
4711
4712         fdl.texi: make a symlink to the latest version
4713         * doc/standards.texi: Revert today's earlier change.
4714         * doc/fdl-1.2.texi: Rename from old fdl.texi...
4715         * doc/fdl.texi: ...and replace this with a symlink to the newer
4716         fdl-1.3.texi.
4717
4718 2008-11-10  Bruno Haible  <bruno@clisp.org>
4719
4720         * tests/test-select-fd.c (main): Accept the result file name as fourth
4721         argument.
4722         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
4723         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
4724
4725 2008-11-10  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
4728         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
4729         as autoconf-substituted macros.
4730         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
4731         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
4732         gl_NETDB_H_DEFAULTS. Set these variables.
4733         * modules/netdb (Makefile.am): Substitute these variables.
4734
4735 2008-11-10  Eric Blake  <ebb9@byu.net>
4736
4737         standards.texi: include correct file for FDL 1.3
4738         * doc/standards.texi (GNU Free Documentation License): Change
4739         include file to pull in FDL 1.3, not 1.2.
4740
4741         fdl.texi: revert accidental change to license
4742         * doc/fdl.texi: This is FDL 1.2, not 1.3.
4743
4744 2008-11-10  Bruno Haible  <bruno@clisp.org>
4745
4746         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
4747         cross-compiling guesses also when the native compile gives no result.
4748
4749 2008-11-10  Bruno Haible  <bruno@clisp.org>
4750
4751         * lib/spawni.c (__spawni): Force variable into the stack.
4752
4753 2008-11-10  Bruno Haible  <bruno@clisp.org>
4754
4755         Add support for Haiku.
4756         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
4757         glibc and BeOS, but also on Haiku.
4758         * lib/fpurge.c (fpurge): Likewise.
4759         * lib/freadable.c (freadable): Likewise.
4760         * lib/freadahead.c (freadahead): Likewise.
4761         * lib/freading.c (freading): Likewise.
4762         * lib/freadptr.c (freadptr): Likewise.
4763         * lib/freadseek.c (freadptrinc): Likewise.
4764         * lib/fseeko.c (rpl_fseeko): Likewise.
4765         * lib/fseterr.c (fseterr): Likewise.
4766         * lib/fwritable.c (fwritable): Likewise.
4767         * lib/fwriting.c (fwriting): Likewise.
4768         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
4769
4770 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4771
4772         * lib/config.charset: Treat Haiku like BeOS.
4773
4774 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4775
4776         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
4777         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
4778
4779 2008-11-08  Bruno Haible  <bruno@clisp.org>
4780
4781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
4782         AC_CACHE_CHECK.
4783
4784 2008-11-08  Bruno Haible  <bruno@clisp.org>
4785
4786         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
4787
4788 2008-11-08  Bruno Haible  <bruno@clisp.org>
4789
4790         * tests/test-select-fd.c: New file.
4791         * tests/test-select-in.sh: New file.
4792         * tests/test-select-out.sh: New file.
4793         * tests/test-select-stdin.c: New file.
4794         * modules/select-tests (Files): Add the new files.
4795         (Depends-on): Add gettimeofday.
4796         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
4797         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
4798         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
4799
4800 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
4801             Bruno Haible  <bruno@clisp.org>
4802
4803         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
4804
4805 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
4806
4807         * build-aux/pmccabe2html: Added support for C++ source files.
4808
4809 2008-11-05  Ben Pfaff  <blp@gnu.org>
4810
4811         Fix lib/close.c build on Windows.
4812         * modules/close (Files): Add lib/w32sock.h.
4813
4814 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
4815
4816         Accept Bison's NEWS format.
4817         * build-aux/announce-gen (print_news_deltas): Tweak
4818         $re_prefix.
4819
4820 2008-11-04  Bruno Haible  <bruno@clisp.org>
4821
4822         * modules/random_r (Maintainer): Add glibc.
4823
4824 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4825
4826         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
4827         by karl@freefriends.org (Karl Berry).
4828         * doc/alloca.texi: Likewise.
4829         * doc/c-ctype.texi: Likewise.
4830         * doc/c-strcase.texi: Likewise.
4831         * doc/c-strcaseeq.texi: Likewise.
4832         * doc/c-strcasestr.texi: Likewise.
4833         * doc/c-strstr.texi: Likewise.
4834         * doc/c-strtod.texi: Likewise.
4835         * doc/c-strtold.texi: Likewise.
4836         * doc/ctime.texi: Likewise.
4837         * doc/error.texi: Likewise.
4838         * doc/fdl.texi: Likewise.
4839         * doc/gcd.texi: Likewise.
4840         * doc/getdate.texi: Likewise.
4841         * doc/gnulib-intro.texi: Likewise.
4842         * doc/gnulib-tool.texi: Likewise.
4843         * doc/gnulib.texi: Likewise.
4844         * doc/inet_ntoa.texi: Likewise.
4845         * doc/maintain.texi: Likewise.
4846         * doc/make-stds.texi: Likewise.
4847         * doc/quote.texi: Likewise.
4848         * doc/regexprops-generic.texi: Likewise.
4849         * doc/standards.texi: Likewise.
4850         * doc/verify.texi: Likewise.
4851         * doc/visibility.texi: Likewise.
4852         * doc/gnulib.texi (GNU Free Documentation License): Include
4853         fdl-1.3.texi instead of fdl.texi.
4854
4855 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4856
4857         * doc/fdl-1.3.texi: New file, from
4858         <http://www.gnu.org/licenses/fdl-1.3.texi>.
4859         * modules/fdl-1.3: Add.
4860         * MODULES.html.sh: Add fdl-1.3.
4861
4862 2008-11-03  Bruno Haible  <bruno@clisp.org>
4863
4864         Make determination of absolute name of header file work with AIX xlc.
4865         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
4866         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
4867         preprocessing.
4868         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4869         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
4870
4871 2008-11-03  Simon Josefsson  <simon@josefsson.org>
4872
4873         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
4874         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
4875         <ludo@gnu.org>.
4876
4877 2008-11-02  Bruno Haible  <bruno@clisp.org>
4878
4879         Mark 'strpbrk' obsolete.
4880         * modules/strpbrk (Status, Notice): New sections.
4881         * modules/strtok_r (Depends-on): Add strpbrk.
4882
4883 2008-11-02  Bruno Haible  <bruno@clisp.org>
4884
4885         Mark 'strdup' obsolete.
4886         * modules/strdup (Status, Notice): New sections.
4887         * modules/findprog (Depends-on): Add strdup.
4888         * modules/getaddrinfo (Depends-on): Likewise.
4889         * modules/localename (Depends-on): Likewise.
4890         * modules/relocatable-lib (Depends-on): Likewise.
4891         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
4892         * modules/relocatable-prog (Depends-on): Likewise.
4893         * modules/trim (Depends-on): Likewise.
4894         * modules/unictype/gen-ctype (Depends-on): Likewise.
4895         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
4896
4897 2008-11-02  Bruno Haible  <bruno@clisp.org>
4898
4899         Mark 'strcspn' obsolete.
4900         * modules/strcspn (Status, Notice): New sections.
4901
4902 2008-11-02  Bruno Haible  <bruno@clisp.org>
4903
4904         Mark 'rmdir' obsolete.
4905         * modules/rmdir (Status, Notice): New sections.
4906         * modules/clean-temp (Depends-on): Add rmdir.
4907         * modules/openat (Depends-on): Likewise.
4908
4909 2008-11-02  Bruno Haible  <bruno@clisp.org>
4910
4911         Mark 'raise' obsolete.
4912         * modules/raise (Status, Notice): New sections.
4913         (Include): Specify <signal.h>.
4914         * modules/stdio (Depends-on): Add raise.
4915         * modules/write (Depends-on): Likewise.
4916
4917 2008-11-02  Bruno Haible  <bruno@clisp.org>
4918
4919         Mark 'memset' obsolete.
4920         * modules/memset (Status, Notice): New sections.
4921
4922 2008-11-02  Bruno Haible  <bruno@clisp.org>
4923
4924         Mark 'memmove' obsolete.
4925         * modules/memmove (Status, Notice): New sections.
4926         * modules/argp (Depends-on): Add memmove.
4927         * modules/argz (Depends-on): Likewise.
4928         * modules/canonicalize (Depends-on): Likewise.
4929         * modules/canonicalize-lgpl (Depends-on): Likewise.
4930         * modules/fts (Depends-on): Likewise.
4931         * modules/getcwd (Depends-on): Likewise.
4932         * modules/human (Depends-on): Likewise.
4933         * modules/regex (Depends-on): Likewise.
4934         * modules/striconveh (Depends-on): Likewise.
4935         * modules/trim (Depends-on): Likewise.
4936         * modules/unistr/u8-move (Depends-on): Likewise.
4937         * modules/unistr/u16-move (Depends-on): Likewise.
4938         * modules/unistr/u32-move (Depends-on): Likewise.
4939
4940 2008-11-02  Bruno Haible  <bruno@clisp.org>
4941
4942         Mark 'memcpy' obsolete.
4943         * modules/memcpy (Status, Notice): New sections.
4944
4945 2008-11-02  Bruno Haible  <bruno@clisp.org>
4946
4947         Mark 'memcmp' obsolete.
4948         * modules/memcmp (Status, Notice): New sections.
4949         * modules/argmatch (Depends-on): Add memchr.
4950         * modules/backupfile (Depends-on): Likewise.
4951         * modules/c-strcasestr (Depends-on): Likewise.
4952         * modules/crypto/des (Depends-on): Likewise.
4953         * modules/csharpcomp (Depends-on): Likewise.
4954         * modules/fnmatch (Depends-on): Likewise.
4955         * modules/git-merge-changelog (Depends-on): Likewise.
4956         * modules/isnand (Depends-on): Likewise.
4957         * modules/isnand-nolibm (Depends-on): Likewise.
4958         * modules/isnanf (Depends-on): Likewise.
4959         * modules/isnanf-nolibm (Depends-on): Likewise.
4960         * modules/isnanl (Depends-on): Likewise.
4961         * modules/isnanl-nolibm (Depends-on): Likewise.
4962         * modules/mbchar (Depends-on): Likewise.
4963         * modules/memcoll (Depends-on): Likewise.
4964         * modules/quotearg (Depends-on): Likewise.
4965         * modules/regex (Depends-on): Likewise.
4966         * modules/relocatable-prog (Depends-on): Likewise.
4967         * modules/same (Depends-on): Likewise.
4968         * modules/signbit (Depends-on): Likewise.
4969         * modules/strcasestr-simple (Depends-on): Likewise.
4970         * modules/unictype/gen-ctype (Depends-on): Likewise.
4971         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
4972         * modules/uniname/uniname (Depends-on): Likewise.
4973         * modules/unistr/u8-cmp (Depends-on): Likewise.
4974
4975 2008-11-02  Bruno Haible  <bruno@clisp.org>
4976
4977         Mark 'memchr' obsolete.
4978         * modules/memchr (Status, Notice): New sections.
4979         * modules/argp (Depends-on): Add memchr.
4980         * modules/base64 (Depends-on): Likewise.
4981         * modules/c-strcasestr (Depends-on): Likewise.
4982         * modules/chdir-long (Depends-on): Likewise.
4983         * modules/fnmatch (Depends-on): Likewise.
4984         * modules/getsubopt (Depends-on): Likewise.
4985         * modules/git-merge-changelog (Depends-on): Likewise.
4986         * modules/glob (Depends-on): Likewise.
4987         * modules/strcasestr-simple (Depends-on): Likewise.
4988         * modules/strnlen (Depends-on): Likewise.
4989
4990 2008-11-02  Bruno Haible  <bruno@clisp.org>
4991
4992         Mark 'atexit' obsolete.
4993         * modules/atexit (Status, Notice): New sections.
4994         * modules/chdir-long (Depends-on): Add atexit.
4995         * modules/wait-process (Depends-on): Likewise.
4996
4997 2008-11-02  Bruno Haible  <bruno@clisp.org>
4998
4999         * gnulib-tool: New option --with-obsolete.
5000         (func_usage): Document it.
5001         (func_modules_transitive_closure): Drop obsolete dependencies if
5002         incobsolete is not true.
5003         (func_import): Read and save the incobsolete variable to the cache.
5004
5005 2008-11-02  Bruno Haible  <bruno@clisp.org>
5006
5007         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5008         * gnulib-tool: New option --extract-status.
5009         (func_usage): Document it.
5010         (sed_extract_prog): Recognize it.
5011         (func_get_status): New function.
5012
5013 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5014
5015         * modules/sockets (License): Change from LGPL to LGPLv2+.
5016
5017 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5018
5019         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5020
5021 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5022
5023         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5024         Mention times and sys_times.
5025         * modules/sys_times, modules/sys_times-tests: New modules.
5026         * modules/times, modules/times-tests: Likewise
5027         * m4/sys_times_h.m4: New file.
5028         * lib/sys_times.in.h: Likewise
5029         * lib/times.c: Likewise.
5030         * tests/test-sys_times.c: Likewise.
5031         * tests/test-times.c: Likewise.
5032         * doc/posix-headers/sys_times.texi: Update.
5033         * doc/posix-functions/times.texi: Update.
5034
5035 2008-10-28  Jim Meyering  <meyering@redhat.com>
5036
5037         * modules/tempname (Depends-on): Add lstat.
5038
5039         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5040
5041 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5042
5043         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5044         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5045         using idiom used elsewhere in gnulib.
5046
5047 2008-10-27  Jim Meyering  <meyering@redhat.com>
5048
5049         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5050
5051 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5052
5053         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5054         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5055         programs.
5056         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5057
5058 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5059
5060         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5061
5062 2008-10-27  Bruno Haible  <bruno@clisp.org>
5063
5064         * tests/test-lstat.c: Include <stdio.h>.
5065
5066 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5067
5068         * modules/lstat-tests: New module.
5069         * tests/test-lstat.c: New file.
5070
5071 2008-10-26  Jim Meyering  <meyering@redhat.com>
5072
5073         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5074
5075 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5076             Bruno Haible  <bruno@clisp.org>
5077
5078         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5079         * modules/configmake (Include): Add a note that the include must come
5080         after all system headers.
5081         * lib/javaversion.c: Include configmake.h after all other includes.
5082
5083 2008-10-26  Bruno Haible  <bruno@clisp.org>
5084
5085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5086         HAVE_STRUCT_RANDOM_DATA to 1.
5087         (gl_STDLIB_H): Simplify.
5088
5089 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5090
5091         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5092         substitute HAVE_STRUCT_RANDOM_DATA.
5093         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5094         random_data.
5095         * modules/stdlib (Makefile.am): Substitute
5096         HAVE_STRUCT_RANDOM_DATA.
5097
5098 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5099
5100         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5101         * doc/gnulib-intro.texi (Copyright): Likewise.
5102
5103 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5104
5105         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5106         findings.
5107
5108 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5109             Bruno Haible  <bruno@clisp.org>
5110
5111         * lib/unistd.in.h: Include <winsock2.h>.
5112         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5113         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5114         Provide dummy declarations.
5115         (gethostname): Override.
5116         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5117         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5118         gl_PREREQ_SYS_H_WINSOCK2.
5119         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5120         * doc/posix-functions/gethostname.texi: More details.
5121
5122 2008-10-25  Bruno Haible  <bruno@clisp.org>
5123
5124         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5125         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5126         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5127
5128         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5129         here ...
5130         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5131         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5132         gl_UNISTD_H_DEFAULTS.
5133
5134 2008-10-25  Eric Blake  <ebb9@byu.net>
5135
5136         signbit: avoid spurious compiler failure
5137         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5138         declarations inside function.
5139
5140 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5141             Bruno Haible  <bruno@clisp.org>
5142
5143         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5144         * modules/random_r (Depends-on): Add stdint.
5145
5146 2008-10-24  Bruno Haible  <bruno@clisp.org>
5147
5148         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5149         Eggert.
5150         * modules/strerror (License): Likewise.
5151
5152 2008-10-24  Jim Meyering  <meyering@redhat.com>
5153
5154         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5155         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5156
5157 2008-10-24  Eric Blake  <ebb9@byu.net>
5158
5159         getgroups: fix compilation when getgroups is available
5160         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5161         but with <config.h> override of getgroups disabled.
5162
5163 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5164
5165         * doc/gnulib.texi (Header files): Add note about C++ problems.
5166         Explained by Bruno Haible <bruno@clisp.org>.
5167
5168 2008-10-23  Bruno Haible  <bruno@clisp.org>
5169
5170         Define a dummy SA_NODEFER macro on Interix.
5171         * lib/signal.in.h (SA_NODEFER): Define fallback.
5172         Reported by Aleksey Cheusov <cheusov@tut.by> via
5173         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5174
5175 2008-10-23  Bruno Haible  <bruno@clisp.org>
5176
5177         * modules/freadahead (License): Change to LGPLv2+.
5178         Suggested by Simon Josefsson.
5179
5180 2008-10-23  Jim Meyering  <meyering@redhat.com>
5181
5182         random_r: new module
5183         * modules/random_r: New file.
5184         * m4/random_r.m4: New file.
5185         * lib/random_r.c: New file, from glibc.
5186         * modules/random_r-tests: New file.
5187         * tests/test-random_r.c: New file.
5188         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5189          Declare.
5190         (RAND_MAX): Define.
5191         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5192         * modules/stdlib: Substitute them, too.
5193         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5194         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5195         * doc/glibc-functions/random_r.texi: Likewise.
5196         * doc/glibc-functions/setstate_r.texi: Likewise.
5197         * doc/glibc-functions/srandom_r.texi: Likewise.
5198         * config/srclist.txt: Mention it.
5199
5200 2008-10-23  David Lutterkort  <lutter@redhat.com>
5201
5202         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5203         link requirement
5204
5205 2008-10-23  Jim Meyering  <meyering@redhat.com>
5206
5207         selinux-h: mark parameters of stub functions as intentionally unused
5208         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5209         * lib/se-context.in.h: Likewise.
5210
5211 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5212
5213         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5214
5215 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5216
5217         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5218
5219 2008-10-22  Eric Blake  <ebb9@byu.net>
5220
5221         glthread/thread: avoid compiler warning
5222         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5223         Add unreachable abort to silence compiler.
5224
5225 2008-10-22  Eric Blake  <ebb9@byu.net>
5226
5227         netdb: also supply struct addrinfo for cygwin 1.5.x
5228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5229         older cygwin.
5230         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5231         cygwin.
5232         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5233
5234 2008-10-22  Bruno Haible  <bruno@clisp.org>
5235
5236         * users.txt: Update entry about pspp.
5237
5238 2008-10-21  Bruno Haible  <bruno@clisp.org>
5239
5240         Simplification.
5241         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5242         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5243
5244         Simplification.
5245         * lib/ioctl.c (ioctl): Don't undefine.
5246         * lib/socket.c (socket): Don't undefine.
5247
5248         Remove unused module indicator macros.
5249         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5250         GNULIB_$1 as a C macro.
5251
5252         * doc/posix-functions/close.texi: Undo last change.
5253         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5254         Windows platforms.
5255
5256 2008-10-21  Bruno Haible  <bruno@clisp.org>
5257
5258         Add gethostname() declaration to <unistd.h>.
5259         * lib/unistd.in.h (gethostname): New declaration.
5260         * lib/gethostname.c: Include <unistd.h>.
5261         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5262         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5264         and HAVE_GETHOSTNAME.
5265         * modules/gethostname (Depends-on): Add unistd.
5266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5267         (Include): Specify <unistd.h>.
5268         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5269         HAVE_GETHOSTNAME.
5270         * tests/test-gethostname.c: Include <unistd.h> first.
5271
5272 2008-10-21  Bruno Haible  <bruno@clisp.org>
5273
5274         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5275         * modules/select-tests (Depends-on): Likewise.
5276         Reported by Simon Josefsson.
5277
5278 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5279
5280         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5281         * lib/accept.c: New file, based on winsock.c.
5282         * lib/bind.c: New file, based on winsock.c.
5283         * lib/connect.c: New file, based on winsock.c.
5284         * lib/getpeername.c: New file, based on winsock.c.
5285         * lib/getsockname.c: New file, based on winsock.c.
5286         * lib/getsockopt.c: New file, based on winsock.c.
5287         * lib/ioctl.c: New file, based on winsock.c.
5288         * lib/listen.c: New file, based on winsock.c.
5289         * lib/recv.c: New file, based on winsock.c.
5290         * lib/recvfrom.c: New file, based on winsock.c.
5291         * lib/send.c: New file, based on winsock.c.
5292         * lib/sendto.c: New file, based on winsock.c.
5293         * lib/setsockopt.c: New file, based on winsock.c.
5294         * lib/shutdown.c: New file, based on winsock.c.
5295         * lib/socket.c: New file, based on winsock.c.
5296         * lib/w32sock.h: New file, based on winsock.c.
5297         * lib/winsock.c: Remove file.
5298         * modules/accept: Likewise.
5299         * modules/bind: Likewise.
5300         * modules/connect: Likewise.
5301         * modules/getpeername: Likewise.
5302         * modules/getsockname: Likewise.
5303         * modules/getsockopt: Likewise.
5304         * modules/ioctl: Likewise.
5305         * modules/listen: Likewise.
5306         * modules/recv: Likewise.
5307         * modules/recvfrom: Likewise.
5308         * modules/send: Likewise.
5309         * modules/sendto: Likewise.
5310         * modules/setsockopt: Likewise.
5311         * modules/shutdown: Likewise.
5312         * modules/socket: Use socket.c instead of winsock.c.
5313         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5314         * doc/posix-functions/accept.texi: Doc fix.
5315         * doc/posix-functions/bind.texi: Doc fix.
5316         * doc/posix-functions/close.texi: Doc fix.
5317         * doc/posix-functions/connect.texi: Doc fix.
5318         * doc/posix-functions/getpeername.texi: Doc fix.
5319         * doc/posix-functions/getsockname.texi: Doc fix.
5320         * doc/posix-functions/getsockopt.texi: Doc fix.
5321         * doc/posix-functions/ioctl.texi: Doc fix.
5322         * doc/posix-functions/listen.texi: Doc fix.
5323         * doc/posix-functions/recv.texi: Doc fix.
5324         * doc/posix-functions/recvfrom.texi: Doc fix.
5325         * doc/posix-functions/send.texi: Doc fix.
5326         * doc/posix-functions/sendto.texi: Doc fix.
5327         * doc/posix-functions/setsockopt.texi: Doc fix.
5328         * doc/posix-functions/shutdown.texi: Doc fix.
5329         * doc/posix-functions/socket.texi: Doc fix.
5330
5331 2008-10-20  Bruno Haible  <bruno@clisp.org>
5332
5333         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5334         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5335         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5336         as an alias for SIGABRT.
5337         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5338         (sigaction): Map it to SIGABRT.
5339         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5340
5341 2008-10-20  Bruno Haible  <bruno@clisp.org>
5342
5343         * lib/fts.c: Don't include lstat.h.
5344         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5345
5346         Move the lstat() declaration to <sys/stat.h>.
5347         * lib/lstat.h: Remove file.
5348         * lib/sys_stat.in.h: Add special invocation convention.
5349         (lstat): New declaration.
5350         * lib/lstat.c (orig_lstat): New function.
5351         (rpl_lstat): Use orig_lstat instead of lstat.
5352         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5353         AC_C_INLINE. Set REPLACE_LSTAT.
5354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5355         and REPLACE_LSTAT.
5356         * modules/lstat (Files): Remove lib/lstat.h.
5357         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5358         (Include): Specify <sys/stat.h> instead of lstat.h.
5359         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5360         REPLACE_LSTAT.
5361         * NEWS: Mention the change.
5362
5363 2008-10-20  Bruno Haible  <bruno@clisp.org>
5364
5365         * modules/posix_spawn-tests: New file.
5366         * tests/test-posix_spawn3.c: New file.
5367
5368 2008-10-20  Bruno Haible  <bruno@clisp.org>
5369
5370         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5371         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5372         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5373         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5374         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5375
5376 2008-10-20  Bruno Haible  <bruno@clisp.org>
5377
5378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5379         of posix_spawn on AIX 5.3.
5380
5381 2008-10-20  Bruno Haible  <bruno@clisp.org>
5382
5383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5384
5385 2008-10-20  Bruno Haible  <bruno@clisp.org>
5386
5387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5388         of AC_LANG_PROGRAM.
5389
5390 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5391
5392         * lib/netdb.in.h: Don't define GNU specific constants until they
5393         are supported or needed.  Reported by Bruno Haible
5394         <bruno@clisp.org>.
5395
5396 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5397
5398         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5399
5400 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5401
5402         * lib/getaddrinfo.h: Remove file.
5403         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5404         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5405         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5406         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5407         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5408         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5409         * tests/test-getaddrinfo.c: Likewise.
5410         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5411         * NEWS: Mention change.
5412
5413 2008-10-19  Bruno Haible  <bruno@clisp.org>
5414
5415         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5416
5417 2008-10-19  Bruno Haible  <bruno@clisp.org>
5418
5419         * lib/wait-process.c: Include simply <sys/wait.h>.
5420         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5421         WIFSTOPPED): Remove fallback definitions.
5422         * modules/wait-process (Depends-on): Add sys_wait.
5423
5424         New module 'sys_wait'.
5425         * modules/sys_wait: New file.
5426         * lib/sys_wait.in.h: New file, partially copied from
5427         lib/wait-process.c.
5428         * m4/sys_wait_h.m4: New file.
5429         * doc/posix-headers/sys_wait.texi: Mention the new module.
5430
5431 2008-10-19  Bruno Haible  <bruno@clisp.org>
5432
5433         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5434
5435 2008-10-19  Bruno Haible  <bruno@clisp.org>
5436
5437         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5438         * lib/wait-process.c (WAIT_T): Remove type.
5439         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5440         (wait_subprocess): Update.
5441
5442 2008-10-19  Bruno Haible  <bruno@clisp.org>
5443
5444         New module 'atoll'.
5445         * modules/atoll: New file.
5446         * lib/stdlib.in.h (atoll): New declaration.
5447         * lib/atoll.c: New file, from glibc with modifications.
5448         * m4/atoll.m4: New file.
5449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5450         HAVE_ATOLL.
5451         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5452         * doc/posix-functions/atoll.texi: Mention the new module.
5453
5454 2008-10-19  Bruno Haible  <bruno@clisp.org>
5455
5456         Add strtoull() declaration to <stdlib.h>.
5457         * lib/stdlib.in.h (strtoull): New declaration.
5458         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5459         Set HAVE_STRTOULL.
5460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5461         HAVE_STRTOULL.
5462         * modules/strtoull (Depends-on): Add stdlib.
5463         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5464         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5465         HAVE_STRTOULL.
5466
5467 2008-10-19  Bruno Haible  <bruno@clisp.org>
5468
5469         Add strtoll() declaration to <stdlib.h>.
5470         * lib/stdlib.in.h (strtoll): New declaration.
5471         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5472         Set HAVE_STRTOLL.
5473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5474         HAVE_STRTOLL.
5475         * modules/strtoll (Depends-on): Add stdlib.
5476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5477         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5478
5479 2008-10-19  Bruno Haible  <bruno@clisp.org>
5480
5481         * modules/bcopy (Depends-on): Add strings.
5482         (Include): Specify <strings.h>.
5483
5484 2008-10-19  Bruno Haible  <bruno@clisp.org>
5485
5486         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5487
5488 2008-10-19  Bruno Haible  <bruno@clisp.org>
5489
5490         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5491         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5492         mingw.
5493
5494 2008-10-19  Bruno Haible  <bruno@clisp.org>
5495
5496         * lib/atanl.c: Don't include isnanl.h.
5497         * lib/cosl.c: Likewise.
5498         * lib/ldexpl.c: Likewise.
5499         * lib/logl.c: Likewise.
5500         * lib/sinl.c: Likewise.
5501         * lib/sqrtl.c: Likewise.
5502         * lib/tanl.c: Likewise.
5503
5504         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5505         * lib/isnanf.h: Remove file.
5506         * lib/isnand.h: Remove file.
5507         * lib/isnanl.h: Remove file.
5508         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5509         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5510         macros.
5511         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5512         HAVE_ISNANF, don't define it as a C macro.
5513         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5514         HAVE_ISNAND, don't define it as a C macro.
5515         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5516         HAVE_ISNANL, don't define it as a C macro.
5517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5518         HAVE_ISNAN[FDL].
5519         * modules/isnanf (Files): Remove lib/isnanf.h.
5520         (Depends-on): Add math.
5521         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5522         (Include): Specify <math.h> instead of isnanf.h.
5523         * modules/isnand (Files): Remove lib/isnand.h.
5524         (Depends-on): Add math.
5525         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5526         (Include): Specify <math.h> instead of isnand.h.
5527         * modules/isnanl (Files): Remove lib/isnanl.h.
5528         (Depends-on): Add math.
5529         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5530         (Include): Specify <math.h> instead of isnanl.h.
5531         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5532         HAVE_ISNAN[FDL].
5533         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5534         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5535         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5536         * NEWS: Mention the change.
5537
5538 2008-10-18  Bruno Haible  <bruno@clisp.org>
5539
5540         Add getusershell(), setusershell(), endusershell() declarations to
5541         <unistd.h>.
5542         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5543         declarations.
5544         * lib/getusershell.c: Include unistd.h.
5545         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5546         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5547         HAVE_GETUSERSHELL.
5548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5549         and HAVE_GETUSERSHELL.
5550         * modules/getusershell (Depends-on): Add unistd, extensions.
5551         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5552         (Include): Specify <unistd.h>.
5553         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5554         HAVE_GETUSERSHELL.
5555
5556 2008-10-18  Bruno Haible  <bruno@clisp.org>
5557
5558         Add a getloadavg() declaration to <stdlib.h>.
5559         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5560         getloadavg declaration.
5561         (getloadavg): New declaration.
5562         * lib/getloadavg.c: Include <stdlib.h> first.
5563         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5564         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5565         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5567         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5568         * modules/getloadavg (Depends-on): Add stdlib, extensions.
5569         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5570         (Include): Specify <stdlib.h>.
5571         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5572         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5573
5574 2008-10-18  Bruno Haible  <bruno@clisp.org>
5575
5576         * lib/dirchownmod.c: Don't include lchmod.h.
5577
5578         Move the lchmod() declaration to <sys/stat.h>.
5579         * lib/lchmod.h: Remove file.
5580         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5581         (lchmod): New declaration, moved here from lib/lchown.h.
5582         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5583         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5585         and HAVE_LCHMOD.
5586         * modules/lchmod (Files): Remove lib/lchmod.h.
5587         (Depends-on): Add sys_stat, extensions.
5588         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5589         (Include): Specify <sys/stat.h> instead of lchmod.h.
5590         * modules/sys_stat (Depends-on): Add link-warning.
5591         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5592         definition of GL_LINK_WARNING.
5593         * NEWS: Mention the change.
5594
5595 2008-10-18  Bruno Haible  <bruno@clisp.org>
5596
5597         * lib/fchdir.c: Don't include dirfd.h.
5598         * lib/fts.c: Likewise.
5599         * lib/getcwd.c: Likewise.
5600         * lib/glob.c: Likewise.
5601
5602         Move the dirfd() declaration to <dirent.h>.
5603         * lib/dirfd.h: Remove file.
5604         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5605         (dirfd): New declaration.
5606         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5607         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5608         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
5609         HAVE_DECL_DIRFD.
5610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
5611         HAVE_DECL_DIRFD.
5612         * modules/dirfd (Files): Remove lib/dirfd.h.
5613         (Depends-on): Add dirent, extensions.
5614         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
5615         (Include): Specify <dirent.h> instead of dirfd.h.
5616         * modules/dirent (Depends-on): Add link-warning.
5617         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
5618         definition of GL_LINK_WARNING.
5619         * NEWS: Mention the change.
5620
5621 2008-10-18  Bruno Haible  <bruno@clisp.org>
5622
5623         Move the euidaccess() declaration to <unistd.h>.
5624         * lib/euidaccess.h: Remove file.
5625         * lib/unistd.in.h (euidaccess): New declaration.
5626         * lib/euidaccess.c: Don't include euidaccess.h.
5627         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
5628         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
5629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
5630         and HAVE_EUIDACCESS.
5631         * modules/euidaccess (Files): Remove lib/euidaccess.h.
5632         (Depends-on): Add unistd.
5633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5634         (Include): Specify <unistd.h> instead of euidaccess.h.
5635         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
5636         HAVE_EUIDACCESS.
5637         * NEWS: Mention the change.
5638
5639 2008-10-18  Bruno Haible  <bruno@clisp.org>
5640
5641         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
5642
5643         Move the getdomainname() declaration to <unistd.h>.
5644         * lib/getdomainname.h: Remove file.
5645         * lib/unistd.in.h (getdomainname): New declaration.
5646         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
5647         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5648         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5649         HAVE_GETDOMAINNAME.
5650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5651         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
5652         * modules/getdomainname (Files): Remove lib/getdomainname.h.
5653         (Depends-on): Add unistd, extensions.
5654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5655         (Includes): Specify <unistd.h> instead of getdomainname.h.
5656         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
5657         HAVE_GETDOMAINNAME.
5658         * NEWS: Mention the change.
5659
5660 2008-10-18  Bruno Haible  <bruno@clisp.org>
5661
5662         * modules/dirent: New file.
5663         * m4/dirent_h.m4: New file.
5664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
5665         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
5666         * modules/fchdir (Files): Remove lib/dirent.in.h.
5667         (Depends-on): Add dirent.
5668         (Makefile.am): Move rules to modules/dirent.
5669         * doc/posix-headers/dirent.texi: Mention the new module.
5670
5671 2008-10-18  Bruno Haible  <bruno@clisp.org>
5672
5673         Avoid -Wunused-parameter warnings in public gnulib header files.
5674         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
5675         macro.
5676         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
5677
5678 2008-10-18  Bruno Haible  <bruno@clisp.org>
5679
5680         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
5681         * doc/glibc-functions/error.texi: Mention the module 'error'.
5682         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
5683         * doc/glibc-functions/getdomainname.texi: Mention the module
5684         'getdomainname'.
5685         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
5686         * doc/glibc-functions/getpagesize.texi: Mention the module
5687         'getpagesize'.
5688         * doc/glibc-functions/getusershell.texi: Mention the module
5689         'getusershell'.
5690         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
5691         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
5692         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
5693         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
5694         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
5695         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
5696         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
5697         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
5698         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
5699         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
5700         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
5701         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
5702         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
5703         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
5704
5705 2008-10-17  Bruno Haible  <bruno@clisp.org>
5706
5707         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
5708         HP-UX and IRIX, use -0.0L.
5709         * tests/test-ceill.c (minus_zero): Likewise.
5710         * tests/test-floorl.c (minus_zero): Likewise.
5711         * tests/test-frexpl.c (minus_zero): Likewise.
5712         * tests/test-isnan.c (minus_zerol): Likewise.
5713         * tests/test-isnanl.h (minus_zero): Likewise.
5714         * tests/test-ldexpl.c (minus_zero): Likewise.
5715         * tests/test-roundl.c (minus_zero): Likewise.
5716         * tests/test-signbit.c (minus_zerol): Likewise.
5717         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5718         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5719         * tests/test-truncl.c (minus_zero): Likewise.
5720         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5721         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5722         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
5723         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5724
5725 2008-10-17  Bruno Haible  <bruno@clisp.org>
5726
5727         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
5728         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
5729         that it gets activated only for gcc >= 3.0.
5730         * lib/dirent.in.h: Likewise.
5731         * lib/errno.in.h: Likewise.
5732         * lib/fcntl.in.h: Likewise.
5733         * lib/float.in.h: Likewise.
5734         * lib/iconv.in.h: Likewise.
5735         * lib/inttypes.in.h: Likewise.
5736         * lib/locale.in.h: Likewise.
5737         * lib/math.in.h: Likewise.
5738         * lib/netdb.in.h: Likewise.
5739         * lib/netinet_in.in.h: Likewise.
5740         * lib/search.in.h: Likewise.
5741         * lib/signal.in.h: Likewise.
5742         * lib/spawn.in.h: Likewise.
5743         * lib/stdarg.in.h: Likewise.
5744         * lib/stdint.in.h: Likewise.
5745         * lib/stdio.in.h: Likewise.
5746         * lib/stdlib.in.h: Likewise.
5747         * lib/string.in.h: Likewise.
5748         * lib/strings.in.h: Likewise.
5749         * lib/sys_file.in.h: Likewise.
5750         * lib/sys_ioctl.in.h: Likewise.
5751         * lib/sys_select.in.h: Likewise.
5752         * lib/sys_socket.in.h: Likewise.
5753         * lib/sys_stat.in.h: Likewise.
5754         * lib/sys_time.in.h: Likewise.
5755         * lib/sysexits.in.h: Likewise.
5756         * lib/time.in.h: Likewise.
5757         * lib/unistd.in.h: Likewise.
5758         * lib/wchar.in.h: Likewise.
5759         * lib/wctype.in.h: Likewise.
5760         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5761
5762 2008-10-17  Jim Meyering  <meyering@redhat.com>
5763
5764         ignore-value: don't depend on inline module
5765         * modules/ignore-value (Depends-on): Remove 'inline'.
5766         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
5767         Suggestion from Bruno Haible.
5768
5769 2008-10-17  Bruno Haible  <bruno@clisp.org>
5770
5771         New implementation of condition variables for Win32.
5772         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
5773         (gl_linked_waitqueue_t): New type.
5774         (gl_cond_t): Use it.
5775         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
5776         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5777         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
5778         (glthread_cond_init_func, glthread_cond_wait_func,
5779         glthread_cond_timedwait_func, glthread_cond_signal_func,
5780         glthread_cond_broadcast_func, glthread_cond_destroy_func):
5781         Reimplemented on the basis of gl_linked_waitqueue_t.
5782         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
5783         gl_waitqueue_t.
5784         (gl_rwlock_t): Update.
5785         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
5786
5787 2008-10-17  Simon Josefsson  <simon@josefsson.org>
5788
5789         * modules/recvfrom (Depends-on): Add dependency on getpeername.
5790         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5791
5792 2008-10-17  Jim Meyering  <meyering@redhat.com>
5793
5794         ignore-value: new module
5795         * modules/ignore-value: New file.
5796         * lib/ignore-value.h: New file.
5797         * MODULES.html.sh (Compiler warning management): New section,
5798         just for this module.  More to come.
5799
5800 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5801
5802         open-safer.c: avoid 'signed and unsigned in conditional...' warning
5803         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5804         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
5805
5806 2008-10-16  Jim Meyering  <meyering@redhat.com>
5807
5808         openat-die.c: avoid 'no previous prototype' warning
5809         * lib/openat-die.c: Include "openat.h".
5810         Reported by Reuben Thomas <rrt@sc3d.org>.
5811
5812 2008-10-16  Simon Josefsson  <simon@josefsson.org>
5813
5814         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
5815         * lib/netdb.in.h: Fix typo.
5816         Reported by Bruno Haible  <bruno@clisp.org>
5817
5818         * lib/netdb.in.h: Include sys/socket.h for platforms without
5819         netdb.h, to get structures like hostent on MinGW.
5820         * modules/netdb (Depends-on): Add sys_socket.
5821
5822 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5823
5824         * modules/netdb, modules/netdb-tests: New file.
5825         * m4/netdb_h.m4: New file.
5826         * lib/netdb.in.h: Add, currently just an empty file pending
5827         definitions.
5828         * tests/test-netdb.c: New file.
5829         * doc/posix-headers/netdb.texi: Mention that we replace it if
5830         needed.
5831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5832         netdb.
5833
5834 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5835
5836         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
5837         with code.
5838
5839 2008-10-13  Bruno Haible  <bruno@clisp.org>
5840
5841         * lib/glthread/cond.c (glthread_cond_wait_func,
5842         glthread_cond_timedwait_func): Add a comment.
5843
5844 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5845
5846         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
5847         * tests/test-select.c: Likewise,
5848
5849 2008-10-13  Bruno Haible  <bruno@clisp.org>
5850
5851         * lib/glthread/cond.c (glthread_cond_wait_func,
5852         glthread_cond_timedwait_func): Fix variable name.
5853         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5854
5855 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5856
5857         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
5858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
5859         struct sockaddr.sa_len.
5860         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
5861
5862 2008-10-13  Simon Josefsson  <simon@josefsson.org>
5863
5864         * build-aux/pmccabe2html: Add css and css_url parameters.
5865
5866 2008-10-12  Bruno Haible  <bruno@clisp.org>
5867
5868         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
5869         calling aclx_get.
5870         Reported by Rainer Tammer <tammer@tammer.net>.
5871
5872 2008-10-12  Bruno Haible  <bruno@clisp.org>
5873
5874         Use msvcrt aware primitives for creation/termination of Win32 threads.
5875         * lib/glthread/thread.c: Include <process.h>.
5876         (glthread_create_func): Use _beginthreadex instead of CreateThread.
5877         (wrapper_func): Update signature.
5878         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
5879
5880 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5881             Bruno Haible  <bruno@clisp.org>
5882
5883         Provide a Win32 implementation of the 'cond' module.
5884         * lib/glthread/cond.h [USE_WIN32]: New implementation.
5885         * lib/glthread/cond.c (glthread_cond_init_func,
5886         glthread_cond_wait_func, glthread_cond_timedwait_func,
5887         glthread_cond_signal_func, glthread_cond_broadcast_func,
5888         glthread_cond_destroy_func) [USE_WIN32]: New functions.
5889         * modules/cond (Dependencies): Add gettimeofday.
5890
5891 2008-10-11  Bruno Haible  <bruno@clisp.org>
5892
5893         Make sleep work on older versions of mingw.
5894         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
5895         only whether it exists.
5896         * doc/posix-functions/sleep.texi: Mention the problem with older
5897         versions of mingw.
5898
5899 2008-10-11  Bruno Haible  <bruno@clisp.org>
5900
5901         New module 'shutdown'.
5902         * modules/shutdown: New file.
5903         * lib/sys_socket.in.h (shutdown): New declaration.
5904         * lib/winsock.c (shutdown): New function.
5905         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5906         GNULIB_SHUTDOWN.
5907         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
5908         * doc/posix-functions/shutdown.texi: Document the new module.
5909
5910 2008-10-11  Jim Meyering  <meyering@redhat.com>
5911
5912         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
5913
5914 2008-10-11  Bruno Haible  <bruno@clisp.org>
5915
5916         New module 'fclose'.
5917         * modules/fclose: New file.
5918         * lib/stdio.in.h (fclose): New declaration.
5919         * lib/fclose.c: New file.
5920         * m4/fclose.m4: New file.
5921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
5922         REPLACE_FCLOSE.
5923         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
5924         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
5925         REPLACE_FCLOSE.
5926         * modules/close (Depends-on): fclose.
5927         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
5928
5929 2008-10-11  Bruno Haible  <bruno@clisp.org>
5930
5931         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
5932         set errno and don't call _close.
5933
5934 2008-10-10  Bruno Haible  <bruno@clisp.org>
5935
5936         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
5937         ACL, not afterwards. Fixes test failure on Cygwin.
5938
5939 2008-10-09  Ben Pfaff  <blp@gnu.org>
5940
5941         * build-aux/announce-gen: Fix gnulib version related part of usage
5942         message.  Die with a useful error message if no tarballs are
5943         found.
5944
5945 2008-10-10  Jim Meyering  <meyering@redhat.com>
5946
5947         bootstrap: use git's --depth=N option only if it's supported
5948         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
5949         recognize the --depth option.  Reported by Pádraig Brady.
5950
5951 2008-10-09  Bruno Haible  <bruno@clisp.org>
5952
5953         New module 'ioctl'.
5954         * modules/ioctl: New file.
5955         * lib/sys_socket.in.h (ioctl): Remove declaration.
5956         * lib/winsock.c: Include <sys/ioctl.h>.
5957         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
5958         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5959         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
5960         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
5961         * doc/posix-functions/ioctl.texi: Mention the new module.
5962
5963 2008-10-09  Bruno Haible  <bruno@clisp.org>
5964
5965         New module 'sys_ioctl'.
5966         * lib/sys_ioctl.in.h: New file.
5967         * m4/sys_ioctl_h.m4: New file.
5968         * modules/sys_ioctl: New file.
5969         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
5970
5971 2008-10-09  Bruno Haible  <bruno@clisp.org>
5972
5973         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
5974         * lib/winsock.c: Include <stdarg.h>.
5975         (rpl_ioctl): Change to second argument 'int' and then varargs.
5976
5977 2008-10-09  Bruno Haible  <bruno@clisp.org>
5978
5979         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
5980         when the sys_socket module is present and the system has <winsock2.h>.
5981
5982 2008-10-09  Bruno Haible  <bruno@clisp.org>
5983
5984         * doc/posix-functions/close.texi: Mention module 'close' instead of
5985         module 'sys_socket'.
5986
5987 2008-10-09  Bruno Haible  <bruno@clisp.org>
5988
5989         * doc/glibc-headers/sys_ioctl.texi: New file.
5990         * doc/gnulib.texi: Include it.
5991
5992 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
5993             Bruno Haible  <bruno@clisp.org>
5994
5995         Combine the two replacements of 'close'.
5996         * lib/sys_socket.in.h (close): Define to a reminder to include
5997         <unistd.h>.
5998         (_gl_close_fd_maybe_socket): New declaration.
5999         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6000         * lib/winsock.c (close): Remove undefinition.
6001         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6002         needed for the gnulib module 'close'.
6003         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6004         define to an error symbol or to a warning, if suitable.
6005         * lib/close.c: Include <sys/socket.h>.
6006         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6007         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6008         UNISTD_H_HAVE_WINSOCK2_H.
6009         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6011         UNISTD_H_HAVE_WINSOCK2_H.
6012         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6013         (configure.ac): Set a module indicator.
6014         (Makefile.am): Substitute GNULIB_CLOSE.
6015         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6016         * modules/poll-tests (Depends-on): Add close.
6017         * modules/select-tests (Depends-on): Likewise.
6018
6019 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6020             Bruno Haible  <bruno@clisp.org>
6021
6022         New module 'close'.
6023         * modules/close: New file.
6024         * lib/unistd.in.h (close): Move declaration out of the
6025         FCHDIR_REPLACEMENT scope.
6026         (_gl_unregister_fd): New declaration.
6027         * lib/close.c: New file.
6028         * lib/fchdir.c (rpl_close): Remove function.
6029         * m4/close.m4: New file.
6030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6031         close.
6032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6033         REPLACE_CLOSE.
6034         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6035         REPLACE_CLOSE.
6036         * modules/fchdir (Depends-on): Add close.
6037
6038 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6039             Bruno Haible  <bruno@clisp.org>
6040
6041         * lib/fcntl.in.h (open): Simplify conditionals.
6042         (_gl_register_fd): New declaration.
6043         * lib/fchdir.c (rpl_open): Remove function.
6044         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6045         also.
6046         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6047         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6048         open.
6049
6050 2008-10-09  Jim Meyering  <meyering@redhat.com>
6051
6052         GNUmakefile: use the more name-space-friendly "_version"
6053         * top/GNUmakefile (_dummy): Update.
6054         (_version): Rename from "version".
6055
6056 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6057             Bruno Haible  <bruno@clisp.org>
6058
6059         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6060         rpl_close.
6061         (_gl_register_fd): New function, extracted from rpl_open.
6062         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6063         (rpl_open, rpl_opendir): Use _gl_register_fd.
6064
6065 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6066
6067         Fix organization of 'open' replacement.
6068         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6069         (gl_FUNC_OPEN): Use it.
6070         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6071
6072 2008-10-08  Bruno Haible  <bruno@clisp.org>
6073
6074         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6075
6076 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6077
6078         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6079         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6080         listen).
6081
6082 2008-10-08  Eric Blake  <ebb9@byu.net>
6083
6084         GNUmakefile: add 'make version' target
6085         * top/GNUmakefile (_curr-ver): Split version update rules...
6086         (version): ...into a target.
6087
6088 2008-10-07  Bruno Haible  <bruno@clisp.org>
6089
6090         Use a more portable replacement expression for -0.0L.
6091         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6092         instead of -0.0L. Fix m4 quotation.
6093
6094         * tests/test-signbit.c: Include <float.h>.
6095         (minus_zero): New variable.
6096         (test_signbitl): Use minus_zero instead of -zero.
6097         * modules/signbit-tests (Depends-on): Add float.
6098
6099         * tests/test-ceill.c: Include <float.h>.
6100         (zero): Remove variable.
6101         (minus_zero): New variable.
6102         (main): Use minus_zero instead of -zero.
6103         * modules/ceill-tests (Depends-on): Add float.
6104
6105         * tests/test-floorl.c: Include <float.h>.
6106         (zero): Remove variable.
6107         (minus_zero): New variable.
6108         (main): Use minus_zero instead of -zero.
6109         * modules/floorl-tests (Depends-on): Add float.
6110
6111         * tests/test-roundl.c: Include <float.h>.
6112         (zero): Remove variable.
6113         (minus_zero): New variable.
6114         (main): Use minus_zero instead of -zero.
6115         * modules/roundl-tests (Depends-on): Add float.
6116
6117         * tests/test-truncl.c: Include <float.h>.
6118         (zero): Remove variable.
6119         (minus_zero): New variable.
6120         (main): Use minus_zero instead of -zero.
6121         * modules/truncl-tests (Depends-on): Add float.
6122
6123         * tests/test-frexpl.c (zero): Remove variable.
6124         (minus_zero): New variable.
6125         (main): Use minus_zero instead of -zero.
6126         * modules/frexpl-tests (Depends-on): Add float.
6127
6128         * tests/test-isnan.c (zerol): Remove variable.
6129         (minus_zerol): New variable.
6130         (test_long_double): Use minus_zerol instead of -zerol.
6131         * modules/isnan-tests (Depends-on): Add float.
6132
6133         * tests/test-isnanl.h (zero): Remove variable.
6134         (minus_zero): New variable.
6135         (main): Use minus_zero instead of -zero.
6136         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6137         * modules/isnanl-tests (Depends-on): Add float.
6138
6139         * tests/test-ldexpl.c (zero): Remove variable.
6140         (minus_zero): New variable.
6141         (main): Use minus_zero instead of -zero.
6142         * modules/ldexpl-tests (Depends-on): Add float.
6143
6144         * tests/test-snprintf-posix.h (zerol): Remove variable.
6145         (minus_zerol): New variable.
6146         (test_function): Use minus_zerol instead of -zerol.
6147         * modules/snprintf-posix-tests (Depends-on): Add float.
6148         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6149
6150         * tests/test-sprintf-posix.h (zerol): Remove variable.
6151         (minus_zerol): New variable.
6152         (test_function): Use minus_zerol instead of -zerol.
6153         * modules/sprintf-posix-tests (Depends-on): Add float.
6154         * modules/vsprintf-posix-tests (Depends-on): Add float.
6155
6156         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6157         (minus_zerol): New variable.
6158         (test_function): Use minus_zerol instead of -zerol.
6159         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6160
6161         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6162         (minus_zerol): New variable.
6163         (test_function): Use minus_zerol instead of -zerol.
6164         * modules/vasprintf-posix-tests (Depends-on): Add float.
6165
6166 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6167
6168         * MODULES.html.sh (Support for building documentation): Mention
6169         pmccabe2html.  Sort entries.
6170
6171         Add pmccabe2html module, from gnupdf.
6172         * build-aux/pmccabe.css: New file.
6173         * build-aux/pmccabe2html: New file.
6174         * m4/pmccabe2html.m4: New file.
6175         * modules/pmccabe2html: New file.
6176
6177 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6178
6179         flock: new module
6180         * MODULES.html.sh: Add to list of modules.
6181         * lib/flock.c: flock implementation for Windows and Unix systems
6182         which have fcntl.
6183         * doc/glibc-functions/flock.texi: Update documentation.
6184         * lib/sys_file.in.h: <sys/file.h> header file.
6185         * m4/flock.m4: M4 macros.
6186         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6187         * modules/flock: flock module.
6188         * modules/flock-tests: flock tests module.
6189         * modules/sys_file: sys/file.h module.
6190         * tests/test-flock.c: test suite for flock.
6191
6192 2008-10-06  Jim Meyering  <meyering@redhat.com>
6193
6194         bootstrap: check for LT_INIT more portably still ;-)
6195         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6196         Spotted by Bruno Haible.
6197
6198 2008-10-06  Eric Blake  <ebb9@byu.net>
6199
6200         test-signbit: avoid tripping Irix cc bug on -0.0L
6201         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6202         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6203         entire testsuite consistent and avoids an Irix 6.2 bug.
6204
6205 2008-10-05  Bruno Haible  <bruno@clisp.org>
6206             Jim Meyering  <jim@meyering.net>
6207
6208         Add an option for ignoring EPIPE during close_stdout.
6209         * lib/closeout.h: Include <stdbool.h>.
6210         (close_stdout_set_ignore_EPIPE): New declaration.
6211         * lib/closeout.c: Include <stdbool.h>.
6212         (ignore_EPIPE): New variable.
6213         (close_stdout_set_ignore_EPIPE): New function.
6214         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6215         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6216         failure.
6217         * modules/closeout (Depends-on): Add stdbool.
6218
6219 2008-10-05  Bruno Haible  <bruno@clisp.org>
6220
6221         * modules/accept: New file.
6222         * modules/bind: New file.
6223         * modules/connect: New file.
6224         * modules/getpeername: New file.
6225         * modules/getsockname: New file.
6226         * modules/getsockopt: New file.
6227         * modules/listen: New file.
6228         * modules/recv: New file.
6229         * modules/recvfrom: New file.
6230         * modules/send: New file.
6231         * modules/sendto: New file.
6232         * modules/setsockopt: New file.
6233         * modules/socket: New file.
6234         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6235         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6236         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6237         the particular module is requested. Add a link warning when the
6238         particular module is not requested.
6239         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6240         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6241         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6242         the particular module is requested.
6243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6244         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6245         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6246         * modules/sys_socket (Depends-on): Add link-warning.
6247         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6248         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6249         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6250         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6251         GL_LINK_WARNING.
6252         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6253         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6254         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6255         * doc/posix-functions/getpeername.texi: Mention the new module
6256         'getpeername'.
6257         * doc/posix-functions/getsockname.texi: Mention the new module
6258         'getsockname'.
6259         * doc/posix-functions/getsockopt.texi: Mention the new module
6260         'getsockopt'.
6261         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6262         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6263         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6264         * doc/posix-functions/send.texi: Mention the new module 'send'.
6265         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6266         * doc/posix-functions/setsockopt.texi: Mention the new module
6267         'setsockopt'.
6268         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6269         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6270         listen, connect, accept.
6271         * modules/select-tests (Depends-on): Likewise.
6272
6273 2008-10-05  Bruno Haible  <bruno@clisp.org>
6274
6275         * lib/winsock.c (strerror): Remove unused #undef.
6276         (rpl_close): Remove unused local variable.
6277
6278         * modules/sys_socket (Depends-on); Add errno.
6279
6280 2008-10-05  Bruno Haible  <bruno@clisp.org>
6281
6282         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6283         (select): Add a link warning when the 'select' module is not used.
6284         * modules/sys_select (Depends-on): Add link-warning.
6285         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6286         Suggested by Paolo Bonzini.
6287
6288 2008-10-05  Jim Meyering  <meyering@redhat.com>
6289
6290         bootstrap: check for LT_INIT more portably
6291         * build-aux/bootstrap: Avoid using grep -E, since it's not
6292         portable enough.  Suggestion from Bruno Haible.
6293
6294 2008-10-05  Bruno Haible  <bruno@clisp.org>
6295
6296         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6297         as being fixed by gnulib.
6298
6299 2008-10-05  Bruno Haible  <bruno@clisp.org>
6300
6301         * modules/select-tests: New file, mostly copied from
6302         modules/sys_select-tests.
6303         * tests/test-select.c: New file, mostly copied from
6304         tests/test-sys_select.c.
6305         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6306         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6307         (Makefile.am): Remove test_sys_select_LDADD.
6308
6309         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6310         to an undefined symbol, for an error message.
6311         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6312         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6313         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6314         winsock-select.c here.
6315         * modules/sys_select (Files): Remove lib/winsock-select.c.
6316         (Depends-on): Remove alloca.
6317         (Makefile.am): Substitute GNULIB_SELECT.
6318         * modules/select: New file.
6319         * doc/posix-functions/select.texi: Update.
6320
6321 2008-10-05  Bruno Haible  <bruno@clisp.org>
6322
6323         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6324         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6325         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6326         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6327         getdtablesize.
6328         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6329         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6330
6331 2008-10-05  Bruno Haible  <bruno@clisp.org>
6332
6333         * modules/getdtablesize-tests: New file.
6334         * tests/test-getdtablesize.c: New file.
6335
6336         New module 'getdtablesize'.
6337         * lib/unistd.in.h (getdtablesize): New declaration.
6338         * lib/getdtablesize.c: New file.
6339         * m4/getdtablesize.m4: New file.
6340         * modules/getdtablesize: New file.
6341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6342         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6343         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6344         HAVE_GETDTABLESIZE.
6345         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6346
6347 2008-10-05  Bruno Haible  <bruno@clisp.org>
6348
6349         * modules/sched (Makefile.am): Fix typo.
6350         Reported by Simon Josefsson.
6351
6352 2008-10-05  Jim Meyering  <meyering@redhat.com>
6353
6354         bootstrap: check for LT_INIT, too
6355         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6356         are deprecated.  Suggestion from Ralf Wildenhues.
6357
6358 2008-10-05  Bruno Haible  <bruno@clisp.org>
6359
6360         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6361         overriding them by ours.
6362         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6363
6364 2008-10-05  Jim Meyering  <meyering@redhat.com>
6365
6366         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6367         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6368         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6369
6370 2008-10-04  Bruno Haible  <bruno@clisp.org>
6371
6372         * modules/dup2 (License): Change to LGPLv2+.
6373         * modules/sleep (License): Likewise.
6374         * modules/perror (License): Likewise.
6375         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6376         Blake.
6377         * modules/signal (License): Likewise.
6378         * modules/sigprocmask (License): Likewise.
6379         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6380         Meyering.
6381
6382 2008-10-04  Bruno Haible  <bruno@clisp.org>
6383
6384         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6385         Reported by Rainer Tammer <tammer@tammer.net>.
6386
6387 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6388             Bruno Haible  <bruno@clisp.org>
6389
6390         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6391         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6392         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6393
6394 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6395
6396         filevercmp: new module
6397         * lib/filevercmp.h: New function filevercmp comparing version strings.
6398         * lib/filevercmp.c: Implementation of filevercmp function.
6399         * modules/filevercmp: Module metadata.
6400         * tests/test-filevercmp.c: Unit test for new module.
6401         * modules/filevercmp-tests: Unit test metadata.
6402         * MODULES.html.sh: Add filevercmp module.
6403
6404 2008-10-03  Bruno Haible  <bruno@clisp.org>
6405
6406         * lib/c-ctype.h: Add comment.
6407         Reported by Jim Meyering.
6408
6409 2008-10-02  Bruno Haible  <bruno@clisp.org>
6410
6411         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6412
6413 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6414
6415         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6416         name of bootstrap.conf accordingly.
6417
6418 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6419
6420         * build-aux/bootstrap: Install git-merge-changelog configuration
6421         items into .gitconfig if needed.
6422
6423 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6424
6425         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6426         git repository, and initialize/update it accordingly.
6427
6428 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6429
6430         * modules/fsync-tests: New file.
6431         * tests/test-fsync.c: New file.
6432
6433         New module 'fsync'.
6434         * lib/fsync.c: New file.
6435         * m4/fsync.m4: New file.
6436         * modules/fsync: New file.
6437         * lib/unistd.in.h (fsync): New declaration.
6438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6439         GNULIB_FSYNC and HAVE_FSYNC.
6440         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6441         * MODULES.html.sh (posix_functions): Add fsync.
6442         * doc/posix-functions/fsync.texi: Mention the new module.
6443
6444 2008-10-02  Jim Meyering  <meyering@redhat.com>
6445
6446         fts.c: sync with similar code from coreutils' remove.c
6447         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6448         Guard also with "#if defined __linux__", since for now at least,
6449         this code is Linux-kernel-specific.
6450
6451 2008-10-02  Jim Meyering  <meyering@redhat.com>
6452
6453         fts: bug fixes
6454         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6455         Include <sys/vfs.h>, not <sys/statfs.h>.
6456
6457         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6458         Include <sys/vfs.h>, not <sys/statfs.h>.
6459
6460 2008-10-01  Bruno Haible  <bruno@clisp.org>
6461
6462         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6464         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6465         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6466         * doc/posix-functions/posix_spawnp.texi: Likewise.
6467         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6468         whether posix_spawn actually works.
6469         * m4/pipe.m4 (gl_PIPE): Likewise.
6470         * modules/execute (Files): Add m4/posix_spawn.m4.
6471         * modules/pipe (Files): Add m4/posix_spawn.m4.
6472         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6473
6474 2008-10-01  Jim Meyering  <meyering@redhat.com>
6475
6476         remove trailing spaces
6477         * NEWS: Likewise.
6478         * lib/poll.c (poll): Likewise.
6479         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6480         * lib/winsock.c (rpl_close): Likewise.
6481         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6482         * modules/yield: Likewise.
6483         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6484         * tests/test-sys_select.c (connect_to_socket): Likewise.
6485
6486         fts.c: adjust a new interface to be more generally useful
6487         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6488         (fts_build): Adjust caller.
6489
6490 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6491
6492         * modules/cond-tests: New file.
6493         * tests/test-cond.c: New file.
6494
6495 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6496             Bruno Haible  <bruno@clisp.org>
6497
6498         * modules/cond (Dependencies): Add errno, time.
6499         * lib/glthread/cond.h: Include <time.h>.
6500         (gl_cond_define, gl_cond_define_initialized): Use the same definition
6501         across platforms.
6502
6503 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6504             Bruno Haible  <bruno@clisp.org>
6505
6506         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6507
6508 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6509             Bruno Haible  <bruno@clisp.org>
6510
6511         * modules/tls-tests (Depends-on): Add thread, yield.
6512         (configure.ac): Remove all checks.
6513         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6514         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6515         gl_thread_self): Remove definitions. Include glthread/thread.h and
6516         glthread/yield.h instead.
6517         (test_tls): Pass an additional NULL argument to gl_thread_join.
6518
6519 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6520             Bruno Haible  <bruno@clisp.org>
6521
6522         * modules/lock-tests (Depends-on): Add thread, yield.
6523         (configure.ac): Remove all checks.
6524         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6525         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6526         gl_thread_self): Remove definitions. Include glthread/thread.h and
6527         glthread/yield.h instead.
6528         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6529         additional NULL argument to gl_thread_join.
6530
6531 2008-09-30  Bruno Haible  <bruno@clisp.org>
6532
6533         Fix the Win32 implementation of the 'thread' module.
6534         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6535         pointer type.
6536         (gl_thread_self): Invoke gl_thread_self_func.
6537         (gl_thread_self_func): New declaration.
6538         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6539         (do_init_self_key, init_self_key): New functions.
6540         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6541         Remove some fields.
6542         (running_threads, running_lock): Remove variables.
6543         (get_current_thread_handle): New function.
6544         (gl_thread_self_func, wrapper_func, glthread_create_func,
6545         glthread_join_func, gl_thread_exit_func): Largely rewritten and
6546         simplified.
6547
6548 2008-09-30  Bruno Haible  <bruno@clisp.org>
6549
6550         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6551         files.
6552
6553 2008-09-30  Jim Meyering  <meyering@redhat.com>
6554
6555         fts.m4: correct the test for statfs.f_type
6556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6557         when checking for statfs.f_type.
6558
6559 2008-09-15  Simon Josefsson  <simon@josefsson.org>
6560
6561         tests: avoid some compiler warnings
6562         * tests/test-memchr.c (main): Pass NULL indirectly.
6563         * tests/test-getdate.c (main): Remove unused variable 'ret'.
6564
6565 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
6566
6567         getdate.y: disallow countable dayshifts like "4 yesterday ago"
6568         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6569         exactly specified dayshifts.
6570         (dayshift): New rule.
6571         (rel): Add dayshift.
6572         (relative_time_table) [tomorrow, yesterday, today, now]:
6573         Use tDAY_SHIFT in place of tDAY_UNIT.
6574         * tests/test-getdate.c: Add tests for now-disallowed countable
6575         dayshifts, e.g., "4 yesterday ago".
6576
6577 2008-09-29  Bruno Haible  <bruno@clisp.org>
6578
6579         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6580         * tests/test-posix_spawn1.in.sh: Renamed from
6581         tests/test-posix_spawn.in.sh.
6582         * tests/test-posix_spawn2.c: New file.
6583         * tests/test-posix_spawn2.in.sh: New file.
6584         * modules/posix_spawnp-tests (Files): Update.
6585         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6586
6587 2008-09-29  Bruno Haible  <bruno@clisp.org>
6588
6589         Propagate effects of putenv/setenv/unsetenv to child processes.
6590         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6591         * lib/pipe.c (create_pipe): Likewise.
6592
6593 2008-09-29  Bruno Haible  <bruno@clisp.org>
6594
6595         Enable use of shell scripts as executables in mingw.
6596         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6597         run the program as a shell script.
6598         * lib/pipe.c (create_pipe): Likewise.
6599         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6600         resulting array.
6601
6602 2008-09-29  Eric Blake  <ebb9@byu.net>
6603
6604         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6605
6606 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
6607
6608         * doc/posix-functions/accept.texi: Update mingw problems.
6609         * doc/posix-functions/bind.texi: Update mingw problems.
6610         * doc/posix-functions/close.texi: Update mingw problems.
6611         * doc/posix-functions/connect.texi: Update mingw problems.
6612         * doc/posix-functions/getpeername.texi: Update mingw problems.
6613         * doc/posix-functions/getsockname.texi: Update mingw problems.
6614         * doc/posix-functions/getsockopt.texi: Update mingw problems.
6615         * doc/posix-functions/ioctl.texi: Update mingw problems.
6616         * doc/posix-functions/listen.texi: Update mingw problems.
6617         * doc/posix-functions/recv.texi: Update mingw problems.
6618         * doc/posix-functions/recvfrom.texi: Update mingw problems.
6619         * doc/posix-functions/select.texi: Update mingw problems.
6620         * doc/posix-functions/send.texi: Update mingw problems.
6621         * doc/posix-functions/sendto.texi: Update mingw problems.
6622         * doc/posix-functions/setsockopt.texi: Update mingw problems.
6623         * doc/posix-functions/socket.texi: Update mingw problems.
6624
6625 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
6626             Bruno Haible  <bruno@clisp.org>
6627
6628         * lib/sys_select.in.h: Include sys/time.h.
6629         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
6630         * modules/sys_select: Depend on sys_time.
6631         * tests/test-sys_select.c: Test that sys/select.h defines struct
6632         timeval fully.
6633
6634 2008-09-29  Bruno Haible  <bruno@clisp.org>
6635
6636         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
6637         * lib/sys_select.in.h: Likewise.
6638
6639 2008-09-29  Bruno Haible  <bruno@clisp.org>
6640
6641         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
6642
6643 2008-09-29  Bruno Haible  <bruno@clisp.org>
6644
6645         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
6646         Set LIBSOCKET instead of augmenting LIBS.
6647         * modules/sockets (Link): New section.
6648         * modules/sockets-tests (test_sockets_LDADD): New variable.
6649         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
6650         * modules/poll-tests (test_poll_LDADD): New variable.
6651         * NEWS: Document the change.
6652
6653 2008-09-29  Bruno Haible  <bruno@clisp.org>
6654
6655         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
6656         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
6657         ARPA_INET_H directly.
6658         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6659
6660 2008-09-28  Bruno Haible  <bruno@clisp.org>
6661
6662         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
6663         from gl_HEADER_SYS_SOCKET.
6664         (gl_HEADER_SYS_SOCKET): Invoke it.
6665         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6666
6667 2008-09-28  Bruno Haible  <bruno@clisp.org>
6668
6669         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
6670         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
6671         Needed on OSF/1 4.0.
6672
6673 2008-09-28  Bruno Haible  <bruno@clisp.org>
6674
6675         Override open more carefully.
6676         * lib/open.c (orig_open): New function.
6677         (rpl_open): Use orig_open instead of open.
6678         * lib/fcntl.in.h: Add special invocation convention.
6679         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
6680         (gl_FUNC_OPEN): Invoke it.
6681
6682         Override freopen more carefully.
6683         * lib/freopen.c (orig_freopen): New function.
6684         (rpl_freopen): Use orig_freopen instead of freopen.
6685         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
6686         (gl_FUNC_FREOPEN): Invoke it.
6687
6688         Override fopen more carefully.
6689         * lib/fopen.c (orig_fopen): New function.
6690         (rpl_fopen): Use orig_fopen instead of fopen.
6691         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
6692         (gl_FUNC_FOPEN): Invoke it.
6693         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
6694
6695 2008-09-28  Bruno Haible  <bruno@clisp.org>
6696
6697         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
6698         SIGPIPE.
6699
6700 2008-09-28  Bruno Haible  <bruno@clisp.org>
6701
6702         * tests/test-sigaction.c (handler, main): Disable the check whether
6703         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
6704         glibc systems with LinuxThreads.
6705
6706 2008-09-28  Bruno Haible  <bruno@clisp.org>
6707
6708         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
6709
6710         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
6711         with AIX xlc.
6712         * lib/fcntl.in.h (open): Likewise.
6713         Reported by Rainer Tammer <tammer@tammer.net>.
6714
6715 2008-09-28  Bruno Haible  <bruno@clisp.org>
6716
6717         * modules/posix_spawnp-tests: New file.
6718         * tests/test-posix_spawn.c: New file.
6719         * tests/test-posix_spawn.in.sh: New file.
6720
6721         New module 'posix_spawnp'.
6722         * modules/posix_spawnp: New file.
6723         * lib/spawnp.c: New file, from GNU libc with modifications.
6724         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
6725
6726         New module 'posix_spawn'.
6727         * modules/posix_spawn: New file.
6728         * lib/spawn.c: New file, from GNU libc with modifications.
6729         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6730
6731         New module 'posix_spawnattr_destroy'.
6732         * modules/posix_spawnattr_destroy: New file.
6733         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
6734         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
6735         module.
6736
6737         New module 'posix_spawnattr_setsigmask'.
6738         * modules/posix_spawnattr_setsigmask: New file.
6739         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
6740         modifications.
6741         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
6742         new module.
6743
6744         New module 'posix_spawnattr_getsigmask'.
6745         * modules/posix_spawnattr_getsigmask: New file.
6746         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
6747         modifications.
6748         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
6749         new module.
6750
6751         New module 'posix_spawnattr_setsigdefault'.
6752         * modules/posix_spawnattr_setsigdefault: New file.
6753         * lib/spawnattr_setdefault.c: New file, from GNU libc with
6754         modifications.
6755         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
6756         new module.
6757
6758         New module 'posix_spawnattr_getsigdefault'.
6759         * modules/posix_spawnattr_getsigdefault: New file.
6760         * lib/spawnattr_getdefault.c: New file, from GNU libc with
6761         modifications.
6762         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
6763         new module.
6764
6765         New module 'posix_spawnattr_setschedpolicy'.
6766         * modules/posix_spawnattr_setschedpolicy: New file.
6767         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
6768         modifications.
6769         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
6770         new module.
6771
6772         New module 'posix_spawnattr_getschedpolicy'.
6773         * modules/posix_spawnattr_getschedpolicy: New file.
6774         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
6775         modifications.
6776         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
6777         new module.
6778
6779         New module 'posix_spawnattr_setschedparam'.
6780         * modules/posix_spawnattr_setschedparam: New file.
6781         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
6782         modifications.
6783         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
6784         new module.
6785
6786         New module 'posix_spawnattr_getschedparam'.
6787         * modules/posix_spawnattr_getschedparam: New file.
6788         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
6789         modifications.
6790         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
6791         new module.
6792
6793         New module 'posix_spawnattr_setpgroup'.
6794         * modules/posix_spawnattr_setpgroup: New file.
6795         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
6796         modifications.
6797         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
6798         module.
6799
6800         New module 'posix_spawnattr_getpgroup'.
6801         * modules/posix_spawnattr_getpgroup: New file.
6802         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
6803         modifications.
6804         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
6805         module.
6806
6807         New module 'posix_spawnattr_setflags'.
6808         * modules/posix_spawnattr_setflags: New file.
6809         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
6810         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
6811         module.
6812
6813         New module 'posix_spawnattr_getflags'.
6814         * modules/posix_spawnattr_getflags: New file.
6815         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
6816         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
6817         module.
6818
6819         New module 'posix_spawnattr_init'.
6820         * modules/posix_spawnattr_init: New file.
6821         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
6822         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
6823         module.
6824
6825         New module 'posix_spawn_file_actions_destroy'.
6826         * modules/posix_spawn_file_actions_destroy: New file.
6827         * lib/spawn_faction_destroy.c: New file, from GNU libc with
6828         modifications.
6829         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
6830         the new module.
6831
6832         New module 'posix_spawn_file_actions_addopen'.
6833         * modules/posix_spawn_file_actions_addopen: New file.
6834         * lib/spawn_faction_addopen.c: New file, from GNU libc with
6835         modifications.
6836         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6837         the new module.
6838
6839         New module 'posix_spawn_file_actions_adddup2'.
6840         * modules/posix_spawn_file_actions_adddup2: New file.
6841         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
6842         modifications.
6843         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6844         the new module.
6845
6846         New module 'posix_spawn_file_actions_addclose'.
6847         * modules/posix_spawn_file_actions_addclose: New file.
6848         * lib/spawn_faction_addclose.c: New file, from GNU libc with
6849         modifications.
6850         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6851         the new module.
6852
6853         New module 'posix_spawn_file_actions_init'.
6854         * modules/posix_spawn_file_actions_init: New file.
6855         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
6856         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
6857         new module.
6858
6859         New module 'posix_spawn-internal'.
6860         * modules/posix_spawn-internal: New file.
6861         * lib/spawn_int.h: New file, from GNU libc with modifications.
6862         * lib/spawni.c: New file, from GNU libc with modifications.
6863         * m4/posix_spawn.m4: New file.
6864
6865         New module 'spawn'.
6866         * modules/spawn: New file.
6867         * lib/spawn.in.h: New file, from GNU libc with modifications.
6868         * m4/spawn_h.m4: New file.
6869         * doc/posix-headers/spawn.texi: Mention the new module.
6870
6871 2008-09-28  Bruno Haible  <bruno@clisp.org>
6872
6873         * modules/sched-tests: New file.
6874         * tests/test-sched.c: New file.
6875
6876         New module 'sched'.
6877         * modules/sched: New file.
6878         * lib/sched.in.h: New file.
6879         * m4/sched_h.m4: New file.
6880         * doc/posix-headers/sched.texi: Mention the new module.
6881
6882 2008-09-27  Eric Blake  <ebb9@byu.net>
6883
6884         Fix previous patch, and tweak references to $0.
6885         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
6886         (func_version, func_gnulib_dir): Don't call this program
6887         gnulib-tool.
6888         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
6889         with using $0 in function.
6890         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
6891         (func_fatal_error): Reuse the name the user invoked us with.
6892
6893 2008-09-27  Bruno Haible  <bruno@clisp.org>
6894
6895         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
6896         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
6897         (gl_ICONV_H): Not here.
6898         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6899         instead of assigning ICONV_H directly.
6900
6901         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
6902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
6903         WCHAR_H directly.
6904
6905 2008-09-27  Bruno Haible  <bruno@clisp.org>
6906
6907         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
6908         * modules/arpa_inet (Depends-on): Add link-warning.
6909         (Makefile.am): Insert the definition of GL_LINK-WARNING.
6910         * modules/unistd (Makefile.am): Likewise.
6911
6912 2008-09-26  Bruno Haible  <bruno@clisp.org>
6913
6914         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
6915         variables.
6916         (func_version): Essentially copied from gnulib-tool.
6917         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
6918         func_readlink): Copied from gnulib-tool.
6919
6920 2008-09-26  Bruno Haible  <bruno@clisp.org>
6921
6922         * gnulib-tool (func_version): Change directory to $gnulib_dir before
6923         invoking git-version-gen.
6924
6925 2008-09-26  Bruno Haible  <bruno@clisp.org>
6926
6927         * posix-modules: Update to directory names changed on 2008-01-19.
6928         Remove commas in output before splitting into words. No more need to
6929         avoid 'ftruncate' since 2007-02-19.
6930
6931 2008-09-26  Bruno Haible  <bruno@clisp.org>
6932
6933         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
6934
6935 2008-09-26  Bruno Haible  <bruno@clisp.org>
6936
6937         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
6938         * modules/fwriteerror (Depends-on): Add errno.
6939
6940 2008-09-26  Bruno Haible  <bruno@clisp.org>
6941
6942         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
6943         * tests/test-vc-list-files-cvs.sh: Likewise.
6944
6945 2008-09-26  Bruno Haible  <bruno@clisp.org>
6946
6947         * doc/posix-headers/sys_resource.texi: Reorder items.
6948
6949 2008-09-26  Jim Meyering  <meyering@redhat.com>
6950
6951         fts: tweak inode comparison function
6952         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
6953         inode numbers, as documented.
6954
6955         fts: sort dirent entries on inode number before traversing
6956         This avoids a quadratic, seek-related performance penalty when
6957         operating on a directory containing many entries (measurable at 10k;
6958         3.5 hours at 2 million entries with a cold cache) on certain types
6959         of file systems, including ext3 and ext4, but not tmpfs.
6960         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
6961         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
6962         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
6963         (fs_handles_readdir_ordered_dirents_efficiently): New function.
6964         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
6965         (fts_build): Set the stat.st_ino member from D_INO.
6966         If it is likely to be useful, sort dirent entries on inode number.
6967
6968         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
6969         and the struct statfs.f_type member.
6970         * modules/fts (Depends-on): Add d-ino.
6971
6972 2008-09-26  Bruno Haible  <bruno@clisp.org>
6973
6974         * modules/sigpipe-die (Depends-on): Add sigpipe.
6975
6976         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
6977         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
6978         and GNULIB_STDIO_H_SIGPIPE are set.
6979         * lib/stdio-write.c: New file.
6980         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
6981         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
6982         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
6983         REPLACE_STDIO_WRITE_FUNCS.
6984         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
6985         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
6986         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
6987         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
6988         * modules/stdio (Files): Add lib/stdio-write.c.
6989         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
6990         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
6991         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
6992         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
6993         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
6994         REPLACE_FPRINTF_POSIX.
6995         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
6996         REPLACE_PRINTF_POSIX.
6997         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
6998         REPLACE_VFPRINTF_POSIX.
6999         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7000         REPLACE_VPRINTF_POSIX.
7001         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7002         SIGPIPE issue.
7003         * doc/posix-functions/fputc.texi: Likewise.
7004         * doc/posix-functions/fputs.texi: Likewise.
7005         * doc/posix-functions/fwrite.texi: Likewise.
7006         * doc/posix-functions/printf.texi: Likewise.
7007         * doc/posix-functions/putc.texi: Likewise.
7008         * doc/posix-functions/putchar.texi: Likewise.
7009         * doc/posix-functions/puts.texi: Likewise.
7010         * doc/posix-functions/vfprintf.texi: Likewise.
7011         * doc/posix-functions/vprintf.texi: Likewise.
7012
7013         * modules/safe-write (Depends-on): Add write.
7014
7015         * modules/sigpipe-tests: New file.
7016         * tests/test-sigpipe.c: New file.
7017         * tests/test-sigpipe.sh: New file.
7018
7019         * modules/write: New file.
7020         * lib/unistd.in.h: Include <sys/types.h>.
7021         (write): New declaration.
7022         * lib/write.c: New file.
7023         * m4/write.m4: New file.
7024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7025         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7026         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7027         GNULIB_WRITE, REPLACE_WRITE.
7028         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7029         and the SIGPIPE issue.
7030
7031         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7032         (raise): New declaration.
7033         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7034         (ext_signal): New function.
7035         (rpl_raise): New function.
7036         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7037         GNULIB_SIGNAL_H_SIGPIPE.
7038         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7039         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7040
7041         * modules/sigpipe: New file.
7042         * m4/sigpipe.m4: New file.
7043
7044 2008-09-25  Derek Price  <derek@ximbiot.com>
7045             Bruno Haible  <bruno@clisp.org>
7046
7047         * gnulib-tool (func_import): Report all license incompatibilities, not
7048         just the first one.
7049
7050 2008-09-25  Bruno Haible  <bruno@clisp.org>
7051
7052         * gnulib-tool (func_import): When computing the edits, consider not
7053         only the Makefile.ams that exist but also those that will be generated.
7054
7055 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7056
7057         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7058         fixes gnulib-tool --test warning about duplicate dependency.
7059
7060 2008-09-25  Bruno Haible  <bruno@clisp.org>
7061
7062         * gnulib-tool: Don't ask the user to perform edits in the generated
7063         Makefile.ams.
7064         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7065         apply to the Makefile.am being generated.
7066         (func_emit_tests_Makefile_am): Execute edits that apply to the
7067         Makefile.am being generated.
7068         (func_import): Setup list of Makefile.am edits before emitting the
7069         Makefile.ams, not at the end.
7070         (func_create_testdir): Update.
7071         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7072
7073 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7074
7075         * gnulib-tool (func_import): Store the --tests-base option in the
7076         comment in gnulib-cache.m4.
7077
7078 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7079
7080         * NEWS: Document increased portability that sys_select now provides.
7081
7082         * lib/sys_select.in.h: Install select wrapper.
7083         * lib/sys_socket.in.h: Use more descriptive name when there is no
7084         select wrapper.
7085         * lib/winsock-select.c: New.
7086         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7087         Require gl_HEADER_SYS_SOCKET.
7088         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7089         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7090         * tests/test-sys_select.c: Add functional tests.
7091
7092 2008-09-24  Eric Blake  <ebb9@byu.net>
7093
7094         open, fopen: close fd leak in last patch
7095         * lib/open.c (rpl_open): Close fd before returning error.
7096         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7097         * doc/posix-functions/open.texi (open): Document that Irix also
7098         has the bug.
7099         * doc/posix-functions/fopen.texi (fopen): Likewise.
7100         Reported by Paolo Bonzini.
7101
7102 2008-09-24  Bruno Haible  <bruno@clisp.org>
7103
7104         Ensure that a filename ending in a slash cannot be used to access a
7105         non-directory.
7106         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7107         to check whether it's really a directory.
7108         * lib/fopen.c: Include fcntl.h, unistd.h.
7109         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7110         and fdopen().
7111         * modules/fopen (Depends-on): Add unistd.
7112         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7113         * tests/test-fopen.c (main): Likewise.
7114         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7115         * doc/posix-functions/fopen.texi: Likewise.
7116         Reported by Eric Blake.
7117
7118 2008-09-23  Eric Blake  <ebb9@byu.net>
7119
7120         c-stack: avoid compiler optimizations when provoking overflow
7121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7122         recursion harder to optimize, to ensure a stack overflow occurs.
7123         * tests/test-c-stack.c (recurse): Likewise.
7124         Borrowed from libsigsegv.
7125
7126         c-stack: work around Irix sigaltstack bug
7127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7128         whether sigaltstack uses wrong end of stack_t (copied in part from
7129         libsigsegv).
7130         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7131         Irix bug, without requiring an over-allocation.
7132         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7133         bug.
7134
7135         fopen: document mingw bug on directories
7136         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7137         not allowing a stream visiting a directory, even though reading
7138         from such a stream is not portable.
7139
7140 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7141
7142         * lib/poll.c: Rewrite.
7143         * modules/poll: Depend on alloca.
7144
7145 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7146
7147         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7148         instead define prototypes for a full set of wrappers.  Ensure
7149         that Cygwin does not use the compatibility code, which is only
7150         for MinGW.
7151         * lib/winsock.c: New.
7152         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7153         * modules/sys_socket: Add lib/winsock.c.
7154
7155         * modules/poll-tests: Add errno and perror.
7156         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7157
7158 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7159
7160         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7161
7162 2008-09-23  Bruno Haible  <bruno@clisp.org>
7163
7164         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7165         * doc/glibc-functions/*: Likewise.
7166
7167 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7168
7169         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7170         success.
7171
7172 2008-09-22  Eric Blake  <ebb9@byu.net>
7173             Bruno Haible  <bruno@clisp.org>
7174
7175         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7176         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7177         supply %A but mishandle pseudo-NaN.
7178         Reported by Simon Josefsson.
7179
7180 2008-09-21  Bruno Haible  <bruno@clisp.org>
7181
7182         * tests/test-lock.c (main): Tweak skip message.
7183         * tests/test-tls.c (main): Likewise.
7184
7185 2008-09-21  Bruno Haible  <bruno@clisp.org>
7186
7187         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7188         whether 'struct sigaction' has sa_sigaction here...
7189         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7190         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7191
7192 2008-09-21  Bruno Haible  <bruno@clisp.org>
7193
7194         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7195         section.
7196         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7197         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7198         the new section.
7199         (Support for obsolete systems lacking POSIX:2001): New section.
7200         (String handling <string.h>): Move strdup to the new section.
7201         Suggested by Simon Josefsson and Paolo Bonzini.
7202
7203 2008-09-21  Bruno Haible  <bruno@clisp.org>
7204
7205         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7206         exponents in %e and %g results on 'long double'. Needed for mingw's
7207         improved *printf functions.
7208         * tests/test-vasprintf-posix.c (test_function): Likewise.
7209         * tests/test-snprintf-posix.h (test_function): Likewise.
7210         * tests/test-sprintf-posix.h (test_function): Likewise.
7211         Reported by Eric Blake.
7212
7213 2008-09-21  Bruno Haible  <bruno@clisp.org>
7214
7215         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7216         * tests/test-sprintf-posix.h (test_function): Likewise.
7217
7218 2008-09-21  Bruno Haible  <bruno@clisp.org>
7219
7220         * modules/getpass (Depends-on): Add strdup-posix.
7221
7222         New module 'strdup-posix'.
7223         * modules/strdup-posix: New file.
7224         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7225         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7227         REPLACE_STRDUP.
7228         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7229         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7231         strdup-posix.
7232
7233         * modules/strdup (Depends-on): Remove malloc-posix.
7234
7235 2008-09-20  Bruno Haible  <bruno@clisp.org>
7236
7237         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7238         Wildenhues.
7239
7240 2008-09-20  Bruno Haible  <bruno@clisp.org>
7241
7242         Ensure that wint_t gets defined on IRIX 5.3.
7243         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7244         * lib/wctype.in.h (wint_t): Likewise.
7245         (__wctype_wint_t): Remove type.
7246         (isw*): Use wint_t instead of __wctype_wint_t.
7247         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7248         * modules/wchar (Files): Add m4/wint_t.m4.
7249         (Makefile.am): Substitute HAVE_WINT_T.
7250         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7251         * tests/test-wctype.c: Check that wint_t is defined.
7252         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7253         * doc/posix-headers/wctype.texi: Likewise.
7254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7255
7256 2008-09-18  Bruno Haible  <bruno@clisp.org>
7257
7258         * gnulib-tool (func_exit): Update comment.
7259
7260 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7261
7262         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7263         assumes strdup exists and does not depend on strdup to return
7264         ENOMEM on out of memory conditions.
7265
7266 2008-09-18  Bruno Haible  <bruno@clisp.org>
7267
7268         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7269         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7270         digits for the exponent.
7271
7272 2008-09-18  Jim Meyering  <meyering@redhat.com>
7273             Bruno Haible  <bruno@clisp.org>
7274
7275         * lib/vasnprintf.c (decimal_point_char): Define also if
7276         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7277
7278 2008-09-16  Bruno Haible  <bruno@clisp.org>
7279         and Eric Blake  <ebb9@byu.net>
7280
7281         vasnprintf: support Irix 5.3
7282         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7283         that mishandle long double infinity.
7284         Reported by Tom G. Christensen.
7285
7286 2008-09-16  Bruno Haible  <bruno@clisp.org>
7287
7288         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7289         Solaris 9.
7290         * doc/glibc-functions/alphasort.texi: Likewise.
7291         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7292
7293 2008-09-16  Jim Meyering  <meyering@redhat.com>
7294
7295         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7296         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7297         a umask modification leak out of a subshell.  Otherwise, the
7298         opensolaris /bin/sh would be accepted and thus cause unwarranted
7299         failures in the coreutils test suite.
7300
7301 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7302
7303         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7304         to succeed.
7305
7306 2008-09-16  Jim Meyering  <meyering@redhat.com>
7307
7308         avoid spurious test failure when library is built without ACL support
7309         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7310         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7311         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7312         * tests/test-copy-acl.sh: Likewise.
7313
7314 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7315
7316         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7317         based on character occurrence counts.
7318
7319 2008-09-15  Eric Blake  <ebb9@byu.net>
7320
7321         tests: avoid some compiler warnings
7322         * tests/test-memchr.c (main): Pass NULL indirectly.
7323         * tests/test-closein.c (main): Avoid unused variable.
7324
7325 2008-09-15  Bruno Haible  <bruno@clisp.org>
7326
7327         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7328         are missing on OpenBSD 4.0 individually.
7329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7330
7331 2008-09-15  Bruno Haible  <bruno@clisp.org>
7332
7333         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7334         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7335         * doc/posix-functions/perror.texi: Likewise.
7336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7337         is missing.
7338         Reported by Eric Blake.
7339
7340         * lib/errno.in.h: Use replacement values >= 2000.
7341         Reported by Eric Blake.
7342
7343 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7344
7345         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7346         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7347         limit.
7348         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7349         compareseq was aborted.
7350
7351 2008-09-14  Bruno Haible  <bruno@clisp.org>
7352
7353         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7354         yvec_edit_count.
7355         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7356         (fstrcmp_bounded): Simplify result computation accordingly.
7357
7358 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7359
7360         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7361         (fstrcmp): Define in terms of fstrcmp_bounded.
7362         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7363         lower_bound argument.
7364         Return quickly if the result is certainly < lower_bound.
7365         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7366
7367 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7368
7369         * lib/diffseq.h (EARLY_ABORT): New macro.
7370         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7371         evaluates to true.
7372
7373 2008-09-14  Bruno Haible  <bruno@clisp.org>
7374
7375         * modules/perror-tests: New file.
7376         * tests/test-perror.sh: New file.
7377         * tests/test-perror.c: New file.
7378
7379         New module 'perror'.
7380         * lib/stdio.in.h (perror): New declaration.
7381         * lib/perror.c: New file.
7382         * m4/perror.m4: New file.
7383         * modules/perror: New file.
7384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7385         * doc/posix-functions/perror.texi: Mention the perror module.
7386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7387         REPLACE_PERROR.
7388         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7389         REPLACE_PERROR.
7390
7391 2008-09-14  Bruno Haible  <bruno@clisp.org>
7392
7393         * modules/stdio (Makefile.am): Reorder to match the order in
7394         lib/stdio.in.h.
7395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7396
7397 2008-09-13  Bruno Haible  <bruno@clisp.org>
7398
7399         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7400
7401 2008-09-13  Bruno Haible  <bruno@clisp.org>
7402
7403         Extend strerror to cover the added errno values.
7404         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7405         (rpl_strerror): Provide error messages for the added errno values and
7406         for the WSA* values.
7407         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7408         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7409         strerror.
7410         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7411         * modules/strerror (Depends-on): Add errno.
7412         * doc/posix-functions/strerror.texi: Document the change.
7413         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7414         and EOVERFLOW.
7415
7416 2008-09-13  Bruno Haible  <bruno@clisp.org>
7417
7418         * modules/EOVERFLOW: Remove file.
7419         * m4/eoverflow.m4: Remove file.
7420         * modules/EOVERFLOW-tests: Remove file.
7421         * tests/test-EOVERFLOW.c: Remove file.
7422         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7423         * modules/ftell (Depends-on): Likewise.
7424         * modules/getdelim (Depends-on): Likewise.
7425         * modules/getugroups (Depends-on): Likewise.
7426         * modules/poll (Depends-on): Likewise.
7427         * modules/snprintf (Depends-on): Likewise.
7428         * modules/sprintf-posix (Depends-on): Likewise.
7429         * modules/vasnprintf (Depends-on): Likewise.
7430         * modules/vasprintf (Depends-on): Likewise.
7431         * modules/vfprintf-posix (Depends-on): Likewise.
7432         * modules/vsnprintf (Depends-on): Likewise.
7433         * modules/vsprintf-posix (Depends-on): Likewise.
7434         * modules/xvasprintf (Depends-on): Likewise.
7435         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7436         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7437         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7438         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7439         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7440         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7441         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7442         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7443         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7444         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7445         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7446         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7447         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7448         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7449         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7450         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7451         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7452         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7453         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7454         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7455         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7456         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7457         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7458         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7459         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7460         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7461         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7462         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7463         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7464         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7465         * MODULES.html.sh: Remove EOVERFLOW.
7466         * NEWS: Mention the change.
7467
7468 2008-09-13  Bruno Haible  <bruno@clisp.org>
7469
7470         * modules/errno-tests: New file.
7471         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7472
7473         * lib/errno.in.h: New file.
7474         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7475         * modules/errno: New file.
7476         * doc/posix-headers/errno.texi: Update documentation.
7477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7478
7479 2008-09-13  Bruno Haible  <bruno@clisp.org>
7480
7481         * tests/test-poll.c: Use #if for native Windows, rather than testing
7482         __MSVCRT__.
7483
7484 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7485             Bruno Haible  <bruno@clisp.org>
7486
7487         * lib/glob.c: Don't include <pwd.h> on native Windows.
7488         (WINDOWS32): New macro.
7489         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7490
7491 2008-09-13  Bruno Haible  <bruno@clisp.org>
7492
7493         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7494         (ETIMEDOUT): Remove macro.
7495         (glthread_cond_timedwait_multithreaded): New declaration.
7496         (glthread_cond_timedwait): Use it.
7497         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7498         (glthread_cond_timedwait_multithreaded): New function.
7499
7500 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7501
7502         * modules/poll-tests: Do not check for io.h.
7503         * tests/test-poll.c: Check for __MSVCRT__ instead.
7504
7505 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7506
7507         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7508         * modules/poll-tests: Add inet_pton, stdbool, sockets.
7509         * tests/test-poll.c: Use them.  Use _pipe on Windows.
7510
7511 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7512
7513         * modules/poll-tests: New.
7514         * tests/test-poll.c: New.
7515
7516 2008-09-12  Eric Blake  <ebb9@byu.net>
7517
7518         frexp: test for NetBSD failure on -0.0
7519         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7520         not all, bugs from NetBSD 3.0 have been fixed.
7521         * doc/posix-functions/frexp.texi (frexp): Document bug.
7522         Reported by Thomas Klausner.
7523
7524         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7525         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7526         literal -0.0.
7527         Reported by Jonathan C. Patschke <jp@centtech.com>.
7528
7529 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7530
7531         * lib/glthread/cond.h: Use dummy implementation also if
7532         USE_WIN32_THREADS.
7533
7534 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7535
7536         * modules/fnmatch-posix (License): Change to LGPLv2+.
7537         * modules/fnmatch-gnu (License): Likewise.
7538
7539 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7540
7541         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7542
7543 2008-09-11  Jim Meyering  <meyering@redhat.com>
7544
7545         * users.txt: Add gtk-vnc.
7546
7547 2008-09-08  Simon Josefsson  <simon@josefsson.org>
7548
7549         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7550         rotate amounts.
7551
7552         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7553         required for 16-bit and 8-bit rotates.
7554         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7555         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7556         UINT8_MAX instead of hard-coded constants.
7557         Suggested by Paul Eggert.
7558
7559 2008-09-07  Bruno Haible  <bruno@clisp.org>
7560
7561         * tests/test-striconveh.c (main): Check behaviour when converting from
7562         UTF-7.
7563
7564         Make striconveh work better with stateful encodings.
7565         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7566         that iconv does not increment the inptr when returning -1/EINVAL.
7567
7568 2008-09-07  Bruno Haible  <bruno@clisp.org>
7569
7570         * build-aux/config.rpath: Update according to libtool-2.2.6.
7571         * build-aux/config.libpath: Likewise.
7572
7573 2008-09-06  Bruno Haible  <bruno@clisp.org>
7574
7575         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7576         * lib/freadptr.c (freadptr): Likewise.
7577         * lib/freadseek.c (freadptrinc): Likewise.
7578         Reported by Simon Josefsson.
7579
7580 2008-09-06  Bruno Haible  <bruno@clisp.org>
7581
7582         * modules/freadptr (License): Change to LGPLv2+.
7583         * modules/freadseek (License): Likewise.
7584         Suggested by Eric Blake.
7585
7586         * modules/memchr2 (License): Change to LGPLv2+.
7587         Approved by Eric Blake.
7588
7589 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7590             Bruno Haible  <bruno@clisp.org>
7591
7592         Make gnulib-tool work with native 'sed' on AIX.
7593         * gnulib-tool (sed_noop): New variable.
7594         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7595         func_add_or_update, func_create_testdir): Use it to initialize sed
7596         script variables.
7597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7598
7599 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
7600             Bruno Haible  <bruno@clisp.org>
7601
7602         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7603         also works after #include directives.
7604
7605 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
7606
7607         getdate.y: reject an out-of-range timezone value
7608         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
7609         the range [-24...+24].  When specified with only one or two digits,
7610         * tests/test-getdate.c: Tests for the fix.
7611         * doc/getdate.texi: Document this change.
7612
7613 2008-09-03  Bruno Haible  <bruno@clisp.org>
7614
7615         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
7616
7617 2008-09-02  Simon Josefsson  <simon@josefsson.org>
7618
7619         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
7620         <bruce.korb@gmail.com> with ideas from Ben Pfaff
7621         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
7622         Blake <ebb9@byu.net>.
7623
7624         * tests/test-bitrotate.c: Add more test vectors.
7625
7626 2008-09-02  Eric Blake  <ebb9@byu.net>
7627
7628         vasnprintf-posix: handle large precision via %.*d
7629         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
7630         when handling it ourselves.
7631         * tests/test-vasnprintf-posix.c (test_function): Add test.
7632         * tests/test-snprintf-posix.h (test_function): Likewise.
7633         * tests/test-sprintf-posix.h (test_function): Likewise.
7634         * tests/test-vasprintf-posix.c (test_function): Likewise.
7635         Reported by Alain Guibert.
7636
7637 2008-09-01  Eric Blake  <ebb9@byu.net>
7638
7639         c-stack: make configure-time check more robust
7640         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
7641         successful sigaction call.
7642         Reported by Tom G. Christensen.
7643
7644 2008-09-01  Bruno Haible  <bruno@clisp.org>
7645
7646         New module 'findprog-lgpl'.
7647         * modules/findprog-lgpl: New file.
7648         * lib/findprog-lgpl.c: New file.
7649         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
7650         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
7651         to decide whether to use strdup or xstrdup, concatenated_filename or
7652         xconcatenated_filename.
7653
7654 2008-09-01  Bruno Haible  <bruno@clisp.org>
7655
7656         Split module 'concat-filename' into 'concat-filename' (LGPL) and
7657         'xconcat-filename' (GPL).
7658         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
7659         (License): Change to LGPLv2+.
7660         * modules/xconcat-filename: New file.
7661         * lib/concat-filename.h (concatenated_filename): Change specification.
7662         (xconcatenated_filename): New declaration.
7663         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
7664         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
7665         memory situations.
7666         * lib/xconcat-filename.c: New file.
7667         * NEWS: Mention the change.
7668         * lib/findprog.c: Include concat-filename.h, not filename.h.
7669         (find_in_path): Use xconcatenated_filename instead of
7670         concatenated_filename.
7671         * lib/javacomp.c: Include concat-filename.h, not filename.h.
7672         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7673         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7674         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7675         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
7676         instead of concatenated_filename.
7677         * lib/javaexec.c: Include concat-filename.h, not filename.h.
7678         (execute_java_class): Use xconcatenated_filename instead of
7679         concatenated_filename.
7680         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
7681         * modules/javacomp (Depends-on): Likewise.
7682         * modules/javaexec (Depends-on): Likewise.
7683
7684 2008-09-01  Bruno Haible  <bruno@clisp.org>
7685
7686         Split module 'filename' into 'filename' and 'concat-filename'.
7687         * modules/filename: Keep only lib/filename.h.
7688         (License): Change to LGPLv2+.
7689         * modules/concat-filename: New file, extracted from modules/filename.
7690         * lib/filename.h (concatenated_filename): Remove declaration.
7691         * lib/concat-filename.h: New file, extracted from lib/filename.h.
7692         * lib/concat-filename.c: Include concat-filename.h.
7693         * NEWS: Mention the change.
7694
7695 2008-09-01  Simon Josefsson  <simon@josefsson.org>
7696
7697         * lib/bitrotate.h (rotl8, rotr8): Add.
7698
7699         * modules/bitrotate (configure.ac): Need
7700         AC_REQUIRE([AC_C_INLINE]).
7701         (Description): Mention stdint.h.  Reported by Bruno Haible
7702         <bruno@clisp.org>.
7703
7704         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
7705         Paolo Bonzini <bonzini@gnu.org>.
7706
7707 2008-08-31  Bruno Haible  <bruno@clisp.org>
7708
7709         Assume Solaris specific bi-arch conventions on Solaris systems.
7710         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
7711         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
7712         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
7713         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
7714         like acl_libdirstem.
7715         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
7716         acl_libdirstem.
7717         * NEWS: Mention the change.
7718         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
7719
7720 2008-08-31  Jim Meyering  <meyering@redhat.com>
7721
7722         * lib/strftime.h: Add comments describing the two added arguments.
7723
7724         remove duplicate #include directives
7725         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
7726         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
7727
7728 2008-08-31  Bruno Haible  <bruno@clisp.org>
7729
7730         New module 'sigpipe-die'.
7731         * modules/sigpipe-die: New file.
7732         * lib/sigpipe-die.h: New file.
7733         * lib/sigpipe-die.c: New file.
7734         * MODULES.html.sh (Signal handling): Add sigpipe-die.
7735
7736 2008-08-31  Bruno Haible  <bruno@clisp.org>
7737
7738         Don't override previously installed signal handlers.
7739         * lib/fatal-signal.c (saved_sigactions): New variable.
7740         (uninstall_handlers): Reset the signal to the saved handler, not
7741         to SIG_DFL (except when ignored).
7742         (install_handlers): Save the previous handlers.
7743
7744 2008-08-30  Bruno Haible  <bruno@clisp.org>
7745
7746         * gnulib-tool (func_reset_sigpipe): New function.
7747         (func_get_automake_snippet, func_modules_transitive_closure,
7748         func_import): Invoke it before a join command that reads from stdin,
7749         to avoid "echo: write error: Broken pipe" error messages on stderr.
7750         Reported by Sam Steingold <sds@gnu.org>.
7751
7752 2008-08-30  Bruno Haible  <bruno@clisp.org>
7753
7754         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
7755         Code copied from m4/open.m4.
7756         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
7757         access and the filename ends in a slash. Code copied from lib/open.c.
7758         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
7759         * tests/test-fopen.c (main): Check against bug with trailing slash.
7760
7761 2008-08-29  Bruno Haible  <bruno@clisp.org>
7762
7763         Avoid some "gcc -pedantic" warnings.
7764         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
7765         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
7766         * lib/dirent.in.h: Likewise.
7767         * lib/fcntl.in.h: Likewise.
7768         * lib/float.in.h: Likewise.
7769         * lib/iconv.in.h: Likewise.
7770         * lib/inttypes.in.h: Likewise.
7771         * lib/locale.in.h: Likewise.
7772         * lib/math.in.h: Likewise.
7773         * lib/netinet_in.in.h: Likewise.
7774         * lib/search.in.h: Likewise.
7775         * lib/signal.in.h: Likewise.
7776         * lib/stdarg.in.h: Likewise.
7777         * lib/stdint.in.h: Likewise.
7778         * lib/stdio.in.h: Likewise.
7779         * lib/stdlib.in.h: Likewise.
7780         * lib/string.in.h: Likewise.
7781         * lib/strings.in.h: Likewise.
7782         * lib/sys_select.in.h: Likewise.
7783         * lib/sys_socket.in.h: Likewise.
7784         * lib/sys_stat.in.h: Likewise.
7785         * lib/sys_time.in.h: Likewise.
7786         * lib/sysexits.in.h: Likewise.
7787         * lib/time.in.h: Likewise.
7788         * lib/unistd.in.h: Likewise.
7789         * lib/wchar.in.h: Likewise.
7790         * lib/wctype.in.h: Likewise.
7791         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
7792         * modules/fchdir (Makefile.am): Likewise.
7793         * modules/fcntl (Makefile.am): Likewise.
7794         * modules/float (Makefile.am): Likewise.
7795         * modules/iconv_open (Makefile.am): Likewise.
7796         * modules/inttypes (Makefile.am): Likewise.
7797         * modules/locale (Makefile.am): Likewise.
7798         * modules/math (Makefile.am): Likewise.
7799         * modules/netinet_in (Makefile.am): Likewise.
7800         * modules/search (Makefile.am): Likewise.
7801         * modules/signal (Makefile.am): Likewise.
7802         * modules/stdarg (Makefile.am): Likewise.
7803         * modules/stdint (Makefile.am): Likewise.
7804         * modules/stdio (Makefile.am): Likewise.
7805         * modules/stdlib (Makefile.am): Likewise.
7806         * modules/string (Makefile.am): Likewise.
7807         * modules/strings (Makefile.am): Likewise.
7808         * modules/sys_select (Makefile.am): Likewise.
7809         * modules/sys_socket (Makefile.am): Likewise.
7810         * modules/sys_stat (Makefile.am): Likewise.
7811         * modules/sys_time (Makefile.am): Likewise.
7812         * modules/sysexits (Makefile.am): Likewise.
7813         * modules/time (Makefile.am): Likewise.
7814         * modules/unistd (Makefile.am): Likewise.
7815         * modules/wchar (Makefile.am): Likewise.
7816         * modules/wctype (Makefile.am): Likewise.
7817         Reported by Reuben Thomas <rrt@sc3d.org>.
7818
7819 2008-08-29  Bruno Haible  <bruno@clisp.org>
7820
7821         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
7822         any more.
7823
7824 2008-08-29  Simon Josefsson  <simon@josefsson.org>
7825
7826         * MODULES.html.sh (Misc): Add bitrotate.
7827
7828         * modules/bitrotate: New file.
7829
7830         * lib/bitrotate.h: New file.
7831
7832         * modules/bitrotate-tests: New file.
7833
7834         * tests/test-bitrotate.c: New file.
7835
7836         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
7837         on the bitrotate module.
7838
7839         * lib/arctwo.c: Use new bitrotate module.
7840
7841 2008-08-29  Jim Meyering  <meyering@redhat.com>
7842
7843         bootstrap: merge changes from coreutils
7844         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
7845         of copied files.  Remove a kludge, now that this is fixed.
7846         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
7847         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
7848         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
7849
7850 2008-08-29  Bruno Haible  <bruno@clisp.org>
7851
7852         * MODULES.html.sh: Remove --cvs-urls option.
7853
7854 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
7855
7856         maint.mk: adjust to file name change
7857         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
7858
7859 2008-08-28  Jim Meyering  <meyering@redhat.com>
7860
7861         * modules/getndelim2 (License): Relicense to LGPLv2+.
7862         Approved by Richard Stallman for the version of 1995, and by
7863         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
7864
7865 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
7866
7867         * lib/getdelim.c (flockfile, funlockfile): Make all of them
7868         dummy if one is not available.  Do not touch them if
7869         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
7870         (getc_maybe_unlocked): New.
7871         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
7872
7873 2008-08-26  Eric Blake  <ebb9@byu.net>
7874
7875         doc/INSTALL: resync from autoconf
7876         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
7877         (INSTALL_PRELUDE): Delete; this is done more efficiently by
7878         moving...
7879         * install.texi [!autoconf]: ...here.  Resync from autoconf.
7880         * INSTALL: Regenerate.
7881         * INSTALL.ISO: New file.
7882         * INSTALL.UTF-8: Likewise.
7883
7884 2008-08-26  Jim Meyering  <meyering@redhat.com>
7885
7886         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
7887         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
7888         these definitions conditional, so that they may be overridden, too.
7889
7890 2008-08-26  Bruno Haible  <bruno@clisp.org>
7891
7892         Generate INSTALL file variants with prettier quotes.
7893         * doc/Makefile (INSTALL_PRELUDE): New macro.
7894         (INSTALL): Use it.
7895         (INSTALL.ISO, INSTALL.UTF-8): New rules.
7896
7897 2008-08-26  Bruno Haible  <bruno@clisp.org>
7898
7899         Run makeinfo in an English locale.
7900         * doc/Makefile (MAKEINFO): New variable.
7901
7902 2008-08-26  Bruno Haible  <bruno@clisp.org>
7903
7904         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
7905         Suggested by Eric Blake.
7906
7907 2008-08-25  Bruno Haible  <bruno@clisp.org>
7908
7909         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
7910
7911 2008-08-25  Eric Blake  <ebb9@byu.net>
7912
7913         c-stack: test that stack overflow can be caught
7914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
7915         that platform allows handling stack overflow; at least OS/2 EMX
7916         has sigaltstack, but crashes before transferring control to
7917         handler on stack overflow.
7918         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
7919         check for HAVE_STACK_OVERFLOW_HANDLING.
7920         Reported by Elbert Pol.
7921
7922 2008-08-25  Bruno Haible  <bruno@clisp.org>
7923
7924         * doc/posix-functions/strftime.texi: Fix description of strftime
7925         module.
7926
7927 2008-08-24  Bruno Haible  <bruno@clisp.org>
7928
7929         * tests/uniwidth/test-uc_width2.c: New file.
7930         * tests/uniwidth/test-uc_width2.sh: New file.
7931         * modules/uniwidth/width-tests (Files): Add the new files.
7932         (TESTS): Add uniwidth/test-uc_width2.sh.
7933         (TESTS_ENVIRONMENT): New variable.
7934         (check_PROGRAMS): Add test-uc_width2.
7935         (test_uc_width2_SOURCES): New variable.
7936
7937         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
7938         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
7939         not 0x00AB.
7940         Reported by Alexander V. Lukyanov <lav@netis.ru>.
7941
7942 2008-08-22  Eric Blake  <ebb9@byu.net>
7943
7944         test-lock, test-tls: mention why a test is skipped
7945         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
7946         skipped.
7947         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
7948
7949         count-one-bits: relax license
7950         * modules/count-one-bits (License): Relicense to LGPLv2+.
7951         Suggested by Ludovic Courtès, approved by Ben Pfaff.
7952
7953 2008-08-22  Andreas Schwab  <schwab@suse.de>
7954
7955         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7956         Remove spurious space in assignment.
7957
7958 2008-08-21  Simon Josefsson  <simon@josefsson.org>
7959
7960         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
7961         Paul Eggert <eggert@CS.UCLA.EDU>.
7962
7963 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
7964
7965         * modules/gettext: Add m4/threadlib.m4.
7966
7967 2008-08-19  Eric Blake  <ebb9@byu.net>
7968
7969         test-c-stack: fix compilation failure on FreeBSD 5.0
7970         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
7971         headers before <sys/resource.h>.
7972         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
7973         the bug.
7974         Reported by Nelson H. F. Beebe.
7975
7976         strverscmp: migrate from "strverscmp.h" to <string.h>
7977         * modules/string (Makefile.am): Add new hooks.
7978         * modules/strverscmp (Files): Remove strverscmp.h.
7979         (Depends-on): Add string.
7980         (configure.ac): Add indicator.
7981         (Include): Mention new header.
7982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
7983         defaults.
7984         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
7985         results.
7986         * lib/strverscmp.h: Delete.
7987         * lib/string.in.h (strverscmp): Provide declaration, when needed.
7988         * tests/test-strverscmp.c (includes): Adjust client.
7989         * lib/check-version.c (includes): Likewise.
7990         * NEWS: Document the change.
7991
7992         strverscmp: add unit test
7993         * modules/strverscmp-tests: New file.
7994         * tests/test-strverscmp.c: Likewise.
7995
7996 2008-08-19  Simon Josefsson  <simon@josefsson.org>
7997
7998         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
7999         regarding Windows crypto stuff, from Mono.
8000
8001 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8002
8003         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8004         if present, for intel RND.  Return error on failures.
8005
8006 2008-08-18  Ben Pfaff  <blp@gnu.org>
8007
8008         gitlog-to-changelog: give better diagnostic for failed pipe-open
8009         * build-aux/gitlog-to-changelog: Improve error message: suggest
8010         that the version of Git may be too old.
8011
8012 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8013
8014         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8015         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8016
8017 2008-08-18  Bruno Haible  <bruno@clisp.org>
8018
8019         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8020         pthread_in_use().
8021
8022 2008-08-18  Bruno Haible  <bruno@clisp.org>
8023
8024         * lib/glthread/threadlib.c: Include <pthread.h>.
8025
8026 2008-08-18  Bruno Haible  <bruno@clisp.org>
8027
8028         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8029         glthread_recursive_lock_* macros.
8030         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8031         Fix syntax error.
8032
8033 2008-08-18  Bruno Haible  <bruno@clisp.org>
8034
8035         * lib/glthread/thread.c: Avoid forcing a context switch right after
8036         thread creation.
8037
8038 2008-08-17  Bruno Haible  <bruno@clisp.org>
8039
8040         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8041         * lib/glthread/thread.h: Provide Win32 specific implementation.
8042         * modules/thread (Files): Add lib/glthread/thread.c.
8043         (Depends-on): Add lock.
8044         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8045
8046 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8047
8048         New module 'yield'.
8049         * modules/yield: New file.
8050         * lib/glthread/yield.h: New file.
8051         * m4/yield.m4: New file.
8052         * MODULES.html.sh (Multithreading): Add yield.
8053
8054 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8055
8056         New module 'thread'.
8057         * modules/thread: New file.
8058         * lib/glthread/thread.h: New file.
8059         * m4/thread.m4: New file.
8060         * MODULES.html.sh (Multithreading): Add thread.
8061
8062 2008-08-17  Bruno Haible  <bruno@clisp.org>
8063
8064         * lib/glthread/lock.h: Include <stdlib.h> always.
8065         * lib/glthread/tls.h: Likewise.
8066         * lib/glthread/cond.h: Likewise.
8067
8068 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8069
8070         New module 'cond'.
8071         * modules/cond: New file.
8072         * lib/glthread/cond.h: New file.
8073         * lib/glthread/cond.c: New file.
8074         * m4/cond.m4: New file.
8075         * MODULES.html.sh (Multithreading): Add cond.
8076
8077 2008-08-16  Eric Blake  <ebb9@byu.net>
8078
8079         c-stack: fix regression on Irix 5.3 from 2008-06-21
8080         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8081         sa_sigaction...
8082         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8083         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8085         * modules/signal (Makefile.am): Use the value.
8086         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8087         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8088         * doc/posix-headers/signal.texi (signal.h): Document this
8089         portability issue.
8090         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8091         Reported by Tom G. Christensen.
8092
8093 2008-08-17  Bruno Haible  <bruno@clisp.org>
8094
8095         New module 'threadlib'.
8096         * modules/threadlib: New file.
8097         * lib/glthread/threadlib.c: New file, extracted from
8098         lib/glthread/lock.c.
8099         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8100         functions.
8101         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8102         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8103         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8104         macros.
8105         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8106         (gl_DISABLE_THREADS): Remove macro.
8107         * modules/lock (Files): Remove build-aux/config.rpath.
8108         (Depends-on): Remove havelib. Add threadlib.
8109         (configure.ac-early): Remove section.
8110         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8111         * modules/tls (Depends-on): Remove lock. Add threadlib.
8112         (Link): New section, copied from threadlib.
8113         * MODULES.html.sh (Multithreading): Add threadlib.
8114
8115 2008-08-14  Bruno Haible  <bruno@clisp.org>
8116
8117         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8118         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8119         glthread_rwlock_unlock, glthread_rwlock_destroy,
8120         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8121         glthread_recursive_lock_destroy): Define as macros always.
8122         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8123         glthread_lock_lock.
8124         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8125         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8126         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8127         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8128         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8129         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8130         (glthread_recursive_lock_lock_func): Renamed from
8131         glthread_recursive_lock_lock.
8132         (glthread_recursive_lock_unlock_func): Renamed from
8133         glthread_recursive_lock_unlock.
8134         (glthread_recursive_lock_destroy_func): Renamed from
8135         glthread_recursive_lock_destroy.
8136
8137 2008-08-14  Bruno Haible  <bruno@clisp.org>
8138
8139         * lib/glthread/lock.h: Renamed from lib/lock.h.
8140         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8141         * lib/glthread/tls.h: Renamed from lib/tls.h.
8142         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8143         * lib/fstrcmp.c: Update includes.
8144         * lib/strsignal.c: Update includes.
8145         * modules/lock (Files, Makefile.am): Update.
8146         (Include): Change to "glthread/lock.h".
8147         * modules/tls (Files, Makefile.am): Update.
8148         (Include): Change to "glthread/tls.h".
8149         * tests/test-lock.c: Update includes.
8150         * tests/test-tls.c: Update includes.
8151         * NEWS: Mention the renamed header files.
8152
8153 2008-08-11  Jim Meyering  <meyering@redhat.com>
8154
8155         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8156
8157 2008-08-11  Eric Blake  <ebb9@byu.net>
8158
8159         test-c-stack: avoid C99-ism
8160         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8161         before statement.
8162         Reported by Alain Guibert.
8163
8164 2008-08-10  Jim Meyering  <meyering@redhat.com>
8165
8166         ensure that return value of uinttostr et al are not ignored
8167         * lib/inttostr.h (__GNUC_PREREQ): Define.
8168         (__attribute_warn_unused_result__): Define.
8169         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8170
8171 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8172
8173         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8174         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8175
8176 2008-08-07  Jim Meyering  <meyering@redhat.com>
8177
8178         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8179
8180         * modules/mkstemp (License): Relicense under LGPLv2+.
8181         * modules/tempname (License): Likewise.
8182
8183 2008-08-06  Bruno Haible  <bruno@clisp.org>
8184
8185         * lib/poll.c (poll): Further micro-optimization.
8186
8187 2008-08-06  Jim Meyering  <meyering@redhat.com>
8188
8189         inet_pton.c: use locale-independent tolower
8190         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8191         (inet_pton6): Use c_tolower rather than tolower.
8192         * modules/inet_pton (Depends-on): Add c-ctype.
8193
8194 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8195
8196         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8197         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8198
8199 2008-08-06  Jim Meyering  <meyering@redhat.com>
8200
8201         * modules/inet_pton (License): Relicense under LGPLv2+.
8202
8203 2008-08-03  Bruno Haible  <bruno@clisp.org>
8204
8205         Additional non-aborting API for lock and tls.
8206         * lib/lock.h: Include <errno.h>.
8207         (glthread_lock_init): New macro/function.
8208         (gl_lock_init): Define as wrapper around glthread_lock_init.
8209         (glthread_lock_lock): New macro/function.
8210         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8211         (glthread_lock_unlock): New macro/function.
8212         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8213         (glthread_lock_destroy): New macro/function.
8214         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8215         (glthread_rwlock_init): New macro/function.
8216         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8217         (glthread_rwlock_rdlock): New macro/function.
8218         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8219         (glthread_rwlock_wrlock): New macro/function.
8220         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8221         (glthread_rwlock_unlock): New macro/function.
8222         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8223         (glthread_rwlock_destroy): New macro/function.
8224         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8225         (glthread_recursive_lock_init): New macro/function.
8226         (gl_recursive_lock_init): Define as wrapper around
8227         glthread_recursive_lock_init.
8228         (glthread_recursive_lock_lock): New macro/function.
8229         (gl_recursive_lock_lock): Define as wrapper around
8230         glthread_recursive_lock_lock.
8231         (glthread_recursive_lock_unlock): New macro/function.
8232         (gl_recursive_lock_unlock): Define as wrapper around
8233         glthread_recursive_lock_unlock.
8234         (glthread_recursive_lock_destroy): New macro/function.
8235         (gl_recursive_lock_destroy): Define as wrapper around
8236         glthread_recursive_lock_destroy.
8237         (glthread_once): New macro/function.
8238         (gl_once): Define as wrapper around glthread_once.
8239         Update function declarations.
8240         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8241         glthread_rwlock_init. Return error code.
8242         (glthread_rwlock_rdlock_multithreaded): Renamed from
8243         glthread_rwlock_rdlock. Return error code.
8244         (glthread_rwlock_wrlock_multithreaded): Renamed from
8245         glthread_rwlock_wrlock. Return error code.
8246         (glthread_rwlock_unlock_multithreaded): Renamed from
8247         glthread_rwlock_unlock. Return error code.
8248         (glthread_rwlock_destroy_multithreaded): Renamed from
8249         glthread_rwlock_destroy. Return error code.
8250         (glthread_recursive_lock_init_multithreaded): Renamed from
8251         glthread_recursive_lock_init. Return error code.
8252         (glthread_recursive_lock_lock_multithreaded): Renamed from
8253         glthread_recursive_lock_lock. Return error code.
8254         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8255         glthread_recursive_lock_unlock. Return error code.
8256         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8257         glthread_recursive_lock_destroy. Return error code.
8258         (glthread_once_call): Make static.
8259         (glthread_once_multithreaded): Renamed from glthread_once.
8260         * lib/tls.h: Include <errno.h>.
8261         (glthread_tls_key_init): New macro/function.
8262         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8263         (glthread_tls_set): New macro/function.
8264         (gl_tls_set): Define as wrapper around glthread_tls_set.
8265         (glthread_tls_key_destroy): New macro/function.
8266         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8267         Update function declarations.
8268         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8269         glthread_tls_get.
8270         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8271
8272 2008-08-04  Eric Blake  <ebb9@byu.net>
8273
8274         gnumakefile: use space, not TAB, outside of targets
8275         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8276
8277 2008-08-02  Jim Meyering  <meyering@redhat.com>
8278
8279         getdate.y: avoid locale-dependent date parsing failure
8280         In Turkish locales, getdate would fail to recognize keywords
8281         containing a lowercase "i".  The solution is not to rely on
8282         locale-sensitive case-conversion.
8283         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8284         (lookup_word): Use c_toupper in place of toupper.
8285         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8286         Reported by Vefa Bicakci <bicave@superonline.com> in
8287         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8288         * modules/getdate (Depends-on): Add c-ctype.
8289
8290 2008-08-02  Bruno Haible  <bruno@clisp.org>
8291
8292         * gnulib-tool (func_import): When updating or creating a .gitignore
8293         file, prepend each added line with a slash, and ignore leading slashes
8294         from the existing lines.
8295         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8296
8297 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8298
8299         Portability fix for GNU make 3.79.1.
8300         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8301         versions do not understand.
8302
8303 2008-08-01  Bruno Haible  <bruno@clisp.org>
8304
8305         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8306         * tests/test-isnanf.h (zero): New variable.
8307         (main): Avoid literal -0.0f.
8308         * tests/test-isnand.h (zero): New variable.
8309         (main): Avoid literal -0.0.
8310         * tests/test-isnanl.h (zero): New variable.
8311         (main): Avoid literal -0.0L.
8312         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8313         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8314         -0.0, -0.0L.
8315         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8316         (test_signbitd): Avoid literal -0.0.
8317         (test_signbitl): Avoid literal -0.0L.
8318         * tests/test-ceilf1.c (zero): New variable.
8319         (main): Avoid literal -0.0f.
8320         * tests/test-ceill.c (zero): New variable.
8321         (main): Avoid literal -0.0L.
8322         * tests/test-floorf1.c (zero): New variable.
8323         (main): Avoid literal -0.0f.
8324         * tests/test-floorl.c (zero): New variable.
8325         (main): Avoid literal -0.0L.
8326         * tests/test-roundf1.c (zero): New variable.
8327         (main): Avoid literal -0.0f.
8328         * tests/test-round1.c (zero): New variable.
8329         (main): Avoid literal -0.0.
8330         * tests/test-roundl.c (zero): New variable.
8331         (main): Avoid literal -0.0L.
8332         * tests/test-truncf1.c (zero): New variable.
8333         (main): Avoid literal -0.0f.
8334         * tests/test-trunc1.c (zero): New variable.
8335         (main): Avoid literal -0.0.
8336         * tests/test-truncl.c (zero): New variable.
8337         (main): Avoid literal -0.0L.
8338         * tests/test-frexp.c (zero): New variable.
8339         (main): Avoid literal -0.0.
8340         * tests/test-frexpl.c (zero): New variable.
8341         (main): Avoid literal -0.0L.
8342         * tests/test-ldexpl.c (zero): New variable.
8343         (main): Avoid literal -0.0L.
8344         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8345         (zerod, zerol): New variables.
8346         (test_function): Avoid literals -0.0, -0.0L.
8347         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8348         (zerod, zerol): New variables.
8349         (test_function): Avoid literals -0.0, -0.0L.
8350         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8351         (zerod, zerol): New variables.
8352         (test_function): Avoid literals -0.0, -0.0L.
8353         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8354         (zerod, zerol): New variables.
8355         (test_function): Avoid literals -0.0, -0.0L.
8356         * tests/test-strtod.c (zero): New variable.
8357         (main): Avoid literal -0.0.
8358         Reported by Jonathan C. Patschke <jp@centtech.com>.
8359
8360 2008-07-31  Jim Meyering  <meyering@redhat.com>
8361
8362         sha256.h: correct definition of SHA224_DIGEST_SIZE
8363         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8364         Reported by Paulie Pena IV <paulie4@gmail.com>.
8365         Define as 224 / 8, rather than as a literal.
8366         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8367         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8368         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8369
8370 2008-07-31  Bruno Haible  <bruno@clisp.org>
8371
8372         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8373         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8374         Reported by Jonathan Patschke <jp@centtech.com>.
8375
8376 2008-07-31  Bruno Haible  <bruno@clisp.org>
8377
8378         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8379         Reported by Paolo Bonzini <bonzini@gnu.org>.
8380
8381 2008-07-30  Eric Blake  <ebb9@byu.net>
8382
8383         test-strtod: allow compilation without -lm
8384         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8385         Reported by Dennis Clarke <blastwave@gmail.com>.
8386
8387 2008-07-28  Jim Meyering  <meyering@redhat.com>
8388
8389         bootstrap: work also when there are no .po files in po/
8390         * build-aux/bootstrap (update_po_files): Complete the change
8391         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8392
8393 2008-07-27  Jim Meyering  <meyering@redhat.com>
8394
8395         * users.txt: Add zile.
8396
8397 2008-07-26  Ben Pfaff  <blp@gnu.org>
8398
8399         Add missing dependencies on new m4/exponent[fdl].m4 files.
8400         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8401         * modules/isnand-nolibm: Add m4/exponentd.m4.
8402         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8403         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8404         m4/isnan[fdl].m4, because the macros actually used moved.
8405         Reported by Jim Meyering.
8406
8407 2008-07-14  Ben Pfaff  <blp@gnu.org>
8408
8409         Add isinf module.
8410         * lib/isinf.c: New file.
8411         * lib/math.in.h: Define isinf macro if we have decided to replace
8412         it.
8413         * m4/isinf.m4: New file.
8414         * m4/math_h.m4: Initialize and substitute variables for isinf
8415         module.
8416         * modules/isinf: New file.
8417         * modules/isinf-tests: New file.
8418         * modules/math: Add substitutions for new module.
8419         * tests/test-isinf.c: New file.
8420         * doc/posix-functions/isinf.texi: Mention new module.
8421         * MODULES.html.sh: Mention new module.
8422
8423 2008-07-14  Ben Pfaff  <blp@gnu.org>
8424
8425         Factor out some macros for use by additional modules.
8426         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8427         exponentf.m4.
8428         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8429         exponentd.m4.
8430         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8431         file exponentl.m4.
8432         * m4/exponentf.m4: New file.
8433         * m4/exponentd.m4: New file.
8434         * m4/exponentl.m4: New file.
8435         * modules/isnanf: Use new file m4/exponentf.m4.
8436         * modules/isnand: Use new file m4/exponentd.m4.
8437         * modules/isnanl: Use new file m4/exponentl.m4.
8438
8439 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8440
8441         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8442         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8443         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8444         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8445
8446         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8447         readlink on platforms without PATH_MAX.
8448
8449 2008-07-21  Eric Blake  <ebb9@byu.net>
8450
8451         Warn, not fail, on stale version.
8452         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8453
8454         Don't allow installation with stale devel version number.
8455         * top/GNUmakefile (_is-install-target): New macro.
8456         (_curr-ver): Forbid installation with stale version number.
8457
8458 2008-07-20  Bruno Haible  <bruno@clisp.org>
8459
8460         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8461         TESTS_ENVIRONMENT.
8462         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8463
8464 2008-07-20  Bruno Haible  <bruno@clisp.org>
8465
8466         * lib/c-stack.h (c_stack_action): Add documentation.
8467         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8468
8469 2008-07-20  Bruno Haible  <bruno@clisp.org>
8470
8471         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8472         * modules/readlink (License): Likewise.
8473
8474 2008-07-17  Eric Blake  <ebb9@byu.net>
8475
8476         * modules/c-stack (Link): Fix typo.
8477
8478         Make c-stack use libsigsegv, when available.
8479         * modules/c-stack (Depends-on): Add libsigsegv.
8480         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8481         needed.
8482         * lib/c-stack.c (SIGSTKSZ): Define fallback.
8483         (segv_handler, overflow_handler, c_stack_action)
8484         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8485         implementation when libsigsegv is available, but only when using
8486         the library is necessary.
8487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8488         comment, explaining why XSI check fails on Linux.
8489         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8490         * tests/test-c-stack2.sh: Tweak skip message.
8491         * NEWS: Document new link-time requirements.
8492
8493 2008-07-16  Eric Blake  <ebb9@byu.net>
8494
8495         c-stack: Expose false positives when not using libsigsegv.
8496         * modules/c-stack-tests (Files): Expand test.
8497         * tests/test-c-stack.c (main): Add means to conditionally trigger
8498         non-overflow SIGSEGV.
8499         * tests/test-c-stack2.sh: New file.
8500
8501 2008-07-14  Bruno Haible  <bruno@clisp.org>
8502
8503         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8504         Reported by Eric Blake.
8505
8506 2008-07-14  Sam Steingold  <sds@gnu.org>
8507             Bruno Haible  <bruno@clisp.org>
8508
8509         New module libsigsegv.
8510         * modules/libsigsegv: New file.
8511         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8512         modifications.
8513         * MODULES.html.sh (Signal handling): New section.
8514
8515 2008-07-14  Bruno Haible  <bruno@clisp.org>
8516
8517         * modules/unictype/ctype-* (Description): Add the word "function".
8518         Improves the resulting doc in MODULES.html.
8519
8520 2008-07-12  Ben Pfaff  <blp@gnu.org>
8521
8522         Add longlong module.
8523         * modules/longlong: New file.
8524
8525 2008-07-12  Bruno Haible  <bruno@clisp.org>
8526
8527         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8528         to empty.
8529
8530 2008-07-10  Ben Pfaff  <blp@gnu.org>
8531
8532         Add isnan module.
8533         * doc/posix-functions/isnan.texi: Mention new module.
8534         * lib/math.in.h: Define isnan macro if we have decided to replace
8535         it.
8536         * m4/isnan.m4: New file.
8537         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8538         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8539         also.
8540         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8541         redundancy.
8542         * m4/math_h.m4: Initialize and substitute variables for isnan
8543         module.
8544         * modules/isnan: New file.
8545         * modules/isnan-tests: New file.
8546         * modules/math: Add substitutions for new module.
8547         * tests/test-isnan.c: New file.
8548         * MODULES.html.sh: Mention new module.
8549
8550 2008-07-10  Ben Pfaff  <blp@gnu.org>
8551
8552         Add isnanf module.
8553         * lib/isnanf.m4: New file.
8554         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8555         (gl_HAVE_ISNANF_IN_LIBM): New macro.
8556         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8557         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8558         * modules/isnanf: New file.
8559         * modules/isnanf-tests: New file.
8560         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8561         files.
8562         * tests/test-isnanf-nolibm.c: factored most of its contents into
8563         new file tests/test-isnanf.h.
8564         * tests/test-isnanf.h: New file.
8565         * tests/test-isnanf.c: New file.
8566         * MODULES.html.sh: Mention new module.
8567         * doc/glibc-functions/isnanf.texi: Mention new module.
8568
8569 2008-07-10  Ben Pfaff  <blp@gnu.org>
8570
8571         Add isnand module.
8572         * lib/isnand.h: New file.
8573         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8574         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8575         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8576         functionality also.
8577         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8578         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8579         (gl_HAVE_ISNAND_IN_LIBM): New macro.
8580         * modules/isnand: New file.
8581         * modules/isnand-tests: New file.
8582         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8583         files.
8584         * tests/test-isnand-nolibm.c: factored most of its contents into
8585         new file tests/test-isnand.h.
8586         * tests/test-isnand.h: New file.
8587         * tests/test-isnand.c: New file.
8588         * MODULES.html.sh: Mention new module.
8589
8590 2008-07-10  Ben Pfaff  <blp@gnu.org>
8591
8592         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8593         * lib/isnand.h: Rename lib/isnand-nolibm.h.
8594         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8595         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8596         * modules/isnanf-nolibm: Update references to renamed files.
8597         * modules/isnand-nolibm: Likewise.
8598         * modules/isnanf-nolibm-tests: Likewise.
8599         * modules/isnand-nolibm-tests: Likewise.
8600         * lib/frexp.c: Likewise.
8601         * lib/isfinite.c: Likewise.
8602         * lib/signbitd.c: Likewise.
8603         * lib/signbitf.c: Likewise.
8604         * lib/vasnprintf.c: Likewise.
8605         * tests/test-ceilf1.c: Likewise.
8606         * tests/test-ceilf2.c: Likewise.
8607         * tests/test-floorf1.c: Likewise.
8608         * tests/test-floorf2.c: Likewise.
8609         * tests/test-frexp.c: Likewise.
8610         * tests/test-round1.c: Likewise.
8611         * tests/test-round2.c: Likewise.
8612         * tests/test-roundf1.c: Likewise.
8613         * tests/test-strtod.c: Likewise.
8614         * tests/test-trunc1.c: Likewise.
8615         * tests/test-trunc2.c: Likewise.
8616         * tests/test-truncf1.c: Likewise.
8617         * tests/test-truncf2.c: Likewise.
8618         * NEWS: Mention the renamed header files.
8619
8620 2008-07-11  Jim Meyering  <meyering@redhat.com>
8621
8622         vc-list-files: make the last-resort awk code more portable
8623         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
8624         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
8625         does not support it.
8626
8627 2008-07-10  Eric Blake  <ebb9@byu.net>
8628
8629         Work with tar's bootstrap.
8630         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
8631         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
8632         an m4 comment.
8633
8634 2008-07-09  Jim Meyering  <meyering@redhat.com>
8635
8636         posix-shell.m4: fix typo that made this test malfunction
8637         * m4/posix-shell.m4: Remove capitalization in variable name.
8638
8639 2008-07-08  Bruno Haible  <bruno@clisp.org>
8640
8641         * m4/onceonly.m4: Update comments.
8642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8643
8644 2008-07-04  Jim Meyering  <meyering@redhat.com>
8645
8646         * users.txt: Add vc-dwim.
8647         (bison, coreutils): Use the gitweb URL.
8648
8649 2008-07-03  Jim Meyering  <meyering@redhat.com>
8650
8651         * users.txt: Add libffcall.  From Sam Steingold.
8652
8653 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
8654
8655         getdate.y: do not ignore TZ with relative day, month or year offset
8656         * lib/getdate.y (get_date): Move the tz-handling block to follow the
8657         relative-date-handling, since otherwise, the latter would clobber the
8658         sole output (an updated Start value) of the tz-handling block.
8659         * tests/test-getdate.c: Tests for the fix
8660
8661 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8662
8663         Recognize 'foo_LIBRARIES += libgnu.a'.
8664         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
8665         makefile snippet has already specified an installation location,
8666         also using '+='.
8667
8668 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
8669
8670         getdate.y: factor out common actions
8671         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
8672         Use them in place of open-coded actions.
8673
8674 2008-07-01  Simon Josefsson  <simon@josefsson.org>
8675
8676         Add self-test for getdate module.
8677         * modules/getdate-tests: New file.
8678         * tests/test-getdate.c: New file.
8679
8680 2008-06-29  Bruno Haible  <bruno@clisp.org>
8681
8682         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
8683         .gitignore.
8684         Reported by Sylvain Beucler <beuc@beuc.net>.
8685
8686 2008-06-29  Bruno Haible  <bruno@clisp.org>
8687
8688         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
8689         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
8690
8691 2008-06-29  Bruno Haible  <bruno@clisp.org>
8692
8693         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
8694         EXTRA_DIST.
8695         Reported by Sylvain Beucler <beuc@beuc.net>.
8696
8697 2008-06-26  Jim Meyering  <meyering@redhat.com>
8698
8699         make several modules depend on the "open" module
8700         This provides slightly increased consistency when opening-for-write
8701         the name of a non-directory spelled with a trailing slash.
8702         * modules/chdir-safer: Likewise.
8703         * modules/chown: Likewise.
8704         * modules/clean-temp: Likewise.
8705         * modules/copy-file: Likewise.
8706         * modules/fchdir: Likewise.
8707         * modules/fcntl-safer: Likewise.
8708         * modules/pipe: Likewise.
8709         * modules/utime: Likewise.
8710         Prompted by Eric Blake and Bruno Haible.
8711
8712 2008-06-24  Andreas Schwab  <schwab@suse.de>
8713
8714         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
8715         literals can be used as initializers for global variables.
8716
8717 2008-06-23  Eric Blake  <ebb9@byu.net>
8718
8719         Make gnulib-cache.m4 easier to diff.
8720         * gnulib-tool (func_import): Allow newlines when reading cached
8721         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
8722
8723 2008-06-23  Bruno Haible  <bruno@clisp.org>
8724
8725         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
8726         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
8727         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
8728         m4/signalblocking.m4.
8729         (gl_PREREQ_SIGACTION): Don't invoke it.
8730         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
8731         gl_PREREQ_SIG_HANDLER_H.
8732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8733         Don't check for sigaction here.
8734
8735 2008-06-23  Bruno Haible  <bruno@clisp.org>
8736
8737         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
8738         (install_handlers): Don't set the SA_RESETHAND flag.
8739
8740 2008-06-23  Bruno Haible  <bruno@clisp.org>
8741
8742         * m4/sigaction.m4: Comment fixes.
8743         * lib/signal.in.h: Likewise.
8744
8745 2008-06-23  Eric Blake  <ebb9@byu.net>
8746
8747         Fix typo.
8748         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
8749
8750         Avoid SA_ namespace.
8751         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
8752         Reported by Ralf Wildenhues.
8753
8754         Avoid test failure due to SA_RESTORER.
8755         * tests/test-sigaction.c (SA_MASK): New macro.
8756         (main): Avoid failing due to extension flags being set.
8757         Reported by Jim Meyering.
8758
8759         Revert use of sig-handler.h in sigprocmask.c.
8760         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
8761         it requires the existence of struct sigaction.
8762         * lib/sigprocmask.c (handler_t): Restore typedef.
8763         (rpl_signal, old_handlers): Use local type.
8764
8765 2008-06-22  Bruno Haible  <bruno@clisp.org>
8766
8767         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
8768         conditionally.
8769         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8770
8771 2008-06-22  Bruno Haible  <bruno@clisp.org>
8772
8773         * doc/posix-functions/siginterrupt.texi: Move note.
8774
8775         * lib/signal.in.h (SA_RESTART): New macro.
8776         * lib/sigaction.c: Update comment.
8777
8778         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
8779
8780         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
8781         (gl_PREREQ_SIGPROCMASK): Invoke it.
8782         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
8783
8784         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
8785
8786         * lib/sigprocmask.c: Update a comment.
8787
8788 2008-06-21  Eric Blake  <ebb9@byu.net>
8789
8790         Use sigaction module rather than signal().
8791         * modules/c-stack (Depends-on): Add sigaction.
8792         * modules/fatal-signal (Depends-on): Likewise.
8793         * modules/nanosleep (Depends-on): Likewise.
8794         * modules/sigprocmask (Files): Add sig-handler.h.
8795         * modules/sigaction (Files): Likewise.
8796         * lib/sig-handler.h (get_handler): New file, suggested by Paul
8797         Eggert.
8798         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
8799         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
8800         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8801         (init_fatal_signals): Likewise.
8802         * lib/nanosleep.c (rpl_nanosleep): Likewise.
8803         (siginterrupt): Delete fallback.
8804         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
8805         instead.
8806         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
8807         siginterrupt.
8808
8809         New module sigaction, for mingw.
8810         * modules/sigaction: New module...
8811         * modules/sigaction-tests: ...and its test.
8812         * m4/sigaction.m4: New file.
8813         * lib/sigaction.c: Likewise.
8814         * tests/test-sigaction.c: Likewise.
8815         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
8816         * modules/signal (Makefile.am): Likewise.
8817         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
8818         needed.
8819         * doc/posix-headers/signal.texi (signal.h): Mention provided
8820         types.
8821         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
8822         that sigaction is preferable.
8823         * doc/posix-functions/sigaction.texi (sigaction): Mention new
8824         module.
8825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8826         sigaction.
8827
8828         Improve robustness of sigprocmask by overriding signal.
8829         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
8830         is in use.
8831         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
8832         (SIGKILL, SIGSTOP): Provide fallbacks.
8833         (rpl_signal): Implement.
8834         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
8835         signal can be called inside handlers.
8836
8837         Fix nanosleep module on mingw.
8838         * modules/nanosleep (Depends-on): Add sys_select.
8839         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
8840
8841         Fix licensing of sigprocmask.
8842         * modules/raise (License): Relicense as LGPL.
8843
8844 2008-06-21  Bruno Haible  <bruno@clisp.org>
8845
8846         * lib/propername.c (proper_name_utf8): Don't use the transliterated
8847         result if it contains question marks.
8848         Reported by Michael Geng <linux@michaelgeng.de>.
8849
8850 2008-06-19  Bruno Haible  <bruno@clisp.org>
8851
8852         Fix CVS-ism.
8853         * doc/gnulib.texi: Include updated-stamp.texi.
8854         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
8855         (updated-stamp.texi): New rule.
8856         (gnulib.info): Depend on it.
8857         * doc/.gitignore: Add updated-stamp.texi.
8858         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
8859
8860 2008-06-19  Bruno Haible  <bruno@clisp.org>
8861
8862         * doc/Makefile (gnulib.info): Update and simplify dependencies.
8863         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8864
8865 2008-06-19  Eric Blake  <ebb9@byu.net>
8866
8867         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
8868         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
8869         Reported by Stepan Kasal.
8870
8871 2008-06-18  Bruno Haible  <bruno@clisp.org>
8872
8873         * lib/fatal-signal.c (init_fatal_signals): Add comment.
8874         Reported by Eric Blake.
8875
8876 2008-06-18  Eric Blake  <ebb9@byu.net>
8877
8878         Work around cygwin 1.5.25 strsignal bug.
8879         * tests/test-strsignal.c: Allow for const char *.
8880         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
8881
8882 2008-06-18  Simon Josefsson  <simon@josefsson.org>
8883
8884         * users.txt: Update URL to article and add author/date
8885         information.
8886
8887 2008-06-17  Bruno Haible  <bruno@clisp.org>
8888
8889         New macro gl_DISABLE_THREADS.
8890         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
8891         if the user did not pass --enable-threads or --disable-threads option.
8892         (gl_DISABLE_THREADS): New macro.
8893         Reported by Eric Blake <ebb9@byu.net>.
8894
8895 2008-06-17  Bruno Haible  <bruno@clisp.org>
8896
8897         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
8898         when the macro ignores it.
8899         Based on a patch by Eric Blake <ebb9@byu.net>.
8900
8901 2008-06-17  Bruno Haible  <bruno@clisp.org>
8902
8903         * modules/tls (License): Change to LGPLv2+.
8904         Reported by Eric Blake.
8905
8906 2008-06-17  Eric Blake  <ebb9@byu.net>
8907
8908         Simplify c-stack prerequisites.
8909         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
8910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
8911         no longer requires <ucontext.h> to exist.  Optimize setrlimit
8912         check.
8913         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
8914         <sys/resource.h>.
8915
8916         Move c-stack test into testsuite.
8917         * modules/c-stack-tests: New file.
8918         * lib/c-stack.c [DEBUG]: Move test program...
8919         * tests/test-c-stack.c: ...into this new file.  Skip rather than
8920         fail test if sigaltstack is lacking.
8921         * tests/test-c-stack.sh: New driver file.
8922
8923 2008-06-16  Eric Blake  <ebb9@byu.net>
8924
8925         Use raise module consistently.
8926         * modules/fatal-signal (Depends-on): Add raise.
8927         * modules/sigprocmask (Depends-on): Likewise.
8928         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
8929         * lib/sigprocmask.c (sigprocmask): Likewise.
8930         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8931         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
8932
8933         Fix compliance bug in sigpending.
8934         * lib/sigprocmask.c (sigpending): Return pending array via
8935         parameter, not return value.
8936
8937 2008-06-14  Eric Blake  <ebb9@byu.net>
8938
8939         Improve obstack-printf test code.
8940         * tests/test-obstack-printf.c (test_function): Fix comment, and
8941         simplify usage of obstack_* in macros.  Add a test for coverage.
8942         Reported by Bruno Haible.
8943
8944 2008-06-14  Bruno Haible  <bruno@clisp.org>
8945
8946         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
8947         array size as a constant, not as a const variable.
8948         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
8949         AC_USE_SYSTEM_EXTENSIONS.
8950         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
8951         Test whether the obstack_printf function actually exists.
8952         * modules/obstack-printf (Depends-on): Add extensions.
8953         (Include): Remove obstack.h.
8954         * modules/obstack-printf-posix (Depends-on): Add extensions.
8955         (Include): Remove obstack.h.
8956
8957 2008-06-13  Eric Blake  <ebb9@byu.net>
8958
8959         Add obstack-printf and obstack-printf-posix modules.
8960         * modules/obstack-printf: New file.
8961         * modules/obstack-printf-posix: Likewise.
8962         * MODULES.html.sh (Misc): Mention them.
8963         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
8964         Likewise.
8965         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
8966         Likewise.
8967         * modules/stdio (Makefile.am): Accomodate new modules.
8968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8969         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
8970         Declare.
8971         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
8972         functions.
8973         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
8974         (gl_REPLACE_OBSTACK_PRINTF): New macros
8975         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
8976         * tests/test-obstack-printf.c: New file.
8977         * modules/obstack-printf-tests: Likewise.
8978         * modules/obstack-printf-posix-tests: Likewise.
8979
8980 2008-06-11  Bruno Haible  <bruno@clisp.org>
8981
8982         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
8983         * lib/open.c: Include errno.h.
8984         (open): Fail when attempting to write to a file that has a trailing
8985         slash.
8986         * tests/test-open.c (main): Test against trailing slash bug.
8987         * doc/posix-functions/open.texi: Mention the trailing slash bug.
8988
8989 2008-06-10  Bruno Haible  <bruno@clisp.org>
8990
8991         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
8992         for $? to work inside the trap command, with various /bin/sh-s.
8993         * tests/test-vc-list-files-cvs.sh: Likewise.
8994
8995 2008-06-10  Bruno Haible  <bruno@clisp.org>
8996
8997         * lib/acl-internal.h: Don't include gettext.h here.
8998         * lib/set-mode-acl.c: Include gettext.h here.
8999         * lib/copy-acl.c: Likewise.
9000
9001 2008-06-10  Bruno Haible  <bruno@clisp.org>
9002
9003         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9004         * lib/wait-process.c (wait_subprocess): Likewise.
9005         * lib/execute.h (execute): Add termsigp argument.
9006         * lib/execute.c (execute): Likewise.
9007         * lib/csharpcomp.c (compile_csharp_using_pnet,
9008         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9009         * lib/csharpexec.c (execute_csharp_using_pnet,
9010         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9011         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9012         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9013         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9014         is_jikes_present): Update.
9015         * lib/javaexec.c (execute_java_class): Update.
9016         * lib/javaversion.c (execute_and_read_line): Update.
9017         * NEWS: Document the changes.
9018         Reported by Eric Blake.
9019
9020 2008-06-10  Eric Blake  <ebb9@byu.net>
9021
9022         Add missing include.
9023         * tests/test-strstr.c (includes): Add <signal.h>.
9024         * tests/test-strcasestr.c (includes): Likewise.
9025         * tests/test-memmem.c (includes): Likewise.
9026
9027 2008-06-10  Bruno Haible  <bruno@clisp.org>
9028
9029         * lib/wait-process.c (wait_subprocess): Add an assertion.
9030
9031 2008-06-10  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9034
9035 2008-06-10  Bruno Haible  <bruno@clisp.org>
9036
9037         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9038         using alarm().
9039         * tests/test-strcasestr.c (main): Likewise.
9040         * tests/test-strstr.c (main): Likewise.
9041
9042 2008-06-09  Bruno Haible  <bruno@clisp.org>
9043
9044         Work around the Solaris 10 ACE ACLs ABI change.
9045         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9046         declare if ACL_NO_TRIVIAL is present.
9047         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9048         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9049         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9050         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9051         define if ACL_NO_TRIVIAL is present.
9052         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9053         and use the current ABI.
9054         (file_has_acl): Use same #if condition as elsewhere.
9055         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9056         in use, and use the current ABI.
9057         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9058         Reported by Jim Meyering.
9059
9060 2008-06-09  Eric Blake  <ebb9@byu.net>
9061
9062         Work around environments that (stupidly) ignore SIGALRM.
9063         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9064         before using alarm().
9065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9066         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9067         Reported by Ian Beckwith <ianb@erislabs.net>.
9068
9069         Produce autobuild blurb earlier in log.
9070         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9071
9072 2008-06-09  Jim Meyering  <meyering@redhat.com>
9073         and OndÅ™ej Vašík  <ovasik@redhat.com>
9074
9075         utimens.c: correct kernel bug work-around
9076         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9077         failure, not success, and the kernel bug we're trying to work
9078         around affects not just the utimensat call, but also the fallback
9079         futimens call.
9080         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9081         not success.
9082         [HAVE_FUTIMENS]: Use the same work-around, here.
9083
9084 2008-06-09  Jim Meyering  <meyering@redhat.com>
9085
9086         add more guards around definition of ACE_-related code
9087         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9088         ALLOW and ACE_OWNER are also defined.
9089
9090 2008-06-08  Bruno Haible  <bruno@clisp.org>
9091
9092         * lib/acl-internal.h: Add me as co-author.
9093         * lib/file-has-acl.c: Likewise.
9094         * lib/set-mode-acl.c: Likewise.
9095         * lib/copy-acl.c: Likewise.
9096
9097 2008-06-08  Bruno Haible  <bruno@clisp.org>
9098
9099         Add support for AIX ACLs.
9100         * lib/acl-internal.h (acl_nontrivial): New declaration.
9101         * lib/file-has-acl.c (acl_nontrivial): New function.
9102         (file_has_acl): Add implementation using AIX 4 ACL API.
9103         * lib/set-mode-acl.c (qset_acl): Likewise.
9104         * lib/copy-acl.c (qcopy_acl): Likewise.
9105
9106 2008-06-08  Bruno Haible  <bruno@clisp.org>
9107
9108         Add support for HP-UX ACLs.
9109         * lib/acl-internal.h (acl_nontrivial): New declaration.
9110         * lib/file-has-acl.c (acl_nontrivial): New function.
9111         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9112         * lib/set-mode-acl.c (qset_acl): Likewise.
9113         * lib/copy-acl.c (qcopy_acl): Likewise.
9114
9115 2008-06-08  Bruno Haible  <bruno@clisp.org>
9116
9117         Add support for Cygwin ACLs.
9118         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9119         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9120         the chmod_or_fchmod call.
9121         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9122
9123 2008-06-08  Bruno Haible  <bruno@clisp.org>
9124
9125         Fix bug with setuid modes in Solaris 10+ code.
9126         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9127         succeeded, when the mode contains some special bits.
9128
9129 2008-06-08  Bruno Haible  <bruno@clisp.org>
9130
9131         Add support for Solaris 7..10 ACLs.
9132         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9133         declarations.
9134         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9135         functions.
9136         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9137         * lib/set-mode-acl.c (qset_acl): Likewise.
9138         * lib/copy-acl.c (qcopy_acl): Likewise.
9139
9140 2008-06-08  Bruno Haible  <bruno@clisp.org>
9141
9142         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9143         declaration.
9144         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9145         (acl_access_nontrivial): Remove MacOS X case.
9146         (file_has_acl): Use acl_extended_nontrivial.
9147         * lib/copy-acl.c (qcopy_acl): Likewise.
9148
9149 2008-06-08  Bruno Haible  <bruno@clisp.org>
9150
9151         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9152
9153 2008-06-08  Jim Meyering  <meyering@redhat.com>
9154
9155         * modules/acl (Maintainer): Add Bruno Haible.
9156
9157 2008-06-07  Bruno Haible  <bruno@clisp.org>
9158
9159         Improve support for Tru64 ACLs.
9160         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9161         ACL on OSF/1.
9162
9163 2008-06-07  Bruno Haible  <bruno@clisp.org>
9164
9165         Add support for MacOS X ACLs.
9166         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9167         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9168         * lib/set-mode-acl.c (qset_acl): Likewise.
9169         * lib/copy-acl.c (qcopy_acl): Likewise.
9170
9171 2008-06-07  Bruno Haible  <bruno@clisp.org>
9172
9173         Fix memory leak introduced on 2008-05-22.
9174         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9175         use.
9176
9177 2008-06-07  Bruno Haible  <bruno@clisp.org>
9178
9179         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9180         to construct an empty ACL.
9181
9182 2008-06-07  Bruno Haible  <bruno@clisp.org>
9183
9184         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9185         precisely.
9186         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9187
9188 2008-06-07  Bruno Haible  <bruno@clisp.org>
9189
9190         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9191         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9192
9193 2008-06-07  Bruno Haible  <bruno@clisp.org>
9194
9195         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9196         regardless of POSIX.
9197         * doc/posix-functions/_longjmp.texi: Likewise.
9198         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9199         SystemV platform in this case.
9200
9201 2008-06-06  Eric Blake  <ebb9@byu.net>
9202
9203         Document abort() bugs.
9204         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9205
9206         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9207         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9208         sigsetjmp.
9209         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9210         siglongjmp, but only as a macro.
9211         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9212         is obsolete.
9213         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9214
9215         Tweak documentation to cover cygwin argz bugs.
9216         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9217         argz bug fix; no code change needed since no cygwin releases
9218         occurred between the last fix and the bug being tested.
9219         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9220         module and recently fixed cygwin bugs.
9221         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9222         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9223         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9224         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9225         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9226         Likewise.
9227         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9228         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9229         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9230         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9231         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9232         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9233         Likewise.
9234
9235         Avoid gcc warning on cygwin.
9236         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9237         !ACL_NO_TRIVIAL]: Avoid unused variable.
9238
9239 2008-06-05  Eric Blake  <ebb9@byu.net>
9240
9241         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9242         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9243         git-version-gen fails to come up with a version.
9244         Reported by Simon Josefsson.
9245
9246 2008-06-05  Jim Meyering  <meyering@redhat.com>
9247             Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         utimens.c: work around a probable Linux kernel bug
9250         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9251         appears to be a kernel bug that causes utimensat to return 280
9252         instead of 0, indicating success.
9253
9254 2008-06-04  Bruno Haible  <bruno@clisp.org>
9255
9256         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9257         2008-06-01 commit.
9258
9259 2008-06-04  Bruno Haible  <bruno@clisp.org>
9260
9261         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9262         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9263         (file_has_acl): Use it. Save errno afterwards.
9264         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9265
9266 2008-06-03  Bruno Haible  <bruno@clisp.org>
9267
9268         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9269         draft code. Simplify #ifs.
9270         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9271         Put Solaris code after POSIX-draft code. Fix comments regarding
9272         Solaris 10, HP-UX. Mention Cygwin.
9273         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9274
9275 2008-06-03  Eric Blake  <ebb9@byu.net>
9276
9277         Provide fallback for older kernels.
9278         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9279         Provide runtime fallback if kernel lacks support.
9280         Reported by Mike Frysinger.
9281
9282 2008-06-02  Bruno Haible  <bruno@clisp.org>
9283
9284         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9285         it exists.
9286
9287 2008-06-02  Bruno Haible  <bruno@clisp.org>
9288
9289         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9290         * lib/copy-acl.c (qcopy_acl): Update comment.
9291
9292 2008-06-02  Bruno Haible  <bruno@clisp.org>
9293
9294         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9295         like ACL APIs.
9296
9297 2008-06-02  Bruno Haible  <bruno@clisp.org>
9298
9299         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9300         * tests/test-set-mode-acl.sh: Likewise.
9301         * tests/test-copy-acl.sh: Likewise.
9302         * tests/test-copy-file.sh: Likewise.
9303
9304 2008-06-02  Bruno Haible  <bruno@clisp.org>
9305
9306         * tests/test-file-has-acl.sh: Remove unused code.
9307
9308 2008-06-01  Bruno Haible  <bruno@clisp.org>
9309
9310         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9311         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9312         messages.
9313         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9314
9315 2008-06-01  Bruno Haible  <bruno@clisp.org>
9316
9317         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9318         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9319         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9320         APIs.
9321         * modules/acl-tests (configure.ac): Remove tests now contained in
9322         m4/acl.m4.
9323
9324 2008-06-02  Jim Meyering  <meyering@redhat.com>
9325
9326         announce-gen: use a better key-server host name
9327         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9328         it may be more consistently reliable.  Suggested by Werner Koch
9329         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9330
9331 2008-06-01  Bruno Haible  <bruno@clisp.org>
9332
9333         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9334         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9335
9336 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9337
9338         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9339
9340 2008-06-01  Bruno Haible  <bruno@clisp.org>
9341
9342         New ACL tests.
9343         * tests/test-file-has-acl.sh: New file.
9344         * tests/test-file-has-acl.c: New file.
9345         * tests/test-set-mode-acl.sh: New file.
9346         * tests/test-set-mode-acl.c: New file.
9347         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9348         * tests/test-copy-acl.c: New file.
9349         * modules/acl-tests: New file, based on modules/copy-file-tests.
9350         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9351         (Depends-on): Add acl-tests.
9352         (configure.ac): Remove checks.
9353         (Makefile.am): Don't create test-sameacls program here any more.
9354
9355 2008-06-01  Bruno Haible  <bruno@clisp.org>
9356
9357         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9358         * tests/test-sameacls.c: Include progname.h.
9359         (main): Invoke set_program_name. Portability fixes for MacOS X,
9360         Solaris, HP-UX.
9361
9362 2008-06-01  Bruno Haible  <bruno@clisp.org>
9363
9364         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9365         function.
9366         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9367
9368 2008-06-01  Bruno Haible  <bruno@clisp.org>
9369
9370         * modules/rpmatch (Depends-on): Add strdup.
9371
9372 2008-06-01  Bruno Haible  <bruno@clisp.org>
9373
9374         * lib/pipe.c: Include unistd-safer.h.
9375         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9376         * modules/pipe (Depends-on): Add unistd-safer.
9377
9378 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9379
9380         * modules/autobuild (configure.ac): Call AB_INIT.
9381
9382 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9383
9384         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9385         Suggested by Bruno Haible <bruno@clisp.org>.
9386
9387 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9388
9389         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9390         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9391         <bruno@clisp.org>.
9392
9393 2008-05-29  Eric Blake  <ebb9@byu.net>
9394
9395         Prefer new POSIX 200x interfaces over futimesat.
9396         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9397         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9398         when available.
9399         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9400
9401 2008-05-28  Bruno Haible  <bruno@clisp.org>
9402
9403         * modules/stpcpy (License): Change to LGPLv2+.
9404         Requested by David Lutterkort <dlutter@redhat.com>.
9405
9406 2008-05-27  Bruno Haible  <bruno@clisp.org>
9407
9408         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9409         current mingw.
9410         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9411
9412 2008-05-27  Bruno Haible  <bruno@clisp.org>
9413
9414         * modules/iconv_open (Link): New section, from module 'iconv'.
9415         * modules/striconv (Link): Likewise.
9416         * modules/striconveh (Link): Likewise.
9417         * modules/xstriconv (Link): Likewise.
9418         * modules/unicodeio (Link): Likewise.
9419         * modules/propername (Link): Likewise.
9420         Reported by Jim Meyering.
9421
9422 2008-05-26  Jim Meyering  <meyering@redhat.com>
9423
9424         sha256: do not artificially restrict buffer length to be < 2^32
9425         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9426         uint32_t to size_t.
9427         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9428         to match.
9429
9430         avoid unaligned access errors, e.g., on sparc
9431         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9432         direct access through a possibly-unaligned uint64* pointer.
9433         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9434         direct access through a possibly-unaligned uint32* pointer.
9435         Prompted by this patch from Tom "spot" Callaway:
9436         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9437
9438         sha512.c: fix typo in comment
9439         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9440
9441 2008-05-25  Bruno Haible  <bruno@clisp.org>
9442
9443         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9444         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9445         (Makefile.am): Update lib_SOURCES.
9446
9447 2008-05-25  Bruno Haible  <bruno@clisp.org>
9448
9449         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9450
9451 2008-05-25  Jim Meyering  <meyering@redhat.com>
9452
9453         useless-if-before-free: freed expr may have white-space differences
9454         * build-aux/useless-if-before-free: Recognize cases in which the
9455         freed expression differs from the tested one in embedded white
9456         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9457         $1 was used, so we can't make any regexp shy.  Improved tests now
9458         detect this.
9459
9460         useless-if-before-free: accept white space in the expression.
9461         * build-aux/useless-if-before-free: For now, any white space
9462         in the expression must be identical in the free argument.
9463
9464         useless-if-before-free: efficiency tweak
9465         * build-aux/useless-if-before-free: Make the expression-matching
9466         regexp "shy".
9467         Make the *outer* regexp shy, not the expr-matching one.
9468
9469         update code-in-comment to accept cast of free arg
9470         * build-aux/useless-if-before-free: Update regexp.
9471
9472 2008-05-25  Bruno Haible  <bruno@clisp.org>
9473
9474         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9475         * modules/copy-file-tests (Files, Makefile.am): Update.
9476         * tests/test-copy-file.c (func_test_copy): Update.
9477
9478 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
9479
9480         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9481
9482 2008-05-23  Bruno Haible  <bruno@clisp.org>
9483
9484         Improve support for ACLs on OSF/1.
9485         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9486         Remove fallback for unknown flavors of ACLs.
9487
9488 2008-05-22  Bruno Haible  <bruno@clisp.org>
9489
9490         Add support for ACLs on OSF/1.
9491         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9492         replacements.
9493         (acl_free_text): New macro fallback.
9494         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9495         acl_free.
9496         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9497         acl_free_text function. Require AC_C_INLINE.
9498
9499 2008-05-22  Bruno Haible  <bruno@clisp.org>
9500
9501         Make copy_acl work on MacOS X 10.5.
9502         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9503         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9504         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9505         If MODE_INSIDE_ACL, don't assume that every system has the same text
9506         representation for ACLs as FreeBSD.
9507         * lib/copy-acl.c (copy_acl): Add support for platforms with
9508         !MODE_INSIDE_ACL.
9509         * lib/file-has-acl.c (file_has_acl): Likewise.
9510         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9511         FreeBSD, MacOS X, or IRIX, respectively.
9512
9513 2008-05-22  Bruno Haible  <bruno@clisp.org>
9514
9515         * lib/acl.h: Don't include <sys/acl.h>.
9516         (GETACLCNT): Move fallback to lib/acl-internal.h.
9517         * lib/acl-internal.h: Include <sys/acl.h> here.
9518         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9519
9520 2008-05-22  Bruno Haible  <bruno@clisp.org>
9521
9522         Split off copy_acl function to separate file.
9523         * lib/copy-acl.c: New file, extracted from lib/acl.c.
9524         * lib/acl.c (copy_acl): Moved function to separate file.
9525         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9526         * modules/acl (Files): Add lib/copy-acl.c.
9527         (Makefiles.am): Augment lib_SOURCES.
9528
9529 2008-05-22  Bruno Haible  <bruno@clisp.org>
9530
9531         * modules/copy-file-tests: New file.
9532         * tests/test-copy-file.sh: New file.
9533         * tests/test-copy-file.c: New file.
9534         * tests/test-copy-file-sameacls.c: New file.
9535
9536 2008-05-22  Eric Blake  <ebb9@byu.net>
9537
9538         Avoid gcc warning.
9539         * tests/test-memcmp.c (main): Pass NULL indirectly.
9540
9541 2008-05-21  Bruno Haible  <bruno@clisp.org>
9542
9543         Add reference doc about ACLs.
9544         * doc/acl-resources.txt: New file.
9545         * doc/acl-cygwin.txt: New file.
9546
9547 2008-05-21  Bruno Haible  <bruno@clisp.org>
9548
9549         Avoid one more warning from gcc.
9550         * lib/vasnprintf.c (IF_LINT): Update comments.
9551         (VASNPRINTF): Use it also for the 'prefix' array initializer.
9552
9553 2008-05-21  Jim Meyering  <meyering@redhat.com>
9554
9555         avoid a warning from gcc
9556         * lib/vasnprintf.c (IF_LINT): Define.
9557         (scale10_round_decimal_long_double):
9558         Use it to avoid a "may be used uninitialized" warning.
9559         (scale10_round_decimal_double): Likewise.
9560
9561 2008-05-21  Simon Josefsson  <simon@josefsson.org>
9562
9563         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9564         declared.
9565
9566 2008-05-20  Bruno Haible  <bruno@clisp.org>
9567
9568         * tests/test-memcmp.c (main): Test also the sign of the result. Test
9569         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9570
9571 2008-05-20  Simon Josefsson  <simon@josefsson.org>
9572
9573         * modules/memcmp-tests: New file.
9574         * tests/test-memcmp.c: New file.
9575
9576 2008-05-19  Bruno Haible  <bruno@clisp.org>
9577
9578         * modules/propername (Notice, configure.ac): Put quoted "..." into
9579         --keyword option.
9580         * lib/propername.h: Update comments accordingly.
9581         Reported by Eric Blake.
9582
9583 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
9584
9585         * modules/getpass-gnu (Depends-on): Add fseeko.
9586
9587 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9588
9589         * modules/base64-tests: New file.
9590
9591 2008-05-19  Bo Borgerson <gigabo@gmail.com>
9592
9593         * lib/base64.c (base64_decode_ctx): If a decode context structure
9594         was passed in use it to ignore newlines.  If a context structure
9595         was _not_ passed in, continue to treat newlines as garbage (this
9596         is the historical behavior).  Formerly base64_decode.
9597         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9598         takes a decode context structure.
9599         * lib/base64.h (base64_decode): Macro for four-argument calls.
9600         (base64_decode_alloc): Likewise.
9601         * lib/base64.c (base64_decode_ctx): If a decode context structure
9602         was passed in use it to ignore newlines.  If a context structure
9603         was _not_ passed in, continue to treat newlines as garbage (this
9604         is the historical behavior).  Formerly base64_decode.
9605         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9606         takes a decode context structure.
9607         * lib/base64.h (base64_decode): Macro for four-argument calls.
9608         (base64_decode_alloc): Likewise.
9609
9610 2008-05-19  Jim Meyering  <meyering@redhat.com>
9611
9612         avoid a warning from gcc
9613         * lib/trim.c (IF_LINT): Define.
9614         (trim2): Use it to avoid a "may be used uninitialized" warning.
9615
9616         Fix doc typo.
9617         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
9618
9619 2008-05-19  Bruno Haible  <bruno@clisp.org>
9620
9621         * doc/glibc-functions/getpass.texi: Document limits of other
9622         implementations.
9623
9624 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9625             Bruno Haible <bruno@clisp.org>
9626
9627         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
9628
9629 2008-05-18  Bruno Haible  <bruno@clisp.org>
9630
9631         * modules/propername: New file, from GNU gettext.
9632         * lib/propername.h: New file, from GNU gettext.
9633         * lib/propername.c: New file, from GNU gettext.
9634         * MODULES.html.sh (Internationalization functions): Add propername.
9635
9636 2008-05-16  Jim Meyering  <meyering@redhat.com>
9637             Bruno Haible  <bruno@clisp.org>
9638
9639         Avoid some warnings from "gcc -Wshadow".
9640         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
9641
9642 2008-05-15  Eric Blake  <ebb9@byu.net>
9643
9644         Extend previous patch to cygwin 1.7.0.
9645         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
9646         fast implementation in cygwin >= 1.7.0.
9647         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9649
9650 2008-05-15  Bruno Haible  <bruno@clisp.org>
9651
9652         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
9653         implementation in glibc >= 2.9.
9654         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9656
9657 2008-05-15  Bruno Haible  <bruno@clisp.org>
9658
9659         * MODULES.html.sh (Internationalization functions): Remove linebreak.
9660         (Unicode string functions): Add unilbrk/*.
9661         Reported by Karl Berry.
9662
9663 2008-05-15  Eric Blake  <ebb9@byu.net>
9664
9665         Fix violation of <stdbool.h> replacement in regex.
9666         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
9667         * lib/regexec.c (re_search_internal): Likewise.
9668         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
9669
9670 2008-05-15  Jim Meyering  <meyering@redhat.com>
9671
9672         avoid distracting test output when git or cvs is not found
9673         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
9674         * tests/test-vc-list-files-git.sh: Likewise.
9675
9676 2008-05-15  Eric Blake  <ebb9@byu.net>
9677
9678         Glibc finally accepted the memmem speedup code, bugzilla #5514.
9679         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
9680         glibc version.
9681         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9682         * doc/posix-functions/strstr.texi (strstr): Likewise.
9683         * lib/str-two-way.h (MAX): Sychronize with glibc.
9684
9685 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
9686
9687         * lib/regcomp.c (optimize_utf8): Add a note on why we test
9688         opr.ctx_type.
9689         (calc_first): Initialize constraint field.
9690         (duplicate_node_closure): Use it instead of special casing ANCHORS.
9691         Fix grammar.
9692         (duplicate_node): Merge constraint field for all node types.
9693         (calc_eclosure_iter): Look at constraint field for all node types.
9694         * lib/regex_internal.c (create_cd_newstate): Don't look at
9695         opr.ctx_type.
9696
9697 2008-05-14  Bruno Haible  <bruno@clisp.org>
9698
9699         Help GCC to do better code generation.
9700         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
9701         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9702         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
9703         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
9704         Declare with attribute 'malloc' if supported.
9705
9706 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
9707
9708         use "echo STR|wc -c" rather than unportable "expr length STR"
9709         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
9710         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
9711
9712 2008-05-14  Jim Meyering  <meyering@redhat.com>
9713
9714         use dd ibs=$n count=1 ... rather than less-portable head -c$n
9715         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
9716         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
9717         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
9718         via Collin Lasse.
9719
9720 2008-05-14  Eric Blake  <ebb9@byu.net>
9721
9722         Avoid quadratic growth in gl_LIBSOURCES.
9723         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
9724         Suggested by Bruno Haible.
9725
9726         Test xmemdup0.
9727         * modules/xmemdup0-tests: New file.
9728         * tests/test-xmemdup0.c: Likewise.
9729
9730 2008-05-13  Eric Blake  <ebb9@byu.net>
9731
9732         Split xmemdup0 into its own module.
9733         * modules/xmemdup0: New file.
9734         * lib/xmemdup0.h: Likewise.
9735         * lib/xmemdup0.c: Likewise.
9736         * MODULES.html.sh (Memory management functions): Add xmemdup0.
9737         * lib/xalloc.h (xmemdup0): Remove.
9738         * lib/xmalloc.c (xmemdup0): Likewise.
9739
9740 2008-05-13  Eric Blake  <ebb9@byu.net>
9741             Bruno Haible  <bruno@clisp.org>
9742
9743         Reduce number of forks required during autoconf.
9744         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
9745         and gl_LIBSOURCES_DIR.
9746         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
9747         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
9748         m4_syscmd per file.
9749         <m4_foreach_w>: Move...
9750         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
9751
9752 2008-05-13  Eric Blake  <ebb9@byu.net>
9753
9754         * gnulib-tool: Fix various comment typos.
9755
9756 2008-05-12  Bruno Haible  <bruno@clisp.org>
9757
9758         Tailor the linebreaking algorithm.
9759         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
9760
9761 2008-05-12  Bruno Haible  <bruno@clisp.org>
9762
9763         Update to Unicode 5.0.0.
9764         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9765         LBP_JV, LBP_JT. Redistribute values.
9766         (unilbrk_table): Change size.
9767         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
9768         Unicode TR#14 rev. 22.
9769         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9770         LBP_JV, LBP_JT. Redistribute values.
9771         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
9772         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
9773         Update.
9774         * lib/unilbrk/lbrkprop1.h: Regenerated.
9775         * lib/unilbrk/lbrkprop2.h: Regenerated.
9776         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
9777         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
9778         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9779         Likewise.
9780         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9781         Likewise.
9782         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
9783         result.
9784         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9785         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9786         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9787         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
9788         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
9789         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
9790
9791 2008-05-11  Bruno Haible  <bruno@clisp.org>
9792
9793         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
9794
9795 2008-05-11  Bruno Haible  <bruno@clisp.org>
9796
9797         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
9798         * modules/unilbrk/gen-lbrk: New file.
9799
9800 2008-05-11  Bruno Haible  <bruno@clisp.org>
9801
9802         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
9803         * m4/sha512.m4 (gl_SHA512): Likewise.
9804
9805 2008-05-11  Jim Meyering  <meyering@redhat.com>
9806
9807         New modules: crypto/sha256, crypto/sha512 (from coreutils)
9808         * modules/crypto/sha256: New file.
9809         * modules/crypto/sha512: Likewise.
9810         * lib/sha256.c: Likewise.
9811         * lib/sha256.h: Likewise.
9812         * lib/sha512.c: Likewise.
9813         * lib/sha512.h: Likewise.
9814         * lib/u64.h: Likewise.
9815         * m4/sha256.m4: Likewise.
9816         * m4/sha512.m4: Likewise.
9817         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
9818
9819 2008-05-10  Bruno Haible  <bruno@clisp.org>
9820
9821         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
9822         (Input/Output <stdio.h>): Add xprintf.
9823         (Signal handling <signal.h>): Add strsignal.
9824         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
9825         (Core language properties): Add func.
9826         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
9827         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
9828         strings.
9829         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
9830         (Input/output): New section.
9831         (File system functions): Add openat-die, stat-macros.
9832         (Networking functions): Add sockets.
9833         (Unicode string functions): Add unictype/*.
9834         (Support for building libraries and executables): Add gperf.
9835         (Support for building documentation): Add agpl-3.0.
9836         (Misc): Add nocrash.
9837
9838 2008-05-10  Bruno Haible  <bruno@clisp.org>
9839
9840         * modules/unictype/gen-ctype: New file.
9841
9842 2008-05-10  Jim Meyering  <meyering@redhat.com>
9843
9844         Make chdir-safer.c more efficient on a system with no symlinks.
9845         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
9846         also if ELOOP is zero.  Suggested by Bruno Haible.
9847
9848         Make chdir-safer.c slightly safer.
9849         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
9850         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
9851
9852         Avoid compile failure on systems without ELOOP (like mingw).
9853         * lib/chdir-safer.c (ELOOP): Define if not already defined.
9854         Reported by Bruno Haible.
9855
9856 2008-05-10  Bruno Haible  <bruno@clisp.org>
9857
9858         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
9859         (is_utf8_encoding): Use a case-insensitive comparison.
9860         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
9861         streq.
9862
9863 2008-05-10  Bruno Haible  <bruno@clisp.org>
9864
9865         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
9866         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
9867         * lib/unilbrk/ulc-common.h (iconv_string_length,
9868         iconv_string_keeping_offsets): Remove declarations.
9869         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
9870         Don't include <iconv.h>, streq.h, xsize.h.
9871         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
9872         conversion.
9873         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
9874         <iconv.h>, streq.h, xsize.h.
9875         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
9876         conversion.
9877         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
9878         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
9879         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
9880         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
9881
9882 2008-05-10  Bruno Haible  <bruno@clisp.org>
9883
9884         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
9885         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
9886
9887         * modules/unilbrk/u32-width-linebreaks-tests: New file.
9888         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
9889
9890         * modules/unilbrk/u16-width-linebreaks-tests: New file.
9891         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
9892
9893         * modules/unilbrk/u8-width-linebreaks-tests: New file.
9894         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
9895
9896         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
9897         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
9898
9899         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
9900         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
9901
9902         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
9903         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
9904
9905         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
9906         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
9907
9908 2008-05-10  Bruno Haible  <bruno@clisp.org>
9909
9910         Split up 'linebreak' module.
9911         * lib/unilbrk.h: New file, based on lib/linebreak.h.
9912         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
9913         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
9914         modifications.
9915         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
9916         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
9917         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
9918         lib/linebreak.c.
9919         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
9920         lib/linebreak.c.
9921         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
9922         lib/linebreak.c.
9923         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
9924         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
9925         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
9926         lib/linebreak.c.
9927         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
9928         lib/linebreak.c.
9929         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
9930         lib/linebreak.c.
9931         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
9932         lib/linebreak.c.
9933         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
9934         lib/linebreak.c.
9935         * modules/unilbrk/base: New file.
9936         * modules/unilbrk/tables: New file.
9937         * modules/unilbrk/u8-possible-linebreaks: New file.
9938         * modules/unilbrk/u16-possible-linebreaks: New file.
9939         * modules/unilbrk/u32-possible-linebreaks: New file.
9940         * modules/unilbrk/ulc-common: New file.
9941         * modules/unilbrk/ulc-possible-linebreaks: New file.
9942         * modules/unilbrk/u8-width-linebreaks: New file.
9943         * modules/unilbrk/u16-width-linebreaks: New file.
9944         * modules/unilbrk/u32-width-linebreaks: New file.
9945         * modules/unilbrk/ulc-width-linebreaks: New file.
9946         * lib/linebreak.h: Remove file.
9947         * lib/linebreak.c: Remove file.
9948         * m4/linebreak.m4: Remove file.
9949         * modules/linebreak: Remove file.
9950         * NEWS: Mention the changes.
9951
9952 2008-05-09  Eric Blake  <ebb9@byu.net>
9953
9954         Add xmemdup0.
9955         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
9956         implementation.
9957         * lib/xmalloc.c (xmemdup0): New C implementation.
9958
9959 2008-05-08  Bruno Haible  <bruno@clisp.org>
9960
9961         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
9962
9963 2008-05-07  Eric Blake  <ebb9@byu.net>
9964
9965         Support cross-compilation of <wctype.h>.
9966         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
9967         AC_CACHE_CHECK.
9968
9969 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
9970
9971         * build-aux/vc-list-files: Add support for bzr.
9972
9973 2008-05-03  Jim Meyering  <meyering@redhat.com>
9974
9975         avoid failed assertion with tight malloc
9976         * tests/test-getndelim2.c: Correct an off-by-one assertion.
9977
9978 2008-05-03  Simon Josefsson  <simon@josefsson.org>
9979
9980         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
9981         are needed from arpa/inet.h.
9982         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
9983         Reported by Bruno Haible.
9984
9985 2008-05-02  Jim Meyering  <meyering@redhat.com>
9986
9987         avoid compilation error on FreeBSD 6
9988         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
9989
9990 2008-05-01  Jim Meyering  <meyering@redhat.com>
9991
9992         useless-if-before-free: correct --help's exit status description
9993         * build-aux/useless-if-before-free (usage): Like grep, exit 0
9994         for one or more matches, etc.  Reported by Bruno Haible.
9995
9996         vc-list-files: make the stand-alone gnulib test work
9997         * modules/vc-list-files-tests (configure.ac):
9998         Define and AC_SUBST abs_aux_dir.
9999         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10000         $(abs_top_srcdir) to each script and having each of them
10001         duplicate the work of setting PATH, set PATH here, using
10002         the new variable, abs_aux_dir instead.
10003         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10004         * tests/test-vc-list-files-git.sh: Likewise.
10005         Reported by Bruno Haible.
10006
10007 2008-05-01  Bruno Haible  <bruno@clisp.org>
10008
10009         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10010         reallocation. Rename 'done' to 'found_delimiter'.
10011
10012 2008-05-01  Jim Meyering  <meyering@redhat.com>
10013
10014         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10015         * build-aux/vc-list-files: Use `...`, not $(...).
10016
10017 2008-04-30  Jim Meyering  <meyering@redhat.com>
10018
10019         add tests for vc-list-files
10020         * modules/vc-list-files-tests: New module.
10021         * tests/test-vc-list-files-cvs.sh: New file.
10022         * tests/test-vc-list-files-git.sh: New file.
10023
10024         avoid a warning from gcc
10025         * lib/getndelim2.c (IF_LINT): Define.
10026         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10027
10028         vc-list-files: work properly with build-aux/cvsu, too
10029         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10030         to all cvs-based clauses.
10031
10032         vc-list-files: work properly in the CVS+awk case, too
10033         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10034
10035         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10036         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10037         take more than one file argument, so .  Add quotes, just in case $dir
10038         ever contains a shell meta-character.  Prompted by Soren Hansen in
10039         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10040
10041 2008-04-29  Eric Blake  <ebb9@byu.net>
10042
10043         Optimize getndelim2 to use block operations when possible.
10044         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10045         freadseek, and memchr2.
10046         * lib/getndelim2.c (getndelim2): Use them for block reads.
10047
10048 2008-04-29  Bruno Haible  <bruno@clisp.org>
10049
10050         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10051         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10052         * modules/inet_ntop (Depends-on): Add extensions.
10053         * modules/inet_pton (Depends-on): Likewise.
10054         Reported by Simon Josefsson.
10055
10056 2008-04-29  Jim Meyering  <meyering@redhat.com>
10057
10058         When the is more than one match in a block, match all of them.
10059         * build-aux/useless-if-before-free: Iterate through each block
10060         until there are no more matches.
10061
10062         Fix broken useless-if-before-free script.
10063         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10064         the expression to match cast of argument to free-like function.
10065
10066 2008-04-29  Eric Blake  <ebb9@byu.net>
10067
10068         Use new header.
10069         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10070
10071 2008-04-29  Jim Meyering  <meyering@redhat.com>
10072
10073         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10074         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10075         by gnulib to exist and to declare e.g., inet_ntop.
10076         Don't include "inet_ntop.h", now removed.
10077
10078         * m4/arpa_inet_h.m4: Remove trailing blanks.
10079
10080 2008-04-29  Eric Blake  <ebb9@byu.net>
10081
10082         Silence valgrind on safe reads beyond potential array bounds.
10083         * lib/rawmemchr.valgrind: New file.
10084         * lib/strchrnul.valgrind: Likewise.
10085         * modules/rawmemchr (Files): Distribute new file.
10086         * modules/strchrnul (Files): Likewise.
10087         Suggested by Bruno Haible.
10088
10089 2008-04-29  Bruno Haible  <bruno@clisp.org>
10090
10091         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10092         (inet_ntop, inet_pton): Change portability warning's wording.
10093         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10094         Invoke gl_CHECK_NEXT_HEADERS.
10095         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10096         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10097         set ARPA_INET_H.
10098         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10099         * modules/arpa_inet (Description): No longer only for systems that
10100         lack it.
10101         (Depends-on): Add include_next.
10102         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10103         HAVE_ARPA_INET_H.
10104
10105 2008-04-29  Jim Meyering  <meyering@redhat.com>
10106
10107         * modules/mkdir (License): Re-license as LGPLv2+.
10108
10109 2008-04-29  Bruno Haible  <bruno@clisp.org>
10110
10111         * modules/rawmemchr (Maintainer): Set to Eric.
10112         * modules/strchrnul (Maintainer): Likewise.
10113
10114 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10115
10116         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10117         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10118
10119         * modules/arpa_inet (arpa/inet.h): Use them.
10120
10121 2008-04-28  Eric Blake  <ebb9@byu.net>
10122
10123         Test getndelim2.
10124         * modules/getndelim2-tests: New file.
10125         * tests/test-getndelim2.c: Likewise.
10126         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10127         stream.
10128         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10129
10130         * MODULES.html.sh: Document new module.
10131
10132 2008-04-20  Bruno Haible  <bruno@clisp.org>
10133
10134         * lib/c-stack.c (die): Use raise.
10135         * modules/c-stack (Depends-on): Add raise.
10136
10137 2008-04-28  Bruno Haible  <bruno@clisp.org>
10138
10139         Expect rpmatch to be declared.
10140         * lib/yesno.c (rpmatch): Remove declaration.
10141
10142         Declare rpmatch.
10143         * lib/stdlib.in.h (rpmatch): New declaration.
10144         * lib/rpmatch.c: Include <stdlib.h> first.
10145         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10146         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10148         HAVE_RPMATCH.
10149         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10151         (Include): Set to <stdlib.h>.
10152         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10153         HAVE_RPMATCH.
10154         * NEWS: Document the change.
10155
10156 2008-04-28  Bruno Haible  <bruno@clisp.org>
10157
10158         Change rpmatch to use nl_langinfo when appropriate.
10159         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10160         (N_): New macro.
10161         (localized_pattern): New function/macro.
10162         (try): Remove match, nomatch arguments. Copy the pattern into safe
10163         memory before caching it.
10164         (rpmatch): Use localized_pattern. Add translator comments.
10165         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10166         Suggested by Eric Blake.
10167         * modules/rpmatch (Depends-on): Add stdbool.
10168
10169 2008-04-28  Eric Blake  <ebb9@byu.net>
10170
10171         Add rawmemchr module, matching glibc.
10172         * modules/string (Makefile.am): New indicator.
10173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10174         * lib/string.in.h (rawmemchr): Declare when appropriate.
10175         * modules/rawmemchr: New file.
10176         * m4/rawmemchr.m4: Likewise.
10177         * lib/rawmemchr.c: Likewise.
10178         * modules/rawmemchr-tests: Likewise.
10179         * tests/test-rawmemchr.c: Likewise.
10180         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10181         module.
10182         * modules/strchrnul (Depends-on): Add rawmemchr.
10183         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10184
10185         Whitespace cleanup.
10186         * tests/test-strchrnul.c: Reindent.
10187         * lib/strchrnul.c: Likewise.
10188
10189         Optimize and test strchrnul.
10190         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10191         * modules/strchrnul-tests: New file.
10192         * tests/test-strchrnul.c: Likewise.
10193
10194         Remove intprops dependency.
10195         * modules/memchr (Depends-on): Remove intprops.
10196         * modules/memrchr (Depends-on): Likewise.
10197         * modules/memchr2 (Depends-on): Likewise.
10198         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10199         * lib/memrchr.c (__memrchr): Likewise.
10200         * lib/memrchr2.c (memchr2): Likewise.
10201         Reported by Simon Josefsson.
10202
10203 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10204
10205         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10206         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10207
10208 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10209
10210         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10211
10212         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10213
10214         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10215
10216         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10217         declarations.
10218         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10219
10220         * m4/inet_pton.m4: Don't check for header files.
10221
10222         * m4/inet_ntop.m4: Don't check for header files.
10223
10224 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10225
10226         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10227         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10228         trigger for cygwin).
10229         Reported by Bruno Haible  <bruno@clisp.org>.
10230
10231 2008-04-28  Bruno Haible  <bruno@clisp.org>
10232
10233         * doc/posix-functions/strdup.texi: Mention mingw problem.
10234
10235 2008-04-27  Bruno Haible  <bruno@clisp.org>
10236
10237         * modules/stat-time-tests (Depends-on): Add sleep.
10238         * tests/test-stat-time.c (force_unlink): New function.
10239         (cleanup): Use it.
10240         (test_mtime): Remove the ctime related tests.
10241         (test_ctime): New function, containing the ctime related tests.
10242         (main): Call test_ctime, except on native Windows platforms.
10243
10244 2008-04-27  Bruno Haible  <bruno@clisp.org>
10245
10246         * lib/rpmatch.c (rpmatch): Add some comments.
10247         Reported by James Youngman <jay@gnu.org>.
10248
10249 2008-04-27  Bruno Haible  <bruno@clisp.org>
10250
10251         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10252         quiet NaNs.
10253
10254 2008-04-27  Bruno Haible  <bruno@clisp.org>
10255
10256         Make test-yesno.sh work on mingw.
10257         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10258         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10259         (main): Set stdin to binary mode.
10260         * modules/yesno-tests (Depends-on): Add binary-io.
10261
10262 2008-04-27  Bruno Haible  <bruno@clisp.org>
10263
10264         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10265         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10266         argument that lie outside the IEEE 854 domain.
10267         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10268         (gl_ISFINITE): Use it.
10269         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10270
10271 2008-04-27  Bruno Haible  <bruno@clisp.org>
10272
10273         Allow local renaming in config.h.
10274         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10275
10276 2008-04-27  Bruno Haible  <bruno@clisp.org>
10277
10278         * lib/memchr.c (__memchr): Change type of 'i'.
10279         * lib/memchr2.c (memchr2): Likewise.
10280
10281 2008-04-26  Eric Blake  <ebb9@byu.net>
10282         and Bruno Haible  <bruno@clisp.org>
10283
10284         Optimize and test memrchr.
10285         * modules/memrchr (Depends-on): Add intprops.
10286         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10287         * modules/memrchr-tests: New file.
10288         * tests/test-memrchr.c: New file.
10289
10290 2008-04-26  Bruno Haible  <bruno@clisp.org>
10291
10292         Add tentative support for DragonFly BSD.
10293         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10294         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10295         fp.
10296         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10297         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10298         * lib/fpurge.c (fpurge): Likewise.
10299         * lib/freadable.c (freaadable): Likewise.
10300         * lib/freadahead.c (freadahead): Likewise.
10301         * lib/freading.c (freading): Likewise.
10302         * lib/freadptr.c (freadptr): Likewise.
10303         * lib/freadseek.c (freadptrinc): Likewise.
10304         * lib/fseeko.c (fseeko): Likewise.
10305         * lib/fseterr.c (fseterr): Likewise.
10306         * lib/fwritable.c (fwritable): Likewise.
10307         * lib/fwriting.c (fwriting): Likewise.
10308
10309 2008-04-26  Bruno Haible  <bruno@clisp.org>
10310
10311         * lib/stdio-impl.h: New file.
10312         * lib/fbufmode.c: Include stdio-impl.h.
10313         (fbufmode): Use fp_, remove redundant #defines.
10314         * lib/fflush.c: Include stdio-impl.h.
10315         (clear_ungetc_buffer): Remove redundant #defines.
10316         * lib/fpurge.c: Include stdio-impl.h.
10317         (fpurge): Remove redundant #defines.
10318         * lib/freadable.c: Include stdio-impl.h.
10319         (freadable): Remove redundant #defines.
10320         * lib/freadahead.c: Include stdio-impl.h.
10321         (freadahead): Remove redundant #defines.
10322         * lib/freading.c: Include stdio-impl.h.
10323         (freading): Remove redundant #defines.
10324         * lib/freadptr.c: Include stdio-impl.h.
10325         (freadptr): Remove redundant #defines.
10326         * lib/freadseek.c: Include stdio-impl.h.
10327         (freadptrinc): Remove redundant #defines.
10328         * lib/fseeko.c: Include stdio-impl.h.
10329         (rpl_fseeko): Remove redundant #defines.
10330         * lib/fseterr.c: Include stdio-impl.h.
10331         (fseterr): Remove redundant #defines.
10332         * lib/fwritable.c: Include stdio-impl.h.
10333         (fwritable: Remove redundant #defines.
10334         * lib/fwriting.c: Include stdio-impl.h.
10335         (fwriting): Remove redundant #defines.
10336         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10337         * modules/fflush (Files): Likewise.
10338         * modules/fpurge (Files): Likewise.
10339         * modules/freadable (Files): Likewise.
10340         * modules/freadahead (Files): Likewise.
10341         * modules/freading (Files): Likewise.
10342         * modules/freadptr (Files): Likewise.
10343         * modules/freadseek (Files): Likewise.
10344         * modules/fseeko (Files): Likewise.
10345         * modules/fseterr (Files): Likewise.
10346         * modules/fwritable (Files): Likewise.
10347         * modules/fwriting (Files): Likewise.
10348
10349 2008-04-26  Bruno Haible  <bruno@clisp.org>
10350
10351         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10352         restore_seek_optimization, update_fpos_cache): New functions, extracted
10353         from rpl_fflush.
10354         (rpl_fflush): Use them.
10355         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10356         (gl_REPLACE_FFLUSH): Use it.
10357
10358 2008-04-26  Bruno Haible  <bruno@clisp.org>
10359
10360         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10361         on Solaris.
10362         * tests/test-xstrtoimax.sh: Likewise.
10363         * tests/test-xstrtoumax.sh: Likewise.
10364         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10365
10366 2008-04-26  Bruno Haible  <bruno@clisp.org>
10367
10368         * modules/memchr-tests: New file.
10369         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10370
10371 2008-04-26  Eric Blake  <ebb9@byu.net>
10372             Bruno Haible  <bruno@clisp.org>
10373
10374         * lib/memchr.c: Include intprops.h.
10375         (__memchr): Optimize parallel detection of matching bytes. Rename local
10376         variables. Add explanatory comments.
10377
10378 2008-04-26  Bruno Haible  <bruno@clisp.org>
10379
10380         Fix module 'memchr', broken since 2000-10-28.
10381         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10382
10383 2008-04-26  Bruno Haible  <bruno@clisp.org>
10384
10385         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10386         comments.
10387
10388 2008-04-25  Eric Blake  <ebb9@byu.net>
10389
10390         Use native fstatat on cygwin 1.7.0.
10391         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10392         first.
10393
10394 2008-04-23  Eric Blake  <ebb9@byu.net>
10395
10396         Improve memchr2 performance.
10397         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10398         NUL bytes.
10399         * modules/memchr2 (Depends-on): Use intprops.h.
10400
10401 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10402
10403         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10404         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10405         <blp@cs.stanford.edu>.
10406
10407 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10408
10409         * lib/arpa_inet.in.h: New file.
10410
10411         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10412         (Makefile.am): Sed in substitute header file.
10413
10414         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10415         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10416
10417         * modules/inet_ntop (configure.ac): Use
10418         gl_ARPA_INET_MODULE_INDICATOR.
10419
10420         * modules/inet_pton (configure.ac): Use
10421         gl_ARPA_INET_MODULE_INDICATOR.
10422
10423 2008-04-22  Jim Meyering  <meyering@redhat.com>
10424
10425         * modules/verify (License): Re-license as LGPLv2+.
10426
10427 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10428
10429         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10430         parameter to void* as per POSIX standard (MinGW uses char*).
10431
10432 2008-04-21  Bruno Haible  <bruno@clisp.org>
10433
10434         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10435         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10436         Define to replacements if REPLACE_ISWCNTRL is 1.
10437         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10438         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10439         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10440         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10441         what it fixes.
10442         * doc/posix-functions/iswalpha.texi: Likewise.
10443         * doc/posix-functions/iswblank.texi: Likewise.
10444         * doc/posix-functions/iswcntrl.texi: Likewise.
10445         * doc/posix-functions/iswdigit.texi: Likewise.
10446         * doc/posix-functions/iswgraph.texi: Likewise.
10447         * doc/posix-functions/iswlower.texi: Likewise.
10448         * doc/posix-functions/iswprint.texi: Likewise.
10449         * doc/posix-functions/iswpunct.texi: Likewise.
10450         * doc/posix-functions/iswspace.texi: Likewise.
10451         * doc/posix-functions/iswupper.texi: Likewise.
10452         * doc/posix-functions/iswxdigit.texi: Likewise.
10453         Reported by Alain Guibert.
10454
10455 2008-04-21  Bruno Haible  <bruno@clisp.org>
10456
10457         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10458         Patch by Alain Guibert.
10459
10460 2008-04-21  Bruno Haible  <bruno@clisp.org>
10461
10462         Fix test failures on mingw.
10463         * tests/test-xstrtol.c (print_no_progname): New function.
10464         (main): Install it in error_print_progname hook.
10465         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10466         * tests/test-xstrtoimax.sh: Likewise.
10467         * tests/test-xstrtoumax.sh: Likewise.
10468
10469 2008-04-21  Bruno Haible  <bruno@clisp.org>
10470
10471         Fix test failure on mingw.
10472         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10473
10474 2008-04-21  Bruno Haible  <bruno@clisp.org>
10475
10476         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10477         Actually assign a value.
10478
10479 2008-04-20  Bruno Haible  <bruno@clisp.org>
10480
10481         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10482         take 2.
10483         * lib/canonicalize.c (canonicalize_file_name): Elide if the
10484         'canonicalize-lgpl' module is also used.
10485         * lib/canonicalize-lgpl.c: Undo last change.
10486         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10487
10488 2008-04-20  Bruno Haible  <bruno@clisp.org>
10489
10490         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10491         config.h. Provide _mkdir based fallback for mingw.
10492         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10493         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10494         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10495         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10496         rather than defining mkdir in config.h.
10497         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10498         (gl_SYS_STAT_H_DEFAULTS): New macro.
10499         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10500         HAVE_IO_H any more.
10501         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10502         HAVE_DECL_MKDIR and HAVE_IO_H.
10503
10504 2008-04-20  Bruno Haible  <bruno@clisp.org>
10505
10506         * lib/isapipe.c: Port to native Windows platforms.
10507
10508 2008-04-20  Bruno Haible  <bruno@clisp.org>
10509
10510         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10511
10512 2008-04-21  Eric Blake  <ebb9@byu.net>
10513
10514         Work around preprocessors that don't handle UINTMAX_MAX.
10515         * lib/memchr2.c (memchr2): Avoid embedded #if.
10516         Reported by Alain Guibert, fix suggested by Bruno Haible.
10517
10518 2008-04-21  Simon Josefsson  <simon@josefsson.org>
10519
10520         * doc/posix-functions/strftime.texi (strftime): Explain better
10521         Windows incompatibility.  Suggested by Micah Cowan
10522         <micah@cowan.name>.
10523
10524 2008-04-20  Bruno Haible  <bruno@clisp.org>
10525
10526         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10527         unistr/u8-mblen.
10528
10529 2008-04-20  Bruno Haible  <bruno@clisp.org>
10530
10531         Fix test failure on platforms with non-GNU iconv.
10532         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10533         (U_TO_U8): Use it, rather than u16_to_u8.
10534         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10535         units at the end of the input string.
10536         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10537
10538 2008-04-20  Bruno Haible  <bruno@clisp.org>
10539
10540         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10541         when the resulting length is 0.
10542         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10543
10544 2008-04-20  Bruno Haible  <bruno@clisp.org>
10545
10546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10547         works.
10548         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10549
10550 2008-04-20  Bruno Haible  <bruno@clisp.org>
10551
10552         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10553         * modules/tsearch-tests (configure.ac): Test for initstate function.
10554
10555 2008-04-20  Bruno Haible  <bruno@clisp.org>
10556
10557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10558         for nlink_t if missing.
10559         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10560
10561 2008-04-19  Bruno Haible  <bruno@clisp.org>
10562
10563         Work around snprintf bug on Linux libc5.
10564         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10566         gl_SNPRINTF_SIZE1.
10567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10568         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10569         that test failed.
10570         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10571         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10572         * modules/snprintf (Files): Add m4/printf.m4.
10573         * modules/vsnprintf (Files): Likewise.
10574         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10575         * doc/posix-functions/vsnprintf.texi: Likewise.
10576
10577 2008-04-19  Bruno Haible  <bruno@clisp.org>
10578
10579         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10580         from 0.0058 to less than 10^-7.
10581
10582 2008-04-19  Bruno Haible  <bruno@clisp.org>
10583
10584         Fix rounding when a precision is given.
10585         * lib/vasnprintf.c (is_borderline): New function.
10586         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10587         9...9x.
10588         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10589         %e, %g.
10590         * tests/test-vasprintf-posix.c (test_function): Likewise.
10591         * tests/test-snprintf-posix.h (test_function): Likewise.
10592         * tests/test-sprintf-posix.h (test_function): Likewise.
10593         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10594         * tests/test-printf-posix.h (test_function): Likewise.
10595         * tests/test-printf-posix.output: Update.
10596         Reported by John Darrington <john@darrington.wattle.id.au> via
10597         Ben Pfaff <blp@cs.stanford.edu>.
10598
10599 2008-04-18  Simon Josefsson  <simon@josefsson.org>
10600
10601         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10602         Suggested by Bruno Haible <bruno@clisp.org>.
10603
10604 2008-04-17  Bruno Haible  <bruno@clisp.org>
10605
10606         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10607         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10608         implementation.
10609         Patch by Bruce Merry <bmerry@gmail.com>.
10610
10611 2008-04-17  Simon Josefsson  <simon@josefsson.org>
10612
10613         * doc/posix-functions/strftime.texi (strftime): Mention that %e
10614         doesn't work under Windows.
10615
10616 2008-04-16  Bruno Haible  <bruno@clisp.org>
10617
10618         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
10619         New macros.
10620         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
10621         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
10622         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
10623         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
10624         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
10625         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
10626         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
10627         macros.
10628         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
10629         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
10630         Northern Sotho, Uighur.
10631
10632 2008-04-16  Bruno Haible  <bruno@clisp.org>
10633
10634         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
10635         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
10636         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
10637         Reported by Daniel Bergström <daniel@octocode.com>.
10638
10639 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
10640             Bruno Haible  <bruno@clisp.org>
10641
10642         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
10643         function.
10644         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
10645         New functions, mostly extracted from gl_locale_name_default.
10646         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
10647
10648 2008-04-16  Eric Blake  <ebb9@byu.net>
10649
10650         Adjust strtod detection to catch glibc 2.7 bug.
10651         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
10652         Reported by John Gatewood Ham.
10653
10654 2008-04-16  Bruno Haible  <bruno@clisp.org>
10655
10656         Add tentative support for Linux libc5.
10657         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
10658         * lib/fpurge.c (fpurge): Likewise.
10659         * lib/freadable.c (freadable): Likewise.
10660         * lib/freadahead.c (freadahead): Likewise.
10661         * lib/freading.c (freading): Likewise.
10662         * lib/freadptr.c (freadptr): Likewise.
10663         * lib/freadseek.c (freadptrinc): Likewise.
10664         * lib/fseeko.c (rpl_fseeko): Likewise.
10665         * lib/fseterr.c (fseterr): Likewise.
10666         * lib/fwritable.c (fwritable): Likewise.
10667         * lib/fwriting.c (fwriting): Likewise.
10668         Reported by Alain Guibert <alguibert+bts@free.fr>.
10669
10670 2008-04-15  Bruno Haible  <bruno@clisp.org>
10671
10672         * modules/mathl (configure.ac): Define module indicator.
10673
10674 2008-04-15  Bruno Haible  <bruno@clisp.org>
10675
10676         * lib/logl.c (logl): Remove unused variables.
10677
10678 2008-04-15  Bruno Haible  <bruno@clisp.org>
10679
10680         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
10681         fails.
10682
10683 2008-04-15  Bruno Haible  <bruno@clisp.org>
10684
10685         * lib/trim.c (trim2): Fix argument of isspace() macro.
10686
10687 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
10688
10689         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
10690         to 0.
10691         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
10692
10693 2008-04-14  Bruno Haible  <bruno@clisp.org>
10694
10695         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
10696         AC_LANG_PROGRAM argument.
10697         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10698         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
10699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10700         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10701         * m4/math_h.m4 (gl_MATH_H): Likewise.
10702         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10704         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10705         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
10706         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10707         * m4/regex.m4 (gl_REGEX): Likewise.
10708         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
10709         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
10710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
10712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10713         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10714         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10716
10717 2008-04-14  Jim Meyering  <meyering@redhat.com>
10718
10719         test-strtod: fix typos: s/abs/fabs/
10720         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
10721
10722 2008-04-13  Bruno Haible  <bruno@clisp.org>
10723
10724         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
10725         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
10726         module is also used and while not building the reloc-wrapper.
10727
10728 2008-04-13  Bruno Haible  <bruno@clisp.org>
10729
10730         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
10731
10732 2008-04-13  Bruno Haible  <bruno@clisp.org>
10733
10734         Fix AIX compilation failure introduced on 2008-04-02.
10735         * tests/test-frexp.c (exp): Undefine before redefining.
10736         * tests/test-frexpl.c (exp): Likewise.
10737
10738 2008-04-13  Bruno Haible  <bruno@clisp.org>
10739
10740         Work around a HP-UX stdio bug.
10741         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
10742         * tests/test-ftello.c (main): Likewise.
10743         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
10744         * doc/posix-functions/ftello.texi: Likewise.
10745
10746 2008-04-13  Bruno Haible  <bruno@clisp.org>
10747
10748         Make test-signbit pass on HP-UX/hppa.
10749         * tests/test-signbit.c (minus_zerol): New variable.
10750         (test_signbitl): Use it.
10751
10752 2008-04-13  Bruno Haible  <bruno@clisp.org>
10753
10754         Make truncl work on OSF/1 4.0.
10755         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
10756         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10757         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
10759         HAVE_DECL_TRUNCL.
10760         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
10761         HAVE_DECL_TRUNCL.
10762         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
10763
10764 2008-04-13  Bruno Haible  <bruno@clisp.org>
10765
10766         * lib/unictype.h: Remove trailing comma from enumeration definitions.
10767
10768 2008-04-13  Bruno Haible  <bruno@clisp.org>
10769
10770         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
10771         expression, so as to avoid HP-UX 11 cc compiler bug.
10772
10773 2008-04-13  Bruno Haible  <bruno@clisp.org>
10774
10775         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
10776
10777 2008-04-13  Bruno Haible  <bruno@clisp.org>
10778
10779         * lib/git-merge-changelog.c: Remove empty declaration outside of
10780         functions.
10781
10782 2008-04-13  Bruno Haible  <bruno@clisp.org>
10783
10784         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
10785
10786 2008-04-13  Bruno Haible  <bruno@clisp.org>
10787
10788         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
10789         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
10790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
10791         also if it exists but lacks definitions of the SHUT_* macros.
10792         * modules/sys_socket (Description): Update.
10793         Reported by Elbert Pol <e.pol@chello.nl>.
10794
10795 2008-04-13  Bruno Haible  <bruno@clisp.org>
10796
10797         * lib/localcharset.c (OS2): Don't redefine if already defined.
10798         Reported by Elbert Pol <e.pol@chello.nl>.
10799
10800 2008-04-13  Bruno Haible  <bruno@clisp.org>
10801
10802         * lib/binary-io.h [__EMX__]: Include <io.h>.
10803         Reported by Elbert Pol <e.pol@chello.nl>.
10804
10805 2008-04-12  Bruno Haible  <bruno@clisp.org>
10806
10807         * lib/fpucw.h: Enable the definitions also for x86_64.
10808         Needed for NetBSD/x86_64.
10809         Reported by Thomas Klausner <tk@giga.or.at>.
10810
10811 2008-04-12  Bruno Haible  <bruno@clisp.org>
10812
10813         * tests/test-strtod.c: Include isnand.h.
10814         (main): Use isnand instead of isnan.
10815         Reported by Jim Meyering.
10816
10817 2008-04-12  Bruno Haible  <bruno@clisp.org>
10818
10819         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
10820         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10821
10822 2008-04-12  Jim Meyering  <meyering@redhat.com>
10823
10824         * m4/math_h.m4 (gl_MATH_H): Fix typos.
10825
10826 2008-04-12  Bruno Haible  <bruno@clisp.org>
10827
10828         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
10829         Reported by Elbert Pol <e.pol@chello.nl>.
10830
10831 2008-04-12  Eric Blake  <ebb9@byu.net>
10832
10833         Work around Solaris 10 math.h bug.
10834         * m4/math_h.m4 (gl_MATH_H): Check for bug.
10835         (gl_MATH_H_DEFAULTS): Set up default.
10836         * modules/math (Makefile.am): Replace new indicators.
10837         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
10838         * tests/test-math.c (main): Test this.
10839         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
10840         * doc/posix-headers/math.texi (math.h): Mention bug.
10841         Reported by Nelson H. F. Beebe and Jim Meyering.
10842
10843 2008-04-11  Bruno Haible  <bruno@clisp.org>
10844
10845         Adapt to future versions of Apple GCC.
10846         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
10847         Reported by Peter O'Gorman <peter@pogma.com>.
10848
10849 2008-04-11  Bruno Haible  <bruno@clisp.org>
10850
10851         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
10852
10853 2008-04-11  Bruno Haible  <bruno@clisp.org>
10854
10855         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
10856
10857         * modules/getaddrinfo-tests (Makefile.am): Define
10858         test_getaddrinfo_LDADD.
10859
10860 2008-04-11  Bruno Haible  <bruno@clisp.org>
10861
10862         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
10863         (init): Fix syntax error.
10864         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
10865         is declared.
10866
10867 2008-04-11  Bruno Haible  <bruno@clisp.org>
10868
10869         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
10870         * modules/glob (Depends-on): Add stdbool.
10871
10872 2008-04-11  Bruno Haible  <bruno@clisp.org>
10873
10874         * lib/trim.c: Include <string.h>.
10875
10876 2008-04-11  Eric Blake  <ebb9@byu.net>
10877
10878         Avoid compile failure on OS/2.
10879         * lib/regex_internal.h (internal_function): Disable optimization
10880         on OS/2 (__EMX__), where it caused compiler error.
10881         Reported by Elbert Pol.
10882
10883 2008-04-11  Bruno Haible  <bruno@clisp.org>
10884
10885         Flush the standard error stream before aborting. Needed on mingw.
10886         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
10887         * tests/test-array_list.c (ASSERT): Likewise.
10888         * tests/test-array_oset.c (ASSERT): Likewise.
10889         * tests/test-avltree_list.c (ASSERT): Likewise.
10890         * tests/test-avltree_oset.c (ASSERT): Likewise.
10891         * tests/test-avltreehash_list.c (ASSERT): Likewise.
10892         * tests/test-binary-io.c (ASSERT): Likewise.
10893         * tests/test-byteswap.c (ASSERT): Likewise.
10894         * tests/test-c-ctype.c (ASSERT): Likewise.
10895         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
10896         * tests/test-c-strcasestr.c (ASSERT): Likewise.
10897         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
10898         * tests/test-c-strstr.c (ASSERT): Likewise.
10899         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
10900         * tests/test-canonicalize.c (ASSERT): Likewise.
10901         * tests/test-carray_list.c (ASSERT): Likewise.
10902         * tests/test-ceilf1.c (ASSERT): Likewise.
10903         * tests/test-ceilf2.c (ASSERT): Likewise.
10904         * tests/test-ceill.c (ASSERT): Likewise.
10905         * tests/test-count-one-bits.c (ASSERT): Likewise.
10906         * tests/test-fbufmode.c (ASSERT): Likewise.
10907         * tests/test-fflush2.c (ASSERT): Likewise.
10908         * tests/test-floorf1.c (ASSERT): Likewise.
10909         * tests/test-floorf2.c (ASSERT): Likewise.
10910         * tests/test-floorl.c (ASSERT): Likewise.
10911         * tests/test-fopen.c (ASSERT): Likewise.
10912         * tests/test-fpending.c (ASSERT): Likewise.
10913         * tests/test-fprintf-posix.c (ASSERT): Likewise.
10914         * tests/test-fpurge.c (ASSERT): Likewise.
10915         * tests/test-freadable.c (ASSERT): Likewise.
10916         * tests/test-freadahead.c (ASSERT): Likewise.
10917         * tests/test-freading.c (ASSERT): Likewise.
10918         * tests/test-freadptr.c (ASSERT): Likewise.
10919         * tests/test-freadptr2.c (ASSERT): Likewise.
10920         * tests/test-freadseek.c (ASSERT): Likewise.
10921         * tests/test-freopen.c (ASSERT): Likewise.
10922         * tests/test-frexp.c (ASSERT): Likewise.
10923         * tests/test-frexpl.c (ASSERT): Likewise.
10924         * tests/test-fseek.c (ASSERT): Likewise.
10925         * tests/test-fseeko.c (ASSERT): Likewise.
10926         * tests/test-fstrcmp.c (ASSERT): Likewise.
10927         * tests/test-ftell.c (ASSERT): Likewise.
10928         * tests/test-ftello.c (ASSERT): Likewise.
10929         * tests/test-func.c (ASSERT): Likewise.
10930         * tests/test-fwritable.c (ASSERT): Likewise.
10931         * tests/test-fwriting.c (ASSERT): Likewise.
10932         * tests/test-getdelim.c (ASSERT): Likewise.
10933         * tests/test-getline.c (ASSERT): Likewise.
10934         * tests/test-i-ring.c (ASSERT): Likewise.
10935         * tests/test-iconv-utf.c (ASSERT): Likewise.
10936         * tests/test-iconv.c (ASSERT): Likewise.
10937         * tests/test-isfinite.c (ASSERT): Likewise.
10938         * tests/test-isnand.c (ASSERT): Likewise.
10939         * tests/test-isnanf.c (ASSERT): Likewise.
10940         * tests/test-isnanl.h (ASSERT): Likewise.
10941         * tests/test-ldexpl.c (ASSERT): Likewise.
10942         * tests/test-linked_list.c (ASSERT): Likewise.
10943         * tests/test-linkedhash_list.c (ASSERT): Likewise.
10944         * tests/test-localename.c (ASSERT): Likewise.
10945         * tests/test-lseek.c (ASSERT): Likewise.
10946         * tests/test-mbscasecmp.c (ASSERT): Likewise.
10947         * tests/test-mbscasestr1.c (ASSERT): Likewise.
10948         * tests/test-mbscasestr2.c (ASSERT): Likewise.
10949         * tests/test-mbscasestr3.c (ASSERT): Likewise.
10950         * tests/test-mbscasestr4.c (ASSERT): Likewise.
10951         * tests/test-mbschr.c (ASSERT): Likewise.
10952         * tests/test-mbscspn.c (ASSERT): Likewise.
10953         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
10954         * tests/test-mbspbrk.c (ASSERT): Likewise.
10955         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
10956         * tests/test-mbsrchr.c (ASSERT): Likewise.
10957         * tests/test-mbsspn.c (ASSERT): Likewise.
10958         * tests/test-mbsstr1.c (ASSERT): Likewise.
10959         * tests/test-mbsstr2.c (ASSERT): Likewise.
10960         * tests/test-mbsstr3.c (ASSERT): Likewise.
10961         * tests/test-memchr2.c (ASSERT): Likewise.
10962         * tests/test-memmem.c (ASSERT): Likewise.
10963         * tests/test-open.c (ASSERT): Likewise.
10964         * tests/test-printf-frexp.c (ASSERT): Likewise.
10965         * tests/test-printf-frexpl.c (ASSERT): Likewise.
10966         * tests/test-printf-posix.c (ASSERT): Likewise.
10967         * tests/test-quotearg.c (ASSERT): Likewise.
10968         * tests/test-rbtree_list.c (ASSERT): Likewise.
10969         * tests/test-rbtree_oset.c (ASSERT): Likewise.
10970         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
10971         * tests/test-round1.c (ASSERT): Likewise.
10972         * tests/test-roundf1.c (ASSERT): Likewise.
10973         * tests/test-roundl.c (ASSERT): Likewise.
10974         * tests/test-signbit.c (ASSERT): Likewise.
10975         * tests/test-sleep.c (ASSERT): Likewise.
10976         * tests/test-snprintf-posix.c (ASSERT): Likewise.
10977         * tests/test-snprintf.c (ASSERT): Likewise.
10978         * tests/test-sprintf-posix.c (ASSERT): Likewise.
10979         * tests/test-stat-time.c (ASSERT): Likewise.
10980         * tests/test-strcasestr.c (ASSERT): Likewise.
10981         * tests/test-strerror.c (ASSERT): Likewise.
10982         * tests/test-striconv.c (ASSERT): Likewise.
10983         * tests/test-striconveh.c (ASSERT): Likewise.
10984         * tests/test-striconveha.c (ASSERT): Likewise.
10985         * tests/test-strsignal.c (ASSERT): Likewise.
10986         * tests/test-strstr.c (ASSERT): Likewise.
10987         * tests/test-strtod.c (ASSERT): Likewise.
10988         * tests/test-trunc1.c (ASSERT): Likewise.
10989         * tests/test-trunc2.c (ASSERT): Likewise.
10990         * tests/test-truncf1.c (ASSERT): Likewise.
10991         * tests/test-truncf2.c (ASSERT): Likewise.
10992         * tests/test-truncl.c (ASSERT): Likewise.
10993         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
10994         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
10995         * tests/test-vasnprintf.c (ASSERT): Likewise.
10996         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
10997         * tests/test-vasprintf.c (ASSERT): Likewise.
10998         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
10999         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11000         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11001         * tests/test-vsnprintf.c (ASSERT): Likewise.
11002         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11003         * tests/test-wcwidth.c (ASSERT): Likewise.
11004         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11005         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11006         * tests/test-xvasprintf.c (ASSERT): Likewise.
11007         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11008         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11009         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11010         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11011         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11012         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11013         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11014         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11015         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11016         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11017         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11018         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11019         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11020         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11021         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11022         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11023         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11024         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11025         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11026         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11027         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11028         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11029         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11030         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11031         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11032         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11033         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11034         * tests/unictype/test-combining.c (ASSERT): Likewise.
11035         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11036         * tests/unictype/test-digit.c (ASSERT): Likewise.
11037         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11038         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11039         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11040         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11041         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11042         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11043         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11044         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11045         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11046         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11047         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11048         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11049         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11050         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11051         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11052         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11053         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11054         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11055         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11056         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11057         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11058         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11059         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11060         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11061         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11062         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11063         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11064         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11065         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11066         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11067         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11068         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11069         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11070         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11071         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11072         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11073         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11074         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11075         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11076         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11077         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11078         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11079         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11080         Reported by Eric Blake.
11081
11082 2008-04-11  Bruno Haible  <bruno@clisp.org>
11083
11084         * lib/wchar.in.h: Tweak comment.
11085
11086 2008-04-11  Bruno Haible  <bruno@clisp.org>
11087
11088         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11089         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11090         gl_COMMON.
11091         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11092
11093 2008-04-11  Bruno Haible  <bruno@clisp.org>
11094
11095         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11096
11097 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11098
11099         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11100         of attempting to use non-existing /dev/*random.  Based on patch
11101         from Adam Strzelecki <ono@java.pl> in
11102         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11103
11104 2008-04-08  Bruno Haible  <bruno@clisp.org>
11105
11106         Add tentative support for emx+gcc.
11107         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11108         * lib/fpurge.c (fpurge): Likewise.
11109         * lib/freadable.c (freadable): Likewise.
11110         * lib/freadahead.c (freadahead): Likewise.
11111         * lib/freading.c (freading): Likewise.
11112         * lib/freadptr.c (freadptr): Likewise.
11113         * lib/freadseek.c (freadptrinc): Likewise.
11114         * lib/fseeko.c (rpl_fseeko): Likewise.
11115         * lib/fseterr.c (fseterr): Likewise.
11116         * lib/fwritable.c (fwritable): Likewise.
11117         * lib/fwriting.c (fwriting): Likewise.
11118         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11119
11120 2008-04-09  Eric Blake  <ebb9@byu.net>
11121
11122         Avoid some autoconf warnings.
11123         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11124         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11125         * m4/afs.m4 (gl_AFS): Likewise.
11126         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11127         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11128         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11129         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11130         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11131         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11132         (AC_CHECK_DECLS_ONCE): Likewise.
11133         Rename file...
11134         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11135         gnulib-tool requires autoconf 2.59 or better.
11136         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11137
11138 2008-04-08  Eric Blake  <ebb9@byu.net>
11139
11140         Use 'git describe --match' if present (added in git 1.5.5).
11141         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11142         if possible.
11143
11144 2008-04-08  Bruno Haible  <bruno@clisp.org>
11145
11146         Add tentative support for OpenServer.
11147         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11148         _ptr, _cnt.
11149         * lib/fpurge.c (fpurge): Likewise.
11150         * lib/freadable.c (freadable): Likewise.
11151         * lib/freadahead.c (freadahead): Likewise.
11152         * lib/freading.c (freading): Likewise.
11153         * lib/freadptr.c (freadptr): Likewise.
11154         * lib/freadseek.c (freadptrinc): Likewise.
11155         * lib/fseeko.c (rpl_fseeko): Likewise.
11156         * lib/fseterr.c (fseterr): Likewise.
11157         * lib/fwritable.c (fwritable): Likewise.
11158         * lib/fwriting.c (fwriting): Likewise.
11159         Reported by Roger Cornelius <rac@tenzing.org> and
11160         Brian K. White <brian@aljex.com>.
11161
11162 2008-04-06  Jim Meyering  <meyering@redhat.com>
11163
11164         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11165
11166 2008-04-06  Bruno Haible  <bruno@clisp.org>
11167
11168         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11169         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11170         * tests/test-printf-posix.sh: Likewise.
11171         * tests/test-vfprintf-posix.sh: Likewise.
11172         * tests/test-vprintf-posix.sh: Likewise.
11173         * tests/test-xprintf-posix.sh: Likewise.
11174
11175 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11176
11177         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11178         hide error from 'ls', needed on OS/2.
11179         Report by Elbert Pol <elbert.pol@gmail.com>.
11180
11181 2008-04-04  Eric Blake  <ebb9@byu.net>
11182
11183         Make test-fseeko.c failures meaningful.
11184         * tests/test-fseeko.c: Print line number on failure.
11185         * tests/test-fseek.c: Likewise.
11186         Reported by Nelson H. F. Beebe.
11187
11188         Improve strtod bug detection check.
11189         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11190         required for Solaris 10.
11191         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11192
11193 2008-04-04  Bruno Haible  <bruno@clisp.org>
11194
11195         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11196         by m4/setenv.m4.
11197
11198 2008-04-03  Eric Blake  <ebb9@byu.net>
11199
11200         Ensure sane .version contents.
11201         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11202         version string.
11203         * build-aux/git-version-gen: Improve documentation.
11204
11205         Make GNU make output nicer.
11206         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11207         MAKECMDGOALS to enforce message for all command line targets.  Set
11208         srcdir for use in maint.mk.
11209
11210         Another maintainer tweak.
11211         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11212         a target that regenerates version.
11213
11214 2008-04-03  Jim Meyering  <meyering@redhat.com>
11215
11216         vc-list-files: don't cause coreutils "make po-check" failure
11217         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11218
11219 2008-04-03  Eric Blake  <ebb9@byu.net>
11220
11221         Allow VPATH usage of vc-list-files.
11222         * build-aux/vc-list-files (scriptversion): Add timestamp.
11223         (options): Add --help, --version, -C.
11224         (CVS): Support installed cvsu.
11225
11226 2008-04-02  Bruno Haible  <bruno@clisp.org>
11227
11228         Avoid some "statement with no effect" warnings from gcc.
11229         * tests/test-wctype.c (main): Explicitly ignore unused values.
11230         Reported by Jim Meyering.
11231
11232 2008-04-02  Jim Meyering  <meyering@redhat.com>
11233
11234         Avoid some warnings from "gcc -Wshadow".
11235         * tests/test-frexp.c (exp): Define to a different identifier.
11236         * tests/test-frexpl.c (exp): Likewise.
11237
11238 2008-04-03  Jim Meyering  <meyering@redhat.com>
11239
11240         bootstrap: remove dangling *.[ch] symlinks from lib
11241         * build-aux/bootstrap [dangling symlink removal]: Move find's
11242         -depth option to precede all others, to avoid a warning.
11243         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11244
11245 2008-04-02  Bruno Haible  <bruno@clisp.org>
11246
11247         Avoid some warnings from "gcc -Wshadow".
11248         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11249         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11250         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11251         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11252         Reported by Jim Meyering.
11253
11254 2008-04-01  Bruno Haible  <bruno@clisp.org>
11255
11256         Fix test to work on IRIX 6.5 with cc.
11257         * tests/test-math.c (numeric_equal): New function.
11258         (main): Use it.
11259
11260 2008-04-01  Bruno Haible  <bruno@clisp.org>
11261
11262         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11263
11264 2008-04-01  Bruno Haible  <bruno@clisp.org>
11265
11266         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11267         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11268         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11269         (Depends-on): Remove math.
11270
11271         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11272         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11273         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11274         (Depends-on): Remove math.
11275
11276         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11277         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11278         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11279         (Depends-on): Remove math.
11280         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11281         (Depends-on): Remove math.
11282
11283         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11284         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11285         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11286         (Depends-on): Remove math.
11287         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11288         (Depends-on): Remove math.
11289
11290         * tests/test-round1.c: Include nan.h.
11291         (main): Use NaNd instead of NAN.
11292         * modules/round-tests (Files): Add tests/nan.h.
11293
11294         * tests/test-trunc1.c: Include nan.h.
11295         (main): Use NaNd instead of NAN.
11296         * modules/trunc-tests (Files): Add tests/nan.h.
11297
11298         * tests/test-roundf1.c: Include nan.h.
11299         (main): Use NaNf instead of NAN.
11300         * modules/roundf-tests (Files): Add tests/nan.h.
11301
11302         * tests/test-truncf1.c: Include nan.h.
11303         (main): Use NaNf instead of NAN.
11304         * modules/truncf-tests (Files): Add tests/nan.h.
11305
11306         * tests/test-ceilf1.c: Include nan.h.
11307         (main): Use NaNf instead of NAN.
11308         * modules/ceilf-tests (Files): Add tests/nan.h.
11309
11310         * tests/test-floorf1.c: Include nan.h.
11311         (main): Use NaNf instead of NAN.
11312         * modules/floorf-tests (Files): Add tests/nan.h.
11313
11314         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11315         (main): Use NaNf instead of NAN.
11316         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11317
11318         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11319         (main): Use NaNd instead of NAN.
11320         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11321
11322         * tests/test-frexp.c: Include nan.h.
11323         (main): Use NaNd instead of NAN.
11324         * modules/frexp-tests (Files): Add tests/nan.h.
11325
11326         * lib/isnan.c: Don't include <math.h>.
11327         (FUNC): Don't use NAN macro.
11328         * modules/isnand-nolibm (Depends-on): Remove math.
11329         * modules/isnanf-nolibm (Depends-on): Remove math.
11330         * modules/isnanl (Depends-on): Remove math.
11331         * modules/isnanl-nolibm (Depends-on): Remove math.
11332
11333         * tests/nan.h: New file.
11334
11335 2008-04-01  Eric Blake  <ebb9@byu.net>
11336
11337         Fix typos.
11338         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11339         values to be the right type.
11340
11341         For now, cater to gnulib strtod inaccuracies.
11342         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11343         fractional results.  While not as nice from a QoI perspective, it
11344         is a quicker patch than correctly implementing decimal to binary
11345         rounding.
11346
11347 2008-03-31  Eric Blake  <ebb9@byu.net>
11348
11349         Guarantee a definition of NAN.
11350         * lib/math.in.h (NAN): Define if missing.
11351         * tests/test-math.c (main): Test it.
11352         * doc/posix-headers/math.texi (math.h): Document this.
11353         * lib/isnan.c (rpl_isnand): Use it.
11354         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11355         * tests/test-floorf1.c (NaN): Likewise.
11356         * tests/test-frexp.c (NaN): Likewise.
11357         * tests/test-isnand.c (NaN): Likewise.
11358         * tests/test-isnanf.c (NaN): Likewise.
11359         * tests/test-round1.c (NaN): Likewise.
11360         * tests/test-roundf1.c (NaN): Likewise.
11361         * tests/test-snprintf-posix.h (NaN): Likewise.
11362         * tests/test-sprintf-posix.h (NaN): Likewise.
11363         * tests/test-trunc1.c (NaN): Likewise.
11364         * tests/test-truncf1.c (NaN): Likewise.
11365         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11366         * tests/test-vasprintf-posix.c (NaN): Likewise.
11367         * modules/isnand-nolibm (Depends-on): Add math.
11368         * modules/isnanf-nolibm (Depends-on): Likewise.
11369         * modules/isnanl (Depends-on): Likewise.
11370         * modules/isnanl-nolibm (Depends-on): Likewise.
11371         * modules/snprintf-posix-tests (Depends-on): Likewise.
11372         * modules/sprintf-posix-tests (Depends-on): Likewise.
11373         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11374         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11375         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11376         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11377
11378 2008-03-31  Bruno Haible  <bruno@clisp.org>
11379
11380         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11381         * doc/posix-functions/strtod.texi: Likewise.
11382
11383 2008-03-31  Bruno Haible  <bruno@clisp.org>
11384
11385         * tests/test-strtod.c (main): Don't use C99 syntax.
11386
11387 2008-03-31  Bruno Haible  <bruno@clisp.org>
11388
11389         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11390         Reported by Eric Blake.
11391
11392 2008-03-31  Jim Meyering  <meyering@redhat.com>
11393
11394         Don't compare actual signbit return values.
11395         * tests/test-strtod.c (main): Rather, compare only their
11396         zero/non-zero nature.
11397
11398 2008-03-31  Eric Blake  <ebb9@byu.net>
11399
11400         More strtod documentation.
11401         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11402         failures as distinct bugs.
11403
11404 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11405
11406         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11407         Problem reported by Erik Benada in
11408         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11409
11410 2008-03-30  Bruno Haible  <bruno@clisp.org>
11411
11412         * tests/test-strtod.c: Add comments about which assertion fails on which
11413         platform.
11414         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11415
11416 2008-03-30  Eric Blake  <ebb9@byu.net>
11417
11418         Test signbit behavior on zeros.
11419         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11420         (test_signbitd, test_signbitl): Likewise.
11421
11422         More strtod touchups.
11423         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11424         sign of negative underflow, for now.  Use .5, not .1.
11425         * doc/posix-functions/strtod.texi (strtod): Mention these
11426         limitations.
11427         Reported by Jim Meyering.
11428
11429 2008-03-30  Bruno Haible  <bruno@clisp.org>
11430
11431         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11432         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11433
11434 2008-03-30  Bruno Haible  <bruno@clisp.org>
11435
11436         Avoid failure when attempting to return empty iconv results on some
11437         platforms.
11438         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11439         allocation, don't report ENOMEM when the resulting string is empty.
11440
11441 2008-03-30  Bruno Haible  <bruno@clisp.org>
11442
11443         Fix buffer overrun.
11444         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11445         Don't consider the width for tmp_length. Check count against tmp_length
11446         before doing the padding. Ensure enough allocation during padding.
11447
11448 2008-03-30  Eric Blake  <ebb9@byu.net>
11449
11450         strtod touchups.
11451         * lib/strtod.c (strtod): Avoid compiler warnings.
11452         Reported by Jim Meyering.
11453
11454 2008-03-30  Bruno Haible  <bruno@clisp.org>
11455
11456         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11457         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11458         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11459         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11460         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11461         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11462         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11463         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11464
11465         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11466         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11467         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11468         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11469         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11470         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11471         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11472         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11473
11474         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11475         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11476         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11477         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11478         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11479         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11480         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11481         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11482
11483         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11484         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11485
11486         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11487         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11488
11489         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11490         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11491
11492         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11494         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11495
11496         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11498         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11499
11500         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11502         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11503
11504         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11506         * modules/vasprintf (Depends-on): Add EOVERFLOW.
11507
11508         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11509         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11511         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11512         (Depends-on): Add EOVERFLOW.
11513         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11514         (Depends-on): Add EOVERFLOW.
11515         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11516         (Depends-on): Add EOVERFLOW.
11517         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11518         (Depends-on): Add EOVERFLOW.
11519         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11520         (Depends-on): Add EOVERFLOW.
11521         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11522         (Depends-on): Add EOVERFLOW.
11523         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11524         (Depends-on): Add EOVERFLOW.
11525         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11526         (Depends-on): Add EOVERFLOW.
11527
11528         * lib/sprintf.c (EOVERFLOW): Remove fallback.
11529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11530         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11531
11532         * lib/snprintf.c (EOVERFLOW): Remove fallback.
11533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11534         * modules/snprintf (Depends-on): Add EOVERFLOW.
11535
11536         * lib/poll.c (EOVERFLOW): Remove fallback.
11537         * modules/poll (Depends-on): Add EOVERFLOW.
11538
11539         * lib/getugroups.c (EOVERFLOW): Remove fallback.
11540         * modules/getugroups (Depends-on): Add EOVERFLOW.
11541
11542         * lib/getdelim.c (EOVERFLOW): Remove fallback.
11543         * modules/getdelim (Depends-on): Add EOVERFLOW.
11544
11545         * lib/ftell.c (EOVERFLOW): Remove fallback.
11546         * modules/ftell (Depends-on): Add EOVERFLOW.
11547
11548         * lib/fprintf.c (EOVERFLOW): Remove fallback.
11549         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11550         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11551
11552         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11553
11554         * modules/EOVERFLOW-tests: New file.
11555         * tests/test-EOVERFLOW.c: New file.
11556
11557         * modules/EOVERFLOW: New file.
11558         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11559
11560 2008-03-30  Bruno Haible  <bruno@clisp.org>
11561
11562         Fix bug introduced on 2007-06-10.
11563         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11564         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11565
11566 2008-03-30  Bruno Haible  <bruno@clisp.org>
11567
11568         Improve freadseek's efficiency after ungetc.
11569         * lib/freadseek.c: Include freadahead.h.
11570         (freadptrinc): New function, extracted from freadseek.
11571         (freadseek): Use it in a loop. Use freadahead to determine the number
11572         of loop iterations.
11573         * modules/freadseek (Depends-on): Add freadahead.
11574         (configure.ac): Require AC_C_INLINE.
11575
11576 2008-03-30  Bruno Haible  <bruno@clisp.org>
11577
11578         * lib/freadseek.c (freadseek): Don't ignore the return value of
11579         freadptr.
11580
11581 2008-03-29  Eric Blake  <ebb9@byu.net>
11582
11583         Add hex float support.
11584         * modules/strtod (Depends-on): Add c-ctype.
11585         (Link): Mention POW_LIB.
11586         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
11587         whitespace between 'e' and exponent.
11588         * tests/test-strtod.c (main): Enable hex float tests.
11589         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11590         now provides.
11591
11592         Document various strtod bugs, with some fixes.
11593         * doc/posix-functions/strtod.texi (strtod): Document bugs with
11594         "-0x", "inf", "nan", and hex constants.
11595         * doc/posix-functions/atof.texi (atof): Likewise.
11596         * modules/stdlib (Makefile.am): Support strtod.
11597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11598         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11599         detect additional strtod bugs.
11600         * lib/stdlib.in.h (rpl_strtod): Add declarations.
11601         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
11602         bool where appropriate.  Parse 'inf' and 'nan'.
11603         * tests/test-strtod.c: New file.
11604         * modules/strtod (Depends-on): Add stdbool, stdlib.
11605         (configure.ac): Turn on module indicator.
11606         * modules/strtod-tests: New module.
11607
11608 2008-03-29  Eric Blake  <ebb9@byu.net>
11609
11610         Fix ftell on mingw.
11611         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
11612         * modules/ftell-tests (Depends-on): Add binary-io.
11613         * modules/ftello-tests (Depends-on): Likewise.
11614         * tests/test-ftell.c (main): Enhance test to cover behavior after
11615         ungetc.  Enforce binary mode.
11616         * tests/test-ftello.c (main): Likewise.
11617
11618         Pass test-freadseek on cygwin.
11619         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
11620         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
11621         ungetc buffer.
11622
11623         * tests/test-fflush2.c (main): Fix typo.
11624
11625 2008-03-29  Bruno Haible  <bruno@clisp.org>
11626
11627         * tests/test-fflush2.c (main): Temporarily disable the contents of
11628         this test.
11629         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
11630         Reported by Eric Blake.
11631
11632 2008-03-28  Simon Josefsson  <simon@josefsson.org>
11633
11634         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
11635         (GC_SHA224_DIGEST_SIZE): Add.
11636
11637         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
11638         (gc_hash_digest_length): Likewise.
11639         (gc_hash_buffer): Likewise.
11640
11641 2008-03-25  Bruno Haible  <bruno@clisp.org>
11642
11643         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
11644         detail which gettext release to use.
11645         Reported by Simon Josefsson.
11646
11647 2008-03-26  Jim Meyering  <meyering@redhat.com>
11648
11649         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
11650         * modules/gnumakefile (clean-GNUmakefile): Also, use
11651         test ... && ... || : syntax rather than if-then ... fi.
11652
11653         gnumakefile: Don't double-quote-expand $(VPATH) value.
11654         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
11655
11656 2008-03-24  Eric Blake  <ebb9@byu.net>
11657
11658         Alter GNUmakefile to install into top directory.
11659         * modules/maintainer-makefile: Split, and add dependency...
11660         * modules/gnumakefile: to this new module.
11661         * build-aux/GNUmakefile: Move...
11662         * top/GNUmakefile: ...here.
11663         * build-aux/maint.mk: Move...
11664         * top/maint.mk: ...here.
11665         * MODULES.html.sh (Support for maintaining...): Document new
11666         module.
11667
11668 2008-03-23  Bruno Haible  <bruno@clisp.org>
11669
11670         * gnulib-tool: New options --vc-files, --no-vc-files.
11671         (func_usage): Document them.
11672         (vc_files): New variable.
11673         (func_import): Consider vc_files.
11674         (func_create_testdir): Set vc_files to empty.
11675         Suggested by Jim Meyering and Karl Berry.
11676
11677 2008-03-23  Bruno Haible  <bruno@clisp.org>
11678
11679         Fix regex compilation error on HP-UX 11.
11680         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
11681         * modules/regex (Files): Add m4/mbstate_t.m4.
11682         Reported by Ton Voon <ton.voon@altinity.com>.
11683
11684 2008-03-23  Bruno Haible  <bruno@clisp.org>
11685
11686         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
11687
11688 2008-03-23  Eric Blake  <ebb9@byu.net>
11689             Bruno Haible  <bruno@clisp.org>
11690
11691         Install files from top/ in the destination directory.
11692         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11693         augmentation also for the files from top/.
11694         (func_import, func_create_testdir): Rewrite file names:
11695         top/filename -> filename.
11696
11697 2008-03-23  Bruno Haible  <bruno@clisp.org>
11698
11699         Tweak "gnulib --version" output.
11700         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
11701
11702 2008-03-23  Bruno Haible  <bruno@clisp.org>
11703
11704         Tweak "gnulib --version" output.
11705         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
11706         rather than contents of ChangeLog, when possible.
11707
11708 2008-03-21  Eric Blake  <ebb9@byu.net>
11709
11710         More --version tweaks.
11711         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
11712         date of last ChangeLog entry.
11713
11714 2008-03-21  Jim Meyering  <meyering@redhat.com>
11715
11716         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
11717
11718 2008-03-20  Eric Blake  <ebb9@byu.net>
11719
11720         VPATH fix.
11721         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
11722
11723 2008-03-20  Simon Josefsson  <simon@josefsson.org>
11724
11725         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
11726         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
11727
11728 2008-03-20  Eric Blake  <ebb9@byu.net>
11729
11730         Sync GNUmakefile with coreutils.
11731         * build-aux/GNUmakefile (have-Makefile): Rename...
11732         (_have-Makefile): ...to this, for namespace consideration.
11733         (GNUmakefile.cfg): Include, if present.
11734         (_autoreconf): Define a default.
11735         (_is-dist-target): New rule for rebuilds to pick up intra-release
11736         version.
11737         (maint-cfg.mk): Rename...
11738         (cfg.mk): ...to this.
11739
11740 2008-03-18  Jim Meyering  <meyering@redhat.com>
11741
11742         New script and module: mktempd
11743         * MODULES.html.sh (maint+release support): Add mktempd.
11744         * build-aux/mktempd: New file.
11745         * modules/mktempd: New file.
11746
11747 2008-03-15  Jim Meyering  <meyering@redhat.com>
11748
11749         Undo last change.
11750         * lib/sha1.c, lib/md5.c: 63 != ~63.
11751         Reported by Andreas Schwab.
11752
11753         sha1.c, md5.c: Hoist a redundant expression.
11754         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
11755         "ctx->buflen" only once, before calling *_process_block.
11756         * lib/md5.c (md5_process_bytes): Likewise.
11757
11758 2008-03-14  Eric Blake  <ebb9@byu.net>
11759
11760         Bump copyright year in files generated by gnulib-tool.
11761         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
11762         gnulib-tool, rather than hard-coding it.
11763
11764         Fix 'gnulib-tool --version' output to work with git.
11765         * gnulib-tool (func_gnulib_dir): New function, extracted from...
11766         (startup): ...here.
11767         (func_version): Use it to invoke git-version-gen, rather than
11768         relying on CVS keyword expansion.  Modernize wording.
11769         (cvsdatestamp, last_checkin_date, version): Kill unused
11770         variables.
11771
11772 2008-03-12  Jim Meyering  <meyering@redhat.com>
11773
11774         Recognize optional cast of the argument to free.
11775         * build-aux/useless-if-before-free: Update regexps.
11776
11777         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
11778
11779 2008-03-11  Bruno Haible  <bruno@clisp.org>
11780
11781         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
11782         by a single package.
11783         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
11784         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
11785         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
11786         Reported by Sam Steingold <sds@gnu.org>.
11787
11788 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11789
11790         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
11791         repositories.
11792
11793 2008-03-11  Bruno Haible  <bruno@clisp.org>
11794
11795         Avoid conflicts between local macro definitions.
11796         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11797         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
11798
11799 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
11800             Bruno Haible  <bruno@clisp.org>
11801
11802         Make va_copy work with some version of xlc on AIX 5.1.
11803         * lib/stdarg.in.h: New file.
11804         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
11805         On AIX, use a <stdarg.h> file substitute.
11806         * modules/stdarg (Files): Add lib/stdarg.in.h.
11807         (Depends-on): Add include_next.
11808         (Makefile.am): Build a stdarg.h substitute if requested.
11809         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
11810
11811 2008-03-10  Bruno Haible  <bruno@clisp.org>
11812
11813         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
11814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11815         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
11816
11817 2008-03-10  Bruno Haible  <bruno@clisp.org>
11818
11819         * modules/stdlib (Depends-on): Add include_next, remove
11820         absolute-header.
11821
11822 2008-03-09  Bruno Haible  <bruno@clisp.org>
11823
11824         * lib/freadahead.h (freadahead): Document more precisely.
11825         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
11826         the sum of both buffer sizes.
11827         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
11828         * NEWS: Document the change.
11829
11830 2008-03-09  Bruno Haible  <bruno@clisp.org>
11831
11832         Extend freadptr to return also the buffer size.
11833         * lib/freadptr.h (freadptr): Add sizep argument.
11834         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
11835         (freadptr): Add sizep argument. Determine buffer size like freadahead
11836         does.
11837         * tests/test-freadptr.c: Don't include freadahead.h.
11838         (main): Adapt for new calling convention of freadptr.
11839         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
11840         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
11841         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
11842         tests/test-freadptr2.sh.
11843         (Depends): Remove freadahead.
11844         (TESTS): Add test-freadptr2.sh.
11845         (check_PROGRAMS): Add test-freadptr2.
11846
11847 2008-03-09  Bruno Haible  <bruno@clisp.org>
11848
11849         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
11850         Report and solution by Simon Josefsson.
11851
11852 2008-03-06  Bruno Haible  <bruno@clisp.org>
11853
11854         Make fflush after ungetc work on BSD platforms.
11855         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
11856         * tests/test-fflush2.c: New file.
11857         * tests/test-fflush2.sh: New file.
11858         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
11859         tests/test-fflush2.c.
11860         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
11861         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
11862
11863 2008-03-06  Eric Blake  <ebb9@byu.net>
11864
11865         Likewise for ftello.
11866         * modules/ftello (Dependencies): Add extensions.
11867         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
11868
11869 2008-03-06  Bruno Haible  <bruno@clisp.org>
11870
11871         * modules/fseeko (Dependencies): Add extensions.
11872         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
11873         Needed on glibc systems.
11874
11875 2008-03-06  Bruno Haible  <bruno@clisp.org>
11876
11877         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
11878         email address.
11879         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11880
11881 2008-03-06  Bruno Haible  <bruno@clisp.org>
11882
11883         * users.txt: Add libgnupdf.
11884
11885 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11886
11887         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
11888         (Header File Substitutes, Function Substitutes,
11889         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
11890         (Build robot for gnulib): Fix typo.
11891
11892 2008-03-06  Bruno Haible  <bruno@clisp.org>
11893
11894         * doc/gnulib-tool.texi (VCS Issues): Small updates.
11895         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11896
11897 2008-03-06  Bruno Haible  <bruno@clisp.org>
11898
11899         * doc/func.texi: New file, extracted from doc/gnulib.texi.
11900         * doc/gnulib.texi: Include it.
11901
11902 2008-03-06  Simon Josefsson  <simon@josefsson.org>
11903
11904         * modules/func (License): Change license to unlimited; there was
11905         no LGPL parts in the module anyway.
11906
11907 2008-03-06  Simon Josefsson  <simon@josefsson.org>
11908
11909         * modules/__func__: Renamed to modules/func.
11910         * modules/__func__-tests: Renamed to modules/func-tests.
11911         * tests/test-__func__.c: Renamed to tests/test-func.c.
11912         * m4/__func__.m4: Renamed to m4/func.m4.
11913         * doc/gnulib.texi (__func__): Section renamed to func.
11914         Suggested by Eric Blake <ebb9@byu.net>.
11915
11916 2008-03-06  Simon Josefsson  <simon@josefsson.org>
11917
11918         * doc/gnulib.texi (__func__): Use C99 terminology when talking
11919         about __func__.  Make example self-contained.  Suggested by Eric
11920         Blake <ebb9@byu.net>.
11921
11922         * tests/test-__func__.c (main): Avoid extraneous () around __func.
11923         Suggested by Eric Blake <ebb9@byu.net>.
11924
11925 2008-03-06  Simon Josefsson  <simon@josefsson.org>
11926
11927         * modules/__func__: New file.
11928         * modules/__func__-tests: New file.
11929         * tests/test-__func__.c: New file.
11930         * m4/__func__.m4: New file.
11931         * doc/gnulib.texi (__func__): Document __func__ module.
11932
11933 2008-03-05  Simon Josefsson  <simon@josefsson.org>
11934
11935         * modules/byteswap (License): Re-license as LGPLv2+.
11936
11937 2008-03-05  Simon Josefsson  <simon@josefsson.org>
11938
11939         * doc/Makefile: Add pdf target.
11940
11941 2008-03-05  Simon Josefsson  <simon@josefsson.org>
11942
11943         * modules/inline (License): Use 'unlimited', since there are only
11944         *.m4 files in this module.
11945
11946 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
11947             Bruno Haible  <bruno@clisp.org>
11948
11949         Add support for HP C 7.1 on OpenVMS 8.3.
11950         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
11951
11952 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
11953
11954         Update VMS specifics.
11955         * lib/getopt.c [VMS]: Remove include of unixlib.h.
11956
11957 2008-03-02  Jim Meyering  <meyering@redhat.com>
11958
11959         Remove the last dependency on the "free" module.
11960         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
11961         Reported by Bob Proulx.
11962
11963         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
11964
11965         Remove useless "if" tests before free.  Deprecate "free" module.
11966         * doc/posix-functions/free.texi: Mention that this
11967         module is no longer useful.
11968         * modules/free (Notice): Say this module is obsolete.
11969         * modules/readutmp (Depends-on): Remove free.
11970         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
11971         * lib/putenv.c (putenv): Likewise.
11972         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
11973         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
11974         * tests/test-c-strcasestr.c (main): Likewise.
11975         * tests/test-c-strstr.c (main): Likewise.
11976         * tests/test-mbscasestr1.c (main): Likewise.
11977         * tests/test-mbscasestr2.c (main): Likewise.
11978         * tests/test-mbsstr1.c (main): Likewise.
11979         * tests/test-mbsstr2.c (main): Likewise.
11980         * tests/test-memmem.c (main): Likewise.
11981         * tests/test-strcasestr.c (main): Likewise.
11982         * tests/test-striconv.c (main): Likewise.
11983         * tests/test-striconveh.c (main): Likewise.
11984         * tests/test-striconveha.c (main): Likewise.
11985         * tests/test-strstr.c (main): Likewise.
11986
11987         * build-aux/git-version-gen: Adjust a comment and the Usage string.
11988
11989         bootstrap: sync from coreutils again
11990         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
11991
11992 2008-03-01  Jim Meyering  <meyering@redhat.com>
11993
11994         bootstrap: sync from coreutils
11995         * build-aux/bootstrap (update_po_files): Copy a .po file into place
11996         also when the target doesn't exist.
11997
11998 2008-03-01  Eric Blake  <ebb9@byu.net>
11999
12000         Fix bugs in last patch.
12001         * lib/memchr2.c (memchr2): Fix typo.
12002         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12003         extension.
12004         Reported by Bruce Korb.
12005
12006         New module 'memchr2'.
12007         * modules/memchr2: New file.
12008         * modules/memchr2-tests: Likewise.
12009         * lib/memchr2.h: Likewise.
12010         * lib/memchr2.c: Likewise, based on memchr.c.
12011         * tests/test-memchr2.c: New test.
12012         * MODULES.html.sh (String handling): Add memchr2.
12013
12014 2008-02-29  Bruno Haible  <bruno@clisp.org>
12015
12016         * modules/freadseek-tests: New file.
12017         * tests/test-freadseek.sh: New file.
12018         * tests/test-freadseek.c: New file.
12019
12020         New module 'freadseek'.
12021         * modules/freadseek: New file.
12022         * lib/freadseek.h: New file.
12023         * lib/freadseek.c: New file.
12024         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12025
12026 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12027
12028         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12029         wydawca.
12030
12031         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12032         program_invocation_name and program_invocation_short_name are
12033         present.
12034
12035 2008-02-28  Bruno Haible  <bruno@clisp.org>
12036
12037         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12038         * tests/test-freadptr.sh: Also test non-seekable stdin.
12039
12040 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12041
12042         * build-aux/bootstrap (source_base, m4_base)
12043         (doc_base, tests_base): New variables.
12044         (gnulib_tool_options): Do not hardcode base directories, use
12045         the above variables instead.
12046
12047 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12048
12049         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12050
12051 2008-02-28  Bruno Haible  <bruno@clisp.org>
12052
12053         * modules/freadptr-tests: New file.
12054         * tests/test-freadptr.sh: New file.
12055         * tests/test-freadptr.c: New file.
12056
12057         New module 'freadptr'.
12058         * modules/freadptr: New file.
12059         * lib/freadptr.h: New file.
12060         * lib/freadptr.c: New file.
12061         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12062
12063 2008-02-26  Karl Berry  <karl@freefriends.org>
12064
12065         Sync from Libtool:
12066         * libltdl/argz.c (argz_add, argz_count): New functions.
12067         * libltdl/argz.in.h: Declare them.
12068         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12069
12070 2008-02-22  Bruno Haible  <bruno@clisp.org>
12071
12072         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12073         is a pointer type.  Needed for HP-UX 10.
12074         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12075         * doc/posix-functions/gmtime_r.texi: Likewise.
12076         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12077
12078 2008-02-24  Bruno Haible  <bruno@clisp.org>
12079
12080         * modules/environ-tests: New file.
12081         * tests/test-environ.c: New file.
12082
12083         New module 'environ'.
12084         * modules/environ: New file.
12085         * lib/unistd.in.h (environ): New declaration.
12086         * m4/environ.m4: New file.
12087         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12088         after use.
12089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12090         HAVE_DECL_ENVIRON.
12091         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12092         HAVE_DECL_ENVIRON.
12093         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12094         wrong claim that 'environ' is missing on some systems.
12095         * modules/execute (Depends-on): Add environ.
12096         * lib/execute.c (environ): Remove fallback declaration.
12097         * modules/pipe (Depends-on): Add environ.
12098         * lib/pipe.c (environ): Remove fallback declaration.
12099         * modules/setenv (Depends-on): Add environ.
12100         * lib/setenv.c (environ): Remove fallback declaration.
12101         * modules/unsetenv (Depends-on): Add environ.
12102         * lib/unsetenv.c (environ): Remove fallback declaration.
12103         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12104         m4/environ.m4.
12105         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12106         (gl_PREREQ_UNSETENV): Likewise.
12107
12108 2008-02-24  Bruno Haible  <bruno@clisp.org>
12109
12110         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12111
12112 2008-02-20  Bob Proulx  <bob@proulx.com>
12113
12114         Enable use of older two part flavor 'git describe'.
12115         * build-aux/git-version-gen: If using the older two part flavor of
12116         git version then recreate the third part now present in the
12117         newer three part flavor of git describe.
12118
12119 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12120
12121         * lib/fts.c (fts_build): Typo correction to comment.
12122
12123 2008-02-17  Bruno Haible  <bruno@clisp.org>
12124
12125         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12126         generating no-op conflicts.
12127
12128 2008-02-17  Bruno Haible  <bruno@clisp.org>
12129
12130         Speed up by 10%.
12131         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12132         result_entries, rather than an index-based loop.
12133
12134 2008-02-17  Bruno Haible  <bruno@clisp.org>
12135
12136         Speed up by 25%.
12137         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12138         'hashcode_cached'.
12139         (entry_create): New function.
12140         (entry_hashcode): Use the cached hashcode if possible.
12141         (read_changelog_file, try_split_merged_entry): Use entry_create.
12142
12143 2008-02-17  Bruno Haible  <bruno@clisp.org>
12144
12145         Speed up from O(n^2) to O(n) for long ChangeLog files.
12146         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12147         (read_changelog_file): Change implementation of entries_reversed list
12148         to rbtreehash.
12149         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12150
12151 2008-02-17  Bruno Haible  <bruno@clisp.org>
12152
12153         New option --split-merged-entry.
12154         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12155         (find_paragraph_end, try_split_merged_entry): New functions.
12156         (long_options): Add option --split-merged-entry.
12157         (usage): Document option --split-merged-entry.
12158         (main): Implement option --split-merged-entry.
12159         Reported by Eric Blake.
12160
12161 2008-02-17  Bruno Haible  <bruno@clisp.org>
12162
12163         * lib/git-merge-changelog.c: Include c-strstr.h.
12164         (main): Support the "git pull --rebase" situation.
12165         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12166         Reported by Eric Blake.
12167
12168 2008-02-16  Eric Blake  <ebb9@byu.net>
12169
12170         Avoid doubling \ in common case of "c-maybe" quoting style.
12171         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12172         eliding outer quotes.
12173         * lib/quotearg.h: Document this.
12174         * tests/test-quotearg.c (result_strings, inputs, results_g)
12175         (flag_results, locale_results): Test it by adding a new string to
12176         each test group.
12177         (compare_strings): Test new string.
12178
12179 2008-02-13  Eric Blake  <ebb9@byu.net>
12180
12181         Avoid trigraph quoting in default output.
12182         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12183         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12184         unless explicitly requested.
12185         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12186
12187 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12188
12189         Don't rely on signed integer overflowing to negative value.
12190         * lib/getugroups.c (getugroups): Include <limits.h>.
12191         Instead, compare against INT_MAX, and increment only if the test passes.
12192
12193 2008-02-13  Jim Meyering  <meyering@redhat.com>
12194         and Eric Blake  <ebb9@byu.net>
12195
12196         Avoid shadowing warning and compile errors on Linux.
12197         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12198         forwarding macros on Linux.
12199         (dcgettext): Define a stub, for Linux.
12200         (results_g, main): Avoid warnings.
12201
12202 2008-02-12  Eric Blake  <ebb9@byu.net>
12203
12204         Silence warning in last patch.
12205         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12206
12207         Quotearg part 4: add tests, fix c-maybe colon quoting.
12208         * lib/quotearg.h: Improve documentation.
12209         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12210         escapes when adding outer quotes.  When quoting trigraphs, use
12211         valid C notation.  When quoting NUL, omit extra characters if next
12212         character is not digit.  Alter prototype.
12213         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12214         callers.
12215         * modules/quotearg-tests: New module.
12216         * tests/test-quotearg.c: New test.
12217
12218 2008-02-07  Eric Blake  <ebb9@byu.net>
12219
12220         Quotearg part 3: add flag to control outer quote elision.
12221         * lib/quotearg.h (c_maybe_quoting_style): New style.
12222         (enum quoting_flags): Better documentation of flags.
12223         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12224         c-maybe style.
12225         (quotearg_buffer_restyled): Handle new flag to elide outer
12226         quotes.
12227
12228         Quotearg part 2: add flag that can control NUL elision.
12229         * lib/quotearg.h (set_quoting_flags): New prototype.
12230         * lib/quotearg.c (struct quoting_options): Add flag field.
12231         (set_quoting_flags): New function.
12232         (quotearg_buffer_restyled): Add flags parameter.
12233         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12234         (quotearg_n_options): Set the flag, since length cannot be
12235         returned.
12236         (quoting_options_from_style): Default flags correctly.
12237
12238         Quotearg part 1: more wrappers, restore quotearg_char state.
12239         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12240         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12241         (quotearg_colon_mem): New wrappers.
12242         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12243         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12244         functions.
12245         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12246         (quotearg_colon_mem): New functions.
12247
12248 2008-02-11  Bruno Haible  <bruno@clisp.org>
12249
12250         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12251         library in the current directory: it does not work with parallel make.
12252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12253
12254 2008-02-11  Bruno Haible  <bruno@clisp.org>
12255
12256         * .gitattributes: New file.
12257
12258 2008-02-11  Jim Meyering  <meyering@redhat.com>
12259
12260         useless-if-before-free: Fix reversed exit values.
12261         * build-aux/useless-if-before-free: Use correct values
12262         for EXIT_MATCH and EXIT_NO_MATCH.
12263
12264         * build-aux/useless-if-before-free: Close stdout carefully.
12265
12266 2008-02-10  Bruno Haible  <bruno@clisp.org>
12267
12268         New module 'git-merge-changelog'.
12269         * modules/git-merge-changelog: New file.
12270         * lib/git-merge-changelog.c: New file.
12271
12272 2008-02-10  Jim Meyering  <meyering@redhat.com>
12273
12274         useless-if-before-free: New option: --list (-l).
12275
12276         useless-if-before-free: Don't exit immediately upon open failure.
12277         * build-aux/useless-if-before-free: Exit 2 for errors.
12278         Upon failure to open a file, don't exit immediately.
12279         Rather, just warn and continue with any remaining files.
12280
12281 2008-02-10  Bruno Haible  <bruno@clisp.org>
12282
12283         New abstract list operation 'node_set_value'.
12284         * lib/gl_list.h (gl_list_node_set_value): New function.
12285         (struct gl_list_implementation): New field node_set_value.
12286         * lib/gl_list.c (gl_list_node_set_value): New function.
12287         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12288         (gl_array_list_implementation): Update.
12289         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12290         (gl_carray_list_implementation): Update.
12291         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12292         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12293         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12294         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12295         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12296         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12297         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12298         Update.
12299         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12300         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12301         (gl_sublist_list_implementation): Update.
12302
12303 2008-02-10  Bruno Haible  <bruno@clisp.org>
12304
12305         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12306         Needed when ELEMENT is #defined to 'some_type *'.
12307
12308 2008-02-10  Jim Meyering  <meyering@redhat.com>
12309
12310         New script and module: useless-if-before-free
12311         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12312         * build-aux/useless-if-before-free: New file.
12313         * modules/useless-if-before-free: New file.
12314
12315         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12316
12317         xstrtol_error: Fix typo.
12318         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12319         s/exit_failure/exit_status/.
12320
12321 2008-02-09  Jim Meyering  <meyering@redhat.com>
12322
12323         New script and module: gitlog-to-changelog
12324         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12325         * modules/gitlog-to-changelog: New file.
12326         * build-aux/gitlog-to-changelog: New file.
12327
12328 2008-02-08  Jim Meyering  <meyering@redhat.com>
12329
12330         Avoid two "parameter unused" warnings.
12331         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12332         Mark "st" as used.
12333
12334         Use "git COMMAND", not "git-COMMAND".
12335         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12336         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12337         * build-aux/git-version-gen: Use "git status", not "git-status".
12338
12339 2008-02-07  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12342         Avoids a crash on Windows Vista.
12343         Reported by Adam Strzelecki <ono@java.pl> via
12344         Simon Josefsson <simon@josefsson.org>.
12345
12346 2008-02-06  Bruno Haible  <bruno@clisp.org>
12347
12348         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12349         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12350         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12352         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12354         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12355         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12363         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12364         left-adjust flag.
12365         * tests/test-snprintf-posix.h (test_function): Likewise.
12366         * tests/test-sprintf-posix.h (test_function): Likewise.
12367         * tests/test-vasprintf-posix.c (test_function): Likewise.
12368         * doc/posix-functions/fprintf.texi: Update.
12369         * doc/posix-functions/printf.texi: Update.
12370         * doc/posix-functions/snprintf.texi: Update.
12371         * doc/posix-functions/sprintf.texi: Update.
12372         * doc/posix-functions/vfprintf.texi: Update.
12373         * doc/posix-functions/vprintf.texi: Update.
12374         * doc/posix-functions/vsnprintf.texi: Update.
12375         * doc/posix-functions/vsprintf.texi: Update.
12376         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12377
12378 2008-02-06  Bruno Haible  <bruno@clisp.org>
12379
12380         Fix bug introduced on 2008-01-26.
12381         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12382
12383 2008-02-06  Bruno Haible  <bruno@clisp.org>
12384
12385         Fix bug introduced on 2007-06-10.
12386         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12387         !NEED_PRINTF_FLAG_ZERO.
12388
12389 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12390
12391         getloadavg: use libperfstat on AIX5
12392         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12393
12394 2008-02-03  Bruno Haible  <bruno@clisp.org>
12395
12396         * lib/diffseq.h: Add comments about required #includes.
12397         Reported by Michael Biggs <gnulib@doubleplum.net>.
12398
12399 2008-02-01  Bruno Haible  <bruno@clisp.org>
12400
12401         * users.txt: Add gnuit.
12402
12403 2008-01-31  Bruno Haible  <bruno@clisp.org>
12404
12405         * lib/md4.c (set_uint32): Mark as inline.
12406         * lib/md5.c (set_uint32): Likewise.
12407         * lib/sha1.c (set_uint32): Likewise.
12408         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12409         * m4/md5.m4 (gl_MD5): Likewise.
12410         * m4/sha1.m4 (gl_SHA1): Likewise.
12411
12412 2008-01-31  Jim Meyering  <meyering@redhat.com>
12413
12414         Use "sizeof VAR", rather than a literal "4".
12415         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12416         * lib/md4.c (md4_read_ctx): Likewise.
12417         * lib/sha1.c (sha1_read_ctx): Likewise.
12418
12419 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12420
12421         * tests/test-sha1.c: New file, based on test-md5.c.
12422
12423         * modules/crypto/sha1-tests: New file.
12424
12425 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12426
12427         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12428
12429 2008-01-31  Jim Meyering  <meyering@redhat.com>
12430
12431         Prefer "sizeof v" over the equivalent "4".
12432         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12433         * lib/md5.c (set_uint32): Likewise.
12434         * lib/sha1.c (set_uint32): Likewise.
12435
12436 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12437
12438         * lib/sha1.c (set_uint32): Mark function as static.
12439
12440 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12441
12442         md2: clarify comments to say that alignment is not required.
12443         * lib/md2.h: Remove warning about alignment in comment.
12444         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12445         never been required.
12446
12447 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12448
12449         md4: adapt alignment constraint fix from sha1.
12450         * lib/md4.c (set_uint32): New function, from sha1.c
12451         (md4_read_ctx): Use it.
12452         (md4_finish_ctx): Doc fix.
12453         * lib/md4.h: Doc fix.
12454
12455 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12456
12457         md5: adapt alignment constraint fix from sha1.
12458         * lib/md5.c (set_uint32): New function, from sha1.c
12459         (md5_read_ctx): Use it.
12460         (md5_finish_ctx): Doc fix.
12461         * lib/md5.h: Doc fix.
12462
12463 2008-01-30  Peter Palfrader  <weasel@debian.org>
12464
12465         sha1: remove the result buffer alignment constraint
12466         * lib/sha1.c (set_uint32): New function.
12467         (sha1_read_ctx): Rewrite to remove the result buffer alignment
12468         constraint.
12469         (sha1_finish_ctx): Remove comment warning about alignment constraint.
12470         * lib/sha1.h: Likewise.
12471
12472 2008-01-30  Andreas Schwab  <schwab@suse.de>
12473             Bruno Haible  <bruno@clisp.org>
12474
12475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12476         correct definition of LDBL_MIN_EXP.
12477
12478 2008-01-30  Karl Berry  <karl@gnu.org>
12479
12480         * config/srclist-update: try to preserve x bit on updates.
12481         * config/srclistvars.sh: update for karl.
12482
12483 2008-01-29  Jim Meyering  <meyering@redhat.com>
12484
12485         vasnprintf.c: Avoid warning about unused label
12486         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12487         "overflow" label definition and associated code with the
12488         same cpp condition that guards the sole use of that label.
12489
12490 2008-01-26  Bruno Haible  <bruno@clisp.org>
12491
12492         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12493         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12494         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12495         * lib/isnanl-nolibm.h (isnanl): Likewise.
12496         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12497
12498 2008-01-26  Bruno Haible  <bruno@clisp.org>
12499
12500         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12501         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12502
12503 2008-01-26  Bruno Haible  <bruno@clisp.org>
12504
12505         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12506         GCC >= 4.0 built-in.
12507         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12508
12509 2008-01-26  Bruno Haible  <bruno@clisp.org>
12510
12511         Rename isnan, applicable to 'double' only, to isnand.
12512         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12513         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12514         (configure.ac): Update.
12515         (Include): Replace "isnan.h" with "isnand.h".
12516         * m4/isnand.m4: Renamed from m4/isnan.m4.
12517         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12518         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12519         instead of isnan.c.
12520         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12521         instead of HAVE_ISNAN_IN_LIBC.
12522         (isnand): Renamed from isnan.
12523         * lib/isnand.c: New file.
12524         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12525         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12526         (Makefile.am): Update.
12527         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12528         Include isnand.h instead of isnan.h.
12529         (main): Test isnand instead of isnan.
12530         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12531         isnan-nolibm.
12532         * modules/frexp (Depends-on): Likewise.
12533         * modules/frexp-tests (Depends-on): Likewise.
12534         * modules/frexp-nolibm (Depends-on): Likewise.
12535         * modules/frexp-nolibm-tests (Depends-on): Likewise.
12536         * modules/isfinite (Depends-on): Likewise.
12537         * modules/round-tests (Depends-on): Likewise.
12538         * modules/signbit (Depends-on): Likewise.
12539         * modules/signbit-tests (Depends-on): Likewise.
12540         * modules/snprintf-posix (Depends-on): Likewise.
12541         * modules/sprintf-posix (Depends-on): Likewise.
12542         * modules/trunc-tests (Depends-on): Likewise.
12543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12550         * modules/vasnprintf-posix (Depends-on): Likewise.
12551         * modules/vasprintf-posix (Depends-on): Likewise.
12552         * modules/vfprintf-posix (Depends-on): Likewise.
12553         * modules/vsnprintf-posix (Depends-on): Likewise.
12554         * modules/vsprintf-posix (Depends-on): Likewise.
12555         * lib/frexp.c: Include isnand.h instead of isnan.h.
12556         (ISNAN): Set to isnand instead of isnan.
12557         * lib/isfinite.c: Include isnand.h instead of isnan.h.
12558         (gl_isfinited): Use isnand instead of isnan.
12559         * lib/signbitd.c: Include isnand.h instead of isnan.h.
12560         (gl_signbitd): Use isnand instead of isnan.
12561         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12562         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12563         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12564         (main): Use isnand instead of isnan.
12565         * tests/test-round1.c: Include isnand.h.
12566         (main): Use isnand instead of isnan.
12567         * tests/test-round2.c: Include isnand.h instead of isnan.h.
12568         (ISNAN): Set to isnand instead of isnan.
12569         * tests/test-trunc1.c: Include isnand.h.
12570         (main): Use isnand instead of isnan.
12571         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12572         (equal): Use isnand instead of isnan.
12573         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12574         isnand-nolibm.
12575         * NEWS: Mention the change.
12576
12577 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12578             Bruno Haible  <bruno@clisp.org>
12579
12580         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12581         the GCC builtins for signbits are present and set
12582         REPLACE_SIGNBIT_USING_GCC if so.
12583         * lib/math.in.h (signbit): Define using GCC builtins if
12584         REPLACE_SIGNBIT_USING_GCC is set.
12585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12586         REPLACE_SIGNBIT_USING_GCC.
12587         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12588
12589 2008-01-25  Jim Meyering  <meyering@redhat.com>
12590
12591         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
12592         * lib/poll.c: Include <config.h>, not "config.h".
12593         * tests/test-getaddrinfo.c: Likewise.
12594
12595 2008-01-25  Simon Josefsson  <simon@josefsson.org>
12596
12597         * modules/sockets-tests: New file.
12598
12599 2008-01-24  Simon Josefsson  <simon@josefsson.org>
12600
12601         * modules/sockets: New module, can be used to call WSA_Startup and
12602         WSA_Cleanup when needed.
12603
12604         * lib/sockets.h, lib/sockets.c: New files.
12605
12606         * m4/sockets.m4: New file.
12607
12608         * tests/test-sockets.c: New file.
12609
12610 2008-01-19  Bruno Haible  <bruno@clisp.org>
12611
12612         * doc/posix-headers: Renamed from doc/headers.
12613         * doc/posix-functions: Renamed from doc/functions.
12614         * doc/gnulib.texi: Update.
12615
12616 2008-01-19  Bruno Haible  <bruno@clisp.org>
12617
12618         * doc/glibc-functions/strcasestr.texi: Include contents of
12619         doc/functions/strcasestr.texi, fixing the list of platforms.
12620         * doc/functions/strcasestr.texi: Remove file.
12621
12622 2008-01-19  Bruno Haible  <bruno@clisp.org>
12623
12624         * doc/glibc-functions/memmem.texi: Include contents of
12625         doc/functions/memmem.texi.
12626         * doc/functions/memmem.texi: Remove file.
12627
12628 2008-01-18  Bruno Haible  <bruno@clisp.org>
12629
12630         * doc/glibc-functions/*.texi: New files.
12631         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
12632         to use the new files.
12633
12634 2008-01-17  Bruno Haible  <bruno@clisp.org>
12635
12636         * tests/test-gethostname.c (main): Fix printf statement.
12637
12638 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12639
12640         * modules/gethostname-tests: New file.
12641
12642         * tests/test-gethostname.c: New file.
12643
12644 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12645
12646         * lib/gethostname.c: Include string.h unconditionally, strncpy is
12647         used by the UNAME case.  Reported by Bruno Haible
12648         <bruno@clisp.org>.
12649
12650 2008-01-17  Eric Blake  <ebb9@byu.net>
12651
12652         Convert c-strcasestr to be more efficient.
12653         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
12654         (Depends-on): Add c-strcase, remove malloca, strnlen.
12655         * tests/test-c-strcasestr.c (main): Enhance test.
12656         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
12657
12658 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12659
12660         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
12661         Use it in creating po/Makevars.
12662
12663 2008-01-15  Simon Josefsson  <simon@josefsson.org>
12664
12665         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
12666         Applications that requires it should initialize libgcrypt
12667         manually.
12668
12669 2008-01-16  Simon Josefsson  <simon@josefsson.org>
12670
12671         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
12672
12673 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12674
12675         Fix problem with getdate on mingw32 reported by Simon Josefsson
12676         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
12677         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
12678         tzname", when deciding whether to declare tzname.
12679         * lib/strftime.c (tzname): Likewise.
12680
12681 2008-01-15  Bruno Haible  <bruno@clisp.org>
12682
12683         Work around a MacOS X 10.5 bug in frexpl().
12684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
12685         * doc/functions/frexpl.texi: Document the bug.
12686         Reported by Elias Pipping <pipping@gentoo.org>.
12687
12688 2008-01-14  Eric Blake  <ebb9@byu.net>
12689
12690         Touch up previous patch.
12691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
12692         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
12693
12694         Convert strcasestr module to use Two-Way algorithm.
12695         * modules/strcasestr-simple: New module, based on the old
12696         strcasestr, but with Two-Way rather than KMP.
12697         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
12698         * lib/string.in.h (rpl_strcasestr): Declare.
12699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
12700         performance.
12701         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
12702         * modules/string (Makefile.am): Support strcasestr.
12703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12704         * modules/strcasestr-tests (Depends-on): Check for alarm.
12705         * tests/test-strcasestr.c: Augment test.
12706         * lib/str-two-way.h: Clean up stray macro.
12707         * NEWS: Document new module.
12708         * MODULES.html.sh (string handling): Likewise.
12709         * doc/functions/strcasestr.texi: New file.
12710         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
12711         here, since it is not a POSIX function.
12712
12713 2008-01-14  Colin Watson  <cjwatson@debian.org>
12714             Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
12717         works fine; if not, set REPLACE_STRSIGNAL.
12718         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
12719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12720         REPLACE_STRSIGNAL.
12721         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
12722         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
12723         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
12724
12725 2008-01-14  Bruno Haible  <bruno@clisp.org>
12726
12727         * modules/strsignal (Include): Change to <string.h>.
12728
12729 2008-01-14  Colin Watson  <cjwatson@debian.org>
12730
12731         * modules/argp (Notice): Add a notice recommending to change
12732         XGETTEXT_OPTIONS.
12733         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
12734
12735 2008-01-13  Colin Watson  <cjwatson@debian.org>
12736
12737         * modules/strsignal-tests: New file.
12738         * tests/test-strsignal.c: New file.
12739
12740         * lib/strsignal.c: New file, from glibc with modifications.
12741         * lib/siglist.h: New file, from glibc with modifications.
12742         * lib/string.in.h (strsignal): New declaration.
12743         * m4/strsignal.m4: New file.
12744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12745         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
12746         * modules/strsignal: New file.
12747         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
12748         HAVE_DECL_STRSIGNAL.
12749
12750 2008-01-13  Bruno Haible  <bruno@clisp.org>
12751
12752         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
12753         locale encoding is not ASCII. Needed for OpenBSD 4.0.
12754         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12755         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12756
12757 2008-01-13  Bruno Haible  <bruno@clisp.org>
12758
12759         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
12760         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
12761         * lib/argp.h (__attribute__): Likewise.
12762         * lib/c-stack.c (__attribute__): Likewise.
12763         * lib/error.h (__attribute__): Likewise.
12764         * lib/fts.c (__attribute__): Likewise.
12765         * lib/openat.h (__attribute__): Likewise.
12766         * lib/stdio.in.h (__attribute__): Likewise.
12767         * lib/string.in.h (__attribute__): Likewise.
12768         * lib/utimens.c (__attribute__): Likewise.
12769         * lib/vasnprintf.h (__attribute__): Likewise.
12770         * lib/xalloc.h (__attribute__): Likewise.
12771         * lib/xprintf.h (__attribute__): Likewise.
12772         * lib/xstrtol.h (__attribute__): Likewise.
12773         * lib/xvasprintf.h (__attribute__): Likewise.
12774
12775 2008-01-12  Bruno Haible  <bruno@clisp.org>
12776
12777         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
12778         * doc/glibc-headers/a.out.texi: New file.
12779         * doc/glibc-headers/aliases.texi: New file.
12780         * doc/glibc-headers/alloca.texi: New file.
12781         * doc/glibc-headers/ar.texi: New file.
12782         * doc/glibc-headers/argp.texi: New file.
12783         * doc/glibc-headers/argz.texi: New file.
12784         * doc/glibc-headers/byteswap.texi: New file.
12785         * doc/glibc-headers/crypt.texi: New file.
12786         * doc/glibc-headers/endian.texi: New file.
12787         * doc/glibc-headers/envz.texi: New file.
12788         * doc/glibc-headers/err.texi: New file.
12789         * doc/glibc-headers/error.texi: New file.
12790         * doc/glibc-headers/execinfo.texi: New file.
12791         * doc/glibc-headers/fpu_control.texi: New file.
12792         * doc/glibc-headers/fstab.texi: New file.
12793         * doc/glibc-headers/fts.texi: New file.
12794         * doc/glibc-headers/getopt.texi: New file.
12795         * doc/glibc-headers/ieee754.texi: New file.
12796         * doc/glibc-headers/ifaddrs.texi: New file.
12797         * doc/glibc-headers/libintl.texi: New file.
12798         * doc/glibc-headers/mcheck.texi: New file.
12799         * doc/glibc-headers/mntent.texi: New file.
12800         * doc/glibc-headers/obstack.texi: New file.
12801         * doc/glibc-headers/paths.texi: New file.
12802         * doc/glibc-headers/printf.texi: New file.
12803         * doc/glibc-headers/pty.texi: New file.
12804         * doc/glibc-headers/resolv.texi: New file.
12805         * doc/glibc-headers/shadow.texi: New file.
12806         * doc/glibc-headers/sysexits.texi: New file.
12807         * doc/glibc-headers/ttyent.texi: New file.
12808
12809 2008-01-12  Jim Meyering  <meyering@redhat.com>
12810
12811         announce-gen: emit Gnulib's git-based version string.
12812         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
12813         New option --gnulib-version=V, where V is expected to be
12814         the output of running git describe in the gnulib directory.
12815         (get_tool_versions): Request feedback on xdelta.  I suspect it's
12816         not useful, and plan to stop publishing an xdelta file with each
12817         coreutils release.
12818
12819         * build-aux/announce-gen: Also check for lzma-compressed files.
12820
12821 2008-01-11  Bruno Haible  <bruno@clisp.org>
12822
12823         * tests/test-memmem.c (main): Increase maximum allowed time.
12824         * tests/test-strstr.c (main): Likewise.
12825
12826 2008-01-11  Bruno Haible  <bruno@clisp.org>
12827
12828         * doc/functions/memmem.texi: Add more precisions about platforms.
12829         * doc/functions/strstr.texi: Likewise.
12830
12831 2008-01-10  Eric Blake  <ebb9@byu.net>
12832
12833         * m4/strstr.m4: Delete cruft from copy-n-paste.
12834         Reported by Bruno Haible.
12835
12836 2008-01-10  Bruno Haible  <bruno@clisp.org>
12837
12838         Make c-strstr rely on strstr.
12839         * lib/c-strstr.c: Don't include str-kmp.h.
12840         (c_strstr): Define in terms of strstr.
12841         * modules/c-strstr (Files): Remove lib/str-kmp.h.
12842         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
12843
12844 2008-01-10  Bruno Haible  <bruno@clisp.org>
12845
12846         * doc/gnulib.texi (String Functions in C Locale): New section.
12847         * doc/c-ctype.texi: New file.
12848         * doc/c-strcase.texi: New file.
12849         * doc/c-strcaseeq.texi: New file.
12850         * doc/c-strcasestr.texi: New file.
12851         * doc/c-strstr.texi: New file.
12852         * doc/c-strtod.texi: New file.
12853         * doc/c-strtold.texi: New file.
12854
12855 2008-01-10  Eric Blake  <ebb9@byu.net>
12856
12857         * lib/relocatable.h: Fix a comment.
12858
12859 2008-01-10  Eric Blake  <ebb9@byu.net>
12860
12861         Share two-way algorithm.
12862         * lib/str-two-way.h: New file, merged from...
12863         * lib/memmem.c: ...here...
12864         * lib/strstr.c: ...and here.
12865         * modules/memmem (Files): Use it.
12866         * modules/strstr (Files): Likewise.
12867
12868         Avoid quadratic strstr implementations.
12869         * lib/strstr.c: New file.
12870         * m4/strstr.m4: Likewise.
12871         * modules/strstr: Likewise.
12872         * modules/strstr-tests: Likewise.
12873         * tests/test-strstr.c: Likewise.
12874         * lib/string.in.h (rpl_strstr): Declare.
12875         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
12876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
12877         * modules/string (Makefile.am): Likewise.
12878         * MODULES.html.sh (string handling): Mention new module.
12879         * doc/functions/strstr.texi (strstr): Document the bug.
12880
12881 2008-01-10  Bruno Haible  <bruno@clisp.org>
12882
12883         * lib/relocatable.h (relocate): State whether result is freshly
12884         allocated or not.
12885         * lib/relocatable.c (relocate): Return a freshly allocated string
12886         instead of a pointer to a privately held string.
12887         Reported by Sylvain Beucler <beuc@gnu.org>.
12888
12889 2008-01-10  Colin Watson  <cjwatson@debian.org>
12890
12891         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
12892         s/S_ISNLK/S_ISLNK/.
12893
12894 2008-01-09  Bruno Haible  <bruno@clisp.org>
12895
12896         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
12897         and other files.
12898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
12899         if it's only a guess.
12900         * modules/memmem: Simplify by depending on memmem-simple.
12901
12902 2008-01-09  Bruno Haible  <bruno@clisp.org>
12903
12904         Work around OpenBSD 4.0 tdelete() bug.
12905         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
12906         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
12907         macros and don't redefine the enum values.
12908         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
12909         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
12910         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
12911
12912 2008-01-09  Bruno Haible  <bruno@clisp.org>
12913
12914         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
12915         (main): Don't perform the tests if setlocale did not install a UTF-8
12916         locale. Needed on OpenBSD 4.0.
12917         * modules/wcwidth-tests (Depends-on): Add localcharset.
12918
12919 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
12920
12921         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
12922         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
12923         * NEWS: announce this.
12924         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
12925
12926 2008-01-09  Simon Josefsson  <simon@josefsson.org>
12927         and Eric Blake  <ebb9@byu.net>
12928
12929         Add memmem-simple module.
12930         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
12931         (gl_FUNC_MEMMEM): Separate performance from presence checks.
12932         * modules/memmem-simple: New file.
12933         * modules/memmem (Description): Tweak.
12934         * MODULES.html.sh (string handling): Mention new module.
12935         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
12936         addressed by memmem-simple.
12937         * NEWS: Document the difference.
12938
12939 2008-01-09  Eric Blake  <ebb9@byu.net>
12940
12941         Give gcc some memmem optimization hints.
12942         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
12943         (strcasestr): Declare as pure.
12944         * modules/memmem (Maintainer): Claim my implementation.
12945
12946 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12947
12948         Support AIX 6.1 and higher.
12949         * build-aux/config.libpath: Likewise.
12950         * build-aux/config.rpath: Likewise.
12951
12952 2008-01-08  Jim Meyering  <meyering@redhat.com>
12953             Bruno Haible  <bruno@clisp.org>
12954
12955         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
12956         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
12957         Reported by Peter Fales in
12958         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
12959
12960 2008-01-08  Bruno Haible  <bruno@clisp.org>
12961
12962         * modules/unictype/category-of (Depends-on): Add
12963         unictype/category-none.
12964         * modules/unictype/category-and-tests (Depends-on): Add
12965         unictype/category-{L,N,Lu,Nd}.
12966         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
12967         * modules/unictype/category-or-tests (Depends-on): Add
12968         unictype/category-{L,N}.
12969         * modules/unictype/category-name-tests (Depends-on): Add
12970         unictype/category-{Z,Nl}.
12971         Reported by Simon Josefsson.
12972
12973 2008-01-08  Bruno Haible  <bruno@clisp.org>
12974
12975         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
12976         convention better.
12977         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
12978         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
12979         Reported by Peter Miller <millerp@canb.auug.org.au>.
12980
12981 2008-01-08  Eric Blake  <ebb9@byu.net>
12982
12983         Rewrite memmem to guarantee linear complexity without malloc.
12984         * lib/memmem.c (memmem): Use Two-Way rather than
12985         Knuth-Morris-Pratt, to allow O(1) space usage.
12986         (critical_factorization, two_way_short_needle)
12987         (two_way_long_needle): New functions.
12988         (knuth_morris_pratt): Delete.
12989         * modules/memmem (Depends-on): No longer need malloca or stdbool.
12990         Add stdint.
12991         * tests/test-memmem.c (main): Add tests for periodic needle and
12992         sublinear performance.
12993         * doc/functions/memmem.texi (memmem): Document other deficiencies
12994         in cygwin and older glibc.
12995
12996 2008-01-08  Bruno Haible  <bruno@clisp.org>
12997
12998         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
12999         augmentation.
13000
13001 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13002
13003         Add a configure time option: --disable-acl.
13004         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13005         AC_ARG_ENABLE(acl).
13006
13007 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13008
13009         * tests/test-localename.c: Don't include obsolete "setenv.h".
13010
13011         * modules/localename-tests (Depends-on): Need unsetenv.
13012
13013 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13014
13015         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13016
13017 2008-01-06  Colin Watson  <cjwatson@debian.org>
13018
13019         * users.txt: Add man-db.
13020
13021 2008-01-07  Bruno Haible  <bruno@clisp.org>
13022
13023         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13024         previous section name.
13025
13026 2008-01-07  Bruno Haible  <bruno@clisp.org>
13027
13028         * lib/progname.c (set_program_name): Don't strip off a leading
13029         "lt-" prefix outside a .libs directory.
13030         Suggested by Paul Eggert.
13031
13032 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13033             Bruno Haible  <bruno@clisp.org>
13034
13035         Improve memory cleanup in 'relocatable' module.
13036         * lib/relocatable.h (compute_curr_prefix): Change return type to
13037         'char *'.
13038         * lib/relocatable.c (compute_curr_prefix): Change return type to
13039         'char *'. Free curr_installdir after use.
13040         (relocate): Free curr_prefix_better after use.
13041         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13042
13043 2008-01-01  Bruno Haible  <bruno@clisp.org>
13044
13045         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13046         failure on older glibc systems.
13047         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13048
13049 2008-01-05  Eric Blake  <ebb9@byu.net>
13050
13051         Avoid quadratic system memmem.
13052         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13053         Reported by Ralf Wildenhues.
13054
13055         Fix memmem test for mingw.
13056         * modules/memmem-tests (configure.ac): Check for alarm.
13057         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13058         it.
13059         * doc/functions/memmem.texi: New file.
13060         * doc/gnulib.texi (Function Substitutes): Add memmem.
13061         Reported by Bruno Haible.
13062
13063 2008-01-04  Bruno Haible  <bruno@clisp.org>
13064
13065         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13066         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13067         gl_HEADER_STRING_H_DEFAULTS.
13068
13069 2008-01-04  Eric Blake  <ebb9@byu.net>
13070
13071         Shorten duration of memmem test.
13072         * tests/test-memmem.c (main): Use alarm to declare failure if test
13073         is taking too long.
13074         Reported by Ralf Wildenhues.
13075
13076 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13077
13078         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13079         string, needed by strerror.
13080
13081 2008-01-03  Colin Watson  <cjwatson@debian.org>
13082             Bruno Haible  <bruno@clisp.org>
13083
13084         * doc/gnulib-tool.texi (Localization): New section.
13085
13086 2008-01-02  Bruno Haible  <bruno@clisp.org>
13087
13088         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13089         variables to 'unsigned char *' type.
13090         Reported by Paul Eggert.
13091
13092 2008-01-02  Jim Meyering  <jim@meyering.net>
13093
13094         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13095
13096 2007-12-31  Jim Meyering  <jim@meyering.net>
13097
13098         Avoid use of private FTS type name.
13099         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13100
13101 2007-12-30  Karl Berry  <karl@gnu.org>
13102
13103         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13104         work around defect in Texinfo and/or the standalone Info browser.
13105
13106 2007-12-30  Bruno Haible  <bruno@clisp.org>
13107
13108         Unify 5 copies of the KMP code.
13109         * lib/str-kmp.h: New file.
13110         * lib/c-strcasestr.c: Include str-kmp.h.
13111         (knuth_morris_pratt): Remove function.
13112         (c_strcasestr): Update.
13113         * lib/c-strstr.c: Include str-kmp.h.
13114         (knuth_morris_pratt): Remove function.
13115         (c_strcasestr): Update.
13116         * lib/mbscasestr.c: Include str-kmp.h.
13117         (knuth_morris_pratt_unibyte): Remove function.
13118         * lib/mbsstr.c: Include str-kmp.h.
13119         (knuth_morris_pratt_unibyte): Remove function.
13120         * lib/strcasestr.c: Include str-kmp.h.
13121         (knuth_morris_pratt): Remove function.
13122         (strcasestr): Update.
13123         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13124         * modules/c-strstr (Files): Likewise.
13125         * modules/mbscasestr (Files): Likewise.
13126         * modules/mbsstr (Files): Likewise.
13127         * modules/strcasestr (Files): Likewise.
13128         Suggested by Paul Eggert.
13129
13130 2007-12-30  Bruno Haible  <bruno@clisp.org>
13131
13132         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13133         defined.
13134
13135 2007-12-30  Bruno Haible  <bruno@clisp.org>
13136
13137         * lib/xmalloca.h: Include xalloc.h.
13138         (xnmalloca): New macro.
13139
13140 2007-12-30  Bruno Haible  <bruno@clisp.org>
13141
13142         * lib/malloca.h (nmalloca): New macro.
13143         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13144         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13145         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13146         knuth_morris_pratt_multibyte): Likewise.
13147         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13148         knuth_morris_pratt_multibyte): Likewise.
13149         * lib/memmem.c (knuth_morris_pratt): Likewise.
13150         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13151
13152 2007-12-25  Bruno Haible  <bruno@clisp.org>
13153
13154         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13155         * lib/glob.c: Don't include openat.h.
13156         (link_exists2_p): Add back the code that deals with the
13157         !GLOB_ALTDIRFUNC case.
13158         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13159         let it do the filename concatenation.
13160         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13161         * modules/glob (Depends-on): Remove openat.
13162
13163 2007-12-31  Bruno Haible  <bruno@clisp.org>
13164
13165         * modules/dirfd (License): Change to LGPLv2+.
13166         Approved by Jim Meyering.
13167
13168 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13169
13170         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13171         when multiplying M by sizeof (size_t).
13172
13173 2007-12-10  Martin Lambers  <marlam@marlam.de>
13174
13175         Override getpagesize on mingw.
13176         * lib/getpagesize.c: New file.
13177         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13178         * modules/getpagesize (Files): Add lib/getpagesize.c.
13179         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13181         REPLACE_GETPAGESIZE.
13182         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13183
13184 2007-12-25  Bruno Haible  <bruno@clisp.org>
13185
13186         * modules/localcharset (Notice): New field.
13187         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13188         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13189
13190 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13191             Bruno Haible  <bruno@clisp.org>
13192
13193         Avoid using the syntax symbol() in formatted documentation.
13194         * MODULES.html.sh (func_module): When replacing symbol() with a
13195         hyperlink, remove the parentheses. Show an error if some remain.
13196         Recognize and render the '...' syntax.
13197         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13198         Rework. Add paragraph about GCC's inlining.
13199         * doc/alloca.texi: Likewise.
13200         * doc/error.texi: Remove parentheses from symbol reference.
13201         * doc/gnulib-intro.texi: Likewise.
13202         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13203         * modules/fnmatch (Description): Reword to say "the ... function".
13204         * modules/full-read (Description): Likewise.
13205         * modules/full-write (Description): Likewise.
13206         * modules/safe-read (Description): Likewise.
13207         * modules/safe-write (Description): Likewise.
13208         * modules/strchrnul (Description): Likewise.
13209         * modules/trim (Description): Likewise.
13210         * modules/error (Description): Remove parentheses from symbol
13211         references.
13212         * modules/verror (Description): Likewise.
13213         Reported by Karl Berry.
13214
13215 2007-12-25  Bruno Haible  <bruno@clisp.org>
13216
13217         Fixup after 2007-10-16 commit.
13218         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13219
13220 2007-12-24  Bruno Haible  <bruno@clisp.org>
13221
13222         Make --enable-relocatable work with DESTDIR.
13223         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13224         to compute installdir from destprog.
13225         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13226         also set the RELOC_DESTDIR variable.
13227         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13228
13229 2007-12-24  Bruno Haible  <bruno@clisp.org>
13230
13231         Fix link error due to xalloc_die().
13232         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13233         of xreadlink.
13234         * lib/relocwrapper.c: Update comments.
13235         * build-aux/install-reloc: Remove xreadlink.c from file list.
13236         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13237         xreadlink.c.
13238         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13239
13240 2007-12-24  Bruno Haible  <bruno@clisp.org>
13241
13242         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13243         * lib/setenv.h: Remove file.
13244         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13245         lib/setenv.h.
13246         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13247         (Depends-on): Add stdlib.
13248         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13249         gl_FUNC_UNSETENV.
13250         (Include): Replace setenv.h with <stdlib.h>.
13251         * modules/unsetenv: New file.
13252         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13253         * lib/unsetenv.c: Include <stdlib.h> first.
13254         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13255         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13256         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13257         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13258         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13259         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13261         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13262         * doc/functions/unsetenv.texi: Update.
13263         * modules/xsetenv (Depends-on): Add unsetenv.
13264         * modules/getdate (Depends-on): Likewise.
13265         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13266         * lib/xsetenv.c: Don't include setenv.h.
13267         * lib/getdate.y: Likewise.
13268         * lib/relocwrapper.c: Likewise.
13269         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13270         (Depends-on): Add stdlib.
13271         * NEWS: Mention the changes.
13272         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13273
13274 2007-12-23  Bruno Haible  <bruno@clisp.org>
13275
13276         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13277         indentation.
13278
13279 2007-12-23  Bruno Haible  <bruno@clisp.org>
13280
13281         * lib/c-strcasestr.c: Add more comments.
13282         * lib/c-strstr.c: Likewise.
13283         * lib/mbscasestr.c: Likewise.
13284         * lib/mbsstr.c: Likewise.
13285         * lib/strcasestr.c: Likewise.
13286         * lib/memmem.c: Likewise.
13287
13288 2007-12-23  Bruno Haible  <bruno@clisp.org>
13289
13290         * tests/test-memmem.c: Include <string.h> first.
13291
13292 2007-12-22  Bruno Haible  <bruno@clisp.org>
13293
13294         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13295         the contents of $testsbase.
13296         Reported by Ralf Wildenhues.
13297
13298 2007-12-22  Bruno Haible  <bruno@clisp.org>
13299
13300         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13301         two variables local_ldadd_before, local_ldadd_last.
13302
13303 2007-12-20  Eric Blake  <ebb9@byu.net>
13304
13305         Work around circular library issue when cross-compiling.
13306         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13307         that progname.o does not need to pull in rpl_memcmp.
13308
13309 2007-12-19  Eric Blake  <ebb9@byu.net>
13310
13311         Fix memmem to avoid O(n^2) worst-case complexity.
13312         * lib/memmem.c (knuth_morris_pratt): New function.
13313         (memmem): Use it if first few naive iterations fail.
13314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13315         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13316         * modules/memchr (License): Likewise.
13317         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13318         malloca.
13319         * tests/test-memmem.c: Rewrite, borrowing ideas from
13320         test-mbsstr1.c; the old version wouldn't even compile!
13321         * modules/memmem-tests: New file.
13322         * lib/string.in.h (rpl_memmem): Add declaration.
13323         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13325         REPLACE_MEMMEM.
13326
13327 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13328
13329         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13330         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13331         before any system include files, and undef after them all.  This
13332         should fix a problem on VMS reported by John E. Malmberg in
13333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13334
13335 2007-12-17  Eric Blake  <ebb9@byu.net>
13336
13337         Revert addition of verify, for BSD/OS.
13338         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13339         can't handle large files, for the sake of obsolete platforms.
13340         * modules/fseeko (Depends-on): Remove verify.
13341         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13342         * doc/functions/ftello.texi (ftello): Likewise.
13343         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13344         Reported by Larry Jones.
13345
13346 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13347
13348         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13349         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13350
13351 2007-12-17  Jim Meyering  <meyering@redhat.com>
13352
13353         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13354         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13355         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13356         * modules/getcwd (Depends-on): Add openat.
13357         Reported by Petr Salinger.
13358
13359 2007-12-17  Bruno Haible  <bruno@clisp.org>
13360
13361         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13362         avoid a segmentation fault of the configure test on x86_64 systems.
13363
13364 2007-12-15  Jim Meyering  <meyering@redhat.com>
13365
13366         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13367
13368 2007-12-13  Eric Blake  <ebb9@byu.net>
13369
13370         Another fseek test.
13371         * tests/test-fseek.c (main): Also test ungetc handling.
13372         * tests/test-fseeko.c (main): Likewise.
13373         * modules/fseeko (Depends-on): Add verify.
13374         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13375         large.
13376         Reported by Larry Jones.
13377
13378         Fix fseeko on mingw.
13379         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13380         seek.
13381
13382         Beef up fseek tests.
13383         * tests/test-fseek.c (main): Also test eof handling.
13384         * tests/test-fseeko.c (main): Likewise.
13385         Reported by Larry Jones.
13386
13387 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13388
13389         Fix fseeko on BSD-based platforms.
13390         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13391         successful seek.
13392
13393 2007-12-12  Eric Blake  <ebb9@byu.net>
13394
13395         Allow circular dependency of separate libtests.a
13396         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13397         when use_libtests.
13398
13399 2007-12-11  Eric Blake  <ebb9@byu.net>
13400
13401         Fix bug with -0.0L in previous patch.
13402         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13403         * tests/test-isnan.c (main): Also test on zeroes.
13404         * tests/test-isnanf.c (main): Likewise.
13405         * tests/test-isnanl.h (main): Likewise.
13406
13407         Detect pseudo-denormals on x86 even when cross-compiling.
13408         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13409         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13410         invalid bit patterns that happen to satisfy ==.
13411
13412         Avoid link failures with separate libtests.a.
13413         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13414         last, to satisfy circular dependencies.
13415
13416 2007-12-11  Eric Blake  <ebb9@byu.net>
13417         and Bruno Haible  <bruno@clisp.org>
13418
13419         Fix OpenBSD 4.0 <float.h> handling of long double.
13420         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13421         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13422         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13423
13424 2007-12-11  Jim Meyering  <meyering@redhat.com>
13425
13426         * users.txt: Add libvirt.
13427
13428         Support versions of autoconf prior to 2.59c.
13429         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13430         if it is not already defined.
13431
13432 2007-12-09  Bruno Haible  <bruno@clisp.org>
13433
13434         Let 'gnulib-tool --import' collect sources needed for the tests in
13435         tests/ rather than in lib/.
13436         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13437         argument. If true, add rules to generate libtests.a, and put libtests.a
13438         into $(LDADD). Consider source files in subdirectories and set
13439         uses_subdirs.
13440         (func_emit_initmacro_start, func_emit_initmacro_end,
13441         func_emit_initmacro_done): Pass all arguments explicitly.
13442         (func_import): Determine two module lists main_modules,
13443         testsrelated_modules. Determine use_libtests. Determine two variables
13444         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13445         instead of just sed_transform_lib_file. Determine two variables
13446         main_files and testsrelated_files. Compute 'files' as the union of
13447         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13448         func_add_or_update. In the generated gnulib-comp.m4, collect the
13449         object files for tests/ in different variables than those for lib/.
13450         Substitute LIBTESTS_LIBDEPS.
13451         (func_create_testdir): Combine the uses_subdirs results from
13452         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13453
13454 2007-12-09  Bruno Haible  <bruno@clisp.org>
13455
13456         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13457         the build-aux directory.
13458
13459 2007-12-09  Bruno Haible  <bruno@clisp.org>
13460
13461         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13462         introduced on 2006-09-09.
13463
13464 2007-12-07  Jim Meyering  <meyering@redhat.com>
13465
13466         Let these macros work also with autoconf-2.59.
13467         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
13468         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13469         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13470
13471 2007-12-06  Jim Meyering  <meyering@redhat.com>
13472
13473         Avoid a configure-time syntax error in gl_FUNC_ACL.
13474         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13475         function in each branch, before testing the cache variable.
13476
13477 2007-12-04  Eric Blake  <ebb9@byu.net>
13478
13479         Make scripts executable.
13480         * build-aux/config.guess: Add execute permissions.
13481         * build-aux/config.sub: Likewise.
13482         * build-aux/gendocs.sh: Likewise.
13483
13484         Fix frexp on mingw.
13485         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13486         cross-compiling.
13487         * doc/functions/frexp.texi (frexp): Document the bug.
13488
13489         Make cygwin fseeko check more reliable.
13490         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13491         version numbers, rather than unrelated feature check.
13492         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13493         * doc/functions/ftello.texi (ftello): Likewise.
13494         Reported by Bruno Haible.
13495
13496         * m4/strerror.m4: Bump version number.
13497
13498 2007-12-03  Bruno Haible  <bruno@clisp.org>
13499
13500         * doc/functions/mprotect.texi: Mention the mingw problem.
13501
13502 2007-12-03  Eric Blake  <ebb9@byu.net>
13503
13504         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13505         REPLACE_STRERROR is initialized before this macro.
13506
13507 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13508
13509         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
13510         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13511         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
13512         put -lsec in even for programs other than 'ls'.  This fixes a problem
13513         for gettext reported by Bruno Haible in
13514         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13515         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13516         Add support for Solaris 10.  This isn't efficient, but should get the
13517         job done for now.
13518
13519 2007-12-03  James Youngman  <jay@gnu.org>
13520
13521         * doc/regexprops-generic.texi: change "an close-group" to "a
13522         close-group" and "illegal" to "not allowed".
13523
13524 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13525
13526         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13527         pr_byname.h. Needed for the rare case when the maintainer has done
13528         "make maintainer-clean" in the source directory and then attempts a
13529         build outside the source directory.
13530         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13531         scripts_byname.h.
13532
13533 2007-12-02  Martin Lambers <marlam@marlam.de>
13534             Bruno Haible  <bruno@clisp.org>
13535
13536         * lib/getpagesize.h: Remove file.
13537         * lib/unistd.in.h: Include declaration of getpagesize here.
13538         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13539         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13540         HAVE_SYS_PARAM_H.
13541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13542         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13543         * modules/getpagesize (Files): Remove lib/getpagesize.h.
13544         (Depends-on): Add unistd.
13545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13546         (Include): Use <unistd.h> instead of getpagesize.h.
13547         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13548         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13549         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13550         gl_GETPAGESIZE invocation, already handled by module dependency.
13551         * lib/pagealign_alloc.c: Don't include getpagesize.h.
13552
13553 2007-12-02  Bruno Haible  <bruno@clisp.org>
13554
13555         * modules/strings-tests: New file.
13556         * tests/test-strings.c: New file.
13557
13558         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13559         * lib/strings.in.h: New file.
13560         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13561         * m4/strings_h.m4: New file.
13562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13563         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13564         * modules/strings: New file.
13565         * modules/string (Makefile.am): Update.
13566         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13567         Reported by Karl Berry.
13568
13569 2007-12-01  Eric Blake  <ebb9@byu.net>
13570
13571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13572         accomodate fix in cygwin 1.5.25.
13573
13574 2007-12-01  Jim Meyering  <meyering@redhat.com>
13575
13576         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13577         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13578         that would inhibit utf8-optimization of a regexp containing line-
13579         or buffer-anchors, e.g., `^', `$'.
13580
13581 2007-11-30  Bruno Haible  <bruno@clisp.org>
13582
13583         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13584         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13585         glthread_recursive_lock_init.
13586         * lib/lock.c (glthread_recursive_lock_init)
13587         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13589
13590 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13591
13592         New function qset_acl, like set_acl but with syscall semantics.
13593         * lib/acl.h (qset_acl): New decl.
13594         * lib/acl.c (qset_acl): New function.
13595         (set_acl): Use new function.  Use more-consistent diagnostics.
13596
13597 2007-11-28  Jim Meyering  <meyering@redhat.com>
13598
13599         * modules/physmem (License): Change from GPL to LGPLv2+.
13600
13601 2007-11-26  Bruno Haible  <bruno@clisp.org>
13602
13603         * lib/vasnprintf.c (decode_long_double): Don't abort if the
13604         'long double' type has excess precision.
13605         Reported by Jim Meyering in
13606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13607
13608 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13609
13610         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
13611         Sync from <http://gnu.org/licenses>.
13612         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
13613         with license text from same location.
13614         * doc/maintain.texi, doc/standards.texi:  Sync from
13615         <http://savannah.gnu.org/projects/gnustandards>.
13616
13617 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
13618         and Jim Meyering  <meyering@redhat.com>
13619
13620         Adjust getdate' grammar to accept a slightly more regular language.
13621         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
13622         Before, the former was rejected.
13623         * lib/getdate.y (digits_to_date_time): New function, factored
13624         out of ...
13625         (number): ...here.  Just call digits_to_date_time.
13626         (hybrid): New non-terminal to handle an <unsigned number,
13627         signed relative offset> sequence consistently.
13628
13629 2007-11-18  Jim Meyering  <meyering@redhat.com>
13630
13631         Pull my changes from coreutils:
13632         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
13633         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
13634         use of $gnulib_tool_option_extras, so that it's separated from the
13635         preceding argument.
13636
13637         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
13638         * build-aux/bootstrap (cp_mark_as_generated): Create any required
13639         parent destination directories before copying a file into place.
13640
13641 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13642
13643         bootstrap: work also with 4-argument variant of AC_INIT
13644         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
13645
13646 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13647
13648         Port test-getaddrinfo to Solaris.
13649         Problem reported by Bruno Haible in
13650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
13651         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
13652         explanation of setting 'hints'.
13653         Don't reject an implementation merely because it returns EAI_SERVICE.
13654         (EAI_SERVICE): Define to 0 if not defined.
13655
13656 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13657
13658         The license of gnu-make and posix-shell is now "GPLed build tool".
13659         * modules/gnu-make (License): Likewise.
13660         * modules/posix-shell (License): Likewise.
13661
13662         New module posix-shell, for determining a POSIX shell
13663         or perhaps something that is close enough to a POSIX shell.
13664         * m4/posix-shell.m4: New file.
13665         * modules/posix-shell: New file.
13666
13667         * MODULES.html.sh: Mention new module.
13668
13669         New module gnu-make, for determining whether we're using GNU Make.
13670         * m4/gnu-make.m4: New file.
13671         * modules/gnu-make: New file.
13672         * MODULES.html.sh: Mention new module.
13673
13674 2007-11-14  Jim Meyering  <meyering@redhat.com>
13675
13676         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
13677         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
13678         use this macro to create a function _definition_.
13679         Remove useless "#undef ARGMATCH_DIE".
13680
13681 2007-11-14  Bruno Haible  <bruno@clisp.org>
13682
13683         * lib/config.charset: Update for OpenBSD 4.1.
13684         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
13685
13686 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
13687
13688         Document 64-bit #if problems in stdint.texi.
13689         * doc/headers/stdint.texi (stdint.h): Mention problems with
13690         64-bit-#if, and how to work around them.
13691
13692         Don't insist on 'long long int' support in the preprocessor.  It
13693         breaks too many things.  For example, PRIdMAX still uses a 'long
13694         long int' format with the latest Sun compiler, even though
13695         HAVE_LONG_LONG_INT isn't defined due to that compiler's
13696         preprocessor problem.  This causes the latest coreutils to dump
13697         core on Solaris 10 sparc with the Sun C compiler.
13698         Instead, fix the 2007-10-16 problem in a different way, by evaluating
13699         the troublesome expressions at configure-time, not at #if-time.
13700         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
13701         preprocessor.
13702         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
13703         compile-time C checks, done at 'configure'-time.
13704         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
13705         * modules/inttypes (Makefile): Substitute the new symbols that
13706         gl_INTTYPES_H now generates.
13707         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
13708
13709 2007-11-12  Bruno Haible  <bruno@clisp.org>
13710
13711         Tests for Unicode character classification functions.
13712
13713         * modules/unictype/bidicategory-byname-tests: New file.
13714         * modules/unictype/bidicategory-name-tests: New file.
13715         * modules/unictype/bidicategory-of-tests: New file.
13716         * modules/unictype/bidicategory-test-tests: New file.
13717         * modules/unictype/block-list-tests: New file.
13718         * modules/unictype/block-of-tests: New file.
13719         * modules/unictype/block-test-tests: New file.
13720         * modules/unictype/category-C-tests: New file.
13721         * modules/unictype/category-Cc-tests: New file.
13722         * modules/unictype/category-Cf-tests: New file.
13723         * modules/unictype/category-Cn-tests: New file.
13724         * modules/unictype/category-Co-tests: New file.
13725         * modules/unictype/category-Cs-tests: New file.
13726         * modules/unictype/category-L-tests: New file.
13727         * modules/unictype/category-Ll-tests: New file.
13728         * modules/unictype/category-Lm-tests: New file.
13729         * modules/unictype/category-Lo-tests: New file.
13730         * modules/unictype/category-Lt-tests: New file.
13731         * modules/unictype/category-Lu-tests: New file.
13732         * modules/unictype/category-M-tests: New file.
13733         * modules/unictype/category-Mc-tests: New file.
13734         * modules/unictype/category-Me-tests: New file.
13735         * modules/unictype/category-Mn-tests: New file.
13736         * modules/unictype/category-N-tests: New file.
13737         * modules/unictype/category-Nd-tests: New file.
13738         * modules/unictype/category-Nl-tests: New file.
13739         * modules/unictype/category-No-tests: New file.
13740         * modules/unictype/category-P-tests: New file.
13741         * modules/unictype/category-Pc-tests: New file.
13742         * modules/unictype/category-Pd-tests: New file.
13743         * modules/unictype/category-Pe-tests: New file.
13744         * modules/unictype/category-Pf-tests: New file.
13745         * modules/unictype/category-Pi-tests: New file.
13746         * modules/unictype/category-Po-tests: New file.
13747         * modules/unictype/category-Ps-tests: New file.
13748         * modules/unictype/category-S-tests: New file.
13749         * modules/unictype/category-Sc-tests: New file.
13750         * modules/unictype/category-Sk-tests: New file.
13751         * modules/unictype/category-Sm-tests: New file.
13752         * modules/unictype/category-So-tests: New file.
13753         * modules/unictype/category-Z-tests: New file.
13754         * modules/unictype/category-Zl-tests: New file.
13755         * modules/unictype/category-Zp-tests: New file.
13756         * modules/unictype/category-Zs-tests: New file.
13757         * modules/unictype/category-and-not-tests: New file.
13758         * modules/unictype/category-and-tests: New file.
13759         * modules/unictype/category-byname-tests: New file.
13760         * modules/unictype/category-name-tests: New file.
13761         * modules/unictype/category-none-tests: New file.
13762         * modules/unictype/category-of-tests: New file.
13763         * modules/unictype/category-or-tests: New file.
13764         * modules/unictype/category-test-withtable-tests: New file.
13765         * modules/unictype/combining-class-tests: New file.
13766         * modules/unictype/ctype-alnum-tests: New file.
13767         * modules/unictype/ctype-alpha-tests: New file.
13768         * modules/unictype/ctype-blank-tests: New file.
13769         * modules/unictype/ctype-cntrl-tests: New file.
13770         * modules/unictype/ctype-digit-tests: New file.
13771         * modules/unictype/ctype-graph-tests: New file.
13772         * modules/unictype/ctype-lower-tests: New file.
13773         * modules/unictype/ctype-print-tests: New file.
13774         * modules/unictype/ctype-punct-tests: New file.
13775         * modules/unictype/ctype-space-tests: New file.
13776         * modules/unictype/ctype-upper-tests: New file.
13777         * modules/unictype/ctype-xdigit-tests: New file.
13778         * modules/unictype/decimal-digit-tests: New file.
13779         * modules/unictype/digit-tests: New file.
13780         * modules/unictype/mirror-tests: New file.
13781         * modules/unictype/numeric-tests: New file.
13782         * modules/unictype/property-alphabetic-tests: New file.
13783         * modules/unictype/property-ascii-hex-digit-tests: New file.
13784         * modules/unictype/property-bidi-arabic-digit-tests: New file.
13785         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
13786         * modules/unictype/property-bidi-block-separator-tests: New file.
13787         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
13788         * modules/unictype/property-bidi-common-separator-tests: New file.
13789         * modules/unictype/property-bidi-control-tests: New file.
13790         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
13791         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
13792         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
13793         * modules/unictype/property-bidi-european-digit-tests: New file.
13794         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
13795         * modules/unictype/property-bidi-left-to-right-tests: New file.
13796         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
13797         * modules/unictype/property-bidi-other-neutral-tests: New file.
13798         * modules/unictype/property-bidi-pdf-tests: New file.
13799         * modules/unictype/property-bidi-segment-separator-tests: New file.
13800         * modules/unictype/property-bidi-whitespace-tests: New file.
13801         * modules/unictype/property-byname-tests: New file.
13802         * modules/unictype/property-combining-tests: New file.
13803         * modules/unictype/property-composite-tests: New file.
13804         * modules/unictype/property-currency-symbol-tests: New file.
13805         * modules/unictype/property-dash-tests: New file.
13806         * modules/unictype/property-decimal-digit-tests: New file.
13807         * modules/unictype/property-default-ignorable-code-point-tests: New file.
13808         * modules/unictype/property-deprecated-tests: New file.
13809         * modules/unictype/property-diacritic-tests: New file.
13810         * modules/unictype/property-extender-tests: New file.
13811         * modules/unictype/property-format-control-tests: New file.
13812         * modules/unictype/property-grapheme-base-tests: New file.
13813         * modules/unictype/property-grapheme-extend-tests: New file.
13814         * modules/unictype/property-grapheme-link-tests: New file.
13815         * modules/unictype/property-hex-digit-tests: New file.
13816         * modules/unictype/property-hyphen-tests: New file.
13817         * modules/unictype/property-id-continue-tests: New file.
13818         * modules/unictype/property-id-start-tests: New file.
13819         * modules/unictype/property-ideographic-tests: New file.
13820         * modules/unictype/property-ids-binary-operator-tests: New file.
13821         * modules/unictype/property-ids-trinary-operator-tests: New file.
13822         * modules/unictype/property-ignorable-control-tests: New file.
13823         * modules/unictype/property-iso-control-tests: New file.
13824         * modules/unictype/property-join-control-tests: New file.
13825         * modules/unictype/property-left-of-pair-tests: New file.
13826         * modules/unictype/property-line-separator-tests: New file.
13827         * modules/unictype/property-logical-order-exception-tests: New file.
13828         * modules/unictype/property-lowercase-tests: New file.
13829         * modules/unictype/property-math-tests: New file.
13830         * modules/unictype/property-non-break-tests: New file.
13831         * modules/unictype/property-not-a-character-tests: New file.
13832         * modules/unictype/property-numeric-tests: New file.
13833         * modules/unictype/property-other-alphabetic-tests: New file.
13834         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
13835         * modules/unictype/property-other-grapheme-extend-tests: New file.
13836         * modules/unictype/property-other-id-continue-tests: New file.
13837         * modules/unictype/property-other-id-start-tests: New file.
13838         * modules/unictype/property-other-lowercase-tests: New file.
13839         * modules/unictype/property-other-math-tests: New file.
13840         * modules/unictype/property-other-uppercase-tests: New file.
13841         * modules/unictype/property-paired-punctuation-tests: New file.
13842         * modules/unictype/property-paragraph-separator-tests: New file.
13843         * modules/unictype/property-pattern-syntax-tests: New file.
13844         * modules/unictype/property-pattern-white-space-tests: New file.
13845         * modules/unictype/property-private-use-tests: New file.
13846         * modules/unictype/property-punctuation-tests: New file.
13847         * modules/unictype/property-quotation-mark-tests: New file.
13848         * modules/unictype/property-radical-tests: New file.
13849         * modules/unictype/property-sentence-terminal-tests: New file.
13850         * modules/unictype/property-soft-dotted-tests: New file.
13851         * modules/unictype/property-space-tests: New file.
13852         * modules/unictype/property-terminal-punctuation-tests: New file.
13853         * modules/unictype/property-test-tests: New file.
13854         * modules/unictype/property-titlecase-tests: New file.
13855         * modules/unictype/property-unassigned-code-value-tests: New file.
13856         * modules/unictype/property-unified-ideograph-tests: New file.
13857         * modules/unictype/property-uppercase-tests: New file.
13858         * modules/unictype/property-variation-selector-tests: New file.
13859         * modules/unictype/property-white-space-tests: New file.
13860         * modules/unictype/property-xid-continue-tests: New file.
13861         * modules/unictype/property-xid-start-tests: New file.
13862         * modules/unictype/property-zero-width-tests: New file.
13863         * modules/unictype/scripts-tests: New file.
13864         * modules/unictype/syntax-c-ident-tests: New file.
13865         * modules/unictype/syntax-c-whitespace-tests: New file.
13866         * modules/unictype/syntax-java-ident-tests: New file.
13867         * modules/unictype/syntax-java-whitespace-tests: New file.
13868         * tests/unictype/test-bidi_byname.c: New file.
13869         * tests/unictype/test-bidi_name.c: New file.
13870         * tests/unictype/test-bidi_of.c: New file.
13871         * tests/unictype/test-bidi_test.c: New file.
13872         * tests/unictype/test-block_list.c: New file.
13873         * tests/unictype/test-block_of.c: New file.
13874         * tests/unictype/test-block_test.c: New file.
13875         * tests/unictype/test-categ_and.c: New file.
13876         * tests/unictype/test-categ_and_not.c: New file.
13877         * tests/unictype/test-categ_byname.c: New file.
13878         * tests/unictype/test-categ_name.c: New file.
13879         * tests/unictype/test-categ_none.c: New file.
13880         * tests/unictype/test-categ_of.c: New file.
13881         * tests/unictype/test-categ_or.c: New file.
13882         * tests/unictype/test-categ_test_withtable.c: New file.
13883         * tests/unictype/test-combining.c: New file.
13884         * tests/unictype/test-decdigit.c: New file.
13885         * tests/unictype/test-digit.c: New file.
13886         * tests/unictype/test-mirror.c: New file.
13887         * tests/unictype/test-numeric.c: New file.
13888         * tests/unictype/test-pr_byname.c: New file.
13889         * tests/unictype/test-pr_test.c: New file.
13890         * tests/unictype/test-predicate-part1.h: New file.
13891         * tests/unictype/test-predicate-part2.h: New file.
13892         * tests/unictype/test-scripts.c: New file.
13893         * tests/unictype/test-sy_c_ident.c: New file.
13894         * tests/unictype/test-sy_java_ident.c: New file.
13895
13896         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
13897         for Unicode 5.0.0.
13898         * tests/unictype/test-categ_Cc.c: Likewise.
13899         * tests/unictype/test-categ_Cf.c: Likewise.
13900         * tests/unictype/test-categ_Cn.c: Likewise.
13901         * tests/unictype/test-categ_Co.c: Likewise.
13902         * tests/unictype/test-categ_Cs.c: Likewise.
13903         * tests/unictype/test-categ_L.c: Likewise.
13904         * tests/unictype/test-categ_Ll.c: Likewise.
13905         * tests/unictype/test-categ_Lm.c: Likewise.
13906         * tests/unictype/test-categ_Lo.c: Likewise.
13907         * tests/unictype/test-categ_Lt.c: Likewise.
13908         * tests/unictype/test-categ_Lu.c: Likewise.
13909         * tests/unictype/test-categ_M.c: Likewise.
13910         * tests/unictype/test-categ_Mc.c: Likewise.
13911         * tests/unictype/test-categ_Me.c: Likewise.
13912         * tests/unictype/test-categ_Mn.c: Likewise.
13913         * tests/unictype/test-categ_N.c: Likewise.
13914         * tests/unictype/test-categ_Nd.c: Likewise.
13915         * tests/unictype/test-categ_Nl.c: Likewise.
13916         * tests/unictype/test-categ_No.c: Likewise.
13917         * tests/unictype/test-categ_P.c: Likewise.
13918         * tests/unictype/test-categ_Pc.c: Likewise.
13919         * tests/unictype/test-categ_Pd.c: Likewise.
13920         * tests/unictype/test-categ_Pe.c: Likewise.
13921         * tests/unictype/test-categ_Pf.c: Likewise.
13922         * tests/unictype/test-categ_Pi.c: Likewise.
13923         * tests/unictype/test-categ_Po.c: Likewise.
13924         * tests/unictype/test-categ_Ps.c: Likewise.
13925         * tests/unictype/test-categ_S.c: Likewise.
13926         * tests/unictype/test-categ_Sc.c: Likewise.
13927         * tests/unictype/test-categ_Sk.c: Likewise.
13928         * tests/unictype/test-categ_Sm.c: Likewise.
13929         * tests/unictype/test-categ_So.c: Likewise.
13930         * tests/unictype/test-categ_Z.c: Likewise.
13931         * tests/unictype/test-categ_Zl.c: Likewise.
13932         * tests/unictype/test-categ_Zp.c: Likewise.
13933         * tests/unictype/test-categ_Zs.c: Likewise.
13934         * tests/unictype/test-ctype_alnum.c: Likewise.
13935         * tests/unictype/test-ctype_alpha.c: Likewise.
13936         * tests/unictype/test-ctype_blank.c: Likewise.
13937         * tests/unictype/test-ctype_cntrl.c: Likewise.
13938         * tests/unictype/test-ctype_digit.c: Likewise.
13939         * tests/unictype/test-ctype_graph.c: Likewise.
13940         * tests/unictype/test-ctype_lower.c: Likewise.
13941         * tests/unictype/test-ctype_print.c: Likewise.
13942         * tests/unictype/test-ctype_punct.c: Likewise.
13943         * tests/unictype/test-ctype_space.c: Likewise.
13944         * tests/unictype/test-ctype_upper.c: Likewise.
13945         * tests/unictype/test-ctype_xdigit.c: Likewise.
13946         * tests/unictype/test-decdigit.h: Likewise.
13947         * tests/unictype/test-digit.h: Likewise.
13948         * tests/unictype/test-numeric.h: Likewise.
13949         * tests/unictype/test-pr_alphabetic.c: Likewise.
13950         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
13951         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13952         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13953         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
13954         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13955         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
13956         * tests/unictype/test-pr_bidi_control.c: Likewise.
13957         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
13958         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
13959         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13960         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13961         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13962         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13963         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13964         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13965         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
13966         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
13967         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
13968         * tests/unictype/test-pr_combining.c: Likewise.
13969         * tests/unictype/test-pr_composite.c: Likewise.
13970         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13971         * tests/unictype/test-pr_dash.c: Likewise.
13972         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13973         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
13974         * tests/unictype/test-pr_deprecated.c: Likewise.
13975         * tests/unictype/test-pr_diacritic.c: Likewise.
13976         * tests/unictype/test-pr_extender.c: Likewise.
13977         * tests/unictype/test-pr_format_control.c: Likewise.
13978         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13979         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13980         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13981         * tests/unictype/test-pr_hex_digit.c: Likewise.
13982         * tests/unictype/test-pr_hyphen.c: Likewise.
13983         * tests/unictype/test-pr_id_continue.c: Likewise.
13984         * tests/unictype/test-pr_id_start.c: Likewise.
13985         * tests/unictype/test-pr_ideographic.c: Likewise.
13986         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
13987         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
13988         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13989         * tests/unictype/test-pr_iso_control.c: Likewise.
13990         * tests/unictype/test-pr_join_control.c: Likewise.
13991         * tests/unictype/test-pr_left_of_pair.c: Likewise.
13992         * tests/unictype/test-pr_line_separator.c: Likewise.
13993         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13994         * tests/unictype/test-pr_lowercase.c: Likewise.
13995         * tests/unictype/test-pr_math.c: Likewise.
13996         * tests/unictype/test-pr_non_break.c: Likewise.
13997         * tests/unictype/test-pr_not_a_character.c: Likewise.
13998         * tests/unictype/test-pr_numeric.c: Likewise.
13999         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14000         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14001         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14002         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14003         * tests/unictype/test-pr_other_id_start.c: Likewise.
14004         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14005         * tests/unictype/test-pr_other_math.c: Likewise.
14006         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14007         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14008         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14009         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14010         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14011         * tests/unictype/test-pr_private_use.c: Likewise.
14012         * tests/unictype/test-pr_punctuation.c: Likewise.
14013         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14014         * tests/unictype/test-pr_radical.c: Likewise.
14015         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14016         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14017         * tests/unictype/test-pr_space.c: Likewise.
14018         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14019         * tests/unictype/test-pr_titlecase.c: Likewise.
14020         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14021         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14022         * tests/unictype/test-pr_uppercase.c: Likewise.
14023         * tests/unictype/test-pr_variation_selector.c: Likewise.
14024         * tests/unictype/test-pr_white_space.c: Likewise.
14025         * tests/unictype/test-pr_xid_continue.c: Likewise.
14026         * tests/unictype/test-pr_xid_start.c: Likewise.
14027         * tests/unictype/test-pr_zero_width.c: Likewise.
14028         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14029         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14030
14031 2007-11-12  Bruno Haible  <bruno@clisp.org>
14032
14033         Unicode character classification functions.
14034         * lib/unictype.h: New file.
14035         * modules/unictype/base: New file.
14036         * modules/unictype/category-L: New file.
14037         * modules/unictype/category-Lu: New file.
14038         * modules/unictype/category-Ll: New file.
14039         * modules/unictype/category-Lt: New file.
14040         * modules/unictype/category-Lm: New file.
14041         * modules/unictype/category-Lo: New file.
14042         * modules/unictype/category-M: New file.
14043         * modules/unictype/category-Mn: New file.
14044         * modules/unictype/category-Mc: New file.
14045         * modules/unictype/category-Me: New file.
14046         * modules/unictype/category-N: New file.
14047         * modules/unictype/category-Nd: New file.
14048         * modules/unictype/category-Nl: New file.
14049         * modules/unictype/category-No: New file.
14050         * modules/unictype/category-P: New file.
14051         * modules/unictype/category-Pc: New file.
14052         * modules/unictype/category-Pd: New file.
14053         * modules/unictype/category-Ps: New file.
14054         * modules/unictype/category-Pe: New file.
14055         * modules/unictype/category-Pi: New file.
14056         * modules/unictype/category-Pf: New file.
14057         * modules/unictype/category-Po: New file.
14058         * modules/unictype/category-S: New file.
14059         * modules/unictype/category-Sm: New file.
14060         * modules/unictype/category-Sc: New file.
14061         * modules/unictype/category-Sk: New file.
14062         * modules/unictype/category-So: New file.
14063         * modules/unictype/category-Z: New file.
14064         * modules/unictype/category-Zs: New file.
14065         * modules/unictype/category-Zl: New file.
14066         * modules/unictype/category-Zp: New file.
14067         * modules/unictype/category-C: New file.
14068         * modules/unictype/category-Cc: New file.
14069         * modules/unictype/category-Cf: New file.
14070         * modules/unictype/category-Cs: New file.
14071         * modules/unictype/category-Co: New file.
14072         * modules/unictype/category-Cn: New file.
14073         * modules/unictype/category-or: New file.
14074         * modules/unictype/category-of: New file.
14075         * modules/unictype/category-test: New file.
14076         * modules/unictype/category-test-withtable: New file.
14077         * modules/unictype/category-byname: New file.
14078         * modules/unictype/category-none: New file.
14079         * modules/unictype/category-and: New file.
14080         * modules/unictype/category-and-not: New file.
14081         * modules/unictype/category-name: New file.
14082         * modules/unictype/combining-class: New file.
14083         * modules/unictype/category-all: New file.
14084         * modules/unictype/bidicategory-all: New file.
14085         * modules/unictype/bidicategory-byname: New file.
14086         * modules/unictype/bidicategory-name: New file.
14087         * modules/unictype/bidicategory-of: New file.
14088         * modules/unictype/bidicategory-test: New file.
14089         * modules/unictype/decimal-digit: New file.
14090         * modules/unictype/digit: New file.
14091         * modules/unictype/numeric: New file.
14092         * modules/unictype/mirror: New file.
14093         * modules/unictype/property-white-space: New file.
14094         * modules/unictype/property-alphabetic: New file.
14095         * modules/unictype/property-other-alphabetic: New file.
14096         * modules/unictype/property-not-a-character: New file.
14097         * modules/unictype/property-default-ignorable-code-point: New file.
14098         * modules/unictype/property-other-default-ignorable-code-point: New
14099         file.
14100         * modules/unictype/property-deprecated: New file.
14101         * modules/unictype/property-logical-order-exception: New file.
14102         * modules/unictype/property-variation-selector: New file.
14103         * modules/unictype/property-private-use: New file.
14104         * modules/unictype/property-unassigned-code-value: New file.
14105         * modules/unictype/property-uppercase: New file.
14106         * modules/unictype/property-other-uppercase: New file.
14107         * modules/unictype/property-lowercase: New file.
14108         * modules/unictype/property-other-lowercase: New file.
14109         * modules/unictype/property-titlecase: New file.
14110         * modules/unictype/property-soft-dotted: New file.
14111         * modules/unictype/property-id-start: New file.
14112         * modules/unictype/property-other-id-start: New file.
14113         * modules/unictype/property-id-continue: New file.
14114         * modules/unictype/property-other-id-continue: New file.
14115         * modules/unictype/property-xid-start: New file.
14116         * modules/unictype/property-xid-continue: New file.
14117         * modules/unictype/property-pattern-white-space: New file.
14118         * modules/unictype/property-pattern-syntax: New file.
14119         * modules/unictype/property-join-control: New file.
14120         * modules/unictype/property-grapheme-base: New file.
14121         * modules/unictype/property-grapheme-extend: New file.
14122         * modules/unictype/property-other-grapheme-extend: New file.
14123         * modules/unictype/property-grapheme-link: New file.
14124         * modules/unictype/property-bidi-control: New file.
14125         * modules/unictype/property-bidi-left-to-right: New file.
14126         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14127         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14128         * modules/unictype/property-bidi-european-digit: New file.
14129         * modules/unictype/property-bidi-eur-num-separator: New file.
14130         * modules/unictype/property-bidi-eur-num-terminator: New file.
14131         * modules/unictype/property-bidi-arabic-digit: New file.
14132         * modules/unictype/property-bidi-common-separator: New file.
14133         * modules/unictype/property-bidi-block-separator: New file.
14134         * modules/unictype/property-bidi-segment-separator: New file.
14135         * modules/unictype/property-bidi-whitespace: New file.
14136         * modules/unictype/property-bidi-non-spacing-mark: New file.
14137         * modules/unictype/property-bidi-boundary-neutral: New file.
14138         * modules/unictype/property-bidi-pdf: New file.
14139         * modules/unictype/property-bidi-embedding-or-override: New file.
14140         * modules/unictype/property-bidi-other-neutral: New file.
14141         * modules/unictype/property-hex-digit: New file.
14142         * modules/unictype/property-ascii-hex-digit: New file.
14143         * modules/unictype/property-ideographic: New file.
14144         * modules/unictype/property-unified-ideograph: New file.
14145         * modules/unictype/property-radical: New file.
14146         * modules/unictype/property-ids-binary-operator: New file.
14147         * modules/unictype/property-ids-trinary-operator: New file.
14148         * modules/unictype/property-zero-width: New file.
14149         * modules/unictype/property-space: New file.
14150         * modules/unictype/property-non-break: New file.
14151         * modules/unictype/property-iso-control: New file.
14152         * modules/unictype/property-format-control: New file.
14153         * modules/unictype/property-dash: New file.
14154         * modules/unictype/property-hyphen: New file.
14155         * modules/unictype/property-punctuation: New file.
14156         * modules/unictype/property-line-separator: New file.
14157         * modules/unictype/property-paragraph-separator: New file.
14158         * modules/unictype/property-quotation-mark: New file.
14159         * modules/unictype/property-sentence-terminal: New file.
14160         * modules/unictype/property-terminal-punctuation: New file.
14161         * modules/unictype/property-currency-symbol: New file.
14162         * modules/unictype/property-math: New file.
14163         * modules/unictype/property-other-math: New file.
14164         * modules/unictype/property-paired-punctuation: New file.
14165         * modules/unictype/property-left-of-pair: New file.
14166         * modules/unictype/property-combining: New file.
14167         * modules/unictype/property-composite: New file.
14168         * modules/unictype/property-decimal-digit: New file.
14169         * modules/unictype/property-numeric: New file.
14170         * modules/unictype/property-diacritic: New file.
14171         * modules/unictype/property-extender: New file.
14172         * modules/unictype/property-ignorable-control: New file.
14173         * modules/unictype/property-test: New file.
14174         * modules/unictype/property-byname: New file.
14175         * modules/unictype/property-all: New file.
14176         * modules/unictype/scripts: New file.
14177         * modules/unictype/scripts-all: New file.
14178         * modules/unictype/block-of: New file.
14179         * modules/unictype/block-test: New file.
14180         * modules/unictype/block-list: New file.
14181         * modules/unictype/block-all: New file.
14182         * modules/unictype/syntax-c-whitespace: New file.
14183         * modules/unictype/syntax-java-whitespace: New file.
14184         * modules/unictype/syntax-c-ident: New file.
14185         * modules/unictype/syntax-java-ident: New file.
14186         * modules/unictype/ctype-alnum: New file.
14187         * modules/unictype/ctype-alpha: New file.
14188         * modules/unictype/ctype-cntrl: New file.
14189         * modules/unictype/ctype-digit: New file.
14190         * modules/unictype/ctype-graph: New file.
14191         * modules/unictype/ctype-lower: New file.
14192         * modules/unictype/ctype-print: New file.
14193         * modules/unictype/ctype-punct: New file.
14194         * modules/unictype/ctype-space: New file.
14195         * modules/unictype/ctype-upper: New file.
14196         * modules/unictype/ctype-xdigit: New file.
14197         * modules/unictype/ctype-blank: New file.
14198         * lib/unictype/bidi_byname.c: New file.
14199         * lib/unictype/bidi_name.c: New file.
14200         * lib/unictype/bidi_of.c: New file.
14201         * lib/unictype/bidi_test.c: New file.
14202         * lib/unictype/bitmap.h: New file.
14203         * lib/unictype/block_test.c: New file.
14204         * lib/unictype/blocks.c: New file.
14205         * lib/unictype/categ_C.c: New file.
14206         * lib/unictype/categ_Cc.c: New file.
14207         * lib/unictype/categ_Cf.c: New file.
14208         * lib/unictype/categ_Cn.c: New file.
14209         * lib/unictype/categ_Co.c: New file.
14210         * lib/unictype/categ_Cs.c: New file.
14211         * lib/unictype/categ_L.c: New file.
14212         * lib/unictype/categ_Ll.c: New file.
14213         * lib/unictype/categ_Lm.c: New file.
14214         * lib/unictype/categ_Lo.c: New file.
14215         * lib/unictype/categ_Lt.c: New file.
14216         * lib/unictype/categ_Lu.c: New file.
14217         * lib/unictype/categ_M.c: New file.
14218         * lib/unictype/categ_Mc.c: New file.
14219         * lib/unictype/categ_Me.c: New file.
14220         * lib/unictype/categ_Mn.c: New file.
14221         * lib/unictype/categ_N.c: New file.
14222         * lib/unictype/categ_Nd.c: New file.
14223         * lib/unictype/categ_Nl.c: New file.
14224         * lib/unictype/categ_No.c: New file.
14225         * lib/unictype/categ_P.c: New file.
14226         * lib/unictype/categ_Pc.c: New file.
14227         * lib/unictype/categ_Pd.c: New file.
14228         * lib/unictype/categ_Pe.c: New file.
14229         * lib/unictype/categ_Pf.c: New file.
14230         * lib/unictype/categ_Pi.c: New file.
14231         * lib/unictype/categ_Po.c: New file.
14232         * lib/unictype/categ_Ps.c: New file.
14233         * lib/unictype/categ_S.c: New file.
14234         * lib/unictype/categ_Sc.c: New file.
14235         * lib/unictype/categ_Sk.c: New file.
14236         * lib/unictype/categ_Sm.c: New file.
14237         * lib/unictype/categ_So.c: New file.
14238         * lib/unictype/categ_Z.c: New file.
14239         * lib/unictype/categ_Zl.c: New file.
14240         * lib/unictype/categ_Zp.c: New file.
14241         * lib/unictype/categ_Zs.c: New file.
14242         * lib/unictype/categ_and.c: New file.
14243         * lib/unictype/categ_and_not.c: New file.
14244         * lib/unictype/categ_byname.c: New file.
14245         * lib/unictype/categ_name.c: New file.
14246         * lib/unictype/categ_none.c: New file.
14247         * lib/unictype/categ_of.c: New file.
14248         * lib/unictype/categ_or.c: New file.
14249         * lib/unictype/categ_test.c: New file.
14250         * lib/unictype/combining.c: New file.
14251         * lib/unictype/ctype_alnum.c: New file.
14252         * lib/unictype/ctype_alpha.c: New file.
14253         * lib/unictype/ctype_blank.c: New file.
14254         * lib/unictype/ctype_cntrl.c: New file.
14255         * lib/unictype/ctype_digit.c: New file.
14256         * lib/unictype/ctype_graph.c: New file.
14257         * lib/unictype/ctype_lower.c: New file.
14258         * lib/unictype/ctype_print.c: New file.
14259         * lib/unictype/ctype_punct.c: New file.
14260         * lib/unictype/ctype_space.c: New file.
14261         * lib/unictype/ctype_upper.c: New file.
14262         * lib/unictype/ctype_xdigit.c: New file.
14263         * lib/unictype/decdigit.c: New file.
14264         * lib/unictype/digit.c: New file.
14265         * lib/unictype/identsyntaxmap.h: New file.
14266         * lib/unictype/mirror.c: New file.
14267         * lib/unictype/numeric.c: New file.
14268         * lib/unictype/pr_alphabetic.c: New file.
14269         * lib/unictype/pr_ascii_hex_digit.c: New file.
14270         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14271         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14272         * lib/unictype/pr_bidi_block_separator.c: New file.
14273         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14274         * lib/unictype/pr_bidi_common_separator.c: New file.
14275         * lib/unictype/pr_bidi_control.c: New file.
14276         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14277         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14278         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14279         * lib/unictype/pr_bidi_european_digit.c: New file.
14280         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14281         * lib/unictype/pr_bidi_left_to_right.c: New file.
14282         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14283         * lib/unictype/pr_bidi_other_neutral.c: New file.
14284         * lib/unictype/pr_bidi_pdf.c: New file.
14285         * lib/unictype/pr_bidi_segment_separator.c: New file.
14286         * lib/unictype/pr_bidi_whitespace.c: New file.
14287         * lib/unictype/pr_byname.c: New file.
14288         * lib/unictype/pr_byname.gperf: New file.
14289         * lib/unictype/pr_combining.c: New file.
14290         * lib/unictype/pr_composite.c: New file.
14291         * lib/unictype/pr_currency_symbol.c: New file.
14292         * lib/unictype/pr_dash.c: New file.
14293         * lib/unictype/pr_decimal_digit.c: New file.
14294         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14295         * lib/unictype/pr_deprecated.c: New file.
14296         * lib/unictype/pr_diacritic.c: New file.
14297         * lib/unictype/pr_extender.c: New file.
14298         * lib/unictype/pr_format_control.c: New file.
14299         * lib/unictype/pr_grapheme_base.c: New file.
14300         * lib/unictype/pr_grapheme_extend.c: New file.
14301         * lib/unictype/pr_grapheme_link.c: New file.
14302         * lib/unictype/pr_hex_digit.c: New file.
14303         * lib/unictype/pr_hyphen.c: New file.
14304         * lib/unictype/pr_id_continue.c: New file.
14305         * lib/unictype/pr_id_start.c: New file.
14306         * lib/unictype/pr_ideographic.c: New file.
14307         * lib/unictype/pr_ids_binary_operator.c: New file.
14308         * lib/unictype/pr_ids_trinary_operator.c: New file.
14309         * lib/unictype/pr_ignorable_control.c: New file.
14310         * lib/unictype/pr_iso_control.c: New file.
14311         * lib/unictype/pr_join_control.c: New file.
14312         * lib/unictype/pr_left_of_pair.c: New file.
14313         * lib/unictype/pr_line_separator.c: New file.
14314         * lib/unictype/pr_logical_order_exception.c: New file.
14315         * lib/unictype/pr_lowercase.c: New file.
14316         * lib/unictype/pr_math.c: New file.
14317         * lib/unictype/pr_non_break.c: New file.
14318         * lib/unictype/pr_not_a_character.c: New file.
14319         * lib/unictype/pr_numeric.c: New file.
14320         * lib/unictype/pr_other_alphabetic.c: New file.
14321         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14322         * lib/unictype/pr_other_grapheme_extend.c: New file.
14323         * lib/unictype/pr_other_id_continue.c: New file.
14324         * lib/unictype/pr_other_id_start.c: New file.
14325         * lib/unictype/pr_other_lowercase.c: New file.
14326         * lib/unictype/pr_other_math.c: New file.
14327         * lib/unictype/pr_other_uppercase.c: New file.
14328         * lib/unictype/pr_paired_punctuation.c: New file.
14329         * lib/unictype/pr_paragraph_separator.c: New file.
14330         * lib/unictype/pr_pattern_syntax.c: New file.
14331         * lib/unictype/pr_pattern_white_space.c: New file.
14332         * lib/unictype/pr_private_use.c: New file.
14333         * lib/unictype/pr_punctuation.c: New file.
14334         * lib/unictype/pr_quotation_mark.c: New file.
14335         * lib/unictype/pr_radical.c: New file.
14336         * lib/unictype/pr_sentence_terminal.c: New file.
14337         * lib/unictype/pr_soft_dotted.c: New file.
14338         * lib/unictype/pr_space.c: New file.
14339         * lib/unictype/pr_terminal_punctuation.c: New file.
14340         * lib/unictype/pr_test.c: New file.
14341         * lib/unictype/pr_titlecase.c: New file.
14342         * lib/unictype/pr_unassigned_code_value.c: New file.
14343         * lib/unictype/pr_unified_ideograph.c: New file.
14344         * lib/unictype/pr_uppercase.c: New file.
14345         * lib/unictype/pr_variation_selector.c: New file.
14346         * lib/unictype/pr_white_space.c: New file.
14347         * lib/unictype/pr_xid_continue.c: New file.
14348         * lib/unictype/pr_xid_start.c: New file.
14349         * lib/unictype/pr_zero_width.c: New file.
14350         * lib/unictype/scripts.c: New file.
14351         * lib/unictype/sy_c_ident.c: New file.
14352         * lib/unictype/sy_c_whitespace.c: New file.
14353         * lib/unictype/sy_java_ident.c: New file.
14354         * lib/unictype/sy_java_whitespace.c: New file.
14355
14356         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14357         Unicode 5.0.0.
14358         * lib/unictype/blocks.h: Likewise.
14359         * lib/unictype/categ_C.h: Likewise.
14360         * lib/unictype/categ_Cc.h: Likewise.
14361         * lib/unictype/categ_Cf.h: Likewise.
14362         * lib/unictype/categ_Cn.h: Likewise.
14363         * lib/unictype/categ_Co.h: Likewise.
14364         * lib/unictype/categ_Cs.h: Likewise.
14365         * lib/unictype/categ_L.h: Likewise.
14366         * lib/unictype/categ_Ll.h: Likewise.
14367         * lib/unictype/categ_Lm.h: Likewise.
14368         * lib/unictype/categ_Lo.h: Likewise.
14369         * lib/unictype/categ_Lt.h: Likewise.
14370         * lib/unictype/categ_Lu.h: Likewise.
14371         * lib/unictype/categ_M.h: Likewise.
14372         * lib/unictype/categ_Mc.h: Likewise.
14373         * lib/unictype/categ_Me.h: Likewise.
14374         * lib/unictype/categ_Mn.h: Likewise.
14375         * lib/unictype/categ_N.h: Likewise.
14376         * lib/unictype/categ_Nd.h: Likewise.
14377         * lib/unictype/categ_Nl.h: Likewise.
14378         * lib/unictype/categ_No.h: Likewise.
14379         * lib/unictype/categ_P.h: Likewise.
14380         * lib/unictype/categ_Pc.h: Likewise.
14381         * lib/unictype/categ_Pd.h: Likewise.
14382         * lib/unictype/categ_Pe.h: Likewise.
14383         * lib/unictype/categ_Pf.h: Likewise.
14384         * lib/unictype/categ_Pi.h: Likewise.
14385         * lib/unictype/categ_Po.h: Likewise.
14386         * lib/unictype/categ_Ps.h: Likewise.
14387         * lib/unictype/categ_S.h: Likewise.
14388         * lib/unictype/categ_Sc.h: Likewise.
14389         * lib/unictype/categ_Sk.h: Likewise.
14390         * lib/unictype/categ_Sm.h: Likewise.
14391         * lib/unictype/categ_So.h: Likewise.
14392         * lib/unictype/categ_Z.h: Likewise.
14393         * lib/unictype/categ_Zl.h: Likewise.
14394         * lib/unictype/categ_Zp.h: Likewise.
14395         * lib/unictype/categ_Zs.h: Likewise.
14396         * lib/unictype/categ_of.h: Likewise.
14397         * lib/unictype/combining.h: Likewise.
14398         * lib/unictype/ctype_alnum.h: Likewise.
14399         * lib/unictype/ctype_alpha.h: Likewise.
14400         * lib/unictype/ctype_blank.h: Likewise.
14401         * lib/unictype/ctype_cntrl.h: Likewise.
14402         * lib/unictype/ctype_digit.h: Likewise.
14403         * lib/unictype/ctype_graph.h: Likewise.
14404         * lib/unictype/ctype_lower.h: Likewise.
14405         * lib/unictype/ctype_print.h: Likewise.
14406         * lib/unictype/ctype_punct.h: Likewise.
14407         * lib/unictype/ctype_space.h: Likewise.
14408         * lib/unictype/ctype_upper.h: Likewise.
14409         * lib/unictype/ctype_xdigit.h: Likewise.
14410         * lib/unictype/decdigit.h: Likewise.
14411         * lib/unictype/digit.h: Likewise.
14412         * lib/unictype/mirror.h: Likewise.
14413         * lib/unictype/numeric.h: Likewise.
14414         * lib/unictype/pr_alphabetic.h: Likewise.
14415         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14416         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14417         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14418         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14419         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14420         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14421         * lib/unictype/pr_bidi_control.h: Likewise.
14422         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14423         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14424         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14425         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14426         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14427         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14428         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14429         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14430         * lib/unictype/pr_bidi_pdf.h: Likewise.
14431         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14432         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14433         * lib/unictype/pr_combining.h: Likewise.
14434         * lib/unictype/pr_composite.h: Likewise.
14435         * lib/unictype/pr_currency_symbol.h: Likewise.
14436         * lib/unictype/pr_dash.h: Likewise.
14437         * lib/unictype/pr_decimal_digit.h: Likewise.
14438         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14439         * lib/unictype/pr_deprecated.h: Likewise.
14440         * lib/unictype/pr_diacritic.h: Likewise.
14441         * lib/unictype/pr_extender.h: Likewise.
14442         * lib/unictype/pr_format_control.h: Likewise.
14443         * lib/unictype/pr_grapheme_base.h: Likewise.
14444         * lib/unictype/pr_grapheme_extend.h: Likewise.
14445         * lib/unictype/pr_grapheme_link.h: Likewise.
14446         * lib/unictype/pr_hex_digit.h: Likewise.
14447         * lib/unictype/pr_hyphen.h: Likewise.
14448         * lib/unictype/pr_id_continue.h: Likewise.
14449         * lib/unictype/pr_id_start.h: Likewise.
14450         * lib/unictype/pr_ideographic.h: Likewise.
14451         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14452         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14453         * lib/unictype/pr_ignorable_control.h: Likewise.
14454         * lib/unictype/pr_iso_control.h: Likewise.
14455         * lib/unictype/pr_join_control.h: Likewise.
14456         * lib/unictype/pr_left_of_pair.h: Likewise.
14457         * lib/unictype/pr_line_separator.h: Likewise.
14458         * lib/unictype/pr_logical_order_exception.h: Likewise.
14459         * lib/unictype/pr_lowercase.h: Likewise.
14460         * lib/unictype/pr_math.h: Likewise.
14461         * lib/unictype/pr_non_break.h: Likewise.
14462         * lib/unictype/pr_not_a_character.h: Likewise.
14463         * lib/unictype/pr_numeric.h: Likewise.
14464         * lib/unictype/pr_other_alphabetic.h: Likewise.
14465         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14466         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14467         * lib/unictype/pr_other_id_continue.h: Likewise.
14468         * lib/unictype/pr_other_id_start.h: Likewise.
14469         * lib/unictype/pr_other_lowercase.h: Likewise.
14470         * lib/unictype/pr_other_math.h: Likewise.
14471         * lib/unictype/pr_other_uppercase.h: Likewise.
14472         * lib/unictype/pr_paired_punctuation.h: Likewise.
14473         * lib/unictype/pr_paragraph_separator.h: Likewise.
14474         * lib/unictype/pr_pattern_syntax.h: Likewise.
14475         * lib/unictype/pr_pattern_white_space.h: Likewise.
14476         * lib/unictype/pr_private_use.h: Likewise.
14477         * lib/unictype/pr_punctuation.h: Likewise.
14478         * lib/unictype/pr_quotation_mark.h: Likewise.
14479         * lib/unictype/pr_radical.h: Likewise.
14480         * lib/unictype/pr_sentence_terminal.h: Likewise.
14481         * lib/unictype/pr_soft_dotted.h: Likewise.
14482         * lib/unictype/pr_space.h: Likewise.
14483         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14484         * lib/unictype/pr_titlecase.h: Likewise.
14485         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14486         * lib/unictype/pr_unified_ideograph.h: Likewise.
14487         * lib/unictype/pr_uppercase.h: Likewise.
14488         * lib/unictype/pr_variation_selector.h: Likewise.
14489         * lib/unictype/pr_white_space.h: Likewise.
14490         * lib/unictype/pr_xid_continue.h: Likewise.
14491         * lib/unictype/pr_xid_start.h: Likewise.
14492         * lib/unictype/pr_zero_width.h: Likewise.
14493         * lib/unictype/scripts.h: Likewise.
14494         * lib/unictype/scripts_byname.gperf: Likewise.
14495         * lib/unictype/sy_c_ident.h: Likewise.
14496         * lib/unictype/sy_c_whitespace.h: Likewise.
14497         * lib/unictype/sy_java_ident.h: Likewise.
14498         * lib/unictype/sy_java_whitespace.h: Likewise.
14499
14500         * lib/unictype/Makefile: New file.
14501         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14502         glibc.
14503         * lib/unictype/3level.h: New file, copied from glibc.
14504         * lib/unictype/3levelbit.h: New file.
14505
14506 2007-11-11  Bruno Haible  <bruno@clisp.org>
14507
14508         * modules/gperf: New file.
14509         * modules/iconv_open (Depends-on): Add it.
14510         (Makefile.am): Remove the GPERF definition.
14511
14512 2007-11-11  Bruno Haible  <bruno@clisp.org>
14513
14514         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14515         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14516
14517 2007-11-11  Bruno Haible  <bruno@clisp.org>
14518
14519         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14520         (usage): Remove function.
14521
14522 2007-11-11  Bruno Haible  <bruno@clisp.org>
14523
14524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14525         gl_FUNC_CEILF_LIBS.
14526         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14527         gl_FUNC_CEIL_LIBS.
14528         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14529         gl_FUNC_CEILL_LIBS.
14530         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14531         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14532         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14533
14534 2007-11-11  Bruno Haible  <bruno@clisp.org>
14535
14536         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14537         roundf were declared but do not exist on functions.
14538         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14539         roundl were declared but do not exist on functions.
14540         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14541         HAVE_FLOORL_AND_CEILL, respectively.
14542         Needed for Sun C on Solaris 10.
14543
14544 2007-11-11  Bruno Haible  <bruno@clisp.org>
14545
14546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14547         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14548         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14549         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14550         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14551         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14552         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14553         HAVE_DECL_ROUNDF.
14554         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14555         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14557         of HAVE_DECL_ROUND*.
14558         * modules/math (Makefile.am): Update.
14559
14560 2007-11-10  Bruno Haible  <bruno@clisp.org>
14561
14562         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14563         ptrdiff_t as m4/intl.m4.
14564
14565 2007-11-10  Jim Meyering  <meyering@redhat.com>
14566
14567         Avoid link failure for the argmatch test.
14568         * tests/test-argmatch.c (usage): Define function to avoid a link
14569         failure: argmatch_die requires a usage function.
14570
14571 2007-11-09  Bruno Haible  <bruno@clisp.org>
14572
14573         * doc/functions/snprintf.texi: Mention BeOS deficiency.
14574         * doc/functions/vsnprintf.texi: Likewise.
14575         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14576         with a size argument < 2.
14577
14578 2007-11-09  Bruno Haible  <bruno@clisp.org>
14579
14580         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14581         buffer. Fixes an inefficiency introduced on 2007-11-03.
14582
14583 2007-11-09  Bruno Haible  <bruno@clisp.org>
14584
14585         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14586         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14587
14588 2007-11-08  Jim Meyering  <meyering@redhat.com>
14589
14590         Change cache variable name prefix "jm_" to "gl_" everywhere.
14591         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14592         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14593         * m4/uptime.m4: s/gl_/jm_/
14594
14595 2007-11-07  Bruno Haible  <bruno@clisp.org>
14596
14597         Update to GNU gettext 0.17.
14598         * m4/intl.m4: Update to GNU gettext 0.17.
14599         * m4/po.m4: Likewise.
14600         * modules/gettext (Files): Remove m4/ulonglong.m4.
14601         (configure.ac): Require gettext infrastructure from version 0.17.
14602
14603 2007-11-06  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14606         symbolic values are not defined in a public header.
14607         * lib/freadable.c (freadable) [QNX]: Likewise.
14608         * lib/freadahead.c (freadahead) [QNX]: Likewise.
14609         * lib/freading.c (freading) [QNX]: Likewise.
14610         * lib/fseterr.c (fseterr) [QNX]: Likewise.
14611         * lib/fwritable.c (fwritable) [QNX]: Likewise.
14612         * lib/fwriting.c (fwriting) [QNX]: Likewise.
14613         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
14614         Reported by Alain Magloire.
14615
14616         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
14617
14618 2007-11-05  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
14621         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
14622         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
14623         Reported by Eric Blake.
14624
14625 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14626             Bruno Haible  <bruno@clisp.org>
14627
14628         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
14629         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
14630         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
14631         (malloc): Undefine also before including <stdlib.h>.
14632         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
14633         Needed on OSF/1 4.0.
14634
14635 2007-11-05  Jim Meyering  <meyering@redhat.com>
14636
14637         git-version-gen: sync from coreutils.
14638         * build-aux/git-version-gen: Add comments.
14639         Change the first '-' to '.' in the snapshot version string,
14640         e.g., 6.9-377-08144 -> 6.9.377-08144
14641         Remove first parameter.
14642         Don't declare a version "-dirty" merely because a time
14643         stamp has changed.
14644
14645 2007-11-04  Bruno Haible  <bruno@clisp.org>
14646
14647         * lib/lock.h: Protect all macro definitions containing an 'if'
14648         statement through a "do { ... } while (0)".
14649         * lib/tls.h: Likewise.
14650
14651 2007-11-04  Bruno Haible  <bruno@clisp.org>
14652
14653         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
14654
14655 2007-11-04  Bruno Haible  <bruno@clisp.org>
14656
14657         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
14658         * modules/fprintf-posix (Depends-on): Add nocrash.
14659         * modules/snprintf-posix (Depends-on): Likewise.
14660         * modules/sprintf-posix (Depends-on): Likewise.
14661         * modules/vasnprintf-posix (Depends-on): Likewise.
14662         * modules/vasprintf-posix (Depends-on): Likewise.
14663         * modules/vfprintf-posix (Depends-on): Likewise.
14664         * modules/vsnprintf-posix (Depends-on): Likewise.
14665         * modules/vsprintf-posix (Depends-on): Likewise.
14666         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14668         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14669         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14670         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14672         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14673
14674 2007-11-04  Bruno Haible  <bruno@clisp.org>
14675
14676         * modules/nocrash: New file.
14677         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
14678         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
14679
14680 2007-11-04  Bruno Haible  <bruno@clisp.org>
14681
14682         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
14683         precision handling.
14684         * tests/test-vasprintf-posix.c (test_function): Likewise.
14685         * tests/test-snprintf-posix.h (test_function): Likewise.
14686         * tests/test-sprintf-posix.h (test_function): Likewise.
14687
14688         Fix *printf behaviour for large precisions on mingw and BeOS.
14689         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
14690         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
14691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
14692         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14694         gl_PRINTF_PRECISION and test its result. Invoke
14695         gl_PREREQ_VASNPRINTF_PRECISION.
14696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14703         * doc/functions/fprintf.texi: Update.
14704         * doc/functions/printf.texi: Update.
14705         * doc/functions/snprintf.texi: Update.
14706         * doc/functions/sprintf.texi: Update.
14707         * doc/functions/vfprintf.texi: Update.
14708         * doc/functions/vprintf.texi: Update.
14709         * doc/functions/vsnprintf.texi: Update.
14710         * doc/functions/vsprintf.texi: Update.
14711
14712 2007-11-04  Bruno Haible  <bruno@clisp.org>
14713
14714         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
14715
14716 2007-11-04  Bruno Haible  <bruno@clisp.org>
14717
14718         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
14719         Reported by Sylvain Beucler <beuc@gnu.org>.
14720
14721 2007-11-03  Bruno Haible  <bruno@clisp.org>
14722
14723         * tests/test-fprintf-posix2.sh: New file.
14724         * tests/test-fprintf-posix2.c: New file.
14725         * modules/fprintf-posix-tests (Files): Add them.
14726         (TESTS): Add test-fprintf-posix2.sh.
14727         (configure.ac): Check for getrlimit and setrlimit.
14728         (check_PROGRAMS): Add test-fprintf-posix2.
14729
14730         * tests/test-printf-posix2.sh: New file.
14731         * tests/test-printf-posix2.c: New file.
14732         * modules/printf-posix-tests (Files): Add them.
14733         (TESTS): Add test-printf-posix2.sh.
14734         (configure.ac): Check for getrlimit and setrlimit.
14735         (check_PROGRAMS): Add test-printf-posix2.
14736
14737         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
14738         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
14739         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
14740         (decode_double): New function, copied from decode_long_double.
14741         (scale10_round_decimal_decoded): New function, extracted from
14742         scale10_round_decimal_long_double.
14743         (scale10_round_decimal_long_double): Use it.
14744         (scale10_round_decimal_double): New function.
14745         (floorlog10): New function.
14746         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
14747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
14748         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14750         gl_PRINTF_ENOMEM and test its result. Invoke
14751         gl_PREREQ_VASNPRINTF_ENOMEM.
14752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14759         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
14760         * modules/snprintf-posix (Depends-on): Likewise.
14761         * modules/sprintf-posix (Depends-on): Likewise.
14762         * modules/vasnprintf-posix (Depends-on): Likewise.
14763         * modules/vasprintf-posix (Depends-on): Likewise.
14764         * modules/vfprintf-posix (Depends-on): Likewise.
14765         * modules/vsnprintf-posix (Depends-on): Likewise.
14766         * modules/vsprintf-posix (Depends-on): Likewise.
14767         * doc/functions/fprintf.texi: Update.
14768         * doc/functions/printf.texi: Update.
14769         * doc/functions/snprintf.texi: Update.
14770         * doc/functions/sprintf.texi: Update.
14771         * doc/functions/vfprintf.texi: Update.
14772         * doc/functions/vprintf.texi: Update.
14773         * doc/functions/vsnprintf.texi: Update.
14774         * doc/functions/vsprintf.texi: Update.
14775
14776 2007-11-03  Bruno Haible  <bruno@clisp.org>
14777
14778         * modules/frexp-nolibm-tests: New file.
14779
14780         * modules/frexp-nolibm: New file.
14781         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
14782
14783 2007-11-03  Bruno Haible  <bruno@clisp.org>
14784
14785         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
14786         value is C99 compliant.
14787         Needed for OSF/1 5.1.
14788
14789 2007-11-03  Bruno Haible  <bruno@clisp.org>
14790
14791         Fix out-of-memory handling of vasnprintf.
14792         * lib/printf-parse.c: Include <errno.h>.
14793         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
14794         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
14795         is already set.
14796
14797 2007-11-02  Eric Blake  <ebb9@byu.net>
14798
14799         Fix tests on cygwin.
14800         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
14801
14802 2007-11-01  Bruno Haible  <bruno@clisp.org>
14803
14804         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
14805         warning.
14806         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
14807         needed for POSIX compatibility.
14808
14809 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
14812         for compatibility with GNU.
14813
14814 2007-11-01  Bruno Haible  <bruno@clisp.org>
14815
14816         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
14817         (putenv): Renamed from rpl_putenv. Change argument type from
14818         'const char *' to 'char *'.
14819         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
14820         of defining putenv in config.h, just set REPLACE_PUTENV.
14821         * modules/putenv (Depends-on): Add stdlib.
14822         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14823         (Include): Use <stdlib.h>.
14824         * lib/stdlib.in.h (putenv): New declaration.
14825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
14826         REPLACE_PUTENV.
14827         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
14828         REPLACE_PUTENV.
14829         Needed for MacOS X 10.5.0.
14830         Reported by Peter O'Gorman <peter@pogma.com>.
14831
14832 2007-11-01  Jim Meyering  <meyering@redhat.com>
14833
14834         Treat an empty date string exactly like "0".
14835         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
14836         if the remaining date string (to be parsed) is empty, use "0".
14837         Reported by Mischa Molhoek and discussed in this thread:
14838         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
14839
14840 2007-10-31  Bruno Haible  <bruno@clisp.org>
14841
14842         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
14843         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
14844         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
14845         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
14846         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
14847         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
14848
14849 2007-10-31  Bruno Haible  <bruno@clisp.org>
14850
14851         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
14852         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
14853         (AC_TYPE_LONG_LONG_INT): Use it.
14854         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
14855         it as well.
14856         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
14857         to m4/longlong.m4.
14858         * modules/stdint (Files): Remove m4/ulonglong.m4.
14859         * modules/strtoull (Files): Use m4/longlong.m4 instead of
14860         m4/ulonglong.m4.
14861         * modules/strtoumax (Files): Likewise.
14862
14863 2007-10-30  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/xvasprintf-posix: New file.
14866         Suggested by Eric Blake.
14867
14868 2007-10-30  Bruno Haible  <bruno@clisp.org>
14869
14870         * modules/xprintf-posix-tests: New file.
14871         * tests/test-xprintf-posix.sh: New file.
14872         * tests/test-xprintf-posix.c: New file.
14873         * tests/test-xfprintf-posix.c: New file.
14874
14875         * modules/xprintf-posix: New file.
14876
14877 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14878
14879         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
14880         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
14881         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
14882
14883 2007-10-29  Bruno Haible  <bruno@clisp.org>
14884
14885         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
14886         contain the special marker '_cv_'.
14887         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14888         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14889         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14890         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14891         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14892         Reported by Ralf Wildenhues.
14893
14894 2007-10-29  Bruno Haible  <bruno@clisp.org>
14895
14896         * gnulib-tool (func_import): When --lgpl is not specified, set
14897         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
14898         GPLv3.
14899         Reported by Simon Josefsson.
14900
14901 2007-10-28  Bruno Haible  <bruno@clisp.org>
14902
14903         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
14904         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
14905         HAVE_DECL_ISFINITE.
14906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
14907         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
14908         HAVE_DECL_ISFINITE.
14909
14910 2007-10-28  Bruno Haible  <bruno@clisp.org>
14911
14912         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
14913         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
14914
14915 2007-10-28  Bruno Haible  <bruno@clisp.org>
14916
14917         Fix link errors with Sun C 5.0 on Solaris 10.
14918         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
14919         function is declared but not present in the compiler's libm.
14920         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14921         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14922         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
14923         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
14924         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
14925         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
14926         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
14927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
14928         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
14929         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
14930         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
14931         HAVE_DECL_FLOORL.
14932
14933 2007-10-28  Bruno Haible  <bruno@clisp.org>
14934
14935         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
14936         gl_FUNC_FLOORL. Cache the result.
14937         (gl_FUNC_FLOORL): Use it.
14938         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
14939         gl_FUNC_CEILL. Cache the result.
14940         (gl_FUNC_CEILL): Use it.
14941
14942         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
14943         gl_FUNC_FLOOR. Cache the result.
14944         (gl_FUNC_FLOOR): Use it.
14945         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
14946         gl_FUNC_CEIL. Cache the result.
14947         (gl_FUNC_CEIL): Use it.
14948
14949         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
14950         gl_FUNC_FLOORF. Cache the result.
14951         (gl_FUNC_FLOORF): Use it.
14952         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
14953         gl_FUNC_CEILF. Cache the result.
14954         (gl_FUNC_CEILF): Use it.
14955
14956 2007-10-28  Bruno Haible  <bruno@clisp.org>
14957
14958         * gnulib-tool: Allow specifying the LGPL version number through
14959         --lgpl=2 or --lgpl=3.
14960         (func_usage): Document --lgpl with argument.
14961         Handle --lgpl=... arguments.
14962         (func_import): Recognize also gl_LGPL calls with an argument. When
14963         --lgpl=2 is used and the module's license is just LGPL, report an
14964         error. Set sed_transform_lib_file according to the lgpl variable. In
14965         the generated files, use --lgpl or gl_LGPL invocations with argument,
14966         if necessary.
14967         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
14968         an LGPv2+ license.
14969         * doc/gnulib-tool.texi (Modified imports): Update explanation of
14970         gl_LGPL macro.
14971
14972 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14973             Bruno Haible  <bruno@clisp.org>
14974
14975         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
14976         (u16_uctomb_aux): Likewise.
14977         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
14978         !HAVE_INLINE.
14979         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
14980
14981 2007-10-28  Bruno Haible  <bruno@clisp.org>
14982
14983         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
14984         Invoke AM_GETTEXT_OPTION if it exists.
14985         * modules/vasprintf: Likewise.
14986         * modules/verror: Likewise.
14987         * modules/xprintf: Likewise.
14988         * modules/xvasprintf: Likewise.
14989
14990 2007-10-27  Ben Pfaff  <blp@gnu.org>
14991
14992         * lib/math.in.h: Define isfinite macro and prototypes for
14993         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
14994         implementations.
14995         * m4/math_h.m4: New substitutions for isfinite module.
14996         * lib/isfinite.c: New file.
14997         * m4/isfinite.m4: New file.
14998         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
14999         * modules/isfinite: New file.
15000         * modules/isfinite-tests: New file.
15001         * tests/tests-isfinite.c: New file.
15002         * doc/functions/isfinite.texi: Mention isfinite module.
15003         * MODULES.html.sh: Mention new module.
15004
15005 2007-10-27  Ben Pfaff  <blp@gnu.org>
15006
15007         Ralf Wildenhues reported that Tru64 4.0D declares the round
15008         functions but does not have definitions.
15009         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15010         cannot be found in any library, set the output variable to
15011         "missing" instead of "".
15012         * m4/round.m4: Also use our substitute if we cannot find round in
15013         any library, even if it is declared.
15014         * m4/roundf.m4: Likewise for roundf.
15015         * m4/roundl.m4: Likewise for roundl.
15016         * lib/math.in.h: Undefine roundf, round, roundl before defining
15017         their replacements, to allow for hypothetical systems where these
15018         may be defined as macros but not available in libraries.
15019
15020 2007-10-27  Bruno Haible  <bruno@clisp.org>
15021
15022         * doc/gnulib.texi: Invoke @firstparagraphindent.
15023         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15024         changes in gnulib.
15025         (Source changes): New section.
15026
15027 2007-10-26  Bruno Haible  <bruno@clisp.org>
15028
15029         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15030         borrowed from autoconf.
15031
15032 2007-10-26  Bruno Haible  <bruno@clisp.org>
15033
15034         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15035         strerror returned the empty string. Needed on HP-UX 11.00.
15036
15037 2007-10-24  Micah Cowan  <micah@cowan.name>
15038
15039         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15040         * build-aux/bootstrap: Remove support for now-unnecessary option,
15041         --cvs-user, and envvars CVS_USER, CVS_RSH.
15042
15043 2007-10-24  Jim Meyering  <meyering@redhat.com>
15044
15045         Avoid diagnostics from sha1sum when there is no cached checksum.
15046         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15047         if the po.s1 file hasn't been created yet.
15048
15049         * build-aux/bootstrap: Sync from coreutils:
15050         2007-10-24  Jim Meyering  <meyering@redhat.com>
15051         Get gnulib from the git repository, not from an obsolete cvs one.
15052         * build-aux/bootstrap: Suggestion from Micah Cowan.
15053         2007-10-04  Jim Meyering  <jim@meyering.net>
15054         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15055         (update_po_files): Work also when there are no .po files in po/.
15056
15057 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15058
15059         * README: Append ".git" to git and cg examples.
15060         Problem reported by Benoit Sigoure.
15061
15062 2007-10-23  Micah Cowan  <micah@cowan.name>
15063
15064         * users.txt: Add wget.
15065
15066 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15067
15068         Fix linking of some unistdio tests on FreeBSD.
15069         * modules/unistdio/u16-vsnprintf-tests
15070         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15071         * modules/unistdio/u16-vsprintf-tests
15072         (test_u16_vsnprintf1_LDADD): Likewise.
15073         * modules/unistdio/u32-vsnprintf-tests
15074         (test_u32_vsnprintf1_LDADD): Likewise.
15075         * modules/unistdio/u32-vsprintf-tests
15076         (test_u32_vsprintf1_LDADD): Likewise.
15077         * modules/unistdio/u8-vsnprintf-tests
15078         (test_u8_vsnprintf1_LDADD): Likewise.
15079         * modules/unistdio/u8-vsprintf-tests
15080         (test_u8_vsprintf1_LDADD): Likewise.
15081         * modules/unistdio/ulc-vsnprintf-tests
15082         (test_ulc_vsnprintf1_LDADD): Likewise.
15083         * modules/unistdio/ulc-vsprintf-tests
15084         (test_ulc_vsprintf1_LDADD): Likewise.
15085
15086         Fix linking of some uniconv tests on FreeBSD.
15087         * modules/uniconv/u16-conv-from-enc-tests
15088         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15089         * modules/uniconv/u16-conv-to-enc-tests
15090         (test_u16_conv_to_enc_LDADD): Likewise.
15091         * modules/uniconv/u16-strconv-from-enc-tests
15092         (test_u16_strconv_from_enc_LDADD): Likewise.
15093         * modules/uniconv/u16-strconv-to-enc-tests
15094         (test_u16_strconv_to_enc_LDADD): Likewise.
15095         * modules/uniconv/u32-conv-from-enc-tests
15096         (test_u32_conv_from_enc_LDADD): Likewise.
15097         * modules/uniconv/u32-conv-to-enc-tests
15098         (test_u32_conv_to_enc_LDADD): Likewise.
15099         * modules/uniconv/u32-strconv-from-enc-tests
15100         (test_u32_strconv_from_enc_LDADD): Likewise.
15101         * modules/uniconv/u32-strconv-to-enc-tests
15102         (test_u32_strconv_to_enc_LDADD): Likewise.
15103         * modules/uniconv/u8-conv-from-enc-tests
15104         (test_u8_conv_from_enc_LDADD): Likewise.
15105         * modules/uniconv/u8-conv-to-enc-tests
15106         (test_u8_conv_to_enc_LDADD): Likewise.
15107         * modules/uniconv/u8-strconv-from-enc-tests
15108         (test_u8_strconv_from_enc_LDADD): Likewise.
15109         * modules/uniconv/u8-strconv-to-enc-tests
15110         (test_u8_strconv_to_enc_LDADD): Likewise.
15111
15112 2007-10-22  Bruno Haible  <bruno@clisp.org>
15113
15114         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15115         size.
15116
15117 2007-10-22  Eric Blake  <ebb9@byu.net>
15118
15119         Tweak x*printf documentation.
15120         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15121         variable name and comments.
15122         Suggested by Bruno Haible.
15123
15124 2007-10-22  Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/acl.c (copy_acl): Fix file name in comment.
15127
15128 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         Fix Tru64 problem with stdbool.h.
15131         * lib/stdbool.in.h (false, true):
15132         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15133         Don't declare as an enum in this situation; it runs afoul of Tru64.
15134         Problem reported by Steven M. Schweda in
15135         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15136
15137 2007-10-22  Eric Blake  <ebb9@byu.net>
15138
15139         Also wrap vf?printf.
15140         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15141         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15142         (xvprintf, xvfprintf): New functions.
15143
15144 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15145
15146         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15147         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15148
15149         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15150         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15151
15152 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15155         by Bruno Haible.
15156
15157 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15158
15159         * lib/getloadavg.c
15160         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15161         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15162
15163         * tests/test-i-ring.c: Work for C89.
15164
15165 2007-10-22  Bruno Haible  <bruno@clisp.org>
15166
15167         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15168         -1u, in preprocessor expression, so that we don't test for the bug
15169         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15171
15172 2007-10-22  Eric Blake  <ebb9@byu.net>
15173
15174         * tests/test-yesno.sh: Silence stderr during test.
15175
15176 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15177
15178         * modules/crypto/gc-camellia: New file.
15179
15180         * m4/gc-camellia.m4: New file.
15181
15182         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15183
15184         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15185
15186 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15187
15188         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15189         --help to stdout.  Reported by sms@antinode.org (Steven
15190         M. Schweda).
15191
15192 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15193
15194         * users.txt: Fix link to libksba.
15195
15196 2007-10-21  Ben Pfaff  <blp@gnu.org>
15197
15198         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15199         round.c roundf implementation that depends on floorf and ceilf to
15200         be tested unconditionally.
15201
15202 2007-10-21  Ben Pfaff  <blp@gnu.org>
15203
15204         * m4/check-libm-func.m4: Removed.
15205         * m4/check-math-lib.m4: New file.
15206         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15207         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15208         definition and lack of AC_LIBOBJ([roundf]).
15209         * m4/roundl.m4: Ditto, and similarly for roundl.
15210         * modules/round: Reference new m4 file.
15211         * modules/roundf: Ditto.
15212         * modules/roundl: Ditto.
15213         * tests/test-round2.c (main): Use ROUND instead of round.
15214         Bug report from Bruno Haible.
15215
15216 2007-10-21  Bruno Haible  <bruno@clisp.org>
15217
15218         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15219         context.
15220
15221 2007-10-21  Bruno Haible  <bruno@clisp.org>
15222
15223         * tests/test-wcwidth.c (main): Allow negative result for some control
15224         characters.
15225
15226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15227         Needed on OSF/1 5.1.
15228
15229 2007-10-21  Bruno Haible  <bruno@clisp.org>
15230
15231         * tests/test-floorf1.c: Include isnanf.h.
15232         (main): Use isnanf() instead of isnan().
15233         * tests/test-ceilf1.c: Include isnanf.h.
15234         (main): Use isnanf() instead of isnan().
15235         * tests/test-truncf1.c: Include isnanf.h.
15236         (main): Use isnanf() instead of isnan().
15237         * tests/test-roundf1.c: Include isnanf.h.
15238         (main): Use isnanf() instead of isnan().
15239
15240 2007-10-21  Eric Blake  <ebb9@byu.net>
15241
15242         * users.txt: Update URL for m4.
15243
15244 2007-10-21  Bruno Haible  <bruno@clisp.org>
15245
15246         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15247
15248 2007-10-21  Bruno Haible  <bruno@clisp.org>
15249
15250         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15251         Git's management files if the CVS files are not present.
15252
15253 2007-10-20  Bruno Haible  <bruno@clisp.org>
15254
15255         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15256         gcc-3.4.x.
15257
15258 2007-10-20  Ben Pfaff  <blp@gnu.org>
15259
15260         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15261         implementations.
15262         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15263         * lib/round.c: New file.
15264         * lib/roundf.c: New file.
15265         * lib/roundl.c: New file.
15266         * m4/round.m4: New file.
15267         * m4/roundf.m4: New file.
15268         * m4/roundl.m4: New file.
15269         * m4/check-libm-func-m4: New file.
15270         * modules/math: Replace round, roundf, roundl related @VARS@ in
15271         math.in.h.
15272         * modules/round: New file.
15273         * modules/round-tests: New file.
15274         * modules/roundf: New file.
15275         * modules/roundf-tests: New file.
15276         * modules/roundl: New file.
15277         * modules/roundl-tests: New file.
15278         * tests/test-round1.c: New file.
15279         * tests/test-round2.c: New file.
15280         * tests/test-roundf1.c: New file.
15281         * tests/test-roundf2.c: New file.
15282         * tests/test-roundl.c: New file.
15283         * doc/functions/round.texi: Mention round module.
15284         * doc/functions/roundf.texi: Mention roundf module.
15285         * doc/functions/roundl.texi: Mention roundl module.
15286         * MODULES.html.sh: Mention new modules.
15287         Thanks to Bruno Haible for suggestions.
15288
15289 2007-10-20  Jim Meyering  <meyering@redhat.com>
15290
15291         * lib/xprintf.c: Include <config.h> unconditionally.
15292
15293         Change xprintf's license to GPL.
15294         * modules/xprintf (License): s/LGPL/GPL/, since this module
15295         depends on modules (exit and exitfail) which are GPL.
15296         Suggestion from Bruno Haible.
15297
15298         xprintf fixes.
15299         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15300         Use a clearer diagnostic.
15301         Patch from Bruno Haible.
15302
15303 2007-10-20  Bruno Haible  <bruno@clisp.org>
15304
15305         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15306         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15308
15309 2007-10-20  Bruno Haible  <bruno@clisp.org>
15310
15311         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15312         precision in the comparison result > x - 1 or similar.
15313         * tests/test-ceilf2.c (correct_result_p): Likewise.
15314         * tests/test-truncf2.c (correct_result_p): Likewise.
15315         * tests/test-trunc2.c (correct_result_p): Likewise.
15316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15317
15318 2007-10-20  Bruno Haible  <bruno@clisp.org>
15319
15320         * modules/ceil: New file.
15321         * m4/ceil.m4: New file.
15322         * doc/functions/ceil.texi: Mention the 'ceil' module.
15323
15324 2007-10-20  Bruno Haible  <bruno@clisp.org>
15325
15326         * modules/floor: New file.
15327         * m4/floor.m4: New file.
15328         * doc/functions/floor.texi: Mention the 'floor' module.
15329
15330 2007-10-20  Bruno Haible  <bruno@clisp.org>
15331
15332         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15333         of %a.
15334         * modules/floorf-tests (Depends-on): Likewise.
15335         * modules/truncf-tests (Depends-on): Likewise.
15336         * modules/trunc-tests (Depends-on): Likewise.
15337         Reported by Ben Pfaff.
15338
15339 2007-10-19  Jim Meyering  <meyering@redhat.com>
15340
15341         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15342         Don't bother testing specific errno values.  Just test ferror.
15343
15344         New module: xprintf
15345         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15346
15347 2007-10-19  Bruno Haible  <bruno@clisp.org>
15348
15349         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15350         syntax.
15351         * modules/javaexec (Makefile.am): Likewise.
15352         * modules/relocatable-prog (Makefile.am): Likewise.
15353         Suggested by Jim Meyering.
15354
15355 2007-10-18  Bruno Haible  <bruno@clisp.org>
15356
15357         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15358         Reported by Jim Meyering.
15359
15360 2007-10-18  Eric Blake  <ebb9@byu.net>
15361
15362         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15363
15364 2007-10-18  Bruno Haible  <bruno@clisp.org>
15365
15366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15367         the format string into writable memory. Needed in Fortify conditions.
15368
15369 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15370             Bruno Haible  <bruno@clisp.org>
15371
15372         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15373         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15374         * modules/trim (Depends-on): Add mbchar.
15375         (configure.ac): Add gl_FUNC_MBRTOWC.
15376         (Makefile.am): Augment lib_SOURCES.
15377
15378 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15379
15380         Modify glob.c to use fstatat and dirfd, to simplify it.
15381         Suggested by Eric Blake.
15382         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15383         Don't include <stdbool.h>; not used.
15384         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15385         (link_exists_p): Simplify implementation, since we can now assume
15386         dirfd and fstatat.
15387         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15388
15389 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15390
15391         * gnulib-tool (func_get_dependencies): Fix sed script to
15392         match only tests.
15393
15394 2007-10-17  Bruno Haible  <bruno@clisp.org>
15395
15396         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15397         allow locale names without encoding suffix.
15398         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15399         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15400
15401 2007-10-16  Bruno Haible  <bruno@clisp.org>
15402
15403         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15404         * lib/getgroups.c (getgroups): Likewise.
15405         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15406
15407 2007-10-16  Bruno Haible  <bruno@clisp.org>
15408
15409         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15410         * modules/malloc-posix (License): Likewise.
15411         * modules/realloc-posix (License): Likewise.
15412         * modules/calloc-posix (License): Likewise.
15413         * modules/intprops (License): Change from GPL to LGPL, with
15414         Paul Eggert's approval.
15415
15416 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15417
15418         Merge glibc changes into lib/glob.c.
15419
15420         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15421         2007-10-15 04:59:03 UTC.  Here are the changes:
15422
15423         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15424
15425         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15426
15427         * lib/glob.c: Add some branch prediction throughout.
15428
15429         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15430
15431         [BZ #5103]
15432         * lib/glob.c (glob): Recognize patterns starting \/.
15433
15434         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15435
15436         [BZ #3996]
15437         * lib/glob.c (attribute_hidden): Define if not defined.
15438         (glob): Unescape dirname, filename or username when needed and not
15439         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15440         is NULL.  Handle unescaped [ in pattern without closing ].
15441         Don't pass GLOB_CHECK down to recursive glob for directories.
15442         (__glob_pattern_type): New function.
15443         (__glob_pattern_p): Implement using __glob_pattern_type.
15444         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15445         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15446         Remove unreachable code.
15447
15448         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15449
15450         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15451         explain why there are no leaks.
15452
15453         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15454
15455         [BZ #3253]
15456         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15457         time, rather allocate increasingly bigger arrays of pointers, if
15458         possible with alloca, if too large with malloc.
15459
15460 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15463         Problem reported by H.Merijn Brand in
15464         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15465         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15466         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15467
15468 2007-10-15  Bruno Haible  <bruno@clisp.org>
15469
15470         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15471         with explicit rpl_ prefix.
15472         * lib/fopen.c (fopen): Likewise.
15473         * lib/freopen.c (freopen): Likewise.
15474         * lib/iconv.c (iconv): Likewise.
15475         * lib/iconv_close.c (iconv_close): Likewise.
15476
15477 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15478
15479         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15480
15481 2007-10-15  Bruno Haible  <bruno@clisp.org>
15482
15483         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15484         <stddef.h> instead of <stdlib.h> since we only need NULL.
15485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15486
15487 2007-10-15  Bruno Haible  <bruno@clisp.org>
15488
15489         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15490         Replace paragraph talking about LIBOBJS.
15491         Reported by Colin Watson <cjwatson@debian.org>.
15492
15493 2007-10-15  Bruno Haible  <bruno@clisp.org>
15494
15495         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15496         <stdlib.h> before using NULL.
15497
15498 2007-10-15  Simon Josefsson  <simon@josefsson.org>
15499
15500         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15501         Reported by Albert Chin <china@thewrittenword.com>.
15502
15503 2007-10-14  Bruno Haible  <bruno@clisp.org>
15504
15505         * modules/iconv_open-utf-tests: New file.
15506         * tests/test-iconv-utf.c: New file.
15507
15508         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15509         * modules/iconv_open-utf: New file.
15510         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15511         (iconv, iconv_close): New declarations.
15512         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15513         be defined.
15514         (iconv_open): Add special handling of conversion between UTF-8 and
15515         UTF-{16,32}{BE,LE}.
15516         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15517         * lib/iconv_close.c: New file.
15518         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15519         gl_FUNC_ICONV_OPEN.
15520         (gl_FUNC_ICONV_OPEN): Use it.
15521         (gl_FUNC_ICONV_OPEN_UTF): New macro.
15522         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15523         and REPLACE_ICONV_UTF.
15524         * modules/iconv_open (Depends-on): Add c-strcase.
15525         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15526         ICONV_CONST.
15527         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15528
15529 2007-10-13  Albert Chin  <china@thewrittenword.com>
15530             Bruno Haible  <bruno@clisp.org>
15531
15532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15533         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15534
15535 2007-10-13  Bruno Haible  <bruno@clisp.org>
15536
15537         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15538         defined, use the ISO C99 inline semantics.
15539         * lib/argp.h (ARGP_EI): Likewise.
15540
15541 2007-10-13  Bruno Haible  <bruno@clisp.org>
15542
15543         Handle 'inline' change in gcc 4.3.0.
15544         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15545         argp_fmtstream_write, argp_fmtstream_set_lmargin,
15546         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15547         argp_fmtstream_point): Disable 'extern' declaration if the function
15548         definition is going to be provided inline.
15549         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15550         semantics, not the ISO C99 inline semantics.
15551         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15552         'extern' declaration if the function definition is going to be provided
15553         inline.
15554         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15555         the GNU C inline semantics, not the ISO C99 inline semantics. With
15556         GCC 4.2, avoid a warning.
15557
15558 2007-10-13  Bruno Haible  <bruno@clisp.org>
15559
15560         * lib/freading.h (freading): Enable the use of __freading for
15561         glibc >= 2.7.
15562         * lib/freading.c (freading): Likewise.
15563
15564 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15565
15566         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15567         "warning: C99 inline functions are not supported; using GNU89".
15568
15569 2007-10-12  Bruno Haible  <bruno@clisp.org>
15570
15571         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15572         of 2.
15573         * tests/test-ceilf2.c: New file.
15574         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15575
15576         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15577         * modules/ceilf-tests: Update.
15578
15579 2007-10-12  Bruno Haible  <bruno@clisp.org>
15580
15581         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15582         of 2.
15583         * tests/test-floorf2.c: New file.
15584         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15585
15586         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15587         * modules/floorf-tests: Update.
15588
15589 2007-10-12  Bruno Haible  <bruno@clisp.org>
15590
15591         * tests/test-trunc2.c: New file.
15592         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15593
15594         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15595         * modules/trunc-tests: Update.
15596
15597 2007-10-12  Bruno Haible  <bruno@clisp.org>
15598
15599         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15600         of 2.
15601         * tests/test-truncf2.c: New file.
15602         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15603
15604         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15605         * modules/truncf-tests: Update.
15606
15607 2007-10-11  Eric Blake  <ebb9@byu.net>
15608
15609         Don't claim strerror is broken on Interix.
15610         * doc/functions/strerror.texi (strerror): Known broken systems are
15611         now Solaris 8, and not Interix.
15612         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
15613         Interix on cross-compile.
15614         Reported by Martin Koeppe in
15615         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
15616
15617 2007-10-11  Bruno Haible  <bruno@clisp.org>
15618
15619         * modules/i-ring-tests: New file.
15620         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
15621         instead of assert.
15622
15623 2007-10-11  Bruno Haible  <bruno@clisp.org>
15624
15625         * modules/filenamecat-tests: New file.
15626         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
15627         * lib/filenamecat.c: Remove test code.
15628
15629 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
15632
15633         * lib/strerror.c: Include <string.h> always, to test interface,
15634         and to remove the need for the dummy.
15635         Include intprops.h to compute width instead of doing it ourselves
15636         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
15637         (strerror): Define it to return NULL if there's no system strerror.
15638         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
15639         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
15640         ancient pre-strerror Unix systems well any more.  Saying "unknown
15641         system error" is enough.
15642         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
15643         simpler strerror.c implementation.
15644         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
15645         Simplify the tests to reflect the simpler strerror implementation.
15646         * modules/strerror (Depends-on): Add intprops.
15647
15648 2007-10-09  Eric Blake  <ebb9@byu.net>
15649
15650         Silence test-fpending.
15651         * modules/fpending-tests (Files): Add wrapper script.
15652         * tests/test-fpending.sh: New file.
15653
15654 2007-10-09  Bruno Haible  <bruno@clisp.org>
15655
15656         * MODULES.html.sh (func_module): Don't create a hyperlink for
15657         function names like 'printf_frexp'.
15658         (Misc): Add crc, memxor.
15659         (Characteristics of floating types): New section.
15660         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
15661         isnanf-nolibm, signbit, trunc, truncf, truncl.
15662         (Enhancements for ISO C 99 functions): New subsection Input/output.
15663         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
15664         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
15665         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
15666         (Compatibility checks for POSIX:2001 functions): Add clock-time.
15667         (Enhancements for POSIX:2001 functions): Add chdir-long.
15668         (File system functions): Add areadlink, chdir-safer, read-file.
15669         Remove cycle-check.
15670         (File system as inode set): New section.
15671         (Date and time): Add gethrxtime.
15672         (Multithreading): Add openmp.
15673         (Internationalization functions): Add localename.
15674         (Unicode string functions): Add unistr/u*-mbsnlen.
15675         (Support for maintaining and releasing projects): Add git-version-gen.
15676         (Lone files): Remove directories.
15677
15678 2007-10-08  Ben Pfaff  <blp@gnu.org>
15679
15680         * lib/xmalloca.h: Fix typo in comment.
15681
15682 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15683
15684         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
15685         when avoiding problems with integer overflow.  Use a portable test
15686         instead.
15687
15688 2007-10-08  Simon Josefsson  <simon@josefsson.org>
15689
15690         * modules/dummy (License): Change to LGPLv2+.
15691         * modules/float (License): Likewise
15692         * modules/realloc (License): Likewise
15693         * modules/stdlib (License): Likewise
15694
15695 2007-10-07  Bruno Haible  <bruno@clisp.org>
15696
15697         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
15698         * floor.c (TWO_MANT_DIG): Likewise.
15699         * ceil.c (TWO_MANT_DIG): Likewise.
15700         Reported by Ben Pfaff.
15701
15702 2007-10-07  Bruno Haible  <bruno@clisp.org>
15703
15704         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
15705         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
15706         * lib/frexp.c (FUNC): Likewise.
15707         * lib/printf-frexp.h (printf_frexp): Likewise.
15708         * lib/printf-frexpl.h (printf_frexpl): Likewise.
15709         * lib/printf-frexp.c (FUNC): Likewise.
15710         Suggested by Jim Meyering.
15711
15712 2007-10-07  Jim Meyering  <meyering@redhat.com>
15713
15714         Make xnanosleep's integer overflow test more robust.
15715         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
15716         so that gcc-4.3.0 doesn't optimize away this test for overflow.
15717
15718 2007-10-07  Bruno Haible  <bruno@clisp.org>
15719
15720         * NEWS: Mention the license change.
15721
15722         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
15723         abbreviations in the modules files.
15724
15725         Change copyright notice from GPLv2+ to GPLv3+.
15726         * README: Change copyright notice.
15727         * MODULES.html.sh: Likewise.
15728         * build-aux/bootstrap.conf: Likewise.
15729         * build-aux/config.libpath: Likewise.
15730         * build-aux/csharpcomp.sh.in: Likewise.
15731         * build-aux/csharpexec.sh.in: Likewise.
15732         * build-aux/install-reloc: Likewise.
15733         * build-aux/javacomp.sh.in: Likewise.
15734         * build-aux/javaexec.sh.in: Likewise.
15735         * build-aux/ldd.sh.in: Likewise.
15736         * build-aux/reloc-ldflags: Likewise.
15737         * build-aux/relocatable.sh.in: Likewise.
15738         * build-aux/x-to-1.in: Likewise.
15739         * check-module: Likewise.
15740         * config/srclistvars.sh: Likewise.
15741         * gnulib-tool: Likewise.
15742         * lib/acl-internal.h: Likewise.
15743         * lib/acl.c: Likewise.
15744         * lib/acl.h: Likewise.
15745         * lib/acl_entries.c: Likewise.
15746         * lib/areadlink-with-size.c: Likewise.
15747         * lib/areadlink.c: Likewise.
15748         * lib/areadlink.h: Likewise.
15749         * lib/argmatch.c: Likewise.
15750         * lib/argmatch.h: Likewise.
15751         * lib/argp-ba.c: Likewise.
15752         * lib/argp-eexst.c: Likewise.
15753         * lib/argp-fmtstream.c: Likewise.
15754         * lib/argp-fmtstream.h: Likewise.
15755         * lib/argp-fs-xinl.c: Likewise.
15756         * lib/argp-help.c: Likewise.
15757         * lib/argp-namefrob.h: Likewise.
15758         * lib/argp-parse.c: Likewise.
15759         * lib/argp-pin.c: Likewise.
15760         * lib/argp-pv.c: Likewise.
15761         * lib/argp-pvh.c: Likewise.
15762         * lib/argp-xinl.c: Likewise.
15763         * lib/argp.h: Likewise.
15764         * lib/at-func.c: Likewise.
15765         * lib/atanl.c: Likewise.
15766         * lib/backupfile.c: Likewise.
15767         * lib/backupfile.h: Likewise.
15768         * lib/basename.c: Likewise.
15769         * lib/binary-io.h: Likewise.
15770         * lib/byteswap.in.h: Likewise.
15771         * lib/c-stack.c: Likewise.
15772         * lib/c-stack.h: Likewise.
15773         * lib/c-strcasestr.c: Likewise.
15774         * lib/c-strcasestr.h: Likewise.
15775         * lib/c-strstr.c: Likewise.
15776         * lib/c-strstr.h: Likewise.
15777         * lib/c-strtod.c: Likewise.
15778         * lib/calloc.c: Likewise.
15779         * lib/canon-host.c: Likewise.
15780         * lib/canon-host.h: Likewise.
15781         * lib/canonicalize-lgpl.c: Likewise.
15782         * lib/canonicalize.c: Likewise.
15783         * lib/canonicalize.h: Likewise.
15784         * lib/ceil.c: Likewise.
15785         * lib/ceilf.c: Likewise.
15786         * lib/ceill.c: Likewise.
15787         * lib/chdir-long.c: Likewise.
15788         * lib/chdir-long.h: Likewise.
15789         * lib/chdir-safer.c: Likewise.
15790         * lib/chdir-safer.h: Likewise.
15791         * lib/chown.c: Likewise.
15792         * lib/classpath.c: Likewise.
15793         * lib/classpath.h: Likewise.
15794         * lib/clean-temp.c: Likewise.
15795         * lib/clean-temp.h: Likewise.
15796         * lib/cloexec.c: Likewise.
15797         * lib/close-stream.c: Likewise.
15798         * lib/closein.c: Likewise.
15799         * lib/closein.h: Likewise.
15800         * lib/closeout.c: Likewise.
15801         * lib/closeout.h: Likewise.
15802         * lib/concat-filename.c: Likewise.
15803         * lib/copy-file.c: Likewise.
15804         * lib/copy-file.h: Likewise.
15805         * lib/count-one-bits.h: Likewise.
15806         * lib/crc.c: Likewise.
15807         * lib/crc.h: Likewise.
15808         * lib/creat-safer.c: Likewise.
15809         * lib/csharpcomp.c: Likewise.
15810         * lib/csharpcomp.h: Likewise.
15811         * lib/csharpexec.c: Likewise.
15812         * lib/csharpexec.h: Likewise.
15813         * lib/cycle-check.c: Likewise.
15814         * lib/cycle-check.h: Likewise.
15815         * lib/diacrit.c: Likewise.
15816         * lib/diacrit.h: Likewise.
15817         * lib/diffseq.h: Likewise.
15818         * lib/dirchownmod.c: Likewise.
15819         * lib/dirent.in.h: Likewise.
15820         * lib/dirfd.c: Likewise.
15821         * lib/dirfd.h: Likewise.
15822         * lib/dirname.c: Likewise.
15823         * lib/dirname.h: Likewise.
15824         * lib/dummy.c: Likewise.
15825         * lib/dup-safer.c: Likewise.
15826         * lib/dup2.c: Likewise.
15827         * lib/eealloc.h: Likewise.
15828         * lib/error.c: Likewise.
15829         * lib/error.h: Likewise.
15830         * lib/euidaccess.c: Likewise.
15831         * lib/exclude.c: Likewise.
15832         * lib/exclude.h: Likewise.
15833         * lib/execute.c: Likewise.
15834         * lib/execute.h: Likewise.
15835         * lib/exitfail.c: Likewise.
15836         * lib/exitfail.h: Likewise.
15837         * lib/expl.c: Likewise.
15838         * lib/fatal-signal.c: Likewise.
15839         * lib/fatal-signal.h: Likewise.
15840         * lib/fbufmode.c: Likewise.
15841         * lib/fbufmode.h: Likewise.
15842         * lib/fchdir.c: Likewise.
15843         * lib/fchmodat.c: Likewise.
15844         * lib/fchownat.c: Likewise.
15845         * lib/fcntl--.h: Likewise.
15846         * lib/fcntl-safer.h: Likewise.
15847         * lib/fcntl.in.h: Likewise.
15848         * lib/fd-safer.c: Likewise.
15849         * lib/fflush.c: Likewise.
15850         * lib/file-has-acl.c: Likewise.
15851         * lib/file-set.c: Likewise.
15852         * lib/file-type.c: Likewise.
15853         * lib/file-type.h: Likewise.
15854         * lib/fileblocks.c: Likewise.
15855         * lib/filemode.c: Likewise.
15856         * lib/filemode.h: Likewise.
15857         * lib/filename.h: Likewise.
15858         * lib/filenamecat.c: Likewise.
15859         * lib/filenamecat.h: Likewise.
15860         * lib/findprog.c: Likewise.
15861         * lib/findprog.h: Likewise.
15862         * lib/float.in.h: Likewise.
15863         * lib/floor.c: Likewise.
15864         * lib/floorf.c: Likewise.
15865         * lib/floorl.c: Likewise.
15866         * lib/fopen-safer.c: Likewise.
15867         * lib/fopen.c: Likewise.
15868         * lib/fpending.c: Likewise.
15869         * lib/fpending.h: Likewise.
15870         * lib/fprintf.c: Likewise.
15871         * lib/fprintftime.h: Likewise.
15872         * lib/fpucw.h: Likewise.
15873         * lib/fpurge.c: Likewise.
15874         * lib/fpurge.h: Likewise.
15875         * lib/freadable.c: Likewise.
15876         * lib/freadable.h: Likewise.
15877         * lib/freadahead.c: Likewise.
15878         * lib/freadahead.h: Likewise.
15879         * lib/freading.c: Likewise.
15880         * lib/freading.h: Likewise.
15881         * lib/free.c: Likewise.
15882         * lib/freopen.c: Likewise.
15883         * lib/frexp.c: Likewise.
15884         * lib/frexpl.c: Likewise.
15885         * lib/fseek.c: Likewise.
15886         * lib/fseterr.c: Likewise.
15887         * lib/fseterr.h: Likewise.
15888         * lib/fstatat.c: Likewise.
15889         * lib/fstrcmp.c: Likewise.
15890         * lib/fstrcmp.h: Likewise.
15891         * lib/fsusage.c: Likewise.
15892         * lib/fsusage.h: Likewise.
15893         * lib/ftell.c: Likewise.
15894         * lib/ftello.c: Likewise.
15895         * lib/fts-cycle.c: Likewise.
15896         * lib/fts.c: Likewise.
15897         * lib/fts_.h: Likewise.
15898         * lib/full-read.c: Likewise.
15899         * lib/full-read.h: Likewise.
15900         * lib/full-write.c: Likewise.
15901         * lib/full-write.h: Likewise.
15902         * lib/fwritable.c: Likewise.
15903         * lib/fwritable.h: Likewise.
15904         * lib/fwriteerror.c: Likewise.
15905         * lib/fwriteerror.h: Likewise.
15906         * lib/fwriting.c: Likewise.
15907         * lib/fwriting.h: Likewise.
15908         * lib/gcd.c: Likewise.
15909         * lib/gcd.h: Likewise.
15910         * lib/getcwd.c: Likewise.
15911         * lib/getdate.h: Likewise.
15912         * lib/getdate.y: Likewise.
15913         * lib/getdomainname.c: Likewise.
15914         * lib/getdomainname.h: Likewise.
15915         * lib/getgroups.c: Likewise.
15916         * lib/gethostname.c: Likewise.
15917         * lib/gethrxtime.c: Likewise.
15918         * lib/gethrxtime.h: Likewise.
15919         * lib/getloadavg.c: Likewise.
15920         * lib/getndelim2.c: Likewise.
15921         * lib/getndelim2.h: Likewise.
15922         * lib/getnline.c: Likewise.
15923         * lib/getnline.h: Likewise.
15924         * lib/getopt.c: Likewise.
15925         * lib/getopt.in.h: Likewise.
15926         * lib/getopt1.c: Likewise.
15927         * lib/getopt_int.h: Likewise.
15928         * lib/getpagesize.h: Likewise.
15929         * lib/getsubopt.c: Likewise.
15930         * lib/gettime.c: Likewise.
15931         * lib/getugroups.c: Likewise.
15932         * lib/getugroups.h: Likewise.
15933         * lib/getusershell.c: Likewise.
15934         * lib/gl_anyavltree_list1.h: Likewise.
15935         * lib/gl_anyavltree_list2.h: Likewise.
15936         * lib/gl_anyhash_list1.h: Likewise.
15937         * lib/gl_anyhash_list2.h: Likewise.
15938         * lib/gl_anylinked_list1.h: Likewise.
15939         * lib/gl_anylinked_list2.h: Likewise.
15940         * lib/gl_anyrbtree_list1.h: Likewise.
15941         * lib/gl_anyrbtree_list2.h: Likewise.
15942         * lib/gl_anytree_list1.h: Likewise.
15943         * lib/gl_anytree_list2.h: Likewise.
15944         * lib/gl_anytree_oset.h: Likewise.
15945         * lib/gl_anytreehash_list1.h: Likewise.
15946         * lib/gl_anytreehash_list2.h: Likewise.
15947         * lib/gl_array_list.c: Likewise.
15948         * lib/gl_array_list.h: Likewise.
15949         * lib/gl_array_oset.c: Likewise.
15950         * lib/gl_array_oset.h: Likewise.
15951         * lib/gl_avltree_list.c: Likewise.
15952         * lib/gl_avltree_list.h: Likewise.
15953         * lib/gl_avltree_oset.c: Likewise.
15954         * lib/gl_avltree_oset.h: Likewise.
15955         * lib/gl_avltreehash_list.c: Likewise.
15956         * lib/gl_avltreehash_list.h: Likewise.
15957         * lib/gl_carray_list.c: Likewise.
15958         * lib/gl_carray_list.h: Likewise.
15959         * lib/gl_linked_list.c: Likewise.
15960         * lib/gl_linked_list.h: Likewise.
15961         * lib/gl_linkedhash_list.c: Likewise.
15962         * lib/gl_linkedhash_list.h: Likewise.
15963         * lib/gl_list.c: Likewise.
15964         * lib/gl_list.h: Likewise.
15965         * lib/gl_oset.c: Likewise.
15966         * lib/gl_oset.h: Likewise.
15967         * lib/gl_rbtree_list.c: Likewise.
15968         * lib/gl_rbtree_list.h: Likewise.
15969         * lib/gl_rbtree_oset.c: Likewise.
15970         * lib/gl_rbtree_oset.h: Likewise.
15971         * lib/gl_rbtreehash_list.c: Likewise.
15972         * lib/gl_rbtreehash_list.h: Likewise.
15973         * lib/gl_sublist.c: Likewise.
15974         * lib/gl_sublist.h: Likewise.
15975         * lib/group-member.c: Likewise.
15976         * lib/group-member.h: Likewise.
15977         * lib/hard-locale.c: Likewise.
15978         * lib/hard-locale.h: Likewise.
15979         * lib/hash-pjw.c: Likewise.
15980         * lib/hash-pjw.h: Likewise.
15981         * lib/hash-triple.c: Likewise.
15982         * lib/hash.c: Likewise.
15983         * lib/hash.h: Likewise.
15984         * lib/human.c: Likewise.
15985         * lib/human.h: Likewise.
15986         * lib/i-ring.c: Likewise.
15987         * lib/i-ring.h: Likewise.
15988         * lib/idcache.c: Likewise.
15989         * lib/imaxabs.c: Likewise.
15990         * lib/imaxdiv.c: Likewise.
15991         * lib/inet_pton.c: Likewise.
15992         * lib/inet_pton.h: Likewise.
15993         * lib/intprops.h: Likewise.
15994         * lib/inttostr.c: Likewise.
15995         * lib/inttostr.h: Likewise.
15996         * lib/inttypes.in.h: Likewise.
15997         * lib/isapipe.c: Likewise.
15998         * lib/isdir.c: Likewise.
15999         * lib/isnan.c: Likewise.
16000         * lib/isnan.h: Likewise.
16001         * lib/isnanf.c: Likewise.
16002         * lib/isnanf.h: Likewise.
16003         * lib/isnanl-nolibm.h: Likewise.
16004         * lib/isnanl.c: Likewise.
16005         * lib/isnanl.h: Likewise.
16006         * lib/javacomp.c: Likewise.
16007         * lib/javacomp.h: Likewise.
16008         * lib/javaexec.c: Likewise.
16009         * lib/javaexec.h: Likewise.
16010         * lib/javaversion.c: Likewise.
16011         * lib/javaversion.h: Likewise.
16012         * lib/javaversion.java: Likewise.
16013         * lib/lbrkprop.h: Likewise.
16014         * lib/lchmod.h: Likewise.
16015         * lib/lchown.c: Likewise.
16016         * lib/ldexpl.c: Likewise.
16017         * lib/linebreak.c: Likewise.
16018         * lib/linebreak.h: Likewise.
16019         * lib/linebuffer.c: Likewise.
16020         * lib/linebuffer.h: Likewise.
16021         * lib/locale.in.h: Likewise.
16022         * lib/logl.c: Likewise.
16023         * lib/long-options.c: Likewise.
16024         * lib/long-options.h: Likewise.
16025         * lib/lstat.c: Likewise.
16026         * lib/lstat.h: Likewise.
16027         * lib/math.in.h: Likewise.
16028         * lib/mbchar.c: Likewise.
16029         * lib/mbchar.h: Likewise.
16030         * lib/mbfile.h: Likewise.
16031         * lib/mbiter.h: Likewise.
16032         * lib/mbscasecmp.c: Likewise.
16033         * lib/mbscasestr.c: Likewise.
16034         * lib/mbschr.c: Likewise.
16035         * lib/mbscspn.c: Likewise.
16036         * lib/mbslen.c: Likewise.
16037         * lib/mbsncasecmp.c: Likewise.
16038         * lib/mbsnlen.c: Likewise.
16039         * lib/mbspbrk.c: Likewise.
16040         * lib/mbspcasecmp.c: Likewise.
16041         * lib/mbsrchr.c: Likewise.
16042         * lib/mbssep.c: Likewise.
16043         * lib/mbsspn.c: Likewise.
16044         * lib/mbsstr.c: Likewise.
16045         * lib/mbstok_r.c: Likewise.
16046         * lib/mbswidth.c: Likewise.
16047         * lib/mbswidth.h: Likewise.
16048         * lib/mbuiter.h: Likewise.
16049         * lib/memcasecmp.c: Likewise.
16050         * lib/memcasecmp.h: Likewise.
16051         * lib/memchr.c: Likewise.
16052         * lib/memcmp.c: Likewise.
16053         * lib/memcoll.c: Likewise.
16054         * lib/memcoll.h: Likewise.
16055         * lib/memcpy.c: Likewise.
16056         * lib/memrchr.c: Likewise.
16057         * lib/mkancesdirs.c: Likewise.
16058         * lib/mkdir-p.c: Likewise.
16059         * lib/mkdir-p.h: Likewise.
16060         * lib/mkdir.c: Likewise.
16061         * lib/mkdirat.c: Likewise.
16062         * lib/mkdtemp.c: Likewise.
16063         * lib/mkstemp-safer.c: Likewise.
16064         * lib/mkstemp.c: Likewise.
16065         * lib/modechange.c: Likewise.
16066         * lib/modechange.h: Likewise.
16067         * lib/mountlist.c: Likewise.
16068         * lib/mountlist.h: Likewise.
16069         * lib/mpsort.c: Likewise.
16070         * lib/nanosleep.c: Likewise.
16071         * lib/obstack.c: Likewise.
16072         * lib/obstack.h: Likewise.
16073         * lib/open-safer.c: Likewise.
16074         * lib/open.c: Likewise.
16075         * lib/openat-die.c: Likewise.
16076         * lib/openat-priv.h: Likewise.
16077         * lib/openat-proc.c: Likewise.
16078         * lib/openat.c: Likewise.
16079         * lib/openat.h: Likewise.
16080         * lib/pagealign_alloc.c: Likewise.
16081         * lib/pagealign_alloc.h: Likewise.
16082         * lib/physmem.c: Likewise.
16083         * lib/physmem.h: Likewise.
16084         * lib/pipe-safer.c: Likewise.
16085         * lib/pipe.c: Likewise.
16086         * lib/pipe.h: Likewise.
16087         * lib/posixtm.c: Likewise.
16088         * lib/posixtm.h: Likewise.
16089         * lib/posixver.c: Likewise.
16090         * lib/printf-frexp.c: Likewise.
16091         * lib/printf-frexp.h: Likewise.
16092         * lib/printf-frexpl.c: Likewise.
16093         * lib/printf-frexpl.h: Likewise.
16094         * lib/printf.c: Likewise.
16095         * lib/progname.c: Likewise.
16096         * lib/progname.h: Likewise.
16097         * lib/progreloc.c: Likewise.
16098         * lib/putenv.c: Likewise.
16099         * lib/quote.c: Likewise.
16100         * lib/quote.h: Likewise.
16101         * lib/quotearg.c: Likewise.
16102         * lib/quotearg.h: Likewise.
16103         * lib/raise.c: Likewise.
16104         * lib/readline.c: Likewise.
16105         * lib/readline.h: Likewise.
16106         * lib/readlink.c: Likewise.
16107         * lib/readtokens.c: Likewise.
16108         * lib/readtokens.h: Likewise.
16109         * lib/readtokens0.c: Likewise.
16110         * lib/readtokens0.h: Likewise.
16111         * lib/readutmp.c: Likewise.
16112         * lib/readutmp.h: Likewise.
16113         * lib/realloc.c: Likewise.
16114         * lib/relocwrapper.c: Likewise.
16115         * lib/rename-dest-slash.c: Likewise.
16116         * lib/rename.c: Likewise.
16117         * lib/rmdir.c: Likewise.
16118         * lib/rpmatch.c: Likewise.
16119         * lib/safe-read.c: Likewise.
16120         * lib/safe-read.h: Likewise.
16121         * lib/safe-write.c: Likewise.
16122         * lib/safe-write.h: Likewise.
16123         * lib/same-inode.h: Likewise.
16124         * lib/same.c: Likewise.
16125         * lib/same.h: Likewise.
16126         * lib/save-cwd.c: Likewise.
16127         * lib/save-cwd.h: Likewise.
16128         * lib/savedir.c: Likewise.
16129         * lib/savedir.h: Likewise.
16130         * lib/savewd.c: Likewise.
16131         * lib/savewd.h: Likewise.
16132         * lib/search.in.h: Likewise.
16133         * lib/setenv.c: Likewise.
16134         * lib/setenv.h: Likewise.
16135         * lib/settime.c: Likewise.
16136         * lib/sh-quote.c: Likewise.
16137         * lib/sh-quote.h: Likewise.
16138         * lib/sig2str.c: Likewise.
16139         * lib/sig2str.h: Likewise.
16140         * lib/signal.in.h: Likewise.
16141         * lib/signbitd.c: Likewise.
16142         * lib/signbitf.c: Likewise.
16143         * lib/signbitl.c: Likewise.
16144         * lib/sigprocmask.c: Likewise.
16145         * lib/sincosl.c: Likewise.
16146         * lib/sleep.c: Likewise.
16147         * lib/sprintf.c: Likewise.
16148         * lib/sqrtl.c: Likewise.
16149         * lib/stat-time.h: Likewise.
16150         * lib/stdio--.h: Likewise.
16151         * lib/stdio-safer.h: Likewise.
16152         * lib/stdlib--.h: Likewise.
16153         * lib/stdlib-safer.h: Likewise.
16154         * lib/stdlib.in.h: Likewise.
16155         * lib/stpcpy.c: Likewise.
16156         * lib/stpncpy.c: Likewise.
16157         * lib/strchrnul.c: Likewise.
16158         * lib/strcspn.c: Likewise.
16159         * lib/strerror.c: Likewise.
16160         * lib/strftime.c: Likewise.
16161         * lib/strftime.h: Likewise.
16162         * lib/striconveh.c: Likewise.
16163         * lib/striconveh.h: Likewise.
16164         * lib/striconveha.c: Likewise.
16165         * lib/striconveha.h: Likewise.
16166         * lib/stripslash.c: Likewise.
16167         * lib/strnlen1.c: Likewise.
16168         * lib/strnlen1.h: Likewise.
16169         * lib/strtod.c: Likewise.
16170         * lib/strtoimax.c: Likewise.
16171         * lib/strtok_r.c: Likewise.
16172         * lib/strtol.c: Likewise.
16173         * lib/strtoll.c: Likewise.
16174         * lib/strtoul.c: Likewise.
16175         * lib/strtoull.c: Likewise.
16176         * lib/sysexits.in.h: Likewise.
16177         * lib/tempname.c: Likewise.
16178         * lib/tempname.h: Likewise.
16179         * lib/timespec.h: Likewise.
16180         * lib/tls.c: Likewise.
16181         * lib/tls.h: Likewise.
16182         * lib/tmpdir.c: Likewise.
16183         * lib/tmpdir.h: Likewise.
16184         * lib/tmpfile-safer.c: Likewise.
16185         * lib/tmpfile.c: Likewise.
16186         * lib/trigl.c: Likewise.
16187         * lib/trigl.h: Likewise.
16188         * lib/trim.c: Likewise.
16189         * lib/trim.h: Likewise.
16190         * lib/trunc.c: Likewise.
16191         * lib/truncf.c: Likewise.
16192         * lib/truncl.c: Likewise.
16193         * lib/tsearch.c: Likewise.
16194         * lib/unicodeio.c: Likewise.
16195         * lib/unicodeio.h: Likewise.
16196         * lib/unistd--.h: Likewise.
16197         * lib/unistd-safer.h: Likewise.
16198         * lib/unistdio/ulc-fprintf.c: Likewise.
16199         * lib/unistdio/ulc-vfprintf.c: Likewise.
16200         * lib/unlinkdir.c: Likewise.
16201         * lib/unlinkdir.h: Likewise.
16202         * lib/unlocked-io.h: Likewise.
16203         * lib/unsetenv.c: Likewise.
16204         * lib/userspec.c: Likewise.
16205         * lib/utime.c: Likewise.
16206         * lib/utimecmp.c: Likewise.
16207         * lib/utimecmp.h: Likewise.
16208         * lib/utimens.c: Likewise.
16209         * lib/verify.h: Likewise.
16210         * lib/verror.c: Likewise.
16211         * lib/verror.h: Likewise.
16212         * lib/version-etc-fsf.c: Likewise.
16213         * lib/version-etc.c: Likewise.
16214         * lib/version-etc.h: Likewise.
16215         * lib/vfprintf.c: Likewise.
16216         * lib/vprintf.c: Likewise.
16217         * lib/vsprintf.c: Likewise.
16218         * lib/w32spawn.h: Likewise.
16219         * lib/wait-process.c: Likewise.
16220         * lib/wait-process.h: Likewise.
16221         * lib/wcwidth.c: Likewise.
16222         * lib/write-any-file.c: Likewise.
16223         * lib/xalloc-die.c: Likewise.
16224         * lib/xalloc.h: Likewise.
16225         * lib/xasprintf.c: Likewise.
16226         * lib/xgetcwd.c: Likewise.
16227         * lib/xgetcwd.h: Likewise.
16228         * lib/xgetdomainname.c: Likewise.
16229         * lib/xgetdomainname.h: Likewise.
16230         * lib/xgethostname.c: Likewise.
16231         * lib/xmalloc.c: Likewise.
16232         * lib/xmalloca.c: Likewise.
16233         * lib/xmalloca.h: Likewise.
16234         * lib/xmemcoll.c: Likewise.
16235         * lib/xnanosleep.c: Likewise.
16236         * lib/xreadlink.c: Likewise.
16237         * lib/xreadlink.h: Likewise.
16238         * lib/xsetenv.c: Likewise.
16239         * lib/xsetenv.h: Likewise.
16240         * lib/xstriconv.c: Likewise.
16241         * lib/xstriconv.h: Likewise.
16242         * lib/xstrndup.c: Likewise.
16243         * lib/xstrndup.h: Likewise.
16244         * lib/xstrtod.c: Likewise.
16245         * lib/xstrtod.h: Likewise.
16246         * lib/xstrtol-error.c: Likewise.
16247         * lib/xstrtol.c: Likewise.
16248         * lib/xstrtol.h: Likewise.
16249         * lib/xtime.h: Likewise.
16250         * lib/xvasprintf.c: Likewise.
16251         * lib/xvasprintf.h: Likewise.
16252         * lib/yesno.c: Likewise.
16253         * lib/yesno.h: Likewise.
16254         * posix-modules: Likewise.
16255         * tests/test-alloca-opt.c: Likewise.
16256         * tests/test-arcfour.c: Likewise.
16257         * tests/test-arctwo.c: Likewise.
16258         * tests/test-argmatch.c: Likewise.
16259         * tests/test-argp-2.sh: Likewise.
16260         * tests/test-argp.c: Likewise.
16261         * tests/test-arpa_inet.c: Likewise.
16262         * tests/test-array_list.c: Likewise.
16263         * tests/test-array_oset.c: Likewise.
16264         * tests/test-atexit.c: Likewise.
16265         * tests/test-avltree_list.c: Likewise.
16266         * tests/test-avltree_oset.c: Likewise.
16267         * tests/test-avltreehash_list.c: Likewise.
16268         * tests/test-base64.c: Likewise.
16269         * tests/test-binary-io.c: Likewise.
16270         * tests/test-byteswap.c: Likewise.
16271         * tests/test-c-ctype.c: Likewise.
16272         * tests/test-c-strcasecmp.c: Likewise.
16273         * tests/test-c-strcasestr.c: Likewise.
16274         * tests/test-c-strncasecmp.c: Likewise.
16275         * tests/test-c-strstr.c: Likewise.
16276         * tests/test-canonicalize-lgpl.c: Likewise.
16277         * tests/test-canonicalize.c: Likewise.
16278         * tests/test-carray_list.c: Likewise.
16279         * tests/test-ceilf.c: Likewise.
16280         * tests/test-ceill.c: Likewise.
16281         * tests/test-count-one-bits.c: Likewise.
16282         * tests/test-crc.c: Likewise.
16283         * tests/test-dirname.c: Likewise.
16284         * tests/test-fbufmode.c: Likewise.
16285         * tests/test-fcntl.c: Likewise.
16286         * tests/test-fflush.c: Likewise.
16287         * tests/test-floorf.c: Likewise.
16288         * tests/test-floorl.c: Likewise.
16289         * tests/test-fopen.c: Likewise.
16290         * tests/test-fprintf-posix.c: Likewise.
16291         * tests/test-fprintf-posix.h: Likewise.
16292         * tests/test-fpurge.c: Likewise.
16293         * tests/test-freadable.c: Likewise.
16294         * tests/test-freadahead.c: Likewise.
16295         * tests/test-freading.c: Likewise.
16296         * tests/test-freopen.c: Likewise.
16297         * tests/test-frexp.c: Likewise.
16298         * tests/test-frexpl.c: Likewise.
16299         * tests/test-fseek.c: Likewise.
16300         * tests/test-fseeko.c: Likewise.
16301         * tests/test-fseterr.c: Likewise.
16302         * tests/test-fstrcmp.c: Likewise.
16303         * tests/test-ftell.c: Likewise.
16304         * tests/test-ftello.c: Likewise.
16305         * tests/test-fwritable.c: Likewise.
16306         * tests/test-fwriting.c: Likewise.
16307         * tests/test-getaddrinfo.c: Likewise.
16308         * tests/test-getpass.c: Likewise.
16309         * tests/test-gettimeofday.c: Likewise.
16310         * tests/test-hmac-md5.c: Likewise.
16311         * tests/test-hmac-sha1.c: Likewise.
16312         * tests/test-iconv.c: Likewise.
16313         * tests/test-iconvme.c: Likewise.
16314         * tests/test-inttypes.c: Likewise.
16315         * tests/test-isnan.c: Likewise.
16316         * tests/test-isnanf.c: Likewise.
16317         * tests/test-isnanl-nolibm.c: Likewise.
16318         * tests/test-isnanl.c: Likewise.
16319         * tests/test-isnanl.h: Likewise.
16320         * tests/test-ldexpl.c: Likewise.
16321         * tests/test-linked_list.c: Likewise.
16322         * tests/test-linkedhash_list.c: Likewise.
16323         * tests/test-locale.c: Likewise.
16324         * tests/test-localename.c: Likewise.
16325         * tests/test-lock.c: Likewise.
16326         * tests/test-lseek.c: Likewise.
16327         * tests/test-malloca.c: Likewise.
16328         * tests/test-math.c: Likewise.
16329         * tests/test-mbscasecmp.c: Likewise.
16330         * tests/test-mbscasestr1.c: Likewise.
16331         * tests/test-mbscasestr2.c: Likewise.
16332         * tests/test-mbscasestr3.c: Likewise.
16333         * tests/test-mbscasestr4.c: Likewise.
16334         * tests/test-mbschr.c: Likewise.
16335         * tests/test-mbscspn.c: Likewise.
16336         * tests/test-mbsncasecmp.c: Likewise.
16337         * tests/test-mbspbrk.c: Likewise.
16338         * tests/test-mbspcasecmp.c: Likewise.
16339         * tests/test-mbsrchr.c: Likewise.
16340         * tests/test-mbsspn.c: Likewise.
16341         * tests/test-mbsstr1.c: Likewise.
16342         * tests/test-mbsstr2.c: Likewise.
16343         * tests/test-mbsstr3.c: Likewise.
16344         * tests/test-md5.c: Likewise.
16345         * tests/test-memmem.c: Likewise.
16346         * tests/test-netinet_in.c: Likewise.
16347         * tests/test-open.c: Likewise.
16348         * tests/test-printf-frexp.c: Likewise.
16349         * tests/test-printf-frexpl.c: Likewise.
16350         * tests/test-printf-posix.c: Likewise.
16351         * tests/test-printf-posix.h: Likewise.
16352         * tests/test-rbtree_list.c: Likewise.
16353         * tests/test-rbtree_oset.c: Likewise.
16354         * tests/test-rbtreehash_list.c: Likewise.
16355         * tests/test-read-file.c: Likewise.
16356         * tests/test-rijndael.c: Likewise.
16357         * tests/test-search.c: Likewise.
16358         * tests/test-signbit.c: Likewise.
16359         * tests/test-sleep.c: Likewise.
16360         * tests/test-snprintf-posix.c: Likewise.
16361         * tests/test-snprintf-posix.h: Likewise.
16362         * tests/test-snprintf.c: Likewise.
16363         * tests/test-sprintf-posix.c: Likewise.
16364         * tests/test-sprintf-posix.h: Likewise.
16365         * tests/test-stat-time.c: Likewise.
16366         * tests/test-stdbool.c: Likewise.
16367         * tests/test-stdint.c: Likewise.
16368         * tests/test-stdio.c: Likewise.
16369         * tests/test-stdlib.c: Likewise.
16370         * tests/test-stpncpy.c: Likewise.
16371         * tests/test-strcasestr.c: Likewise.
16372         * tests/test-striconv.c: Likewise.
16373         * tests/test-striconveh.c: Likewise.
16374         * tests/test-striconveha.c: Likewise.
16375         * tests/test-string.c: Likewise.
16376         * tests/test-sys_select.c: Likewise.
16377         * tests/test-sys_socket.c: Likewise.
16378         * tests/test-sys_stat.c: Likewise.
16379         * tests/test-sys_time.c: Likewise.
16380         * tests/test-sysexits.c: Likewise.
16381         * tests/test-time.c: Likewise.
16382         * tests/test-tls.c: Likewise.
16383         * tests/test-trunc.c: Likewise.
16384         * tests/test-truncf.c: Likewise.
16385         * tests/test-truncl.c: Likewise.
16386         * tests/test-unistd.c: Likewise.
16387         * tests/test-vasnprintf-posix.c: Likewise.
16388         * tests/test-vasnprintf-posix2.c: Likewise.
16389         * tests/test-vasnprintf.c: Likewise.
16390         * tests/test-vasprintf-posix.c: Likewise.
16391         * tests/test-vasprintf.c: Likewise.
16392         * tests/test-verify.c: Likewise.
16393         * tests/test-vfprintf-posix.c: Likewise.
16394         * tests/test-vprintf-posix.c: Likewise.
16395         * tests/test-vsnprintf-posix.c: Likewise.
16396         * tests/test-vsnprintf.c: Likewise.
16397         * tests/test-vsprintf-posix.c: Likewise.
16398         * tests/test-wchar.c: Likewise.
16399         * tests/test-wctype.c: Likewise.
16400         * tests/test-wcwidth.c: Likewise.
16401         * tests/test-xstrtol.c: Likewise.
16402         * tests/test-xvasprintf.c: Likewise.
16403         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16404         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16405         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16406         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16407         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16408         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16409         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16410         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16411         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16412         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16413         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16414         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16415         * tests/uniname/test-uninames.c: Likewise.
16416         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16417         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16418         * tests/unistdio/test-u16-printf1.h: Likewise.
16419         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16420         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16421         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16422         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16423         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16424         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16425         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16426         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16427         * tests/unistdio/test-u32-printf1.h: Likewise.
16428         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16429         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16430         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16431         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16432         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16433         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16434         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16435         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16436         * tests/unistdio/test-u8-printf1.h: Likewise.
16437         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16438         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16439         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16440         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16441         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16442         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16443         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16444         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16445         * tests/unistdio/test-ulc-printf1.h: Likewise.
16446         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16447         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16448         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16449         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16450         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16451         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16452         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16453         * tests/uniwidth/test-u16-width.c: Likewise.
16454         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16455         * tests/uniwidth/test-u32-width.c: Likewise.
16456         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16457         * tests/uniwidth/test-u8-width.c: Likewise.
16458         * tests/uniwidth/test-uc_width.c: Likewise.
16459         * config/srclist-update: Likewise.
16460         (fixlicense): Update to GPLv3+.
16461
16462         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16463         * tests/test-tsearch.c: Change copyright notice.
16464
16465         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16466         * lib/c-strcaseeq.h: Change copyright notice.
16467         * lib/streq.h: Likewise.
16468         * lib/uniconv.h: Likewise.
16469         * lib/uniconv/u-conv-from-enc.h: Likewise.
16470         * lib/uniconv/u-conv-to-enc.h: Likewise.
16471         * lib/uniconv/u-strconv-from-enc.h: Likewise.
16472         * lib/uniconv/u-strconv-to-enc.h: Likewise.
16473         * lib/uniconv/u16-conv-from-enc.c: Likewise.
16474         * lib/uniconv/u16-conv-to-enc.c: Likewise.
16475         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16476         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16477         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16478         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16479         * lib/uniconv/u32-conv-from-enc.c: Likewise.
16480         * lib/uniconv/u32-conv-to-enc.c: Likewise.
16481         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16482         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16483         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16484         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16485         * lib/uniconv/u8-conv-from-enc.c: Likewise.
16486         * lib/uniconv/u8-conv-to-enc.c: Likewise.
16487         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16488         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16489         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16490         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16491         * lib/uniname.h: Likewise.
16492         * lib/uniname/uniname.c: Likewise.
16493         * lib/unistdio.h: Likewise.
16494         * lib/unistdio/u-asnprintf.h: Likewise.
16495         * lib/unistdio/u-asprintf.h: Likewise.
16496         * lib/unistdio/u-printf-args.c: Likewise.
16497         * lib/unistdio/u-printf-args.h: Likewise.
16498         * lib/unistdio/u-printf-parse.h: Likewise.
16499         * lib/unistdio/u-snprintf.h: Likewise.
16500         * lib/unistdio/u-sprintf.h: Likewise.
16501         * lib/unistdio/u-vasprintf.h: Likewise.
16502         * lib/unistdio/u-vsnprintf.h: Likewise.
16503         * lib/unistdio/u-vsprintf.h: Likewise.
16504         * lib/unistdio/u16-asnprintf.c: Likewise.
16505         * lib/unistdio/u16-asprintf.c: Likewise.
16506         * lib/unistdio/u16-printf-parse.c: Likewise.
16507         * lib/unistdio/u16-snprintf.c: Likewise.
16508         * lib/unistdio/u16-sprintf.c: Likewise.
16509         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16510         * lib/unistdio/u16-u16-asprintf.c: Likewise.
16511         * lib/unistdio/u16-u16-snprintf.c: Likewise.
16512         * lib/unistdio/u16-u16-sprintf.c: Likewise.
16513         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16514         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16515         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16516         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16517         * lib/unistdio/u16-vasnprintf.c: Likewise.
16518         * lib/unistdio/u16-vasprintf.c: Likewise.
16519         * lib/unistdio/u16-vsnprintf.c: Likewise.
16520         * lib/unistdio/u16-vsprintf.c: Likewise.
16521         * lib/unistdio/u32-asnprintf.c: Likewise.
16522         * lib/unistdio/u32-asprintf.c: Likewise.
16523         * lib/unistdio/u32-printf-parse.c: Likewise.
16524         * lib/unistdio/u32-snprintf.c: Likewise.
16525         * lib/unistdio/u32-sprintf.c: Likewise.
16526         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16527         * lib/unistdio/u32-u32-asprintf.c: Likewise.
16528         * lib/unistdio/u32-u32-snprintf.c: Likewise.
16529         * lib/unistdio/u32-u32-sprintf.c: Likewise.
16530         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16531         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16532         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16533         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16534         * lib/unistdio/u32-vasnprintf.c: Likewise.
16535         * lib/unistdio/u32-vasprintf.c: Likewise.
16536         * lib/unistdio/u32-vsnprintf.c: Likewise.
16537         * lib/unistdio/u32-vsprintf.c: Likewise.
16538         * lib/unistdio/u8-asnprintf.c: Likewise.
16539         * lib/unistdio/u8-asprintf.c: Likewise.
16540         * lib/unistdio/u8-printf-parse.c: Likewise.
16541         * lib/unistdio/u8-snprintf.c: Likewise.
16542         * lib/unistdio/u8-sprintf.c: Likewise.
16543         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16544         * lib/unistdio/u8-u8-asprintf.c: Likewise.
16545         * lib/unistdio/u8-u8-snprintf.c: Likewise.
16546         * lib/unistdio/u8-u8-sprintf.c: Likewise.
16547         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16548         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16549         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16550         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16551         * lib/unistdio/u8-vasnprintf.c: Likewise.
16552         * lib/unistdio/u8-vasprintf.c: Likewise.
16553         * lib/unistdio/u8-vsnprintf.c: Likewise.
16554         * lib/unistdio/u8-vsprintf.c: Likewise.
16555         * lib/unistdio/ulc-asnprintf.c: Likewise.
16556         * lib/unistdio/ulc-asprintf.c: Likewise.
16557         * lib/unistdio/ulc-printf-parse.c: Likewise.
16558         * lib/unistdio/ulc-snprintf.c: Likewise.
16559         * lib/unistdio/ulc-sprintf.c: Likewise.
16560         * lib/unistdio/ulc-vasnprintf.c: Likewise.
16561         * lib/unistdio/ulc-vasprintf.c: Likewise.
16562         * lib/unistdio/ulc-vsnprintf.c: Likewise.
16563         * lib/unistdio/ulc-vsprintf.c: Likewise.
16564         * lib/unistr.h: Likewise.
16565         * lib/unistr/u-cpy-alloc.h: Likewise.
16566         * lib/unistr/u-cpy.h: Likewise.
16567         * lib/unistr/u-endswith.h: Likewise.
16568         * lib/unistr/u-move.h: Likewise.
16569         * lib/unistr/u-set.h: Likewise.
16570         * lib/unistr/u-startswith.h: Likewise.
16571         * lib/unistr/u-stpcpy.h: Likewise.
16572         * lib/unistr/u-stpncpy.h: Likewise.
16573         * lib/unistr/u-strcat.h: Likewise.
16574         * lib/unistr/u-strcpy.h: Likewise.
16575         * lib/unistr/u-strcspn.h: Likewise.
16576         * lib/unistr/u-strdup.h: Likewise.
16577         * lib/unistr/u-strlen.h: Likewise.
16578         * lib/unistr/u-strncat.h: Likewise.
16579         * lib/unistr/u-strncpy.h: Likewise.
16580         * lib/unistr/u-strnlen.h: Likewise.
16581         * lib/unistr/u-strpbrk.h: Likewise.
16582         * lib/unistr/u-strspn.h: Likewise.
16583         * lib/unistr/u-strstr.h: Likewise.
16584         * lib/unistr/u-strtok.h: Likewise.
16585         * lib/unistr/u16-check.c: Likewise.
16586         * lib/unistr/u16-chr.c: Likewise.
16587         * lib/unistr/u16-cmp.c: Likewise.
16588         * lib/unistr/u16-cpy-alloc.c: Likewise.
16589         * lib/unistr/u16-cpy.c: Likewise.
16590         * lib/unistr/u16-endswith.c: Likewise.
16591         * lib/unistr/u16-mblen.c: Likewise.
16592         * lib/unistr/u16-mbsnlen.c: Likewise.
16593         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16594         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16595         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16596         * lib/unistr/u16-mbtouc.c: Likewise.
16597         * lib/unistr/u16-mbtoucr.c: Likewise.
16598         * lib/unistr/u16-move.c: Likewise.
16599         * lib/unistr/u16-next.c: Likewise.
16600         * lib/unistr/u16-prev.c: Likewise.
16601         * lib/unistr/u16-set.c: Likewise.
16602         * lib/unistr/u16-startswith.c: Likewise.
16603         * lib/unistr/u16-stpcpy.c: Likewise.
16604         * lib/unistr/u16-stpncpy.c: Likewise.
16605         * lib/unistr/u16-strcat.c: Likewise.
16606         * lib/unistr/u16-strchr.c: Likewise.
16607         * lib/unistr/u16-strcmp.c: Likewise.
16608         * lib/unistr/u16-strcpy.c: Likewise.
16609         * lib/unistr/u16-strcspn.c: Likewise.
16610         * lib/unistr/u16-strdup.c: Likewise.
16611         * lib/unistr/u16-strlen.c: Likewise.
16612         * lib/unistr/u16-strmblen.c: Likewise.
16613         * lib/unistr/u16-strmbtouc.c: Likewise.
16614         * lib/unistr/u16-strncat.c: Likewise.
16615         * lib/unistr/u16-strncmp.c: Likewise.
16616         * lib/unistr/u16-strncpy.c: Likewise.
16617         * lib/unistr/u16-strnlen.c: Likewise.
16618         * lib/unistr/u16-strpbrk.c: Likewise.
16619         * lib/unistr/u16-strrchr.c: Likewise.
16620         * lib/unistr/u16-strspn.c: Likewise.
16621         * lib/unistr/u16-strstr.c: Likewise.
16622         * lib/unistr/u16-strtok.c: Likewise.
16623         * lib/unistr/u16-to-u32.c: Likewise.
16624         * lib/unistr/u16-to-u8.c: Likewise.
16625         * lib/unistr/u16-uctomb-aux.c: Likewise.
16626         * lib/unistr/u16-uctomb.c: Likewise.
16627         * lib/unistr/u32-check.c: Likewise.
16628         * lib/unistr/u32-chr.c: Likewise.
16629         * lib/unistr/u32-cmp.c: Likewise.
16630         * lib/unistr/u32-cpy-alloc.c: Likewise.
16631         * lib/unistr/u32-cpy.c: Likewise.
16632         * lib/unistr/u32-endswith.c: Likewise.
16633         * lib/unistr/u32-mblen.c: Likewise.
16634         * lib/unistr/u32-mbsnlen.c: Likewise.
16635         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16636         * lib/unistr/u32-mbtouc.c: Likewise.
16637         * lib/unistr/u32-mbtoucr.c: Likewise.
16638         * lib/unistr/u32-move.c: Likewise.
16639         * lib/unistr/u32-next.c: Likewise.
16640         * lib/unistr/u32-prev.c: Likewise.
16641         * lib/unistr/u32-set.c: Likewise.
16642         * lib/unistr/u32-startswith.c: Likewise.
16643         * lib/unistr/u32-stpcpy.c: Likewise.
16644         * lib/unistr/u32-stpncpy.c: Likewise.
16645         * lib/unistr/u32-strcat.c: Likewise.
16646         * lib/unistr/u32-strchr.c: Likewise.
16647         * lib/unistr/u32-strcmp.c: Likewise.
16648         * lib/unistr/u32-strcpy.c: Likewise.
16649         * lib/unistr/u32-strcspn.c: Likewise.
16650         * lib/unistr/u32-strdup.c: Likewise.
16651         * lib/unistr/u32-strlen.c: Likewise.
16652         * lib/unistr/u32-strmblen.c: Likewise.
16653         * lib/unistr/u32-strmbtouc.c: Likewise.
16654         * lib/unistr/u32-strncat.c: Likewise.
16655         * lib/unistr/u32-strncmp.c: Likewise.
16656         * lib/unistr/u32-strncpy.c: Likewise.
16657         * lib/unistr/u32-strnlen.c: Likewise.
16658         * lib/unistr/u32-strpbrk.c: Likewise.
16659         * lib/unistr/u32-strrchr.c: Likewise.
16660         * lib/unistr/u32-strspn.c: Likewise.
16661         * lib/unistr/u32-strstr.c: Likewise.
16662         * lib/unistr/u32-strtok.c: Likewise.
16663         * lib/unistr/u32-to-u16.c: Likewise.
16664         * lib/unistr/u32-to-u8.c: Likewise.
16665         * lib/unistr/u32-uctomb.c: Likewise.
16666         * lib/unistr/u8-check.c: Likewise.
16667         * lib/unistr/u8-chr.c: Likewise.
16668         * lib/unistr/u8-cmp.c: Likewise.
16669         * lib/unistr/u8-cpy-alloc.c: Likewise.
16670         * lib/unistr/u8-cpy.c: Likewise.
16671         * lib/unistr/u8-endswith.c: Likewise.
16672         * lib/unistr/u8-mblen.c: Likewise.
16673         * lib/unistr/u8-mbsnlen.c: Likewise.
16674         * lib/unistr/u8-mbtouc-aux.c: Likewise.
16675         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16676         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16677         * lib/unistr/u8-mbtouc.c: Likewise.
16678         * lib/unistr/u8-mbtoucr.c: Likewise.
16679         * lib/unistr/u8-move.c: Likewise.
16680         * lib/unistr/u8-next.c: Likewise.
16681         * lib/unistr/u8-prev.c: Likewise.
16682         * lib/unistr/u8-set.c: Likewise.
16683         * lib/unistr/u8-startswith.c: Likewise.
16684         * lib/unistr/u8-stpcpy.c: Likewise.
16685         * lib/unistr/u8-stpncpy.c: Likewise.
16686         * lib/unistr/u8-strcat.c: Likewise.
16687         * lib/unistr/u8-strchr.c: Likewise.
16688         * lib/unistr/u8-strcmp.c: Likewise.
16689         * lib/unistr/u8-strcpy.c: Likewise.
16690         * lib/unistr/u8-strcspn.c: Likewise.
16691         * lib/unistr/u8-strdup.c: Likewise.
16692         * lib/unistr/u8-strlen.c: Likewise.
16693         * lib/unistr/u8-strmblen.c: Likewise.
16694         * lib/unistr/u8-strmbtouc.c: Likewise.
16695         * lib/unistr/u8-strncat.c: Likewise.
16696         * lib/unistr/u8-strncmp.c: Likewise.
16697         * lib/unistr/u8-strncpy.c: Likewise.
16698         * lib/unistr/u8-strnlen.c: Likewise.
16699         * lib/unistr/u8-strpbrk.c: Likewise.
16700         * lib/unistr/u8-strrchr.c: Likewise.
16701         * lib/unistr/u8-strspn.c: Likewise.
16702         * lib/unistr/u8-strstr.c: Likewise.
16703         * lib/unistr/u8-strtok.c: Likewise.
16704         * lib/unistr/u8-to-u16.c: Likewise.
16705         * lib/unistr/u8-to-u32.c: Likewise.
16706         * lib/unistr/u8-uctomb-aux.c: Likewise.
16707         * lib/unistr/u8-uctomb.c: Likewise.
16708         * lib/unitypes.h: Likewise.
16709         * lib/uniwidth.h: Likewise.
16710         * lib/uniwidth/cjk.h: Likewise.
16711         * lib/uniwidth/u16-strwidth.c: Likewise.
16712         * lib/uniwidth/u16-width.c: Likewise.
16713         * lib/uniwidth/u32-strwidth.c: Likewise.
16714         * lib/uniwidth/u32-width.c: Likewise.
16715         * lib/uniwidth/u8-strwidth.c: Likewise.
16716         * lib/uniwidth/u8-width.c: Likewise.
16717         * lib/uniwidth/width.c: Likewise.
16718
16719 2007-10-07  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
16722         The file is still under LGPL (see modules/inttypes).
16723
16724 2007-10-06  Bruno Haible  <bruno@clisp.org>
16725
16726         * modules/trunc (Dependencies): Add 'extensions'.
16727         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
16728         Reported by Ben Pfaff <blp@gnu.org>.
16729
16730 2007-10-06  Bruno Haible  <bruno@clisp.org>
16731
16732         * modules/freopen-tests: New file.
16733         * tests/test-freopen.c: New file.
16734
16735         * modules/fopen-tests: New file.
16736         * tests/test-fopen.c: New file.
16737
16738         * modules/fopen: New file.
16739         * lib/fopen.c: New file.
16740         * m4/fopen.m4: New file.
16741         * modules/freopen: New file.
16742         * lib/freopen.c: New file.
16743         * m4/freopen.m4: New file.
16744         * lib/stdio.in.h (fopen, freopen): New declarations.
16745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
16746         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16747         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
16748         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16749         * doc/functions/fopen.texi: Mention the 'fopen' module.
16750         * doc/functions/freopen.texi: Mention the 'freopen' module.
16751
16752 2007-10-06  Bruno Haible  <bruno@clisp.org>
16753
16754         * modules/open-tests: New file.
16755         * tests/test-open.c: New file.
16756
16757         * modules/open: New file.
16758         * lib/open.c: New file.
16759         * m4/open.m4: New file.
16760         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
16761         lib/open.c does.
16762         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
16763         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
16764         macros.
16765         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
16766         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
16767         REPLACE_OPEN.
16768         * doc/functions/open.texi: Mention the 'open' module.
16769
16770 2007-10-04  Bruno Haible  <bruno@clisp.org>
16771
16772         * modules/ceill-tests: New file.
16773         * tests/test-ceill.c: New file.
16774
16775         * modules/ceill: New file.
16776         * lib/ceill.c: Replace entire file.
16777         * m4/ceill.m4: New file.
16778         * lib/math.in.h (ceill): Replace declaration.
16779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
16780         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
16781         * doc/functions/ceill.texi: Mention the 'ceill' module.
16782         * modules/mathl (Files): Remove lib/ceill.c.
16783         (Depends-on): Add ceill.
16784
16785 2007-10-04  Bruno Haible  <bruno@clisp.org>
16786
16787         * modules/ceilf-tests: New file.
16788         * tests/test-ceilf.c: New file.
16789
16790         * modules/ceilf: New file.
16791         * lib/ceil.c: New file.
16792         * lib/ceilf.c: New file.
16793         * m4/ceilf.m4: New file.
16794         * lib/math.in.h (ceilf): New declaration.
16795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
16796         HAVE_DECL_CEILF.
16797         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
16798         HAVE_DECL_CEILF.
16799         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
16800
16801 2007-10-04  Bruno Haible  <bruno@clisp.org>
16802
16803         * modules/floorl-tests: New file.
16804         * tests/test-floorl.c: New file.
16805
16806         * modules/floorl: New file.
16807         * lib/floorl.c: Replace entire file.
16808         * m4/floorl.m4: New file.
16809         * lib/math.in.h (floorl): Replace declaration.
16810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
16811         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
16812         * doc/functions/floorl.texi: Mention the 'floorl' module.
16813         * modules/mathl (Files): Remove lib/floorl.c.
16814         (Depends-on): Add floorl.
16815
16816 2007-10-04  Bruno Haible  <bruno@clisp.org>
16817
16818         * modules/floorf-tests: New file.
16819         * tests/test-floorf.c: New file.
16820
16821         * modules/floorf: New file.
16822         * lib/floor.c: New file.
16823         * lib/floorf.c: New file.
16824         * m4/floorf.m4: New file.
16825         * lib/math.in.h (floorf): New declaration.
16826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
16827         HAVE_DECL_FLOORF.
16828         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
16829         HAVE_DECL_FLOORF.
16830         * doc/functions/floorf.texi: Mention the 'floorf' module.
16831
16832 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
16833             Bruno Haible  <bruno@clisp.org>
16834
16835         Advertise for the Git server instead of the CVS server.
16836         * doc/gnulib-intro.texi (Steady Development): Mention the Git
16837         repository instead of the CVS one.
16838         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
16839         about all VCS systems generically.
16840         * doc/gnulib.texi (Introduction): Capitalize `Git'.
16841
16842 2007-10-04  Bruno Haible  <bruno@clisp.org>
16843
16844         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
16845         means.
16846         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
16847
16848 2007-10-04  Bruno Haible  <bruno@clisp.org>
16849
16850         * modules/truncl-tests: New file.
16851         * tests/test-truncl.c: New file.
16852
16853         * modules/truncl: New file.
16854         * lib/truncl.c: New file.
16855         * m4/truncl.m4: New file.
16856         * lib/math.in.h (truncl): New declaration.
16857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
16858         HAVE_DECL_TRUNCL.
16859         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
16860         HAVE_DECL_TRUNCL.
16861         * doc/functions/truncl.texi: Mention the 'truncl' module.
16862
16863 2007-10-04  Bruno Haible  <bruno@clisp.org>
16864
16865         * modules/truncf-tests: New file.
16866         * tests/test-truncf.c: New file.
16867
16868         * modules/truncf: New file.
16869         * lib/trunc.c: Make paramerizable through USE_* macros.
16870         * lib/truncf.c: New file.
16871         * m4/truncf.m4: New file.
16872         * lib/math.in.h (truncf): New declaration.
16873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
16874         HAVE_DECL_TRUNCF.
16875         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
16876         HAVE_DECL_TRUNCF.
16877         * doc/functions/truncf.texi: Mention the 'truncf' module.
16878
16879 2007-10-03  Bruno Haible  <bruno@clisp.org>
16880
16881         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16882         augmentation also for tests modules.
16883         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
16884         * modules/atexit-tests (Makefile.am): Likewise.
16885         * modules/binary-io-tests (Makefile.am): Likewise.
16886         * modules/c-strcase-tests (Makefile.am): Likewise.
16887         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
16888         * modules/canonicalize-tests (Makefile.am): Likewise.
16889         * modules/closein-tests (Makefile.am): Likewise.
16890         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16891         * modules/freadahead-tests (Makefile.am): Likewise.
16892         * modules/fseek-tests (Makefile.am): Likewise.
16893         * modules/fseeko-tests (Makefile.am): Likewise.
16894         * modules/ftell-tests (Makefile.am): Likewise.
16895         * modules/ftello-tests (Makefile.am): Likewise.
16896         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
16897         * modules/isnanl-tests (Makefile.am): Likewise.
16898         * modules/lseek-tests (Makefile.am): Likewise.
16899         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16900         * modules/mbscasestr-tests (Makefile.am): Likewise.
16901         * modules/mbschr-tests (Makefile.am): Likewise.
16902         * modules/mbscspn-tests (Makefile.am): Likewise.
16903         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16904         * modules/mbspbrk-tests (Makefile.am): Likewise.
16905         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16906         * modules/mbsrchr-tests (Makefile.am): Likewise.
16907         * modules/mbsspn-tests (Makefile.am): Likewise.
16908         * modules/mbsstr-tests (Makefile.am): Likewise.
16909         * modules/printf-posix-tests (Makefile.am): Likewise.
16910         * modules/snprintf-posix-tests (Makefile.am): Likewise.
16911         * modules/sprintf-posix-tests (Makefile.am): Likewise.
16912         * modules/tsearch-tests (Makefile.am): Likewise.
16913         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16914         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16915         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16916         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16917         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16918         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16919         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16920         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16921         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
16922         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
16923         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16924         * modules/xstrtol-tests (Makefile.am): Likewise.
16925         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16926         * modules/yesno-tests (Makefile.am): Likewise.
16927
16928 2007-10-03  Bruno Haible  <bruno@clisp.org>
16929
16930         * modules/trunc-tests: New file.
16931         * tests/test-trunc.c: New file.
16932
16933         * modules/trunc: New file.
16934         * lib/trunc.c: New file.
16935         * m4/trunc.m4: New file.
16936         * lib/math.in.h (trunc): New declaration.
16937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
16938         HAVE_DECL_TRUNC.
16939         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
16940         HAVE_DECL_TRUNC.
16941         * doc/functions/trunc.texi: Mention the 'trunc' module.
16942
16943 2007-10-03  Bruno Haible  <bruno@clisp.org>
16944
16945         * tests/test-fpending.c: New file, mostly copied
16946         from coreutils/lib/t-fpending.c.
16947         * modules/fpending-tests: New file.
16948
16949 2007-10-03  Bruno Haible  <bruno@clisp.org>
16950
16951         Port the stdio extensions to QNX (untested).
16952         * lib/fseterr.c (fseterr): Add support for QNX.
16953         * lib/fbufmode.c (fbufmode): Likewise.
16954         * lib/freadable.c (freadable): Likewise.
16955         * lib/fwritable.c (fwritable): Likewise.
16956         * lib/freading.c (freading): Likewise.
16957         * lib/fwriting.c (fwriting): Likewise.
16958         * lib/freadahead.c (freadahed): Likewise.
16959         * lib/fpurge.c (fpurge): Likewise.
16960         * lib/fseeko.c (rpl_fseeko): Likewise.
16961
16962 2007-10-03  Bruno Haible  <bruno@clisp.org>
16963             Jim Meyering  <jim@meyering.net>
16964             Eric Blake  <ebb9@byu.net>
16965
16966         * doc/relocatable.texi: Use @command instead of @program.
16967
16968 2007-10-02  Jim Meyering  <jim@meyering.net>
16969
16970         Perform one more "_.h" -> ".in.h" substitution.
16971         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
16972         instead of unistd_.h here, too.
16973
16974 2007-10-01  Bruno Haible  <bruno@clisp.org>
16975
16976         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
16977         Needed for the alloca-opt module.
16978
16979 2007-09-30  Bruno Haible  <bruno@clisp.org>
16980
16981         * lib/alloca.in.h: Renamed from lib/alloca_.h.
16982         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
16983         alloca_.h.
16984         * lib/argz.in.h: Renamed from lib/argz_.h.
16985         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
16986         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
16987         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
16988         byteswap_.h.
16989         * lib/dirent.in.h: Renamed from lib/dirent_.h.
16990         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
16991         dirent_.h.
16992         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
16993         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
16994         fcntl_.h.
16995         * lib/float.in.h: Renamed from lib/float_.h.
16996         * modules/float (Files, Makefile.am): Use float.in.h instead of
16997         float_.h.
16998         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
16999         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17000         fnmatch_.h.
17001         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17002         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17003         getopt_.h.
17004         * lib/glob.in.h: Renamed from lib/glob_.h.
17005         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17006         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17007         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17008         iconv_.h.
17009         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17010         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17011         inttypes_.h.
17012         * lib/locale.in.h: Renamed from lib/locale_.h.
17013         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17014         locale_.h.
17015         * lib/math.in.h: Renamed from lib/math_.h.
17016         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17017         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17018         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17019         of netinet_in_.h. Add dependency.
17020         * lib/poll.in.h: Renamed from lib/poll_.h.
17021         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17022         * lib/search.in.h: Renamed from lib/search_.h.
17023         * modules/search (Files, Makefile.am): Use search.in.h instead of
17024         search_.h.
17025         * lib/signal.in.h: Renamed from lib/signal_.h.
17026         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17027         _signal.h.
17028         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17029         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17030         stdbool_.h.
17031         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17032         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17033         stdint_.h.
17034         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17035         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17036         stdio_.h.
17037         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17038         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17039         stdlib_.h.
17040         * lib/string.in.h: Renamed from lib/string_.h.
17041         * modules/string (Files, Makefile.am): Use string.in.h instead of
17042         string_.h.
17043         * doc/gnulib-tool.texi (Initial import): Update.
17044         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17045         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17046         of sys_select_.h. Add dependency.
17047         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17048         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17049         of sys_socket_.h.
17050         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17051         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17052         sys_stat_.h.
17053         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17054         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17055         sys_time_.h.
17056         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17057         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17058         sysexits_.h.
17059         * lib/time.in.h: Renamed from lib/time_.h.
17060         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17061         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17062         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17063         unistd_.h.
17064         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17065         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17066         wchar_.h.
17067         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17068         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17069         wctype_.h.
17070         * build-aux/bootstrap (slurp): Update.
17071         * lib/.cppi-disable: Update.
17072
17073 2007-09-30  Bruno Haible  <bruno@clisp.org>
17074
17075         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17076         Needed on BeOS.
17077
17078 2007-09-30  Bruno Haible  <bruno@clisp.org>
17079
17080         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17081
17082 2007-09-29  Bruno Haible  <bruno@clisp.org>
17083
17084         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17085
17086 2007-09-29  Bruno Haible  <bruno@clisp.org>
17087
17088         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17089         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17090         * build-aux/install-reloc: Compile also areadlink.c.
17091         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17092
17093 2007-09-29  Bruno Haible  <bruno@clisp.org>
17094
17095         * gnulib-tool (func_emit_initmacro_done): Indentation.
17096
17097 2007-09-29  Bruno Haible  <bruno@clisp.org>
17098
17099         * README: Add CVS checkout update instructions.
17100         Info from Bob Proulx <bob@proulx.com>.
17101
17102 2007-09-28  Eric Blake  <ebb9@byu.net>
17103
17104         Provide move-if-change.
17105         * build-aux/move-if-change: New file, based on best practice
17106         rather than any canonical upstream location.
17107
17108 2007-09-28  Jim Meyering  <jim@meyering.net>
17109
17110         Fix canonicalize loop-detection corner case.
17111         Do not attempt to stat the symlink values stored via seen_triple.
17112         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17113         on linux-2.6.18, (but not 2.6.22).
17114         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17115         triple_compare.  The former compares dev,ino,filename, while the latter
17116         would actually stat dirname(filename) when dev and ino were equal.
17117         * lib/hash-triple.c: Install <string.h>.
17118         (STREQ): Define.
17119         (triple_compare_ino_str): New function.
17120         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17121
17122 2007-09-28  Eric Blake  <ebb9@byu.net>
17123
17124         Enforce that AC_REPLACE_FUNCS files exist.
17125         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17126         override check for typos.
17127
17128         Fix test-closein on Solaris 10.
17129         * tests/test-closein.c (main): Don't assume stdin can be inherited
17130         closed on all systems.
17131         * tests/test-closein.sh: Likewise.
17132         Reported by Piotr Tarnowski.
17133
17134 2007-09-28  Jim Meyering  <jim@meyering.net>
17135
17136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17137
17138 2007-09-27  Jim Meyering  <jim@meyering.net>
17139
17140         canonicalize: Avoid a false-positive cycle failure.
17141         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17142         Sort.  Remove cycle-check.
17143         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17144         not cycle-check.h.
17145         (seen_triple): New function.
17146         (canonicalize_filename_mode): Use it instead of cycle-check.
17147         * tests/test-canonicalize.c: Add a test for this bug.
17148         * tests/test-canonicalize.sh: Set up and run the test.
17149
17150         New module, file-set, from coreutils.
17151         * modules/file-set: Define it.
17152         * lib/file-set.c, lib/file-set.h: Implement.
17153
17154         New module, hash-triple, from coreutils.
17155         * modules/hash-triple: Define it.
17156         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17157
17158 2007-09-25  Eric Blake  <ebb9@byu.net>
17159
17160         Fix strerror on Interix.
17161         * lib/string_.h (strerror): Declare replacement.
17162         * doc/functions/strerror.texi (strerror): Document the Interix
17163         shortcoming.
17164         * modules/string (Makefile.am): Support new hooks.
17165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17166         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17167         gl_FUNC_STRERROR_SEPARATE.
17168         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17169         * lib/strerror.c (rpl_strerror): Provide replacement.
17170         * modules/strerror (Depends-on): Add string.
17171         (configure.ac): Detect use of module.
17172         * tests/test-strerror.c: New file.
17173         * modules/strerror-tests: New test module.
17174         * modules/argp (Depends-on): Add strerror.
17175         * modules/error (Depends-on): Likewise.
17176         Reported by Martin Koeppe.
17177
17178 2007-09-24  Bruno Haible  <bruno@clisp.org>
17179
17180         * README: Update git instructions.
17181
17182 2007-09-24  Eric Blake  <ebb9@byu.net>
17183
17184         Revert fpending breakage from 2007-09-08.
17185         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17186         __fpending.c.
17187
17188 2007-09-24  Jim Meyering  <jim@meyering.net>
17189
17190         filenamecat.c: Add a test.
17191         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17192         showing how the function works when DIR is the empty string.
17193
17194 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17195
17196         * tests/test-canonicalize.sh: Turn on executable bit.
17197
17198 2007-09-19  Eric Blake  <ebb9@byu.net>
17199
17200         * README: Update CVS instructions.
17201
17202 2007-09-18  Bruno Haible  <bruno@clisp.org>
17203
17204         * modules/areadlink: New file.
17205         * lib/areadlink.h (areadlink): New declaration.
17206         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17207
17208 2007-09-17  Jim Meyering  <jim@meyering.net>
17209
17210         * lib/savewd.c (ESTALE) [!defined]: Define.
17211         Reported to be required on Interix by Martin Koeppe.
17212
17213 2007-09-17  Bruno Haible  <bruno@clisp.org>
17214
17215         * gnulib-tool (func_version): Use $version.
17216
17217 2007-09-16  Bruno Haible  <bruno@clisp.org>
17218
17219         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17220         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17221         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17222         Reported by Greg Schafer <gschafer@zip.com.au>.
17223
17224 2007-09-15  Bruno Haible  <bruno@clisp.org>
17225
17226         * gnulib-tool (sed): Try a little harder to make bash understand the
17227         alias.
17228         Reported by Bruce Korb <bruce.korb@gmail.com>.
17229
17230 2007-09-13  Eric Blake  <ebb9@byu.net>
17231
17232         * ChangeLog: Remove conflict markers.
17233
17234 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17235
17236         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17237         Reported by Bruno Haible <bruno@clisp.org>.
17238
17239 2007-09-12  Bruno Haible  <bruno@clisp.org>
17240
17241         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17242         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17243         is not defined.
17244
17245 2007-09-12  Eric Blake  <ebb9@byu.net>
17246
17247         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17248         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17249         Autoconf definition.
17250         * modules/euidaccess (Depends-on): Add extensions, for
17251         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17252         * modules/fnmatch (Depends-on): Likewise.
17253         * modules/getaddrinfo (Depends-on): Likewise.
17254         * modules/getdelim (Depends-on): Likewise.
17255         * modules/getline (Depends-on): Likewise.
17256         * modules/getsubopt (Depends-on): Likewise.
17257         * modules/gettext (Depends-on): Likewise.
17258         * modules/group-member (Depends-on): Likewise.
17259         * modules/mbchar (Depends-on): Likewise.
17260         * modules/memmem (Depends-on): Likewise.
17261         * modules/mempcpy (Depends-on): Likewise.
17262         * modules/memrchr (Depends-on): Likewise.
17263         * modules/pagealign_alloc (Depends-on): Likewise.
17264         * modules/readutmp (Depends-on): Likewise.
17265         * modules/stpcpy (Depends-on): Likewise.
17266         * modules/stpncpy (Depends-on): Likewise.
17267         * modules/strchrnul (Depends-on): Likewise.
17268         * modules/strndup (Depends-on): Likewise.
17269         * modules/strsep (Depends-on): Likewise.
17270         * modules/strverscmp (Depends-on): Likewise.
17271         * modules/vasprintf (Depends-on): Likewise.
17272         * modules/wcwidth (Depends-on): Likewise.
17273         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17274         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17275         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17277         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17278         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17279         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17280         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17281         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17282         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17286         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17287         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17288         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17289         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17290         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17292         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17293         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17294         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17295         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17296         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17297         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17299         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17300         so that lock.m4 can be used in gettext without extensions module.
17301
17302 2007-09-11  Bruno Haible  <bruno@clisp.org>
17303
17304         * m4/isc-posix.m4: Remove file.
17305         Suggested by Eric Blake.
17306
17307 2007-09-11  Eric Blake  <ebb9@byu.net>
17308
17309         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17310
17311 2007-09-10  Bruno Haible  <bruno@clisp.org>
17312
17313         * posix-modules: Fix typo in error message.
17314         Reported by Matt <mkraai@beckman.com>.
17315
17316 2007-09-09  Bruno Haible  <bruno@clisp.org>
17317
17318         * doc/functions/getdelim.texi: Update list of platforms lacking the
17319         function.
17320         * doc/functions/getline.texi: Likewise.
17321
17322 2007-09-09  Jim Meyering  <jim@meyering.net>
17323
17324         * lib/hash.c (hash_initialize): Detect calloc failure.
17325         Reported by Bruno Haible.
17326
17327 2007-09-09  Bruno Haible  <bruno@clisp.org>
17328
17329         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17330         malloc or realloc fails.
17331
17332 2007-09-09  Bruno Haible  <bruno@clisp.org>
17333
17334         * modules/getcwd (Depends-on): Add malloc-posix.
17335         * modules/glob (Depends-on): Likewise.
17336         * modules/putenv (Depends-on): Likewise.
17337         * modules/strdup (Depends-on): Likewise.
17338         * modules/getdelim (Depends-on): Add realloc-posix.
17339         * modules/read-file (Depends-on): Likewise.
17340
17341 2007-09-09  Bruno Haible  <bruno@clisp.org>
17342
17343         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17344         (gl_FUNC_MALLOC_POSIX): Require it.
17345         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17346         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17347         * modules/realloc (Files): Add m4/malloc.m4.
17348         * modules/calloc (Files): Likewise.
17349
17350 2007-09-09  Bruno Haible  <bruno@clisp.org>
17351
17352         * modules/malloc-posix: New file.
17353         * modules/malloc (Depends-on): Add malloc-posix.
17354         * lib/malloc.c: Include errno.h.
17355         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17356         and a POSIX-compatible malloc into a single function. Set ENOMEM
17357         when returning NULL.
17358         * m4/malloc.m4: New file.
17359         * doc/functions/malloc.texi: Mention the malloc-posix module.
17360         * lib/stdlib_.h (malloc): New declaration.
17361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17362         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17363         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17364         and HAVE_MALLOC_POSIX.
17365
17366 2007-09-09  Bruno Haible  <bruno@clisp.org>
17367
17368         * modules/realloc-posix: New file.
17369         * modules/realloc (Depends-on): Add realloc-posix.
17370         * lib/realloc.c: Include errno.h.
17371         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17372         and a POSIX-compatible realloc into a single function. Set ENOMEM
17373         when returning NULL.
17374         * m4/realloc.m4: New file.
17375         * doc/functions/realloc.texi: Mention the realloc-posix module.
17376         * lib/stdlib_.h (realloc): New declaration.
17377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17378         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17379         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17380         and HAVE_REALLOC_POSIX.
17381
17382 2007-09-09  Bruno Haible  <bruno@clisp.org>
17383
17384         * modules/calloc-posix: New file.
17385         * modules/calloc (Depends-on): Add calloc-posix.
17386         * lib/calloc.c: Include errno.h.
17387         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17388         and a POSIX-compatible calloc into a single function. Set ENOMEM
17389         when returning NULL.
17390         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17391         * doc/functions/calloc.texi: Mention the calloc-posix module.
17392         * lib/stdlib_.h (calloc): New declaration.
17393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17394         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17395         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17396         and HAVE_CALLOC_POSIX.
17397
17398 2007-09-09  Bruno Haible  <bruno@clisp.org>
17399
17400         Allow for modules to show an arbitrary notice.
17401         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17402         * gnulib-tool: New option --extract-notice.
17403         (func_usage): Document it.
17404         (sed_extract_prog): Update.
17405         (func_get_notice): New function.
17406         (func_modules_notice): New function.
17407         (func_import, func_create_testdir): Invoke it.
17408         Suggested by Jim Meyering.
17409
17410 2007-09-09  Bruno Haible  <bruno@clisp.org>
17411
17412         * gnulib-tool: New options --verbose, --quiet.
17413         (func_usage): Document them.
17414         (verbose): New variable.
17415         (func_execute_command): New function.
17416         (func_import): Don't show the module list and the file list if
17417         $verbose < 0.
17418         (func_create_testdir): Likewise. Use func_execute_command.
17419         (func_create_megatestdir): Use func_execute_command.
17420
17421 2007-09-08  Bruno Haible  <bruno@clisp.org>
17422
17423         * gnulib-tool (func_import): Prefer rsync over wget when available,
17424         for fetching the PO files.
17425
17426 2007-09-08  Bruno Haible  <bruno@clisp.org>
17427
17428         * posix-modules: New file. Portions copied from gnulib-tool.
17429         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17430
17431 2007-09-08  Jim Meyering  <jim@meyering.net>
17432
17433         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17434         * lib/fpending.h: Rename from __fpending.h.
17435         * lib/fpending.c: Rename from __fpending.c.
17436         Include "fpending.h", not "__fpending.h".
17437         * lib/__fpending.h, lib/__fpending.c: Remove files.
17438         * modules/fpending (Files): Reflect new file names.
17439         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17440
17441 2007-09-08  Bruno Haible  <bruno@clisp.org>
17442
17443         * m4/inttypes-h.m4: Remove stub file.
17444
17445 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17446
17447         * doc/headers/stdint.texi: Discuss #include_next issue.
17448
17449 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17452
17453 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17454
17455         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17456         in variable name.
17457
17458 2007-09-03  Jim Meyering  <jim@meyering.net>
17459
17460         New module: git-version-gen.
17461         * modules/git-version-gen: New file.
17462
17463         Import changes from coreutils for bootstrap script.
17464
17465         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17466
17467         bootstrap: uses rsync to download the .po files
17468         * build-aux/bootstrap (po_download_command_format): New global.
17469         (download_po_files): Use rsync.
17470         (update_po_files): Don't remove .po files after download,
17471         so future rsync runs can take advantage of the copies.
17472
17473         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17474
17475         Solve the unnecessary-.po-file-regeneration problem once and for all.
17476         * build-aux/bootstrap (download_po_files): New function, renamed from
17477         get_translations.  Now, downloads, but doesn't update LINGUAS.
17478         (update_po_files): New function.
17479
17480         bootstrap: Ignore more.
17481         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17482         uniwidth to e.g., lib/.gitignore.
17483         (slurp): Handle the sys_stat_.h -> sys mapping, too.
17484
17485         * build-aux/bootstrap: New setting: vc_ignore.
17486         (insert_sorted_if_absent): Create $file if absent.
17487         Adapt to new, possibly empty, list: $vc_ignore.
17488
17489         bootstrap: generate more ignorable names
17490         * build-aux/bootstrap (slurp): When generating ignorable names,
17491         also map .sin to .sed, .gperf to .c, and .y to .c.
17492
17493 2007-09-03  Jim Meyering  <jim@meyering.net>
17494
17495         * build-aux/git-version-gen: New file, from coreutils.  For details, see
17496         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17497
17498 2007-09-02  Bruno Haible  <bruno@clisp.org>
17499
17500         Fix mis-recognition of 'mcs' on QNX 6.
17501         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17502         output contains the string "Mono".
17503         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17504         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17505
17506 2007-09-01  Bruno Haible  <bruno@clisp.org>
17507
17508         Fix collision between uniwidth/* and linebreak modules.
17509         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17510         u32_width): Remove declarations.
17511         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17512         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17513         streq3, streq2, streq1, streq0): Remove functions.
17514         (STREQ): Remove macro.
17515         (is_cjk_encoding): Remove function.
17516         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17517         (uc_width, u8_width, u16_width, u32_width): Remove functions.
17518         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17519         * NEWS: Document the change.
17520
17521 2007-09-01  Bruno Haible  <bruno@clisp.org>
17522
17523         * lib/streq.h: Add double-inclusion guard.
17524
17525 2007-09-01  Karl Berry  <karl@gnu.org>
17526
17527         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17528
17529 2007-08-28  Jim Meyering  <jim@meyering.net>
17530
17531         Rename mreadlink_with_size to areadlink_with_size.
17532         * NEWS: Document the change.
17533         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17534         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17535         * lib/mreadlink.h: Rename this to...
17536         * lib/areadlink.h: ...this.
17537         * modules/mreadlink-with-size: Rename this to...
17538         * modules/areadlink-with-size: ...this.
17539         * lib/canonicalize.c: Reflect the renaming.
17540         * modules/canonicalize: Likewise.
17541
17542 2007-08-26  Bruno Haible  <bruno@clisp.org>
17543
17544         * gnulib-tool (func_import): When deciding which files to remove,
17545         consider also dangling symbolic links.
17546         Reported by Eric Blake.
17547
17548 2007-08-26  Bruno Haible  <bruno@clisp.org>
17549
17550         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17551
17552 2007-08-23  Simon Josefsson  <simon@josefsson.org>
17553
17554         * lib/readline.c: Don't include getline.h, the prototype is now
17555         found in stdio.h.
17556
17557 2007-08-23  Jim Meyering  <jim@meyering.net>
17558
17559         Getdelim touchup.
17560         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17561         around the funlockfile call, since funlockfile never sets errno.
17562         Don't set errno upon failed realloc.
17563
17564 2007-08-22  Eric Blake  <ebb9@byu.net>
17565
17566         Getline touchups.
17567         * lib/getdelim.c (getdelim): Revert regression that required *n to
17568         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
17569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17570         getdelim, rather than whether implementation is missing.
17571         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17572         * lib/stdio_.h (getline): Also declare if replacement is
17573         required.
17574         * doc/functions/getdelim.texi: New file.
17575         * doc/functions/getline.texi: Likewise.
17576         * doc/gnulib.texi (Function Substitutes): Add new files.
17577         Reported by Bruno Haible.
17578
17579 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
17580
17581         * users.txt: Add Guile.
17582
17583 2007-08-22  Eric Blake  <ebb9@byu.net>
17584
17585         * tests/test-getdelim.c (main): Use remove, not unlink.
17586         * tests/test-getline.c (main): Likewise.
17587
17588         Move getline and getdelim into stdio.h, per POSIX 200x.
17589         * modules/getline (Files): Remove getline.h.
17590         (Depends-on): Add stdio.
17591         (configure.ac): Add module indicator.
17592         * modules/getdelim (Files): Remove getdelim.h.
17593         (Depends-on): Add stdio.
17594         (configure.ac): Add module indicator.
17595         * modules/stdio (Makefile.am): Work with new indicators.
17596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17597         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17598         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17599         * lib/getdelim.h: Delete.
17600         * lib/getline.h: Delete.
17601         * lib/stdio_.h (getdelim, getline): Declare.
17602         * modules/getdelim-tests: New module.
17603         * modules/getline-tests: Likewise.
17604         * tests/test-getdelim.c: New file.
17605         * tests/test-getline.c: Likewise.
17606         * NEWS: Document the change.
17607         * lib/getline.c: Update choice of header.
17608         * lib/csharpcomp.c: Likewise.
17609         * lib/getpass.c: Likewise.
17610         * lib/javacomp.c: Likewise.
17611         * lib/javaversion.c: Likewise.
17612         * lib/yesno.c: Likewise.
17613         * lib/getdelim.c: Likewise.
17614         (getdelim): Set errno on failure, and avoid memory leak.
17615
17616 2007-08-19  Bruno Haible  <bruno@clisp.org>
17617
17618         * modules/closein (Depends-on): Add freadahead.
17619         * lib/closein.c: Include freadahead.h.
17620         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
17621         is zero.
17622
17623 2007-08-19  Bruno Haible  <bruno@clisp.org>
17624
17625         * modules/freadahead-tests: New file.
17626         * tests/test-freadahead.sh: New file.
17627         * tests/test-freadahead.c: New file.
17628
17629         * modules/freadahead: New file.
17630         * lib/freadahead.h: New file.
17631         * lib/freadahead.c: New file.
17632         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
17633         fbufmode, fpurge, freadable, fwritable.
17634
17635 2007-08-19  Eric Blake  <ebb9@byu.net>
17636
17637         Test yesno in combination with closein.
17638         * lib/yesno.c (yesno): Document use of stdin.
17639         * modules/yesno-tests (Files): New module.
17640         * tests/test-yesno.c (main): New file.
17641         * tests/test-yesno.sh: Likewise.
17642
17643 2007-08-19  Bruno Haible  <bruno@clisp.org>
17644
17645         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
17646         * lib/fseeko.c (rpl_fseeko): Likewise.
17647         * lib/fseterr.c (fseterr): Likewise.
17648
17649 2007-08-19  Bruno Haible  <bruno@clisp.org>
17650
17651         * tests/test-lseek.c (main): Disable a test for BeOS.
17652         * doc/functions/lseek.texi: Document the BeOS bug.
17653
17654 2007-08-19  Bruno Haible  <bruno@clisp.org>
17655             Eric Blake  <ebb9@byu.net>
17656
17657         * lib/lseek.c: Include <sys/stat.h>.
17658         (rpl_lseek): Add workaround code also for Unix platforms.
17659         Needed for BeOS.
17660         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
17661         * doc/functions/lseek.texi: Document BeOS definiency.
17662
17663 2007-08-18  Bruno Haible  <bruno@clisp.org>
17664
17665         * modules/fstrcmp-tests: New file.
17666         * tests/test-fstrcmp.c: New file.
17667
17668 2007-08-18  Bruno Haible  <bruno@clisp.org>
17669
17670         * modules/fstrcmp: New file, from GNU gettext with modifications.
17671         * lib/fstrcmp.h: New file, from GNU gettext.
17672         * lib/fstrcmp.c: New file, from GNU gettext.
17673         * MODULES.html.sh (String handling): Add fstrcmp.
17674
17675 2007-08-18  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
17678         'bool'.
17679         (diag, compareseq): Remove const from the ctxt argument.
17680         (USE_HEURISTIC): Undefine at the end.
17681
17682 2007-08-18  Jim Meyering  <jim@meyering.net>
17683
17684         New file: lib/idcache.h
17685         * NEWS: Mention the addition.
17686         * modules/idcache (Files): Add lib/idcache.h
17687         * lib/idcache.c: Include "idcache.h".
17688         Don't include <sys/types.h>.
17689         Add a FIXME comment.
17690         Move file-scoped "static" declarations to the top.
17691         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
17692
17693 2007-08-17  Bruno Haible  <bruno@clisp.org>
17694         and Paul Eggert  <eggert@cs.ucla.edu>
17695
17696         * MODULES.html.sh: Add diffseq.
17697         * modules/diffseq: New file.
17698         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
17699         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
17700
17701 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17702
17703         Import changes from coreutils for bootstrap script.
17704
17705         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
17706
17707         * build-aux/bootstrap (slurp): Work even in environments where
17708         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
17709         current code does not slurp files whose names start with ".", and
17710         this looks like it might be a troublesome area.
17711
17712         2007-07-11  Jim Meyering  <jim@meyering.net>
17713
17714         If there's a GPL vN copyright comment, require that N == 3.
17715
17716         2007-07-08  Jim Meyering  <jim@meyering.net>
17717
17718         Run the coreutils-specific code only if tests/Makefile.am.in exists.
17719         * build-aux/bootstrap (mam_template): Move definition out of loop.
17720
17721         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
17722
17723         * build-aux/bootstrap (symlink_to_dir): Rename function from
17724         symlink_to_gnulib.  Add a directory parameter.  Update all
17725         callers.
17726         (cp_mark_as_generated): Also check for -- and link to -- files in
17727         gl/.
17728
17729         2007-07-08  Jim Meyering  <jim@meyering.net>
17730
17731         Adapt to deeper hierarchy in gnulib.
17732         * build-aux/bootstrap (symlink_to_dir): If the destination
17733         directory doesn't exist, create it. This is required at least for
17734         "lib/uniwidth/cjk.h".
17735
17736         2007-05-15  Jim Meyering  <jim@meyering.net>
17737
17738         * build-aux/bootstrap: Now that generated Makefile.am files
17739         are no longer under version control, they must be created at
17740         bootstrap time.
17741
17742 2007-08-14  Ben Pfaff  <blp@gnu.org>
17743
17744         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
17745
17746 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17747
17748         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
17749         given the changes below.
17750         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
17751         even on hosts that have padding bits beyond the supported 64.
17752
17753 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17754
17755         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
17756         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
17757         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
17758         depends on it.
17759         (xstrtol_error): Remove.
17760         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
17761         but with a different signature.
17762         (ATTRIBUTE_NORETURN, __attribute__): New macros.
17763         * lib/xstrtol-error.c: Include exitfail.h.
17764         (xstrtol_fatal): New function, with a different signature from the
17765         old xstrtol_error, so that the caller need not worry about passing
17766         in an exit status, or about storage management of the option argument.
17767         (xstrtol_error): Now a static function.  Redo signature to
17768         implement xstrtol_fatal.  Output the correct number of hyphens in
17769         front of the option so that the caller need not worry about
17770         storage management.
17771         (N_): New macro.
17772         (_): Remove; not used now.
17773         * modules/xstrtol: Depend on getopt.
17774         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
17775         of old STRTOL_FATAL_ERROR macro.
17776         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
17777         of test program.
17778         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
17779         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
17780
17781 2007-08-08  Eric Blake  <ebb9@byu.net>
17782
17783         * lib/xstrtol-error.c: Add missing include.
17784
17785         Move xstrtol messages into gnulib domain, when --pobase is used.
17786         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
17787         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
17788         * modules/xstrtol (Files): Distribute new file.
17789         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
17790         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
17791         * tests/test-xstrtol.c: ...into new file.
17792         * tests/test-xstrtoul.c: Also test xstrtoul.
17793         * tests/test-xstrtoimax.c: Also test xstrtoimax.
17794         * tests/test-xstrtoumax.c: Also test xstrtoumax.
17795         * tests/test-xstrtol.sh: Drive the tests.
17796         * tests/test-xstrtoimax.sh: Likewise.
17797         * tests/test-xstrtoumax.sh: Likewise.
17798         * modules/xstrtol-tests: New module.
17799         * modules/xstrtoimax-tests: Likewise.
17800         * modules/xstrtoumax-tests: Likewise.
17801
17802 2007-08-08  Jim Meyering  <jim@meyering.net>
17803
17804         New function: mfile_name_concat.
17805         * lib/filenamecat.c (mfile_name_concat): New function, just like
17806         file_name_concat, but return NULL upon failure rather than exiting
17807         with a diagnostic.
17808         * lib/filenamecat.h: Declare it.
17809
17810 2007-08-07  Bruno Haible  <bruno@clisp.org>
17811
17812         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
17813         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
17814         warning from gcc.
17815         Reported by Eric Blake.
17816
17817 2007-08-07  Simon Josefsson  <simon@josefsson.org>
17818
17819         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
17820         * modules/crypto/arcfour (License): Likewise.
17821         * modules/crypto/des-tests (License): Likewise.
17822         * modules/crypto/gc-arctwo-tests (License): Likewise.
17823         * modules/crypto/gc-des-tests (License): Likewise.
17824         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
17825         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
17826         * modules/crypto/gc-md2-tests (License): Likewise.
17827         * modules/crypto/gc-md4-tests (License): Likewise.
17828         * modules/crypto/gc-md5-tests (License): Likewise.
17829         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
17830         * modules/crypto/gc-rijndael-tests (License): Likewise.
17831         * modules/crypto/gc-sha1-tests (License): Likewise.
17832         * modules/crypto/gc-tests (License): Likewise.
17833         * modules/crypto/hmac-md5 (License): Likewise.
17834         * modules/crypto/hmac-sha1 (License): Likewise.
17835         * modules/crypto/md2-tests (License): Likewise.
17836         * modules/crypto/md4-tests (License): Likewise.
17837         * modules/crypto/md5 (License): Likewise.
17838         * modules/crypto/rijndael (License): Likewise.
17839         * modules/crypto/sha1 (License): Likewise.
17840         * modules/memxor (License): Likewise.
17841
17842 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17843         and Bruno Haible  <bruno@clisp.org>
17844
17845         * NEWS: Describe interface changes to human, xstrtol.
17846         * lib/human.h: Include <xstrtol.h>.
17847         (human_options): Return enum strtol_error, not int.  Remove
17848         bool arg; take int * instead.
17849         * lib/human.c: Don't include "gettext.h".
17850         (_): Remove; no longer used.
17851         Don't include <xstrtol.h>, since human.h does it.
17852         (human_options): Adjust to abovementioned interface changes.
17853         Do not report error to stderr; that's now the caller's
17854         responsibility.
17855         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
17856         interface change.
17857         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
17858         Str, Argument_type_string.  All uses changed.  Put " argument"
17859         in diagnostics to make them clearer.  Change wording of suffix
17860         message for clarity.
17861         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
17862         Argument_type_string.
17863         (STRTOL_FATAL_WARN): Remove; no longer used.
17864         * modules/human (Depends-on): Remove gettext-h.
17865
17866 2007-08-06  Simon Josefsson  <simon@josefsson.org>
17867
17868         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
17869
17870 2007-07-31  Bruno Haible  <bruno@clisp.org>
17871
17872         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
17873         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
17874         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
17875
17876 2007-07-31  Bruno Haible  <bruno@clisp.org>
17877
17878         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
17879         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
17880
17881 2007-07-30  Bruno Haible  <bruno@clisp.org>
17882
17883         * modules/base64 (License): Use the synonymous term "LGPLv2+".
17884         * modules/c-ctype (License): Likewise.
17885         * modules/c-strcase (License): Likewise.
17886         * modules/check-version (License): Likewise.
17887         * modules/iconv (License): Likewise.
17888         * modules/iconv_open (License): Likewise.
17889         * modules/read-file (License): Likewise.
17890         * modules/striconv (License): Likewise.
17891         * modules/strverscmp (License): Likewise.
17892         * modules/vasprintf (License): Likewise.
17893         * modules/crypto/des (License): Likewise.
17894         * modules/crypto/gc (License): Likewise.
17895         * modules/crypto/gc-arcfour (License): Likewise.
17896         * modules/crypto/gc-arctwo (License): Likewise.
17897         * modules/crypto/gc-des (License): Likewise.
17898         * modules/crypto/gc-hmac-md5 (License): Likewise.
17899         * modules/crypto/gc-hmac-sha1 (License): Likewise.
17900         * modules/crypto/gc-md2 (License): Likewise.
17901         * modules/crypto/gc-md4 (License): Likewise.
17902         * modules/crypto/gc-md5 (License): Likewise.
17903         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
17904         * modules/crypto/gc-random (License): Likewise.
17905         * modules/crypto/gc-rijndael (License): Likewise.
17906         * modules/crypto/gc-sha1 (License): Likewise.
17907         * modules/crypto/md2 (License): Likewise.
17908         * modules/crypto/md4 (License): Likewise.
17909
17910 2007-07-30  Jim Meyering  <jim@meyering.net>
17911
17912         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
17913         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
17914         it has valid stat data.  This bug would cause du not to count the
17915         sizes of inaccessible directories.
17916         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
17917         in <http://bugzilla.redhat.com/250077>.
17918
17919 2007-07-25  Peter O'Gorman  <peter@pogma.com>
17920             Bruno Haible  <bruno@clisp.org>
17921
17922         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
17923         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
17924         #include_next, gives a diagnostic about it, but reports no error in
17925         the exit code.
17926         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17927
17928 2007-07-24  Ben Pfaff  <blp@gnu.org>
17929
17930         Improve name: "count-one-bits" is better than "popcount".
17931         * MODULES.html.sh: Update name.
17932         * lib/popcount.h: Renamed lib/count-one-bits.h.
17933         (popcount): Renamed count_one_bits.
17934         (popcountl): Renamed count_one_bits_l.
17935         (popcountll): Renamed count_one_bits_ll.
17936         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
17937         * modules/popcount: Renamed module/count-one-bits.
17938         * modules/popcount-tests: Renamed module/count-one-bits-tests.
17939         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
17940
17941 2007-07-23  Ben Pfaff  <blp@gnu.org>
17942
17943         * lib/popcount.h (popcount32): Reduce size of constants, to allow
17944         better code generation, and add U to large constants to avoid
17945         warnings, in non-GCC case.
17946         Suggested by Bruno Haible.
17947
17948 2007-07-23  Ben Pfaff  <blp@gnu.org>
17949
17950         * lib/popcount.h: Use verify_true instead of if...abort.
17951         * modules/popcount: Depend on verify module.
17952         Suggested by Jim Meyering.
17953
17954 2007-07-23  Bruno Haible  <bruno@clisp.org>
17955
17956         * gnulib-tool (func_import): Create a .cvsignore file also when the
17957         directory is not yet in CVS but the toplevel directory is. When
17958         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
17959         Reported by Karl Berry.
17960
17961 2007-07-22  Ben Pfaff  <blp@gnu.org>
17962
17963         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
17964         case.
17965         Suggested by Eric Blake.
17966
17967 2007-07-22  Ben Pfaff  <blp@gnu.org>
17968
17969         New module: popcount.
17970         * MODULES.html.sh: Add popcount.
17971         * modules/popcount: New file.
17972         * modules/popcount-tests: New file.
17973         * tests/test-popcount.c: New file.
17974         * lib/popcount.h: New file.
17975         * m4/popcount.m4: New file.
17976
17977 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         * build-aux/announce-gen: Update to GPLv3.
17980
17981         * build-aux/config.guess: Update from config.
17982
17983 2007-07-21  Bruno Haible  <bruno@clisp.org>
17984
17985         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
17986         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
17987
17988 2007-07-20  Jim Meyering  <jim@meyering.net>
17989
17990         * check-module: Diagnose a self-dependency.
17991
17992 2007-07-19  Bruno Haible  <bruno@clisp.org>
17993
17994         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
17995         empty.
17996         Reported by Eric Blake.
17997
17998 2007-07-18  Bruno Haible  <bruno@clisp.org>
17999
18000         * gnulib-tool: New options --po-base, --po-domain.
18001         (func_usage): Document them.
18002         (pobase, po_domain): New variables.
18003         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18004         DEFAULT_TEXT_DOMAIN.
18005         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18006         (func_import): Consider pobase and po_domain. Create a po/ directory.
18007         (func_create_testdir): Set pobase and po_domain to empty.
18008         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18009         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18010
18011 2007-07-18  Bruno Haible  <bruno@clisp.org>
18012
18013         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18014         EXTRA_DIST augmentation for files in build-aux/.
18015
18016 2007-07-16  Bruno Haible  <bruno@clisp.org>
18017
18018         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18019         * modules/getdelim (License): Likewise.
18020
18021 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18022
18023         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18024         * modules/d-type (License): Likewise.
18025         * modules/extensions (License): Likewise.
18026         * modules/fnmatch (License): Likewise.
18027         * modules/fseeko (License): Likewise.
18028         * modules/getaddrinfo (License): Likewise.
18029         * modules/getline (License): Likewise.
18030         * modules/getlogin_r (License): Likewise.
18031         * modules/getpass (License): Likewise.
18032         * modules/gettimeofday (License): Likewise.
18033         * modules/glob (License): Likewise.
18034         * modules/inet_ntop (License): Likewise.
18035         * modules/malloc (License): Likewise.
18036         * modules/malloca (License): Likewise.
18037         * modules/memmem (License): Likewise.
18038         * modules/mempcpy (License): Likewise.
18039         * modules/memset (License): Likewise.
18040         * modules/minmax (License): Likewise.
18041         * modules/mktime (License): Likewise.
18042         * modules/netinet_in (License): Likewise.
18043         * modules/pathmax (License): Likewise.
18044         * modules/poll (License): Likewise.
18045         * modules/regex (License): Likewise.
18046         * modules/snprintf (License): Likewise.
18047         * modules/stdbool (License): Likewise.
18048         * modules/stdint (License): Likewise.
18049         * modules/stdio (License): Likewise.
18050         * modules/strcase (License): Likewise.
18051         * modules/strcasestr (License): Likewise.
18052         * modules/strdup (License): Likewise.
18053         * modules/string (License): Likewise.
18054         * modules/strndup (License): Likewise.
18055         * modules/strnlen (License): Likewise.
18056         * modules/strpbrk (License): Likewise.
18057         * modules/strptime (License): Likewise.
18058         * modules/strsep (License): Likewise.
18059         * modules/sys_select (License): Likewise.
18060         * modules/sys_socket (License): Likewise.
18061         * modules/sys_stat (License): Likewise.
18062         * modules/sys_time (License): Likewise.
18063         * modules/time (License): Likewise.
18064         * modules/time_r (License): Likewise.
18065         * modules/timegm (License): Likewise.
18066         * modules/unistd (License): Likewise.
18067         * modules/vsnprintf (License): Likewise.
18068         * modules/wctype (License): Likewise.
18069
18070 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18071
18072         * modules/argz (License): LGPLv2+.
18073
18074 2007-07-15  Karl Berry  <karl@gnu.org>
18075
18076         * doc/gnulib.texi: revise node structure per new fdl.texi.
18077
18078 2007-07-14  Bruno Haible  <bruno@clisp.org>
18079
18080         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18081         the output file.
18082         * lib/uniname/uninames.h: Regenerated.
18083
18084 2007-07-14  Karl Berry  <karl@gnu.org>
18085
18086         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18087         omitting sectioning and index commands.
18088
18089 2007-07-13  Bruno Haible  <bruno@clisp.org>
18090
18091         New gnulib-tool option --more-symlinks.
18092         * gnulib-tool (func_usage): Document --more-symlinks.
18093         (do_copyrights): New variable.
18094         Recognize option --more-symlinks.
18095         (func_import): Don't add a copyright notice transform to
18096         sed_transform_lib_file if do_copyrights is empty.
18097
18098 2007-07-13  Bruno Haible  <bruno@clisp.org>
18099
18100         * lib/vasnprintf.c (decimal_point_char): Define also if
18101         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18102         && !NEED_PRINTF_DIRECTIVE_A.
18103         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18104         Gary V. Vaughan <gary@gnu.org>.
18105
18106 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18107
18108         * lib/inttypes_.h: Undo previous change, since it was fixed
18109         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18110
18111 2007-07-13  Bruno Haible  <bruno@clisp.org>
18112
18113         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18114         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18115
18116 2007-07-13  Jim Meyering  <jim@meyering.net>
18117
18118         df: Don't fail for Tru64's "file-on-file mount".
18119         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18120         so we fall through and use statfs instead.  Details here:
18121         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18122         Reported by Albert Chin.
18123
18124 2007-07-13  Bruno Haible  <bruno@clisp.org>
18125
18126         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18127         * modules/configmake (License): Likewise.
18128         * modules/gettext (License): Likewise.
18129         * modules/gettext-h (License): Likewise.
18130         * modules/include_next (License): Likewise.
18131         * modules/link-warning (License): Likewise.
18132         * modules/localcharset (License): Likewise.
18133         * modules/localename (License): Likewise.
18134         * modules/lock (License): Likewise.
18135         * modules/relocatable-lib-lgpl (License): Likewise.
18136         * modules/size_max (License): Likewise.
18137         * modules/vasnprintf (License): Likewise.
18138         * modules/wchar (License): Likewise.
18139         * modules/xsize (License): Likewise.
18140
18141 2007-07-13  Bruno Haible  <bruno@clisp.org>
18142
18143         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18144         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18145
18146 2007-07-12  Bruno Haible  <bruno@clisp.org>
18147
18148         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18149         in the modules files.
18150
18151 2007-07-11  Karl Berry  <karl@gnu.org>
18152
18153         * MODULES.html.sh (func_module): use
18154          sed -e '\|^'"${includefile}"'$|d'
18155          instead of /.../d, to avoid errors on $includefile's containing /.
18156
18157 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18158
18159         * gnulib-tool (func_import): Avoid duplication of --avoid
18160         statements
18161         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18162         names to `_' in variable names.
18163
18164 2007-07-10  Eric Blake  <ebb9@byu.net>
18165
18166         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18167         * NEWS: Document this change.
18168
18169 2007-07-08  Bruno Haible  <bruno@clisp.org>
18170
18171         Update to Unicode 5.0.
18172         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18173         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18174         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18175         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18176         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18177         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18178         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18179         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18180         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18181         U+10A3F, U+1D242..U+1D244.
18182         (nonspacing_table_ind): Update.
18183         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18184         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18185
18186 2007-07-08  Bruno Haible  <bruno@clisp.org>
18187
18188         Update to Unicode 5.0.
18189         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18190         code transform. Extend the name index field of unicode_name_to_code and
18191         unicode_code_to_name from 16 to 24 bits.
18192         * lib/uniname/uniname.c (unicode_character_name,
18193         unicode_name_character): Add the range 0x12xxx to the code transform.
18194         * lib/uniname/uninames.h: Regenerated.
18195         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18196
18197 2007-07-07  Bruno Haible  <bruno@clisp.org>
18198
18199         * modules/wcwidth-tests: New file.
18200         * tests/test-wcwidth.c: New file.
18201
18202         Work around MacOS X wcwidth() bug.
18203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18204         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18205         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18206         original wcwidth in non-UTF-8 locales.
18207         * modules/wcwidth (Depends-on): Add localcharset, streq,
18208         uniwidth/width.
18209         * doc/functions/wcwidth.texi: Update.
18210
18211 2007-07-07  Bruno Haible  <bruno@clisp.org>
18212
18213         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18214         (wcwidth): New declaration.
18215         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18216         macros.
18217         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18218         here. Prepare for creating <wchar.h> unconditionally.
18219         * modules/wchar (Depends-on): Add link-warning.
18220         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18221         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18222         * lib/wcwidth.h: Remove file.
18223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18224         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18225         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18226         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18227         (Include): Replace wcwidth.h with <wchar.h>.
18228         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18229         * lib/mbchar.h: Don't include wcwidth.h.
18230         * lib/mbswidth.c: Likewise.
18231         * NEWS: Mention the change.
18232
18233 2007-07-07  Bruno Haible  <bruno@clisp.org>
18234
18235         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18236         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18237         definition with an external declaration.
18238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18239         defined as a function. Remove AC_C_INLINE requirement.
18240         * modules/wcwidth (Files): Add lib/wcwidth.c.
18241         (Makefile.am): Remove redundant statement.
18242
18243 2007-07-07  Bruno Haible  <bruno@clisp.org>
18244
18245         * MODULES.html.sh (Unicode string functions): Add the new modules.
18246
18247         * tests/uniwidth/test-u32-strwidth.c: New file.
18248         * modules/uniwidth/u32-strwidth-tests: New file.
18249
18250         * lib/uniwidth/u32-strwidth.c: New file.
18251         * modules/uniwidth/u32-strwidth: New file.
18252
18253         * tests/uniwidth/test-u16-strwidth.c: New file.
18254         * modules/uniwidth/u16-strwidth-tests: New file.
18255
18256         * lib/uniwidth/u16-strwidth.c: New file.
18257         * modules/uniwidth/u16-strwidth: New file.
18258
18259         * tests/uniwidth/test-u8-strwidth.c: New file.
18260         * modules/uniwidth/u8-strwidth-tests: New file.
18261
18262         * lib/uniwidth/u8-strwidth.c: New file.
18263         * modules/uniwidth/u8-strwidth: New file.
18264
18265         * tests/uniwidth/test-u32-width.c: New file.
18266         * modules/uniwidth/u32-width-tests: New file.
18267
18268         * lib/uniwidth/u32-width.c: New file.
18269         * modules/uniwidth/u32-width: New file.
18270
18271         * tests/uniwidth/test-u16-width.c: New file.
18272         * modules/uniwidth/u16-width-tests: New file.
18273
18274         * lib/uniwidth/u16-width.c: New file.
18275         * modules/uniwidth/u16-width: New file.
18276
18277         * tests/uniwidth/test-u8-width.c: New file.
18278         * modules/uniwidth/u8-width-tests: New file.
18279
18280         * lib/uniwidth/u8-width.c: New file.
18281         * modules/uniwidth/u8-width: New file.
18282
18283         * tests/uniwidth/test-uc_width.c: New file.
18284         * modules/uniwidth/width-tests: New file.
18285
18286         * lib/uniwidth/width.c: New file, from GNU libiconv.
18287         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18288         * modules/uniwidth/width: New file.
18289
18290         * lib/uniwidth.h: New file, from GNU libiconv.
18291         * modules/uniwidth/base: New file.
18292
18293 2007-07-07  Bruno Haible  <bruno@clisp.org>
18294
18295         * lib/uniname.h: New file, from GNU gettext.
18296         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18297         * lib/uniname/uninames.h: New file, from GNU gettext.
18298         * lib/uniname/uniname.c: New file, from GNU gettext.
18299         * tests/uniname/test-uninames.sh: New file.
18300         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18301         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18302         * modules/uniname/base: New file.
18303         * modules/uniname/uniname: New file.
18304         * modules/uniname/uniname-tests: New file.
18305         * MODULES.html.sh (Unicode string functions): Add the new modules.
18306
18307 2007-07-06  Bruno Haible  <bruno@clisp.org>
18308
18309         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18310
18311 2007-07-06  Bruno Haible  <bruno@clisp.org>
18312
18313         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18314         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18315         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18316         include <sys/time.h>.
18317         Reported by Eric Blake.
18318
18319 2007-07-06  Eric Blake  <ebb9@byu.net>
18320
18321         Fix testing canonicalize on cygwin.
18322         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18323         Revert patch from 2007-06-19.
18324         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18325         canonicalize module is also in use.
18326         * tests/test-canonicalize.c: New file.
18327         * tests/test-canonicalize.sh: Likewise.
18328         * modules/canonicalize-tests: Likewise.
18329
18330 2007-07-06  Jim Meyering  <jim@meyering.net>
18331
18332         * lib/getugroups.c (getugroups): Detect getgrent failure.
18333         Adjust comment to reflect reality: this function may return -1.
18334
18335 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18336
18337         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18338         the new TP address.
18339         (usage): Fix typo
18340         (gnulib_mk): New variable.
18341
18342 2007-07-05  Jim Meyering  <jim@meyering.net>
18343
18344         Don't let endgrent clobber errno, no matter how improbable.
18345         * lib/getugroups.c (getugroups): Save and restore errno around
18346         endgrent call.
18347
18348         Close the group DB even when failing with 2^31 or more members.
18349         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18350
18351 2007-07-04  Jim Meyering  <jim@meyering.net>
18352
18353         * lib/getugroups.h: New file.
18354         * lib/getugroups.c: Include "getugroups.h".
18355         Remove uses of "register" keyword.
18356         Move local variable, "cp", down into scope where used.
18357         Give "username" parameter the "const" attribute.
18358         * modules/getugroups (Files): Add lib/getugroups.h
18359
18360 2007-07-04  Karl Berry  <karl@gnu.org>
18361
18362         * MODULES.html.sh (func_all_modules): Complete rename of
18363         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18364
18365 2007-07-02  Bruno Haible  <bruno@clisp.org>
18366
18367         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18368         mode, when inttypes.h comes from gnulib.
18369         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18370
18371 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18372
18373         * NEWS: Mention lgpl module name change.
18374
18375         * modules/lgpl-2.1: Renamed from lgpl.
18376
18377         * NEWS: Mention gpl module name change.
18378
18379         * modules/gpl-3.0: New file, based on gpl-2.0.
18380
18381         * modules/gpl-2.0: Renamed from gpl.
18382
18383         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18384         doc/gpl-2.0.texi.
18385
18386 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18387
18388         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18389         #define __STDC_LIMIT_MACROS temporarily while including
18390         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18391         Problem reported by Joel E. Denny in
18392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18393
18394 2007-07-01  Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/unistdio.h: New file.
18397         * lib/unistdio/u-asnprintf.h: New file.
18398         * lib/unistdio/u-asprintf.h: New file.
18399         * lib/unistdio/u-printf-args.c: New file.
18400         * lib/unistdio/u-printf-args.h: New file.
18401         * lib/unistdio/u-printf-parse.h: New file.
18402         * lib/unistdio/u-snprintf.h: New file.
18403         * lib/unistdio/u-sprintf.h: New file.
18404         * lib/unistdio/u-vasprintf.h: New file.
18405         * lib/unistdio/u-vsnprintf.h: New file.
18406         * lib/unistdio/u-vsprintf.h: New file.
18407         * lib/unistdio/ulc-asnprintf.c: New file.
18408         * lib/unistdio/ulc-asprintf.c: New file.
18409         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18410         * lib/unistdio/ulc-printf-parse.c: New file.
18411         * lib/unistdio/ulc-snprintf.c: New file.
18412         * lib/unistdio/ulc-sprintf.c: New file.
18413         * lib/unistdio/ulc-vasnprintf.c: New file.
18414         * lib/unistdio/ulc-vasprintf.c: New file.
18415         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18416         * lib/unistdio/ulc-vsnprintf.c: New file.
18417         * lib/unistdio/ulc-vsprintf.c: New file.
18418         * lib/unistdio/u8-asnprintf.c: New file.
18419         * lib/unistdio/u8-asprintf.c: New file.
18420         * lib/unistdio/u8-printf-parse.c: New file.
18421         * lib/unistdio/u8-snprintf.c: New file.
18422         * lib/unistdio/u8-sprintf.c: New file.
18423         * lib/unistdio/u8-vasnprintf.c: New file.
18424         * lib/unistdio/u8-vasprintf.c: New file.
18425         * lib/unistdio/u8-vsnprintf.c: New file.
18426         * lib/unistdio/u8-vsprintf.c: New file.
18427         * lib/unistdio/u8-u8-asnprintf.c: New file.
18428         * lib/unistdio/u8-u8-asprintf.c: New file.
18429         * lib/unistdio/u8-u8-snprintf.c: New file.
18430         * lib/unistdio/u8-u8-sprintf.c: New file.
18431         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18432         * lib/unistdio/u8-u8-vasprintf.c: New file.
18433         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18434         * lib/unistdio/u8-u8-vsprintf.c: New file.
18435         * lib/unistdio/u16-asnprintf.c: New file.
18436         * lib/unistdio/u16-asprintf.c: New file.
18437         * lib/unistdio/u16-printf-parse.c: New file.
18438         * lib/unistdio/u16-snprintf.c: New file.
18439         * lib/unistdio/u16-sprintf.c: New file.
18440         * lib/unistdio/u16-vasnprintf.c: New file.
18441         * lib/unistdio/u16-vasprintf.c: New file.
18442         * lib/unistdio/u16-vsnprintf.c: New file.
18443         * lib/unistdio/u16-vsprintf.c: New file.
18444         * lib/unistdio/u16-u16-asnprintf.c: New file.
18445         * lib/unistdio/u16-u16-asprintf.c: New file.
18446         * lib/unistdio/u16-u16-snprintf.c: New file.
18447         * lib/unistdio/u16-u16-sprintf.c: New file.
18448         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18449         * lib/unistdio/u16-u16-vasprintf.c: New file.
18450         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18451         * lib/unistdio/u16-u16-vsprintf.c: New file.
18452         * lib/unistdio/u32-asnprintf.c: New file.
18453         * lib/unistdio/u32-asprintf.c: New file.
18454         * lib/unistdio/u32-printf-parse.c: New file.
18455         * lib/unistdio/u32-snprintf.c: New file.
18456         * lib/unistdio/u32-sprintf.c: New file.
18457         * lib/unistdio/u32-vasnprintf.c: New file.
18458         * lib/unistdio/u32-vasprintf.c: New file.
18459         * lib/unistdio/u32-vsnprintf.c: New file.
18460         * lib/unistdio/u32-vsprintf.c: New file.
18461         * lib/unistdio/u32-u32-asnprintf.c: New file.
18462         * lib/unistdio/u32-u32-asprintf.c: New file.
18463         * lib/unistdio/u32-u32-snprintf.c: New file.
18464         * lib/unistdio/u32-u32-sprintf.c: New file.
18465         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18466         * lib/unistdio/u32-u32-vasprintf.c: New file.
18467         * lib/unistdio/u32-u32-vsnprintf.c: New file.
18468         * lib/unistdio/u32-u32-vsprintf.c: New file.
18469         * tests/unistdio/test-ulc-asnprintf1.c: New file.
18470         * tests/unistdio/test-ulc-asnprintf1.h: New file.
18471         * tests/unistdio/test-ulc-printf1.h: New file.
18472         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18473         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18474         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18475         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18476         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18477         * tests/unistdio/test-ulc-vasprintf1.c: New file.
18478         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18479         * tests/unistdio/test-ulc-vsprintf1.c: New file.
18480         * tests/unistdio/test-u8-asnprintf1.c: New file.
18481         * tests/unistdio/test-u8-asnprintf1.h: New file.
18482         * tests/unistdio/test-u8-printf1.h: New file.
18483         * tests/unistdio/test-u8-vasnprintf1.c: New file.
18484         * tests/unistdio/test-u8-vasnprintf2.c: New file.
18485         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18486         * tests/unistdio/test-u8-vasnprintf3.c: New file.
18487         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18488         * tests/unistdio/test-u8-vasprintf1.c: New file.
18489         * tests/unistdio/test-u8-vsnprintf1.c: New file.
18490         * tests/unistdio/test-u8-vsprintf1.c: New file.
18491         * tests/unistdio/test-u16-asnprintf1.c: New file.
18492         * tests/unistdio/test-u16-asnprintf1.h: New file.
18493         * tests/unistdio/test-u16-printf1.h: New file.
18494         * tests/unistdio/test-u16-vasnprintf1.c: New file.
18495         * tests/unistdio/test-u16-vasnprintf2.c: New file.
18496         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18497         * tests/unistdio/test-u16-vasnprintf3.c: New file.
18498         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18499         * tests/unistdio/test-u16-vasprintf1.c: New file.
18500         * tests/unistdio/test-u16-vsnprintf1.c: New file.
18501         * tests/unistdio/test-u16-vsprintf1.c: New file.
18502         * tests/unistdio/test-u32-asnprintf1.c: New file.
18503         * tests/unistdio/test-u32-asnprintf1.h: New file.
18504         * tests/unistdio/test-u32-printf1.h: New file.
18505         * tests/unistdio/test-u32-vasnprintf1.c: New file.
18506         * tests/unistdio/test-u32-vasnprintf2.c: New file.
18507         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18508         * tests/unistdio/test-u32-vasnprintf3.c: New file.
18509         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18510         * tests/unistdio/test-u32-vasprintf1.c: New file.
18511         * tests/unistdio/test-u32-vsnprintf1.c: New file.
18512         * tests/unistdio/test-u32-vsprintf1.c: New file.
18513         * modules/unistdio/base: New file.
18514         * modules/unistdio/u-printf-args: New file.
18515         * modules/unistdio/ulc-asnprintf: New file.
18516         * modules/unistdio/ulc-asprintf: New file.
18517         * modules/unistdio/ulc-fprintf: New file.
18518         * modules/unistdio/ulc-printf-parse: New file.
18519         * modules/unistdio/ulc-snprintf: New file.
18520         * modules/unistdio/ulc-sprintf: New file.
18521         * modules/unistdio/ulc-vasnprintf: New file.
18522         * modules/unistdio/ulc-vasprintf: New file.
18523         * modules/unistdio/ulc-vfprintf: New file.
18524         * modules/unistdio/ulc-vsnprintf: New file.
18525         * modules/unistdio/ulc-vsprintf: New file.
18526         * modules/unistdio/u8-asnprintf: New file.
18527         * modules/unistdio/u8-asprintf: New file.
18528         * modules/unistdio/u8-printf-parse: New file.
18529         * modules/unistdio/u8-snprintf: New file.
18530         * modules/unistdio/u8-sprintf: New file.
18531         * modules/unistdio/u8-vasnprintf: New file.
18532         * modules/unistdio/u8-vasprintf: New file.
18533         * modules/unistdio/u8-vsnprintf: New file.
18534         * modules/unistdio/u8-vsprintf: New file.
18535         * modules/unistdio/u8-u8-asnprintf: New file.
18536         * modules/unistdio/u8-u8-asprintf: New file.
18537         * modules/unistdio/u8-u8-snprintf: New file.
18538         * modules/unistdio/u8-u8-sprintf: New file.
18539         * modules/unistdio/u8-u8-vasnprintf: New file.
18540         * modules/unistdio/u8-u8-vasprintf: New file.
18541         * modules/unistdio/u8-u8-vsnprintf: New file.
18542         * modules/unistdio/u8-u8-vsprintf: New file.
18543         * modules/unistdio/u16-asnprintf: New file.
18544         * modules/unistdio/u16-asprintf: New file.
18545         * modules/unistdio/u16-printf-parse: New file.
18546         * modules/unistdio/u16-snprintf: New file.
18547         * modules/unistdio/u16-sprintf: New file.
18548         * modules/unistdio/u16-vasnprintf: New file.
18549         * modules/unistdio/u16-vasprintf: New file.
18550         * modules/unistdio/u16-vsnprintf: New file.
18551         * modules/unistdio/u16-vsprintf: New file.
18552         * modules/unistdio/u16-u16-asnprintf: New file.
18553         * modules/unistdio/u16-u16-asprintf: New file.
18554         * modules/unistdio/u16-u16-snprintf: New file.
18555         * modules/unistdio/u16-u16-sprintf: New file.
18556         * modules/unistdio/u16-u16-vasnprintf: New file.
18557         * modules/unistdio/u16-u16-vasprintf: New file.
18558         * modules/unistdio/u16-u16-vsnprintf: New file.
18559         * modules/unistdio/u16-u16-vsprintf: New file.
18560         * modules/unistdio/u32-asnprintf: New file.
18561         * modules/unistdio/u32-asprintf: New file.
18562         * modules/unistdio/u32-printf-parse: New file.
18563         * modules/unistdio/u32-snprintf: New file.
18564         * modules/unistdio/u32-sprintf: New file.
18565         * modules/unistdio/u32-vasnprintf: New file.
18566         * modules/unistdio/u32-vasprintf: New file.
18567         * modules/unistdio/u32-vsnprintf: New file.
18568         * modules/unistdio/u32-vsprintf: New file.
18569         * modules/unistdio/u32-u32-asnprintf: New file.
18570         * modules/unistdio/u32-u32-asprintf: New file.
18571         * modules/unistdio/u32-u32-snprintf: New file.
18572         * modules/unistdio/u32-u32-sprintf: New file.
18573         * modules/unistdio/u32-u32-vasnprintf: New file.
18574         * modules/unistdio/u32-u32-vasprintf: New file.
18575         * modules/unistdio/u32-u32-vsnprintf: New file.
18576         * modules/unistdio/u32-u32-vsprintf: New file.
18577         * modules/unistdio/ulc-asnprintf-tests: New file.
18578         * modules/unistdio/ulc-vasnprintf-tests: New file.
18579         * modules/unistdio/ulc-vasprintf-tests: New file.
18580         * modules/unistdio/ulc-vsnprintf-tests: New file.
18581         * modules/unistdio/ulc-vsprintf-tests: New file.
18582         * modules/unistdio/u8-asnprintf-tests: New file.
18583         * modules/unistdio/u8-vasnprintf-tests: New file.
18584         * modules/unistdio/u8-vasprintf-tests: New file.
18585         * modules/unistdio/u8-vsnprintf-tests: New file.
18586         * modules/unistdio/u8-vsprintf-tests: New file.
18587         * modules/unistdio/u16-asnprintf-tests: New file.
18588         * modules/unistdio/u16-vasnprintf-tests: New file.
18589         * modules/unistdio/u16-vasprintf-tests: New file.
18590         * modules/unistdio/u16-vsnprintf-tests: New file.
18591         * modules/unistdio/u16-vsprintf-tests: New file.
18592         * modules/unistdio/u32-asnprintf-tests: New file.
18593         * modules/unistdio/u32-vasnprintf-tests: New file.
18594         * modules/unistdio/u32-vasprintf-tests: New file.
18595         * modules/unistdio/u32-vsnprintf-tests: New file.
18596         * modules/unistdio/u32-vsprintf-tests: New file.
18597         * MODULES.html.sh (Unicode string functions): Add the new modules.
18598
18599 2007-07-01  Bruno Haible  <bruno@clisp.org>
18600
18601         * lib/sprintf.c (sprintf): Limit the available length estimation,
18602         to avoid address wraparound.
18603         * lib/vsprintf.c (vsprintf): Likewise.
18604         * modules/sprintf-posix (Dependencies): Add stdint.
18605         * modules/vsprintf-posix (Dependencies): Likewise.
18606
18607 2007-07-01  Bruno Haible  <bruno@clisp.org>
18608
18609         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
18610         Windows PATH as well. Conservative double-quoting. Comments.
18611
18612 2007-07-01  Bruno Haible  <bruno@clisp.org>
18613             Eric Blake  <ebb9@byu.net>
18614             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18615
18616         * gnulib-tool (self_abspathname): Fix algorithm to cope with
18617         empty components in $PATH, denoting '.'.
18618
18619 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18620
18621         * gnulib-tool: Fix indentation.
18622         (func_create_megatestdir): Likewise.
18623         Report by Bruno Haible.
18624
18625 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18626
18627         Sync from Automake.
18628         * build-aux/gnupload: Fix shell portability issues with for loops.
18629         Report by Karl Berry.
18630
18631 2007-06-29  Simon Josefsson  <simon@josefsson.org>
18632
18633         * build-aux/maint.mk (POURL): Use translationproject.org.
18634
18635 2007-06-27  Simon Josefsson  <simon@josefsson.org>
18636             Bruno Haible  <bruno@clisp.org>
18637
18638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
18639         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
18640         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
18641         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
18642         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
18643
18644 2007-06-27  Bruno Haible  <bruno@clisp.org>
18645
18646         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
18647         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
18648
18649 2007-06-26  Karl Berry  <karl@gnu.org>
18650
18651         * MODULES.html.sh: remove xreadlink-with-size.
18652
18653 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18654
18655         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
18656         method that I hope also handles the double-include problem noted
18657         by Bruno Haible in
18658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
18659
18660 2007-06-23  Bruno Haible  <bruno@clisp.org>
18661
18662         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18663         Don't let the 'mostlyclean' target fail if the last subdirectory could
18664         not be removed.
18665         Reported by Karl Berry.
18666
18667 2007-06-23  Bruno Haible  <bruno@clisp.org>
18668
18669         * gnulib-tool (echo): Add a speedier workaround for ksh.
18670         * tests/test-echo.sh: Likewise.
18671
18672 2007-06-23  Bruno Haible  <bruno@clisp.org>
18673
18674         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
18675         * tests/test-echo.sh: Likewise.
18676
18677 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18678
18679         * gnulib-tool (IFS): Initialize early, so we don't set it to
18680         empty later.
18681         (self_abspathname): Rewrite algorithm to set it, reindent.
18682         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
18683         (func_create_megatestdir): Merge some sed scripts.
18684
18685 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18686
18687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
18688         exposed by Sun Studio 11 cc on Solaris 8.
18689
18690 2007-06-22  Bruno Haible  <bruno@clisp.org>
18691
18692         * gnulib-tool (echo): Ensure the echo primitive does not interpret
18693         backslashes.
18694         * tests/test-echo.sh: New file.
18695
18696 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18697
18698         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
18699         simplify `sed_replace_build_aux' scripts, they are portable but
18700         echoing them with `echo' is not.
18701         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
18702
18703 2007-06-21  Karl Berry  <karl@gnu.org>
18704
18705         * config/srclist.txt: guess we can't handle the licenses via
18706         srclist at the moment.
18707
18708 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18709
18710         * MODULES.html.sh: Add include_next.
18711         * modules/include_next: New file.
18712
18713 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18714
18715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
18716         INCLUDE_NEXT.
18717         (gl_CHECK_NEXT_HEADERS): New macro.
18718         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
18719         the obsolescent gl_ABSOLUTE_HEADER.
18720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18721         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18722         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18723         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18724         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18725         * m4/math_h.m4 (gl_MATH_H): Likewise.
18726         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18727         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18728         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18729         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18730         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18731         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18732         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18733         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18737         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18738         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
18739         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18740         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18741         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18742         * m4/inttypes.m4 (gl_INTTYPES_H): Define
18743         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
18744         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
18745         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
18746         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
18747         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
18748         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
18749         * lib/float_.h: Likewise.
18750         * lib/inttypes_.h: Likewise.
18751         * lib/math_.h: Likewise.
18752         * lib/search_.h: Likewise.
18753         * lib/signal_.h: Likewise.
18754         * lib/stdint_.h: Likewise.
18755         * lib/stdio_.h: Likewise.
18756         * lib/stdlib_.h: Likewise.
18757         * lib/string_.h: Likewise.
18758         * lib/sys_stat_.h: Likewise.
18759         * lib/sys_time_.h: Likewise.
18760         * lib/time_.h: Likewise.
18761         * lib/unistd_.h: Likewise.
18762         * lib/wchar_.h: Likewise.
18763         * lib/wctype_.h: Likewise.
18764         * lib/dirent_.h: Likewise.
18765         * lib/iconv_.h: Likewise.
18766         * lib/locale_.h: Likewise.
18767         * lib/netinet_in_.h: Likewise.
18768         * lib/sys_select_.h: Likewise.
18769         * lib/sys_socket_.h: Likewise.
18770         * lib/sysexits_.h: Likewise.
18771         * modules/fcntl (Depends-on): Depend on include_next, not
18772         absolute_header.
18773         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
18774         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
18775         * modules/fchdir: Likewise.
18776         * modules/float: Likewise.
18777         * modules/iconv_open: Likewise.
18778         * modules/inttypes: Likewise.
18779         * modules/locale: Likewise.
18780         * modules/math: Likewise.
18781         * modules/netinet_in: Likewise.
18782         * modules/search: Likewise.
18783         * modules/signal: Likewise.
18784         * modules/stdint: Likewise.
18785         * modules/stdio: Likewise.
18786         * modules/stdlib: Likewise.
18787         * modules/string: Likewise.
18788         * modules/sys_select: Likewise.
18789         * modules/sys_socket: Likewise.
18790         * modules/sys_stat: Likewise.
18791         * modules/sys_time: Likewise.
18792         * modules/sysexits: Likewise.
18793         * modules/time: Likewise.
18794         * modules/unistd: Likewise.
18795         * modules/wchar: Likewise.
18796         * modules/wctype: Likewise.
18797         * modules/sys_stat: Change maintainer to "all".
18798         * modules/unistd: Likewise.
18799
18800 2007-06-20  Karl Berry  <karl@gnu.org>
18801
18802         * config/srclist.txt: track www changes in license files.
18803
18804 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
18805
18806         * build-aux/bootstrap: Remove stray dot.
18807         Make sure build_aux settings are honored when linking
18808         gnulib_extra_files.
18809
18810 2007-06-19  Eric Blake  <ebb9@byu.net>
18811
18812         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18813         Allow compilation on cygwin.
18814
18815 2007-06-19  Jim Meyering  <jim@meyering.net>
18816
18817         xreadlink-with-size: Remove module.  No longer used.
18818         Ex-callers now use xreadlink or mreadlink-with-size.
18819         * modules/xreadlink-with-size: Remove module.
18820         * lib/xreadlink-with-size.c: Remove file.
18821         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
18822         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
18823         just before the function definition *is* accurate.
18824
18825         Eliminate one way canonicalize_filename_mode could exit.
18826         * lib/canonicalize.c (canonicalize_filename_mode):
18827         Use mreadlink_with_size, not xreadlink_with_size.
18828
18829 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18830
18831         Detect porting problems to FreeBSD/arm, which has time_t wider than
18832         long int.  Original problem reported for GNU diff by Xin Li in
18833         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
18834         * modules/getdate (Depends-on): Add intprops, verify.
18835         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
18836         is an integer type no wider than long int.
18837
18838 2007-06-18  Jim Meyering  <jim@meyering.net>
18839
18840         New module: mreadlink-with-size.
18841         * MODULES.html.sh: Add mreadlink-with-size.
18842         * modules/mreadlink-with-size: New module
18843         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
18844         not xreadlink-with-size.
18845         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
18846
18847 2007-06-16  Bruno Haible  <bruno@clisp.org>
18848
18849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
18850         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
18851         Reported by Gary V. Vaughan <gary@gnu.org>.
18852
18853 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         Revamp lchown so that it lives in unistd.h where it belongs.
18856         * lib/lchown.h: Remove.
18857         * lib/dirchownmod.c: Don't include lib/lchown.h.
18858         * lib/fchownat.c: Likewise.
18859         * lib/openat.c: Likewise.
18860         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
18861         does not follow symlinks.
18862         (EOPNOTSUPP): Define if not defined.
18863         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
18864         is defined to 0.
18865         (lchown): New decl.
18866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
18867         Do not check for lchown decl.
18868         Set REPLACE_LCHOWN.
18869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
18870         REPLACE_LCHOWN.
18871         * modules/chown: Make it clear it follows symlinks.
18872         * modules/lchown: Make it clear it doesn't follow symlinks.
18873         (Files): Remove lib/lchown.h
18874         (Depends-on): Add unistd.
18875         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
18876         (Include): Include <unistd.h>, not "lchown.h".
18877         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
18878         REPLACE_LCHOWN.
18879
18880 2007-06-15  Jim Meyering  <jim@meyering.net>
18881
18882         Change license (GPL to LGPL) of fsusage and dependents.
18883         * modules/fsusage (License): Change to LGPL.
18884         * modules/full-read (License): Likewise.
18885         * modules/full-write (License): Likewise.
18886         * modules/safe-read (License): Likewise.
18887         * modules/safe-write (License): Likewise.
18888
18889 2007-06-14  Ben Pfaff  <blp@gnu.org>
18890
18891         Missing part of allocsa -> malloca transition.
18892         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
18893         gl_MALLOCA.
18894
18895 2007-06-12  Bruno Haible  <bruno@clisp.org>
18896
18897         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
18898         to ia64, x86_64, i386.
18899         Reported by Eric Blake.
18900
18901 2007-06-12  Bruno Haible  <bruno@clisp.org>
18902
18903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
18904         cross-compiling to x86_64.
18905
18906 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
18909         glitch reported by Ralf Wildenhues in
18910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
18911
18912         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
18913         Vin Shelton.
18914
18915 2007-06-11  Bruno Haible  <bruno@clisp.org>
18916
18917         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
18918         replacement string.
18919         Reported by Eric Blake.
18920
18921 2007-06-10  Bruno Haible  <bruno@clisp.org>
18922
18923         Prepare vasnprintf code for use with Unicode strings.
18924         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
18925         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
18926         TYPE_U32_STRING.
18927         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
18928         a_u32_string variants.
18929         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
18930         * lib/printf-args.c: Don't include config.h and the specification
18931         header if PRINTF_FETCHARGS is already defined.
18932         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
18933         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
18934         TYPE_U16_STRING, TYPE_U32_STRING.
18935         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
18936         u16_directive, u16_directives, u32_directive, u32_directives): New
18937         types.
18938         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
18939         New declarations.
18940         * lib/printf-parse.c: Don't include config.h and the specification
18941         header if PRINTF_PARSE is already defined. Eliminate the set of
18942         parameters for WIDE_CHAR_VERSION; the user of this file must provide
18943         them now. Include c-ctype.h.
18944         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
18945         directive and CHAR_T_ONLY_ASCII.
18946         * lib/vasnprintf.c: Don't include config.h and the specification header
18947         if VASNPRINTF is already defined.
18948         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
18949         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
18950         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
18951         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
18952         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
18953         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
18954         code accordingly.
18955         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
18956         pad_ourselves also in this case, with the 'c' and 's' directives, and
18957         with a different notion of "width".
18958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
18959
18960 2007-06-10  Bruno Haible  <bruno@clisp.org>
18961
18962         * modules/unistr/u32-mbsnlen: New file.
18963         * lib/unistr/u32-mbsnlen.c: New file.
18964
18965         * modules/unistr/u16-mbsnlen: New file.
18966         * lib/unistr/u16-mbsnlen.c: New file.
18967
18968         * modules/unistr/u8-mbsnlen: New file.
18969         * lib/unistr/u8-mbsnlen.c: New file.
18970
18971         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
18972         declarations.
18973
18974 2007-06-10  Bruno Haible  <bruno@clisp.org>
18975
18976         * lib/string_.h (mbsnlen): New declaration.
18977         * lib/mbsnlen.c: New file.
18978         * m4/mbsnlen.m4: New file.
18979         * modules/mbsnlen: New file.
18980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
18981         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
18982         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
18983
18984 2007-06-10  Bruno Haible  <bruno@clisp.org>
18985
18986         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
18987
18988 2007-06-10  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
18991         * lib/mbuiter.h: Likewise.
18992
18993 2007-06-10  Bruno Haible  <bruno@clisp.org>
18994
18995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
18996         declaration.
18997
18998 2007-06-10  Karl Berry  <karl@gnu.org>
18999
19000         * config/srclist.txt: remove gettext entries, Bruno prefers
19001         to update individually.
19002
19003 2007-06-10  Bruno Haible  <bruno@clisp.org>
19004
19005         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19006         'maxlen'. Ensure only length + width bytes are allocated, not
19007         length + 1 + width.
19008
19009 2007-06-09  Bruno Haible  <bruno@clisp.org>
19010
19011         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19012         (CHAR_T): Remove macro.
19013         (VASNPRINTF): Update.
19014
19015 2007-06-09  Bruno Haible  <bruno@clisp.org>
19016
19017         * MODULES.html.sh (Unicode string functions): Add the new modules.
19018
19019         * modules/uniconv/u32-conv-to-enc: New file.
19020         * lib/uniconv/u32-conv-to-enc.c: New file.
19021         * modules/uniconv/u32-conv-to-enc-tests: New file.
19022         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19023
19024         * modules/uniconv/u16-conv-to-enc: New file.
19025         * lib/uniconv/u16-conv-to-enc.c: New file.
19026         * lib/uniconv/u-conv-to-enc.h: New file.
19027         * modules/uniconv/u16-conv-to-enc-tests: New file.
19028         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19029
19030         * modules/uniconv/u8-conv-to-enc: New file.
19031         * lib/uniconv/u8-conv-to-enc.c: New file.
19032         * modules/uniconv/u8-conv-to-enc-tests: New file.
19033         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19034
19035         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19036         u32_conv_to_encoding): New declarations.
19037
19038 2007-06-09  Bruno Haible  <bruno@clisp.org>
19039
19040         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19041
19042 2007-06-09  Bruno Haible  <bruno@clisp.org>
19043
19044         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19045         * modules/malloca: Renamed from modules/allocsa, updated.
19046         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19047         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19048         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19049         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19050         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19051         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19052         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19053         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19054         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19055         * modules/c-strcasestr (Depends-on): Update.
19056         * lib/c-strcasestr.c: Update.
19057         * modules/c-strstr (Depends-on): Update.
19058         * lib/c-strstr.c: Update.
19059         * modules/canonicalize-lgpl (Depends-on): Update.
19060         * lib/canonicalize-lgpl.c: Update.
19061         * modules/clean-temp (Depends-on): Update.
19062         * lib/clean-temp.c: Update.
19063         * modules/csharpcomp (Depends-on): Update.
19064         * lib/csharpcomp.c: Update.
19065         * modules/csharpexec (Depends-on): Update.
19066         * lib/csharpexec.c: Update.
19067         * modules/javacomp (Depends-on): Update.
19068         * lib/javacomp.c: Update.
19069         * modules/javaexec (Depends-on): Update.
19070         * lib/javaexec.c: Update.
19071         * modules/mbscasestr (Depends-on): Update.
19072         * lib/mbscasestr.c: Update.
19073         * modules/mbsstr (Depends-on): Update.
19074         * lib/mbsstr.c: Update.
19075         * modules/setenv (Depends-on): Update.
19076         * lib/setenv.c: Update.
19077         * modules/strcasestr (Depends-on): Update.
19078         * lib/strcasestr.c: Update.
19079         * modules/striconveha (Depends-on): Update.
19080         * lib/striconveha.c: Update.
19081         * modules/relocatable-prog-wrapper (Files): Update.
19082         * lib/relocwrapper.c: Update.
19083         * build-aux/install-reloc: Update.
19084         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19085
19086 2007-06-08  Bruno Haible  <bruno@clisp.org>
19087
19088         Port to uClibc.
19089         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19090         * lib/fpurge.c (fpurge): Likewise.
19091         * lib/freading.c (freading): Likewise.
19092         * lib/fseeko.c (rpl_fseeko): Likewise.
19093         * lib/fseterr.c (fseterr): Likewise.
19094         * lib/fwriting.c (fwriting): Likewise.
19095         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19096
19097 2007-06-08  Bruno Haible  <bruno@clisp.org>
19098
19099         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19100         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19101         * modules/gettext (Files): Add m4/intlmacosx.m4.
19102
19103 2007-06-07  Bruno Haible  <bruno@clisp.org>
19104
19105         * modules/localename-tests: New file.
19106         * tests/test-localename.c: New file.
19107
19108         New module 'localename'.
19109         * lib/localename.h: New file.
19110         * lib/localename.c: New file, from GNU gettext.
19111         * m4/localename.m4: New file.
19112         * modules/localename: New file.
19113
19114 2007-06-07  Bruno Haible  <bruno@clisp.org>
19115
19116         Work around the lack of <wchar.h> on some builds of uClibc.
19117         * doc/headers/wchar.texi: Update.
19118         * lib/wchar_.h: Include <wchar.h> only if it exists.
19119         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19120         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19121         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19122         doesn't exist.
19123         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19124         * modules/mbfile (Depends-on): Add wchar.
19125         * modules/mbiter (Depends-on): Likewise.
19126         * modules/mbuiter (Depends-on): Likewise.
19127         Reported by Simon Josefsson.
19128
19129 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19130
19131         Work around problem reported by Steven M. Schweda in
19132         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19133         Tru64 5.1B with the Compaq compiler environment installed declares
19134         an 'isblank' function but does not define it in the C library.
19135         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19136         * lib/regex_internal.h (isblank): Likewise.
19137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19139
19140 2007-06-05  Bruno Haible  <bruno@clisp.org>
19141
19142         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19143         ia64.
19144         * modules/printf-safe: New file.
19145         * modules/fprintf-posix (Depends-on): Add printf-safe.
19146         * modules/printf-posix (Depends-on): Likewise.
19147         * modules/snprintf-posix (Depends-on): Likewise.
19148         * modules/sprintf-posix (Depends-on): Likewise.
19149         * modules/vasnprintf-posix (Depends-on): Likewise.
19150         * modules/vasprintf-posix (Depends-on): Likewise.
19151         * modules/vfprintf-posix (Depends-on): Likewise.
19152         * modules/vprintf-posix (Depends-on): Likewise.
19153         * modules/vsnprintf-posix (Depends-on): Likewise.
19154         * modules/vsprintf-posix (Depends-on): Likewise.
19155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19156         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19157         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19158         "no" on i386, x86_64, ia64.
19159         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19160         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19161         on i386, x86_64, ia64.
19162         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19163         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19164         on i386, x86_64, ia64.
19165         * tests/test-vasnprintf-posix.c: Include float.h.
19166         (LDBL80_WORDS): New macro.
19167         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19168         on i386, x86_64, ia64.
19169         * tests/test-vasprintf-posix.c: Include float.h.
19170         (LDBL80_WORDS): New macro.
19171         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19172         on i386, x86_64, ia64.
19173         * tests/test-snprintf-posix.c: Include float.h.
19174         * tests/test-sprintf-posix.c: Likewise.
19175         * tests/test-vsnprintf-posix.c: Likewise.
19176         * tests/test-vsprintf-posix.c: Likewise.
19177
19178 2007-06-05  Bruno Haible  <bruno@clisp.org>
19179
19180         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19181         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19182         non-IEEE numbers on i386, x86_64, ia64.
19183         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19184         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19185         * tests/test-isnanl.h: Include float.h.
19186         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19187
19188 2007-06-05  Bruno Haible  <bruno@clisp.org>
19189
19190         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19191         also the %a / %A. Handle the %a / %A code before this extra handling.
19192
19193 2007-06-05  Bruno Haible  <bruno@clisp.org>
19194
19195         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19196         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19197
19198 2007-06-05  Bruno Haible  <bruno@clisp.org>
19199
19200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19201         typo in variable name.
19202
19203 2007-06-05  Eric Blake  <ebb9@byu.net>
19204
19205         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19206         Reported by Simon Josefsson.
19207
19208 2007-06-04  Bruno Haible  <bruno@clisp.org>
19209
19210         Avoid test failures on some PowerPC platforms.
19211         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19212         Define differently for PowerPC.
19213         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19214         Reported by Gary V. Vaughan <gary@gnu.org>.
19215
19216 2007-06-02  Bruno Haible  <bruno@clisp.org>
19217
19218         Fix test-stdint failure on FreeBSD/ia64.
19219         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19220         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19221         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19222         * doc/headers/stdint.texi: Update.
19223
19224 2007-06-01  Bruno Haible  <bruno@clisp.org>
19225
19226         * tests/test-binary-io.c (main): Pass a third argument to open().
19227         Reported by Gary V. Vaughan <gary@gnu.org>.
19228
19229 2007-06-01  Bruno Haible  <bruno@clisp.org>
19230
19231         * doc/functions/frexpl.texi: Update for mingw.
19232
19233 2007-06-01  Bruno Haible  <bruno@clisp.org>
19234
19235         * tests/test-lseek.c (main): Disable test of errno for invalid third
19236         argument.
19237         * doc/functions/lseek.texi: Update.
19238         Reported by Gary V. Vaughan <gary@gnu.org>.
19239
19240 2007-05-28  Bruno Haible  <bruno@clisp.org>
19241
19242         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19243
19244 2007-05-31  Eric Blake  <ebb9@byu.net>
19245
19246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19247         cross compiling.
19248
19249 2007-05-30  Eric Blake  <ebb9@byu.net>
19250         and Bruno Haible  <bruno@clisp.org>
19251
19252         Work around mingw test failures exposed by m4-1.4.9b.
19253         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19254         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19255         moment.
19256
19257 2007-05-30  Bruno Haible  <bruno@clisp.org>
19258
19259         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19260         assuming that they are closed. Needed on HP-UX 11.
19261
19262 2007-05-29  Bruno Haible  <bruno@clisp.org>
19263
19264         Fix a problem with #include_next.
19265         * lib/dirent_.h: Split the double-inclusion guard.
19266         * lib/fcntl_.h: Likewise.
19267         * lib/float_.h: Likewise.
19268         * lib/iconv_.h: Likewise.
19269         * lib/inttypes_.h: Likewise.
19270         * lib/locale_.h: Likewise.
19271         * lib/math_.h: Likewise.
19272         * lib/netinet_in_.h: Likewise.
19273         * lib/search_.h: Likewise.
19274         * lib/signal_.h: Likewise.
19275         * lib/stdint_.h: Likewise.
19276         * lib/stdio_.h: Likewise.
19277         * lib/stdlib_.h: Likewise.
19278         * lib/string_.h: Likewise.
19279         * lib/sys_select_.h: Likewise.
19280         * lib/sys_socket_.h: Likewise.
19281         * lib/sys_stat_.h: Likewise.
19282         * lib/sys_time_.h: Likewise.
19283         * lib/sysexits_.h: Likewise.
19284         * lib/time_.h: Likewise.
19285         * lib/unistd_.h: Likewise.
19286         * lib/wchar_.h: Likewise.
19287         * lib/wctype_.h: Likewise.
19288
19289 2007-05-29  Bruno Haible  <bruno@clisp.org>
19290
19291         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19292         for the moment.
19293
19294 2007-05-29  Bruno Haible  <bruno@clisp.org>
19295
19296         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19297         invocation.
19298         Reported by Eric Blake.
19299
19300 2007-05-29  Bruno Haible  <bruno@clisp.org>
19301
19302         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19303         compiling case.
19304
19305 2007-05-29  Eric Blake  <ebb9@byu.net>
19306             Bruno Haible  <bruno@clisp.org>
19307
19308         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19309         cross compiles.
19310
19311 2007-05-28  Eric Blake  <ebb9@byu.net>
19312
19313         * modules/closein-tests (test_closein_LDADD): Support test on
19314         cygwin with libtool.
19315
19316 2007-05-28  Bruno Haible  <bruno@clisp.org>
19317
19318         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19319         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19320         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19321         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19322         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19323         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19324         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19325         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19326         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19327
19328 2007-05-28  Eric Blake  <ebb9@byu.net>
19329
19330         Unconditionally include <config.h> in unit tests.
19331         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19332         * tests/test-allocsa.c, tests/test-arcfour.c,
19333         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19334         tests/test-array_list.c, tests/test-array_oset.c,
19335         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19336         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19337         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19338         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19339         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19340         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19341         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19342         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19343         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19344         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19345         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19346         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19347         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19348         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19349         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19350         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19351         test-md5.c, test-memmem.c, test-printf-posix.c,
19352         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19353         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19354         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19355         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19356         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19357         test-vasnprintf-posix2.c, test-vasnprintf.c,
19358         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19359         test-vfprintf-posix.c, test-vprintf-posix.c,
19360         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19361         test-xvasprintf.c: Likewise.
19362
19363 2007-05-28  Bruno Haible  <bruno@clisp.org>
19364
19365         * gnulib-tool (func_import): Remember the --with-tests command-line
19366         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19367         Reported by Eric Blake.
19368
19369 2007-05-28  Bruno Haible  <bruno@clisp.org>
19370
19371         * modules/ftell-tests: New file.
19372         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19373         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19374
19375         * lib/ftell.c: New file.
19376         * modules/ftell: New file.
19377         * m4/ftell.m4: New file.
19378         * doc/functions/ftell.texi: Update.
19379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19380         REPLACE_FTELL.
19381         * lib/stdio_.h (rpl_ftell): New declaration.
19382         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19383         REPLACE_FTELL.
19384
19385 2007-05-28  Eric Blake  <ebb9@byu.net>
19386
19387         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19388
19389 2007-05-28  Bruno Haible  <bruno@clisp.org>
19390
19391         * modules/fseek-tests: New file.
19392         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19393         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19394
19395         * lib/fseek.c: New file.
19396         * modules/fseek: New file.
19397         * m4/fseek.m4: New file.
19398         * doc/functions/fseek.texi: Update.
19399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19400         REPLACE_FSEEK.
19401         * lib/stdio_.h (rpl_fseek): New declaration.
19402         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19403         REPLACE_FSEEK.
19404
19405 2007-05-28  Bruno Haible  <bruno@clisp.org>
19406
19407         * lib/stdio_.h (fflush): More comments.
19408
19409 2007-05-28  Bruno Haible  <bruno@clisp.org>
19410
19411         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19412         runtime test.
19413
19414 2007-05-28  Eric Blake  <ebb9@byu.net>
19415
19416         Improve lseek module.
19417         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19418         * lib/unistd_.h (lseek): Scale back link warning message.
19419         * tests/test-lseek.c: Beef up test.
19420         * tests/test-lseek.sh: Exercise more facets of lseek.
19421         Reported by Bruno Haible.
19422
19423 2007-05-28  Bruno Haible  <bruno@clisp.org>
19424
19425         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19426         to define.
19427
19428 2007-05-27  Bruno Haible  <bruno@clisp.org>
19429
19430         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19431
19432 2007-05-27  Bruno Haible  <bruno@clisp.org>
19433
19434         * modules/openmp: New file.
19435         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19436         Noah Misch.
19437
19438 2007-05-26  Bruno Haible  <bruno@clisp.org>
19439
19440         * modules/chdir-long (Depends-on): Add fchdir.
19441         * modules/chdir-safer (Depends-on): Likewise.
19442         * modules/fts (Depends-on): Likewise.
19443         * modules/fts-lgpl (Depends-on): Likewise.
19444         * modules/openat (Depends-on): Likewise.
19445         * modules/savewd (Depends-on): Likewise.
19446
19447 2007-05-24  Eric Blake  <ebb9@byu.net>
19448
19449         Fix lseek on mingw.
19450         * modules/lseek: New module.
19451         * m4/lseek.m4: New file.
19452         * lib/lseek.c: New file.
19453         * modules/lseek-tests: New file.
19454         * tests/test-lseek.c: New file.
19455         * tests/test-lseek.sh: New file.
19456         * MODULES.html.sh: Document lseek module.
19457         * modules/fflush (Depends-on): Add lseek, fseeko.
19458         * modules/fseeko (Depends-on): Likewise.
19459         * modules/ftello (Depends-on): Likewise.
19460         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19461         broken.
19462         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19463         broken.
19464         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19465         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19466         * lib/ftello.c (rpl_ftello): Likewise.
19467         * tests/test-fseeko.c (main): Test this.
19468         * tests/test-fseeko.sh: Likewise.
19469         * tests/test-ftello.c (main): Likewise.
19470         * tests/test-ftello.sh: Likewise.
19471         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19472         implies replacing fseek.
19473         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19474         HAVE_FTELLO.
19475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19476         * modules/unistd (Makefile.am): Likewise.
19477         * lib/unistd_.h (lseek): Declare a replacement.
19478         * doc/functions/lseek.texi (lseek): Document this fix.
19479         * doc/functions/fseek.texi (fseek): Likewise.
19480         * doc/functions/ftell.texi (ftell): Likewise.
19481
19482 2007-05-24  Bruno Haible  <bruno@clisp.org>
19483
19484         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19485         in the printed representation of a NaN.
19486         * tests/test-vasprintf-posix.c (test_function): Likewise.
19487         * tests/test-snprintf-posix.h (test_function): Likewise.
19488         * tests/test-sprintf-posix.h (test_function): Likewise.
19489         Reported by Eric Blake.
19490
19491 2007-05-23  Eric Blake  <ebb9@byu.net>
19492
19493         Fix fseeko/ftello on cygwin 1.5.24.
19494         * doc/functions/fseeko.texi (fseeko): Document the fix.
19495         * doc/functions/ftello.texi (ftello): Document the fix.
19496         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19497         * doc/functions/stdout.text (stdout): New file.
19498         * doc/functions/stderr.text (stderr): New file.
19499         * doc/gnulib.texi (Function Substitutes): Use new files.
19500         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19501         prior to 1.7.0.
19502         * tests/test-ftello.c (main): Likewise for ftello.
19503         * tests/test-fseeko.sh: New file.
19504         * tests/test-ftello.sh: New file.
19505         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19506         with seekable stdin.
19507         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19508         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19509         (gl_REPLACE_FSEEKO): New macro.
19510         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19511         * modules/fseeko (Files): Distribute fseeko.c.
19512         * modules/ftello (Files): Distribute ftello.c.
19513         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19514         mode.
19515         * lib/ftello.c (rpl_ftello): New file.
19516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19517         fseeko, ftello.
19518         (gl_STDIN_LARGE_OFFSET): New macro.
19519         * modules/stdio (Makefile.am): Perform the replacement.
19520         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19521
19522 2007-05-23  Bruno Haible  <bruno@clisp.org>
19523
19524         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19525         GNULIB_POSIXCHECK is defined.
19526
19527 2007-05-21  Bruno Haible  <bruno@clisp.org>
19528
19529         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19530         Check also the output for NaN arguments. When cross-compiling, guess
19531         no on IRIX.
19532         * lib/vasnprintf.c: Update comments.
19533         * tests/test-vasnprintf-posix.c (strisnan): New function.
19534         (test_function): Use it.
19535         * tests/test-vasprintf-posix.c (strisnan): New function.
19536         (test_function): Use it.
19537         * tests/test-snprintf-posix.h (strisnan): New function.
19538         (test_function): Use it.
19539         * tests/test-sprintf-posix.h (strisnan): New function.
19540         (test_function): Use it.
19541         Reported by Eric Blake.
19542
19543 2007-05-20  Bruno Haible  <bruno@clisp.org>
19544
19545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19546         numbers that fails on BeOS.
19547         * doc/functions/frexpl.texi: Update.
19548
19549 2007-05-20  Jim Meyering  <jim@meyering.net>
19550
19551         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19552         forced upon us by glibc-2.6.
19553
19554 2007-05-20  Bruno Haible  <bruno@clisp.org>
19555
19556         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19557         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19558         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19559         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19560         NEED_PRINTF_INFINITE.
19561         (is_infinitel): New function.
19562         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19564         gl_PREREQ_VASNPRINTF_INFINITE.
19565         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19567         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19568         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19569         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19570         gl_PREREQ_VASNPRINTF_INFINITE.
19571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19578         * doc/functions/fprintf.texi: Update.
19579         * doc/functions/printf.texi: Update.
19580         * doc/functions/snprintf.texi: Update.
19581         * doc/functions/sprintf.texi: Update.
19582         * doc/functions/vfprintf.texi: Update.
19583         * doc/functions/vprintf.texi: Update.
19584         * doc/functions/vsnprintf.texi: Update.
19585         * doc/functions/vsprintf.texi: Update.
19586
19587 2007-05-20  Bruno Haible  <bruno@clisp.org>
19588
19589         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19590         was not found in libc.
19591         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19592
19593 2007-05-20  Bruno Haible  <bruno@clisp.org>
19594
19595         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19596         printed as "-nan" instead of "nan".
19597         * tests/test-vasprintf-posix.c (test_function): Likewise.
19598         * tests/test-snprintf-posix.h (test_function): Likewise.
19599         * tests/test-sprintf-posix.h (test_function): Likewise.
19600         Needed for HP-UX 11.
19601
19602 2007-05-20  Jim Meyering  <jim@meyering.net>
19603
19604         Fix buggy test for the fchownat-deref bug.
19605         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19606         symlink required for the run-test.  Without it, this test would
19607         always declare that fchownat doesn't work, and client code would
19608         unnecessarily use the replacement function with fixed libc.
19609         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
19610         Reported by Greg Schafer.
19611
19612 2007-05-19  Bruno Haible  <bruno@clisp.org>
19613
19614         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
19615         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
19616         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
19617         Needed for IRIX 6.5 and Solaris 2.5.1.
19618
19619 2007-05-19  Bruno Haible  <bruno@clisp.org>
19620
19621         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
19622         (test_function): Skip tests involving -0.0 on platforms where
19623         -0.0 = 0.0.
19624         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
19625         (test_function): Skip tests involving -0.0 on platforms where
19626         -0.0 = 0.0.
19627         * tests/test-snprintf-posix.h (have_minus_zero): New function.
19628         (test_function): Skip tests involving -0.0 on platforms where
19629         -0.0 = 0.0.
19630         * tests/test-sprintf-posix.h (have_minus_zero): New function.
19631         (test_function): Skip tests involving -0.0 on platforms where
19632         -0.0 = 0.0.
19633         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
19634         tests.
19635         * tests/test-printf-posix.h (test_function): Likewise.
19636         * tests/test-printf-posix.output: Remove all -0.0 related results.
19637         Needed for IRIX 6.5.
19638
19639 2007-05-19  Bruno Haible  <bruno@clisp.org>
19640
19641         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19642         printed as "nan0x7fffffff" instead of "nan".
19643         * tests/test-vasprintf-posix.c (test_function): Likewise.
19644         * tests/test-snprintf-posix.h (test_function): Likewise.
19645         * tests/test-sprintf-posix.h (test_function): Likewise.
19646         * tests/test-fprintf-posix.h (NaN): Remove macro.
19647         (test_function): Remove all NaN related tests.
19648         * tests/test-printf-posix.h (NaN): Remove macro.
19649         (test_function): Remove all NaN related tests.
19650         * tests/test-printf-posix.output: Remove all NaN related results.
19651         Needed for IRIX 6.5.
19652
19653 2007-05-19  Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
19656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19657
19658 2007-05-19  Bruno Haible  <bruno@clisp.org>
19659
19660         * lib/float_.h: New file.
19661         * m4/float_h.m4: New file.
19662         * modules/float: New file.
19663         * modules/isnanl (Dependencies): Add float.
19664         * modules/isnanl-nolibm (Dependencies): Likewise.
19665         * modules/mathl (Dependencies): Likewise.
19666         * modules/printf-frexpl (Dependencies): Likewise.
19667         * modules/signbit (Dependencies): Likewise.
19668         * modules/vasnprintf (Dependencies): Likewise.
19669         * doc/headers/float.texi: Update.
19670
19671 2007-05-19  Jim Meyering  <jim@meyering.net>
19672
19673         * lib/utimens.c (gl_futimens): Rename from futimens,
19674         now that glibc-2.6 declares futimens.
19675         * lib/utimens.h: Likewise.
19676
19677 2007-05-19  Bruno Haible  <bruno@clisp.org>
19678
19679         Avoid test failures on mingw.
19680         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
19681         * tests/test-printf-posix.sh: Likewise.
19682         * tests/test-vfprintf-posix.sh: Likewise.
19683         * tests/test-vprintf-posix.sh: Likewise.
19684
19685 2007-05-19  Bruno Haible  <bruno@clisp.org>
19686
19687         Fix *printf result for NaN, Inf, -0.0 on mingw.
19688         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
19689         * lib/vasnprintf.c: Include math.h and isnan.h.
19690         (is_infinite_or_zero): New function.
19691         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
19692         values in the %f, %F, %e, %E, %g, %G directives.
19693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
19694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19695         gl_PRINTF_INFINITE and test its result. Invoke
19696         gl_PREREQ_VASNPRINTF_INFINITE.
19697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19704         * doc/functions/fprintf.texi: Update.
19705         * doc/functions/printf.texi: Update.
19706         * doc/functions/snprintf.texi: Update.
19707         * doc/functions/sprintf.texi: Update.
19708         * doc/functions/vfprintf.texi: Update.
19709         * doc/functions/vprintf.texi: Update.
19710         * doc/functions/vsnprintf.texi: Update.
19711         * doc/functions/vsprintf.texi: Update.
19712
19713 2007-05-19  Bruno Haible  <bruno@clisp.org>
19714
19715         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
19716         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
19717         Instead of multiplying with 10^k, set extra_zeroes to k.
19718         (scale10_round_long_double): Remove function.
19719
19720 2007-05-18  Bruno Haible  <bruno@clisp.org>
19721
19722         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
19723         introduced on 2007-05-06.
19724
19725 2007-05-18  Bruno Haible  <bruno@clisp.org>
19726
19727         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
19728         %g directives.
19729         * tests/test-vasprintf-posix.c (test_function): Likewise.
19730         * tests/test-snprintf-posix.h (test_function): Likewise.
19731         * tests/test-sprintf-posix.h (test_function): Likewise.
19732
19733 2007-05-18  Bruno Haible  <bruno@clisp.org>
19734
19735         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
19736         (strmatch): New function.
19737         (test_function): Test the %f directive on numbers of various exponents.
19738         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
19739         (strmatch): New function.
19740         (test_function): Test the %f directive on numbers of various exponents.
19741         * tests/test-snprintf-posix.h (strmatch): New function.
19742         (test_function): Test the %f directive on numbers of various exponents.
19743         * tests/test-sprintf-posix.h (strmatch): New function.
19744         (test_function): Test the %f directive on numbers of various exponents.
19745         * tests/test-snprintf-posix.c (SIZEOF): New macro.
19746         * tests/test-sprintf-posix.c (SIZEOF): New macro.
19747         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
19748         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
19749
19750 2007-05-18  Bruno Haible  <bruno@clisp.org>
19751
19752         Add support for 'long double' number output.
19753         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
19754         * lib/vasnprintf.c: Include math.h and float+.h.
19755         (mp_limb_t): New type.
19756         (GMP_LIMB_BITS): New macro.
19757         (mp_twolimb_t): New type.
19758         (GMP_TWOLIMB_BITS): New macro.
19759         (mpn_t): New type.
19760         (multiply, divide, convert_to_decimal, decode_long_double,
19761         scale10_round_long_double, scale10_round_decimal_long_double,
19762         floorlog10l): New functions.
19763         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
19764         for the %f, %F, %e, %E, %g, %G directives.
19765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
19766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19767         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
19768         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
19769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19772         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19776         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
19777         * modules/snprintf-posix (Depends-on): Likewise.
19778         * modules/sprintf-posix (Depends-on): Likewise.
19779         * modules/vasnprintf-posix (Depends-on): Likewise.
19780         * modules/vasprintf-posix (Depends-on): Likewise.
19781         * modules/vfprintf-posix (Depends-on): Likewise.
19782         * modules/vsnprintf-posix (Depends-on): Likewise.
19783         * modules/vsprintf-posix (Depends-on): Likewise.
19784         * modules/vasnprintf (Files): Add lib/float+.h.
19785         * doc/functions/fprintf.texi: Update.
19786         * doc/functions/printf.texi: Update.
19787         * doc/functions/snprintf.texi: Update.
19788         * doc/functions/sprintf.texi: Update.
19789         * doc/functions/vfprintf.texi: Update.
19790         * doc/functions/vprintf.texi: Update.
19791         * doc/functions/vsnprintf.texi: Update.
19792         * doc/functions/vsprintf.texi: Update.
19793
19794 2007-05-18  Bruno Haible  <bruno@clisp.org>
19795
19796         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
19797
19798 2007-05-18  Bruno Haible  <bruno@clisp.org>
19799
19800         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
19801         for printing 64-bit integers. Needed for mingw.
19802
19803 2007-05-18  Bruno Haible  <bruno@clisp.org>
19804
19805         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
19806         gl_FUNC_FREXPL_WORKS.
19807         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
19808
19809 2007-05-18  Bruno Haible  <bruno@clisp.org>
19810
19811         * modules/frexpl-nolibm-tests: New file.
19812
19813         * modules/frexpl-nolibm: New file.
19814         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
19815
19816 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19817
19818         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
19819         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19820         GCC 4.2, which otherwise issues a lot of warnings.
19821         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
19822         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
19823         Likewise.
19824         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
19825         * modules/iconv_open (iconv.h): Likewise.
19826         * modules/locale (locale.h): Likewise.
19827         * modules/netinet_in (netinet/in.h): Likewise.
19828         * modules/sys_select (sys_select.h): Likewise.
19829         * modules/sys_socket (sys/socket.h): Likewise.
19830         * modules/sys_stat (sys/stat.h): Likewise.
19831         * modules/sysexits (sysexits.h): Likewise.
19832         * modules/unistd (unistd.h): Likewise.
19833
19834 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19835
19836         * modules/closein-tests (Makefile.am): Distribute
19837         `test-closein.sh'.
19838
19839 2007-05-17  Bruno Haible  <bruno@clisp.org>
19840
19841         * tests/test-printf-posix.output: Renamed from
19842         tests/test-fprintf-posix.out.
19843         * modules/fprintf-posix-tests: Update.
19844         * modules/printf-posix-tests: Update.
19845         * modules/vfprintf-posix-tests: Update.
19846         * modules/vprintf-posix-tests: Update.
19847         * tests/test-fprintf-posix.sh: Update.
19848         * tests/test-printf-posix.sh: Update.
19849         * tests/test-vfprintf-posix.sh: Update.
19850         * tests/test-vprintf-posix.sh: Update.
19851         Reported by Ralf Wildenhues.
19852
19853 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19854
19855         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
19856         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19857         GCC 4.2, which otherwise issues a lot of warnings.
19858         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
19859         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
19860         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
19861         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
19862         it should no longer be needed.
19863         * lib/string_.h: Likewise.
19864         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
19865         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
19866         * modules/inttypes (inttypes.h): Likewise.
19867         * modules/math (math.h): Likewise.
19868         * modules/search (search.h): Likewise.
19869         * modules/signal (signal.h): Likewise.
19870         * modules/stdint (stdint.h): Likewise.
19871         * modules/stdio (stdio.h): Likewise.
19872         * modules/stdlib (stdlib.h): Likewise.
19873         * modules/string (string.h): Likewise.
19874         * modules/sys_time (sys/time.h): Likewise.
19875         * modules/time (time.h): Likewise.
19876         * modules/wchar (wchar.h): Likewise.
19877         * modules/wctype (wtype.h): Likewise.
19878
19879 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19880
19881         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
19882
19883 2007-05-13  Bruno Haible  <bruno@clisp.org>
19884
19885         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
19886         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19887         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
19888         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19889         (gl_PREREQ_STRTOK_R): Don't require it here.
19890
19891 2007-05-13  Bruno Haible  <bruno@clisp.org>
19892
19893         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
19894         when used in C++ mode.
19895
19896 2007-05-12  Bruno Haible  <bruno@clisp.org>
19897
19898         * lib/linebuffer.h: Tweak doc.
19899         * lib/linebuffer.c: Likewise.
19900
19901 2007-05-12  James Youngman  <jay@gnu.org>
19902
19903         * lib/linebuffer.c (readlinebuffer_delim): New function,
19904         like readlinebuffer, but use a caller-specified delimiter.
19905         (readlinebuffer): Just call readlinebuffer_delim with '\n'
19906         as the delimiter.
19907         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
19908
19909 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19910
19911         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
19912         * modules/openat (Files): Remove openat-die.c.
19913         (Depends-on): Add openat-die.
19914         * modules/openat-die: New module.
19915
19916 2007-05-06  Bruno Haible  <bruno@clisp.org>
19917
19918         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
19919         Update with info about Cygwin.
19920         * doc/functions/fprintf.texi: Update.
19921         * doc/functions/printf.texi: Update.
19922         * doc/functions/snprintf.texi: Update.
19923         * doc/functions/sprintf.texi: Update.
19924         * doc/functions/vfprintf.texi: Update.
19925         * doc/functions/vprintf.texi: Update.
19926         * doc/functions/vsnprintf.texi: Update.
19927         * doc/functions/vsprintf.texi: Update.
19928         Reported by Eric Blake.
19929
19930 2007-05-06  Bruno Haible  <bruno@clisp.org>
19931
19932         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
19933         padding ourselves for the floating-point directives.
19934         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
19935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
19936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19937         gl_PRINTF_FLAG_ZERO and test its result. Invoke
19938         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
19939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
19941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19946         * tests/test-snprintf-posix.h (test_function): Also check the width
19947         and some flags in the %f directive.
19948         * tests/test-sprintf-posix.h (test_function): Likewise.
19949         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19950         * tests/test-vasprintf-posix.c (test_function): Likewise.
19951         * doc/functions/fprintf.texi: Update.
19952         * doc/functions/printf.texi: Update.
19953         * doc/functions/snprintf.texi: Update.
19954         * doc/functions/sprintf.texi: Update.
19955         * doc/functions/vfprintf.texi: Update.
19956         * doc/functions/vprintf.texi: Update.
19957         * doc/functions/vsnprintf.texi: Update.
19958         * doc/functions/vsprintf.texi: Update.
19959
19960 2007-05-06  Bruno Haible  <bruno@clisp.org>
19961
19962         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
19963         pass the ' flag character to sprintf or snprintf.
19964         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
19965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
19966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19967         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
19968         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
19969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
19971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19976         * tests/test-snprintf-posix.h (test_function): Also check the grouping
19977         flag.
19978         * tests/test-sprintf-posix.h (test_function): Likewise.
19979         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19980         * tests/test-vasprintf-posix.c (test_function): Likewise.
19981         * doc/functions/fprintf.texi: Update.
19982         * doc/functions/printf.texi: Update.
19983         * doc/functions/snprintf.texi: Update.
19984         * doc/functions/sprintf.texi: Update.
19985         * doc/functions/vfprintf.texi: Update.
19986         * doc/functions/vprintf.texi: Update.
19987         * doc/functions/vsnprintf.texi: Update.
19988         * doc/functions/vsprintf.texi: Update.
19989
19990 2007-05-01  Bruno Haible  <bruno@clisp.org>
19991
19992         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
19993
19994 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19995
19996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
19997         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
19998
19999 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20000
20001         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20002         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20004
20005 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20006
20007         * lib/argp-help.c (struct hol_entry): New member `ord'.
20008         (HOL_ENTRY_PTRCMP): Use ord for comparison
20009         (hol_sort): Initialize ord.
20010
20011 2007-05-01  Bruno Haible  <bruno@clisp.org>
20012
20013         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20014         Reported by Eric Blake.
20015         * doc/gnulib.texi (Function Substitutes): Update.
20016
20017 2007-05-01  Bruno Haible  <bruno@clisp.org>
20018
20019         * doc/functions.texi: Remove file, now redundant through
20020         doc/functions/*.texi.
20021
20022 2007-05-01  Bruno Haible  <bruno@clisp.org>
20023
20024         * modules/argp (Depends-on): Add sleep.
20025
20026 2007-05-01  Bruno Haible  <bruno@clisp.org>
20027
20028         * modules/sleep-tests: New file.
20029         * tests/test-sleep.c: New file.
20030
20031         * modules/sleep: New file.
20032         * lib/sleep.c: New file.
20033         * m4/sleep.m4: New file.
20034         * lib/unistd_.h (sleep): New declaration.
20035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20036         HAVE_SLEEP.
20037         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20038         * doc/functions/sleep.texi: Document the sleep module.
20039
20040 2007-05-01  Bruno Haible  <bruno@clisp.org>
20041
20042         * lib/sigprocmask.h: Remove file.
20043         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20044         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20046         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20047         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20048         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20049         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20050         HAVE_SIGSET_T as a shell variable.
20051         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20052         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20053         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20054         (Depends-on): Add signal. Remove verify.
20055         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20056         (Include): Mention <signal.h> instead of sigprocmask.h.
20057         * NEWS: Mention the change.
20058         * lib/fatal-signal.c: Don't include sigprocmask.h.
20059
20060 2007-05-01  Bruno Haible  <bruno@clisp.org>
20061
20062         * modules/signal: New file.
20063         * lib/signal_.h: New file.
20064         * m4/signal_h.m4: New file.
20065
20066 2007-05-01  Bruno Haible  <bruno@clisp.org>
20067
20068         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20069         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20070         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20071         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20072
20073 2007-05-01  Bruno Haible  <bruno@clisp.org>
20074
20075         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20076         configure time.
20077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20078         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20079         * modules/sys_stat (Makefile.am): Substitute their values into
20080         sys/stat.h.
20081
20082 2007-05-01  Bruno Haible  <bruno@clisp.org>
20083
20084         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20085         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20086         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20087
20088 2007-05-01  Bruno Haible  <bruno@clisp.org>
20089
20090         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20091         'assert' module here.
20092
20093 2007-05-01  Bruno Haible  <bruno@clisp.org>
20094
20095         * doc/functions/*.texi: New files.
20096         * doc/functions/google-ranking.txt: New file.
20097         * doc/gnulib.texi (Function Substitutes): New chapter.
20098         (ctime, inet_ntoa): Remove sections.
20099         * doc/ctime.texi: Remove file.
20100         * doc/inet_ntoa.texi: Remove file.
20101         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20102         dependencies.
20103         (%.info): New rule, specifying a --reference-limit.
20104
20105 2007-05-01  Bruno Haible  <bruno@clisp.org>
20106
20107         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20108
20109 2007-05-01  Bruno Haible  <bruno@clisp.org>
20110
20111         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20112         the portability of 'mkdir' to mingw systems.
20113
20114 2007-05-01  Bruno Haible  <bruno@clisp.org>
20115
20116         * doc/headers/google-ranking.txt: New file.
20117
20118 2007-04-30  Eric Blake  <ebb9@byu.net>
20119
20120         Prefer fseeko to fseek.
20121         * modules/getpass (Depends-on): Add fseeko.
20122         * lib/getpass.c (getpass): Use fseeko, not fseek.
20123
20124 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20125
20126         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20127         assumes the sorting is stable, while most qsort implementations
20128         are not.  Use argument addresses to ensure they never compare as
20129         equal.
20130
20131         * tests/test-argp-2.sh (usage-indent test): Fix output
20132         (func_compare): Restore diff options
20133         * tests/test-argp.c: Restore #include "progname.h"
20134
20135 2007-04-29  Bruno Haible  <bruno@clisp.org>
20136
20137         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20139         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20141         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20142         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20143         (TESTS, check_PROGRAMS): Add test-snprintf.
20144         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20145         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20146         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20147         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20148         assertions that fail on HP-UX, OSF/1, or IRIX.
20149         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20150
20151 2007-04-29  Bruno Haible  <bruno@clisp.org>
20152
20153         * MODULES.html.sh (posix_functions): Remove 'contents'.
20154
20155 2007-04-29  Karl Berry  <karl@gnu.org>
20156
20157         * config/srclist.txt (gendocs_template_min): new entry.
20158
20159 2007-04-29  Bruno Haible  <bruno@clisp.org>
20160
20161         Work around fpurge bug on BSD systems.
20162         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20163         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20164         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20165         fpurge to rpl_fpurge if the system already has this function.
20166         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20167         the case where the system already has this function. Correct invariants
20168         on BSD systems.
20169         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20170         BSD systems.
20171
20172 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20173
20174         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20175         proposed by Sven Verdoolaege.
20176
20177         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20178         options.
20179         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20180         (usage and help tests): Update
20181
20182 2007-04-29  Bruno Haible  <bruno@clisp.org>
20183
20184         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20185         Print more information in case of failure. Disable a test on BeOS.
20186
20187 2007-04-29  Bruno Haible  <bruno@clisp.org>
20188
20189         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20190         This helps debugging on systems on which no gdb is available.
20191
20192 2007-04-29  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/freading.h: Improve comments.
20195         * lib/fwriting.h: Likewise.
20196         * tests/test-freading.c (main): Don't check freading immediately after
20197         repositioning. Needed for glibc.
20198
20199 2007-04-29  Bruno Haible  <bruno@clisp.org>
20200
20201         * lib/freading.c (freading): Trivial simplification.
20202
20203 2007-04-28  Bruno Haible  <bruno@clisp.org>
20204
20205         * tests/test-fwriting.c (main): Also test the interaction between
20206         fflush and fwriting.
20207         * modules/fwriting-tests (Depends-on): Add fflush.
20208
20209         * tests/test-freading.c (main): Also test the interaction between
20210         fflush and freading.
20211         * modules/freading-tests (Depends-on): Add fflush.
20212
20213 2007-04-28  Bruno Haible  <bruno@clisp.org>
20214
20215         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20216         fseeko and ftello.
20217         Suggested by Eric Blake.
20218
20219 2007-04-28  Jim Meyering  <jim@meyering.net>
20220
20221         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20222         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20223         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20224
20225 2007-04-27  Eric Blake  <ebb9@byu.net>
20226
20227         * doc/headers/assert.texi (assert.h): Document assert module use.
20228
20229 2007-04-27  Bruno Haible  <bruno@clisp.org>
20230
20231         * doc/headers/*.texi: New files.
20232         * doc/gnulib.texi (Header File Substitutes): New chapter.
20233         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20234         dependencies.
20235         (standards.info ,standards.html, standards.dvi): Update dependencies.
20236         (mostlyclean, clean): New targets.
20237
20238 2007-04-27  Bruno Haible  <bruno@clisp.org>
20239
20240         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20241         * modules/sysexits (Files, Makefile.am): Update.
20242
20243         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20244         * modules/sys_socket (Files, Makefile.am): Update.
20245
20246         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20247         * modules/sys_stat (Files, Makefile.am): Update.
20248
20249 2007-04-27  Eric Blake  <ebb9@byu.net>
20250
20251         * lib/freading.h: Improve comments.
20252         * lib/fwriting.h: Likewise.
20253         * lib/fflush.c: Likewise.
20254
20255         Fix closein for mingw.
20256         * modules/closein-tests: Add tests for closein.
20257         * tests/test-closein.c: New file.
20258         * tests/test-closein.sh: Likewise.
20259         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20260         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20261
20262 2007-04-27  Bruno Haible  <bruno@clisp.org>
20263
20264         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20265         version is < 6.
20266         * lib/math_.h [__DECC]: Likewise.
20267         * lib/stdio_.h [__DECC]: Likewise.
20268         * lib/stdlib_.h [__DECC]: Likewise.
20269         * lib/string_.h [__DECC]: Likewise.
20270         * lib/time_.h [__DECC]: Likewise.
20271         * lib/wchar_.h [__DECC]: Likewise.
20272         * lib/wctype_.h [__DECC]: Likewise.
20273
20274 2007-04-27  Bruno Haible  <bruno@clisp.org>
20275
20276         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20277
20278 2007-04-27  Bruno Haible  <bruno@clisp.org>
20279
20280         * lib/fflush.c: Add comments.
20281         * modules/fpurge-tests (Depends-on): Add fflush.
20282         * modules/freadable-tests (Depends-on): Likewise.
20283         * modules/fwritable-tests (Depends-on): Likewise.
20284
20285 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20286
20287         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20288         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20289         Report by Bruno Haible <bruno@clisp.org>.
20290
20291 2007-04-26  Eric Blake  <ebb9@byu.net>
20292
20293         Fix fflush on mingw.
20294         * modules/fflush (Depends-on): Add freading.
20295         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20296         but unread data.
20297
20298 2007-04-26  Eric Blake  <ebb9@byu.net>
20299         and Bruno Haible  <bruno@clisp.org>
20300
20301         Implement freading and fwriting.
20302         * lib/freading.c: New file.
20303         * lib/freading.h: Likewise.
20304         * m4/freading.m4: Likewise.
20305         * modules/freading: Likewise.
20306         * modules/freading-tests: Likewise.
20307         * tests/test-freading.c: Likewise.
20308         * lib/fwriting.c: New file.
20309         * lib/fwriting.h: Likewise.
20310         * m4/fwriting.m4: Likewise.
20311         * modules/fwriting: Likewise.
20312         * modules/fwriting-tests: Likewise.
20313         * tests/test-fwriting.c: Likewise.
20314         * MODULES.html.sh (File stream based Input/Output): Mention them.
20315
20316 2007-04-26  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20319         'long' when we assume it.
20320         Suggested by Eric Blake.
20321
20322 2007-04-26  Bruno Haible  <bruno@clisp.org>
20323
20324         Ensure fseeko, ftello are declared on glibc systems.
20325         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20326         * modules/fseeko (configure.ac-early): Likewise.
20327         * modules/ftello (configure.ac-early): Likewise.
20328         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20329         AC_FUNC_FSEEKO for this.
20330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20331         (gl_CHECK_FSEEKO): Remove macro.
20332
20333 2007-04-26  Bruno Haible  <bruno@clisp.org>
20334
20335         * tests/test-fflush.c (main): Also check the ftell result after
20336         fflush and fseek/fseeko.
20337         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20338         file descriptor position cache in the stream.
20339         * lib/fseeko.c (rpl_fseeko): Likewise.
20340
20341 2007-04-26  Bruno Haible  <bruno@clisp.org>
20342
20343         * modules/fflush-tests (Depends-on): Add fseeko.
20344
20345 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20346             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20347
20348         * lib/argz_.h: ensure error_t definition is obtained in same
20349         mechanism system argz.h would have.
20350         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20351         argz facilities are known bad.  Err on the side of caution if
20352         cross-compiling.
20353
20354 2007-04-25  Eric Blake  <ebb9@byu.net>
20355
20356         * lib/fpurge.c (includes): Use stdlib.h for free.
20357         * tests/test-fflush.c (main): Also test fflush-fseeko.
20358
20359 2007-04-25  Bruno Haible  <bruno@clisp.org>
20360
20361         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20362         * lib/fseeko.c: New file.
20363         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20364         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20365         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20366         gl_FUNC_FSEEKO.
20367         (gl_FUNC_FSEEKO): Invoke it.
20368         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20369         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20370         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20371
20372 2007-04-25  Bruno Haible  <bruno@clisp.org>
20373
20374         * modules/fflush (Depends-on): Add ftello.
20375
20376 2007-04-25  Bruno Haible  <bruno@clisp.org>
20377
20378         * modules/ftello-tests: New file.
20379         * tests/test-ftello.c: New file.
20380
20381         * modules/ftello: New file.
20382         * m4/ftello.m4: New file.
20383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20384         HAVE_FTELLO.
20385         * lib/stdio_.h (ftello): New declaration.
20386         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20387         HAVE_FTELLO.
20388
20389 2007-04-25  Bruno Haible  <bruno@clisp.org>
20390
20391         * modules/fseeko-tests: New file.
20392         * tests/test-fseeko.c: New file.
20393
20394         * modules/fseeko: New file.
20395         * m4/fseeko.m4: New file.
20396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20397         HAVE_FSEEKO.
20398         * lib/stdio_.h (fseeko): New declaration.
20399         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20400         HAVE_FSEEKO.
20401
20402 2007-04-25  Bruno Haible  <bruno@clisp.org>
20403
20404         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20405
20406 2007-04-25  Bruno Haible  <bruno@clisp.org>
20407
20408         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20409         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20410         * tests/test-unistd.c: Likewise.
20411         * tests/test-fcntl.c: Likewise.
20412
20413 2007-04-23  Eric Blake  <ebb9@byu.net>
20414
20415         * lib/fflush.c: Fix missing include.
20416         Reported by Bruno Haible.
20417
20418 2007-04-23  Bruno Haible  <bruno@clisp.org>
20419
20420         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20421         Reported by Eric Blake.
20422
20423 2007-04-23  Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20426
20427 2007-04-23  Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20430
20431 2007-04-23  Bruno Haible  <bruno@clisp.org>
20432
20433         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20434         Needed on HP-UX 11.
20435
20436 2007-04-16  Eric Blake  <ebb9@byu.net>
20437
20438         Make fflush rely on fpurge.
20439         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20440         open coding all variants.
20441         * modules/fflush (Depends-on): Add fpurge and unistd.
20442         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20443         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20444
20445         Fix --with-tests compilation on cygwin.
20446         * modules/argmatch-tests (Makefile.am): List gnulib library first
20447         in LDADD.
20448         * modules/argp-tests (Makefile.am): Likewise.
20449         * modules/array-list-tests (Makefile.am): Likewise.
20450         * modules/array-oset-tests (Makefile.am): Likewise.
20451         * modules/avltree-list-tests (Makefile.am): Likewise.
20452         * modules/avltree-oset-tests (Makefile.am): Likewise.
20453         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20454         * modules/carray-list-tests (Makefile.am): Likewise.
20455         * modules/dirname-tests (Makefile.am): Likewise.
20456         * modules/frexp-tests (Makefile.am): Likewise.
20457         * modules/isnanl-tests (Makefile.am): Likewise.
20458         * modules/linked-list-tests (Makefile.am): Likewise.
20459         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20460         * modules/lock-tests (Makefile.am): Likewise.
20461         * modules/rbtree-list-tests (Makefile.am): Likewise.
20462         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20463         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20464         * modules/tls-tests (Makefile.am): Likewise.
20465         * modules/tsearch-tests (Makefile.am): Likewise.
20466         * modules/xvasprintf-tests (Makefile.am): Likewise.
20467
20468         Fix fpurge for cygwin.
20469         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20470         value.
20471         * modules/fpurge-tests (Depends-on): Clean up trash.
20472
20473 2007-04-16  Simon Josefsson  <simon@josefsson.org>
20474
20475         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20476
20477         * m4/autobuild.m4: Re-indent.
20478
20479 2007-04-13  Bruno Haible  <bruno@clisp.org>
20480
20481         * modules/fpurge-tests: New file.
20482         * tests/test-fpurge.c: New file.
20483
20484         * modules/fpurge: New file.
20485         * lib/fpurge.h: New file.
20486         * lib/fpurge.c: New file.
20487         * m4/fpurge.m4: New file.
20488
20489 2007-04-13  Bruno Haible  <bruno@clisp.org>
20490
20491         * modules/fbufmode-tests: New file.
20492         * tests/test-fbufmode.c: New file.
20493
20494         * modules/fbufmode: New file.
20495         * lib/fbufmode.h: New file.
20496         * lib/fbufmode.c: New file.
20497         * m4/fbufmode.m4: New file.
20498
20499 2007-04-13  Bruno Haible  <bruno@clisp.org>
20500
20501         * modules/fwritable-tests: New file.
20502         * tests/test-fwritable.c: New file.
20503
20504         * modules/fwritable: New file.
20505         * lib/fwritable.h: New file.
20506         * lib/fwritable.c: New file.
20507         * m4/fwritable.m4: New file.
20508
20509 2007-04-13  Bruno Haible  <bruno@clisp.org>
20510
20511         * modules/freadable-tests: New file.
20512         * tests/test-freadable.c: New file.
20513
20514         * modules/freadable: New file.
20515         * lib/freadable.h: New file.
20516         * lib/freadable.c: New file.
20517         * m4/freadable.m4: New file.
20518
20519 2007-04-13  Bruno Haible  <bruno@clisp.org>
20520
20521         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20522         MOSTLYCLEANFILES.
20523
20524 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20527         gzip bootstrap.conf to avoid dragging in i18n machinery.
20528         (gnulib_tool_option): Use it.
20529
20530 2007-04-13  Bruno Haible  <bruno@clisp.org>
20531
20532         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20533         %F directives.
20534         * tests/test-vasprintf-posix.c (test_function): Likewise.
20535         * tests/test-snprintf-posix.h (test_function): Likewise.
20536         * tests/test-sprintf-posix.h (test_function): Likewise.
20537         * tests/test-fprintf-posix.h (test_function): Likewise.
20538         * tests/test-printf-posix.h (test_function): Likewise.
20539         * tests/test-fprintf-posix.out: Likewise.
20540
20541 2007-04-13  Bruno Haible  <bruno@clisp.org>
20542
20543         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20544         * modules/tls-tests (configure.ac): Likewise.
20545         Reported by Arto C. Nirkko <anirkko@insel.ch>.
20546
20547 2007-04-13  Bruno Haible  <bruno@clisp.org>
20548
20549         * lib/tls.c (glthread_tls_get): Fix return type.
20550         Patch by Arto C. Nirkko <anirkko@insel.ch>.
20551
20552 2007-04-12  Eric Blake  <ebb9@byu.net>
20553
20554         * modules/gettime (Depends-on): Remove gettime.
20555         Reported by Dmitry V. Levin.
20556
20557 2007-04-12  Bruno Haible  <bruno@clisp.org>
20558
20559         * modules/fflush (Include): Mention <stdio.h>.
20560         * modules/strtoimax (Include): Mention <inttypes.h>.
20561         * modules/strtoumax (Include): Likewise.
20562
20563 2007-04-12  Eric Blake  <ebb9@byu.net>
20564
20565         * .cvsignore: New file.
20566         * .gitignore: Likewise.
20567
20568 2007-04-12  Bruno Haible  <bruno@clisp.org>
20569
20570         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20571         not before, since $(LDADD) often contains libgnu.a.
20572         * modules/striconv-tests (test_striconv_LDADD): Likewise.
20573         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20574         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20575         Needed on Cygwin.
20576
20577 2007-04-12  Eric Blake  <ebb9@byu.net>
20578
20579         Work around glibc's failure to flush stdin on fclose.
20580         * lib/closein.c (close_stdin): Flush stdin before closing.
20581
20582         Work around glibc's failure to reset seekable stdin on exit.
20583         * modules/closein: New module.
20584         * lib/closein.c: New file.
20585         * lib/closein.h: Likewise.
20586         * m4/closein.m4: Likewise.
20587         * MODULES.html.sh (File stream based Input/Output): Document it.
20588
20589 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20590
20591         * gnulib-tool: Rename generated 'autobuild' script to
20592         'do-autobuild' in --create-megatestdir output.
20593
20594         * doc/gnulib.texi (Build robot for gnulib): Fix.
20595
20596 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20597
20598         * modules/sysexits (Depends-on): Add absolute-header.
20599
20600 2007-04-12  Eric Blake  <ebb9@byu.net>
20601
20602         No need to preserve errno on success.
20603         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20604         Reported by Bruno Haible.
20605
20606 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20607
20608         * MODULES.html.sh (Support for maintaining and releasing
20609         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
20610
20611 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20612
20613         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
20614
20615 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20616
20617         * modules/autobuild: New module.
20618
20619         * m4/autobuild.m4: New file.
20620
20621 2007-04-11  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
20624         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
20625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
20626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
20627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20628         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20629         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20631         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20632         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
20634         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20635         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
20637         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20638         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
20640         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20641         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
20643         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20644         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
20646         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20647         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
20649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20651         Reported by Eric Blake.
20652
20653 2007-04-11  Bruno Haible  <bruno@clisp.org>
20654
20655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
20656
20657 2007-04-10  Bruno Haible  <bruno@clisp.org>
20658
20659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
20660         for NaN and Infinity. Needed on FreeBSD 6.1.
20661         * tests/test-vasnprintf-posix.c (test_function): Undo last change
20662         regarding results for "%010a" of Infinity and NaN.
20663         * tests/test-vasprintf-posix.c (test_function): Likewise.
20664         * tests/test-snprintf-posix.h (test_function): Likewise.
20665         * tests/test-sprintf-posix.h (test_function): Likewise.
20666         * tests/test-fprintf-posix.h (test_function): Likewise.
20667         * tests/test-printf-posix.h (test_function): Likewise.
20668         * tests/test-fprintf-posix.out: Likewise.
20669
20670 2007-04-10  Bruno Haible  <bruno@clisp.org>
20671
20672         * modules/locale-tests: New file.
20673         * tests/test-locale.c: New file.
20674
20675         * modules/locale: New file.
20676         * lib/locale_.h: New file.
20677         * m4/locale_h.m4: New file.
20678
20679 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
20680             Bruno Haible  <bruno@clisp.org>
20681
20682         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
20683         be determined, test for availability of the copysignf, copysign,
20684         copysignl functions.
20685         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
20686         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
20687         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
20688
20689 2007-04-09  Eric Blake  <ebb9@byu.net>
20690
20691         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
20692         * modules/stdio (Makefile.am): Support fflush.
20693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20694         * modules/fflush: New file.
20695         * lib/fflush.c: Likewise.
20696         * m4/fflush.m4: Likewise.
20697         * modules/fflush-tests: New test.
20698         * tests/test-fflush.c: Likewise.
20699         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
20700
20701 2007-04-06  Bruno Haible  <bruno@clisp.org>
20702
20703         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
20704         (VASNPRINTF): Use signbit for faster determination whether to print a
20705         minus sign.
20706         * modules/vasnprintf (Files): Remove lib/float+.h.
20707         * modules/fprintf-posix (Depends-on): Add signbit.
20708         * modules/snprintf-posix (Depends-on): Likewise.
20709         * modules/sprintf-posix (Depends-on): Likewise.
20710         * modules/vasnprintf-posix (Depends-on): Likewise.
20711         * modules/vasprintf-posix (Depends-on): Likewise.
20712         * modules/vfprintf-posix (Depends-on): Likewise.
20713         * modules/vsnprintf-posix (Depends-on): Likewise.
20714         * modules/vsprintf-posix (Depends-on): Likewise.
20715
20716 2007-04-06  Bruno Haible  <bruno@clisp.org>
20717
20718         * tests/test-frexp.c (main): Test also the sign bit of zero results.
20719         * tests/test-frexpl.c (main): Likewise.
20720         * tests/test-ldexpl.c (main): Likewise.
20721         * modules/frexp-tests (Depends-on): Add signbit.
20722         * modules/frexpl-tests (Depdends-on): Likewise.
20723         * modules/ldexpl-tests (Depdends-on): Likewise.
20724
20725 2007-04-06  Bruno Haible  <bruno@clisp.org>
20726
20727         * modules/signbit-tests: New file.
20728         * tests/test-signbit.c: New file.
20729
20730         * modules/signbit: New file.
20731         * lib/signbitf.c: New file.
20732         * lib/signbitd.c: New file.
20733         * lib/signbitl.c: New file.
20734         * m4/signbit.m4: New file.
20735         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
20736         (signbit): New macro.
20737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
20738         REPLACE_SIGNBIT.
20739         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
20740         REPLACE_FREXPL into math.h.
20741
20742 2007-04-06  Bruno Haible  <bruno@clisp.org>
20743
20744         * modules/isnanf-nolibm-tests: New file.
20745         * tests/test-isnanf.c: New file.
20746
20747         * modules/isnanf-nolibm: New file.
20748         * lib/isnanf.h: New file.
20749         * lib/isnanf.c: New file.
20750         * lib/isnan.c: Consider the USE_FLOAT macro.
20751         * m4/isnanf.m4: New file.
20752
20753 2007-04-06  Bruno Haible  <bruno@clisp.org>
20754
20755         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
20756         (Link): New section.
20757
20758         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
20759
20760 2007-04-06  Bruno Haible  <bruno@clisp.org>
20761
20762         Assume the 'long double' type.
20763         * m4/longdouble.m4: Remove file.
20764         * config/srclist.txt: Don't mention longdouble.m4.
20765         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
20766         * lib/float+.h: Likewise.
20767         * lib/frexp.c: Likewise.
20768         * lib/printf-args.h: Likewise.
20769         * lib/printf-args.c: Likewise.
20770         * lib/printf-frexp.c: Likewise.
20771         * lib/printf-parse.c: Likewise.
20772         * lib/vasnprintf.c: Likewise.
20773         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
20774         * m4/intl.m4: Likewise.
20775         * m4/isnanl.m4: Likewise.
20776         * m4/printf.m4: Likewise.
20777         * m4/printf-frexpl.m4: Likewise.
20778         * m4/vasnprintf.m4: Likewise.
20779         * modules/allocsa (Files): Remove m4/longdouble.m4.
20780         * modules/gettext (Files): Likewise.
20781         * modules/relocatable-prog-wrapper (Files): Likewise.
20782         * modules/vasnprintf (Files): Likewise.
20783         * modules/isnanl (Files): Likewise.
20784         (Include): Simplify.
20785         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
20786         (Include): Simplify.
20787         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
20788         (Include): Simplify.
20789         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
20790         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20791         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
20792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20793         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20795         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
20796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20797         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20798         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20799         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
20800         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20801         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
20802         * tests/test-isnanl.c: Likewise.
20803         * tests/test-snprintf-posix.h: Likewise.
20804         * tests/test-sprintf-posix.h: Likewise.
20805         * tests/test-vasnprintf-posix.c: Likewise.
20806         * tests/test-vasnprintf-posix2.c: Likewise.
20807         * tests/test-vasprintf-posix.c: Likewise.
20808
20809 2007-04-06  Bruno Haible  <bruno@clisp.org>
20810
20811         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
20812         * lib/math_.h [__DECC]: Include the overridden include file through
20813         #include_next, outside the double-inclusion guard.
20814         * lib/stdio_.h [__DECC]: Likewise.
20815         * lib/stdlib_.h [__DECC]: Likewise.
20816         * lib/string_.h [__DECC]: Likewise.
20817         * lib/time_.h [__DECC]: Likewise.
20818         * lib/wchar_.h [__DECC]: Likewise.
20819         * lib/wctype_.h [__DECC]: Likewise.
20820         * lib/inttypes_.h [__DECC]: Likewise.
20821         Reported by Albert Chin <china@thewrittenword.com> in
20822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
20823
20824 2007-04-04  Eric Blake  <ebb9@byu.net>
20825
20826         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
20827         1.5.x.
20828
20829 2007-04-04  Bruno Haible  <bruno@clisp.org>
20830
20831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
20832         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
20833
20834 2007-04-04  Bruno Haible  <bruno@clisp.org>
20835
20836         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
20837         results for "%010a" of Infinity and NaN.
20838         * tests/test-vasprintf-posix.c (test_function): Likewise.
20839         * tests/test-snprintf-posix.h (test_function): Likewise.
20840         * tests/test-sprintf-posix.h (test_function): Likewise.
20841         * tests/test-fprintf-posix.h (test_function): Remove these tests.
20842         * tests/test-printf-posix.h (test_function): Likewise.
20843         * tests/test-fprintf-posix.out: Update.
20844         Needed for FreeBSD 6.1.
20845
20846 2007-04-04  Bruno Haible  <bruno@clisp.org>
20847
20848         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
20849         directly used by the gnulib modules nor by gnulib-tool.
20850
20851 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20852
20853         * DEPENDENCIES: Give overall description of version dependency
20854         desirability.  Use more-typical names for apps.
20855         Add shell, coreutils, diffutils, grep, tar, gzip.
20856
20857 2007-04-04  Simon Josefsson  <simon@josefsson.org>
20858
20859         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
20860
20861 2007-04-04  Karl Berry  <karl@gnu.org>
20862
20863         * MODULES.html.sh (func_module): missing '.
20864
20865 2007-04-03  Bruno Haible  <bruno@clisp.org>
20866
20867         * modules/argmatch-tests (Makefile.am): New variable
20868         test_argmatch_LDADD.
20869         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
20870         * modules/array-list-tests (Makefile.am): New variable
20871         test_array_list_LDADD.
20872         * modules/array-oset-tests (Makefile.am): New variable
20873         test_array_oset_LDADD.
20874         * modules/avltree-list-tests (Makefile.am): New variable
20875         test_avltree_list_LDADD.
20876         * modules/avltree-oset-tests (Makefile.am): New variable
20877         test_avltree_oset_LDADD.
20878         * modules/avltreehash-list-tests (Makefile.am): New variable
20879         test_avltreehash_list_LDADD.
20880         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
20881         test_canonicalize_lgpl_LDADD.
20882         * modules/carray-list-tests (Makefile.am): New variable
20883         test_carray_list_LDADD.
20884         * modules/dirname-tests (Makefile.am): New variable
20885         test_dirname_LDADD.
20886         * modules/linked-list-tests (Makefile.am): New variable
20887         test_linked_list_LDADD.
20888         * modules/linkedhash-list-tests (Makefile.am): New variable
20889         test_linkedhash_list_LDADD.
20890         * modules/rbtree-list-tests (Makefile.am): New variable
20891         test_rbtree_list_LDADD.
20892         * modules/rbtree-oset-tests (Makefile.am): New variable
20893         test_rbtree_oset_LDADD.
20894         * modules/rbtreehash-list-tests (Makefile.am): New variable
20895         test_rbtreehash_list_LDADD.
20896         * modules/xvasprintf-tests (Makefile.am): New variable
20897         test_xvasprintf_LDADD.
20898         Reported by Eric Blake.
20899
20900 2007-04-03  Eric Blake  <ebb9@byu.net>
20901
20902         * DEPENDENCIES: Weaken m4 requirements.
20903
20904 2007-04-03  Bruno Haible  <bruno@clisp.org>
20905
20906         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
20907         * modules/isnanl-tests (configure.ac): Likewise.
20908
20909 2007-04-03  Ben Pfaff  <blp@gnu.org>
20910
20911         * modules/iconv_open: Add $(srcdir)/ to source directory
20912         references in Makefile fragments that call gperf, to fix VPATH
20913         builds.
20914
20915 2007-04-03  Bruno Haible  <bruno@clisp.org>
20916
20917         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
20918         * lib/ldexpl.c: Undo last change.
20919
20920 2007-04-03  Bruno Haible  <bruno@clisp.org>
20921
20922         * modules/printf-frexpl (Depends-on): Undo last change.
20923         (Files): Add m4/ldexpl.m4.
20924
20925 2007-04-03  Bruno Haible  <bruno@clisp.org>
20926
20927         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
20928         * modules/isnanl (Link): New section.
20929
20930         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
20931         * modules/frexp (Link): New section.
20932
20933         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
20934         * modules/frexpl (Link): New section.
20935
20936         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
20937         * modules/ldexpl (Link): New section.
20938
20939 2007-04-03  Bruno Haible  <bruno@clisp.org>
20940
20941         * modules/TEMPLATE-EXTENDED: New file.
20942         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
20943
20944 2007-04-03  Bruno Haible  <bruno@clisp.org>
20945
20946         * DEPENDENCIES: New file.
20947         Suggested by Simon Josefsson.
20948
20949 2007-04-03  Bruno Haible  <bruno@clisp.org>
20950
20951         * doc/gnulib.texi: Escape @.
20952
20953 2007-04-03  James Youngman  <jay@gnu.org>
20954         and Paul Eggert  <eggert@cs.ucla.edu>
20955
20956         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
20957         birthtime on all systems that have birthtime, not just those which
20958         use st_birthtimensec rather than st_birthtim.  Putting zero in
20959         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
20960         that the birth time is not available for files on an NFS mount.
20961
20962 2007-04-03  Simon Josefsson  <simon@josefsson.org>
20963
20964         * modules/memxor: Move back from crypto/, suggested by Bruno.
20965         * modules/crypto/hmac-sha1: Fix memxor dependency.
20966
20967         * modules/crypto/gc: Moved from ../.
20968
20969 2007-04-02  Eric Blake  <ebb9@byu.net>
20970
20971         * lib/ldexpl.c (includes): Avoid libm.
20972
20973         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
20974
20975 2007-04-02  Bruno Haible  <bruno@clisp.org>
20976
20977         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
20978         on IRIX.
20979
20980 2007-04-02  Bruno Haible  <bruno@clisp.org>
20981
20982         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
20983         x86 or x86_64 platforms running MacOS X.
20984         Reported by Ryan Schmidt <@ryandesign.com>.
20985
20986 2007-04-02  Bruno Haible  <bruno@clisp.org>
20987
20988         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
20989         i386.
20990
20991 2007-04-01  Simon Josefsson  <simon@josefsson.org>
20992
20993         * modules/crypto/arcfour: Moved from ../.
20994         * modules/crypto/arcfour-tests: Moved from ../.
20995         * modules/crypto/arctwo: Moved from ../.
20996         * modules/crypto/arctwo-tests: Moved from ../.
20997         * modules/crypto/des: Moved from ../.
20998         * modules/crypto/des-tests: Moved from ../.
20999         * modules/crypto/gc-arcfour: Moved from ../.
21000         * modules/crypto/gc-arcfour-tests: Moved from ../.
21001         * modules/crypto/gc-arctwo: Moved from ../.
21002         * modules/crypto/gc-arctwo-tests: Moved from ../.
21003         * modules/crypto/gc-des: Moved from ../.
21004         * modules/crypto/gc-des-tests: Moved from ../.
21005         * modules/crypto/gc-hmac-md5: Moved from ../.
21006         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21007         * modules/crypto/gc-hmac-sha1: Moved from ../.
21008         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21009         * modules/crypto/gc-md2: Moved from ../.
21010         * modules/crypto/gc-md2-tests: Moved from ../.
21011         * modules/crypto/gc-md4: Moved from ../.
21012         * modules/crypto/gc-md4-tests: Moved from ../.
21013         * modules/crypto/gc-md5: Moved from ../.
21014         * modules/crypto/gc-md5-tests: Moved from ../.
21015         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21016         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21017         * modules/crypto/gc-random: Moved from ../.
21018         * modules/crypto/gc-rijndael: Moved from ../.
21019         * modules/crypto/gc-rijndael-tests: Moved from ../.
21020         * modules/crypto/gc-sha1: Moved from ../.
21021         * modules/crypto/gc-sha1-tests: Moved from ../.
21022         * modules/crypto/gc-tests: Moved from ../.
21023         * modules/crypto/hmac-md5: Moved from ../.
21024         * modules/crypto/hmac-md5-tests: Moved from ../.
21025         * modules/crypto/hmac-sha1: Moved from ../.
21026         * modules/crypto/hmac-sha1-tests: Moved from ../.
21027         * modules/crypto/md2: Moved from ../.
21028         * modules/crypto/md2-tests: Moved from ../.
21029         * modules/crypto/md4: Moved from ../.
21030         * modules/crypto/md4-tests: Moved from ../.
21031         * modules/crypto/md5: Moved from ../.
21032         * modules/crypto/md5-tests: Moved from ../.
21033         * modules/crypto/memxor: Moved from ../.
21034         * modules/crypto/rijndael: Moved from ../.
21035         * modules/crypto/rijndael-tests: Moved from ../.
21036         * modules/crypto/sha1: Moved from ../.
21037
21038 2007-03-30  James Youngman  <jay@gnu.org>
21039
21040         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21041         rename() to change the ctime of a file (because ctime is unaffected
21042         by rename on jfs2 on AIX 5.1).
21043         (main): Start by doing cleanup, in case a previous run failed leaving
21044         test files behind.
21045
21046 2007-03-31  Bruno Haible  <bruno@clisp.org>
21047
21048         Support old proprietary implementations of iconv.
21049         * modules/iconv_open: New file.
21050         * lib/iconv_.h: New file.
21051         * m4/iconv_h.m4: New file.
21052         * lib/iconv_open.c: New file.
21053         * lib/iconv_open-aix.gperf: New file.
21054         * lib/iconv_open-hpux.gperf: New file.
21055         * lib/iconv_open-irix.gperf: New file.
21056         * lib/iconv_open-osf.gperf: New file.
21057         * m4/iconv_open.m4: New file.
21058         * modules/linebreak (Depends-on): Add iconv_open.
21059         * modules/striconv (Depends-on): Likewise.
21060         * modules/striconveh (Depends-on): Likewise.
21061         * modules/unicodeio (Depends-on): Likewise.
21062         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21063         (iconv_t)(-1).
21064         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21065         conversion if cd is (iconv_t)(-1).
21066         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21067         is not possible.
21068
21069 2007-03-31  Bruno Haible  <bruno@clisp.org>
21070
21071         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21072         work on Solaris either. Protect also second use of "autodetect_jp".
21073
21074 2007-03-31  Bruno Haible  <bruno@clisp.org>
21075
21076         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21077         the function is not present.
21078
21079 2007-03-31  Bruno Haible  <bruno@clisp.org>
21080
21081         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21082         the function is not present.
21083
21084 2007-03-31  Bruno Haible  <bruno@clisp.org>
21085
21086         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21087         a bug in HP-UX iconv_open().
21088
21089 2007-03-31  Bruno Haible  <bruno@clisp.org>
21090
21091         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21092         (Mathematics <math.h>): New section, add fpieee.
21093         (Input/output <stdio.h>): Add fseterr.
21094         (Mathematics <math.h>): New section, add printf-frexp.
21095         (Container data structures): Add sublist.
21096         (Core language properties): Add fpucw, inline.
21097         (Functions for greatest-width integer types <inttypes.h>): Add
21098         imaxabs, imaxdiv, inttypes.
21099         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21100         isnanl-nolibm, ldexp.
21101         (Mathematics <math.h>): New section, add printf-frexpl.
21102         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21103         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21104         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21105         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21106         (Unicode string functions): Add unistr/u*-mbtoucr.
21107         (Java): Add javacomp-script, javaexec-script.
21108         (C#): Add csharpcomp-script, csharpexec-script.
21109         (Support for building libraries and executables): Add havelib,
21110         relocatable-*.
21111         (Support for maintaining and releasing projects): Renamed from
21112         'Support for maintaining and release projects'. Add announce-gen.
21113
21114 2007-03-31  Bruno Haible  <bruno@clisp.org>
21115
21116         * README: Talk primarily about git.
21117         (git and CVS): Renamed from CVS.
21118         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21119         gnulib is available through git.
21120         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21121
21122 2007-03-30  Bruno Haible  <bruno@clisp.org>
21123
21124         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21125         * lib/poll_.h: Likewise.
21126         * lib/stat_.h: Likewise.
21127         * lib/sys_time_.h: Likewise.
21128         * lib/sysexit_.h: Likewise.
21129         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21130         * lib/stdbool_.h: Likewise.
21131         * lib/byteswap_.h: Add double-inclusion guard.
21132
21133 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21134
21135         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21136
21137 2007-03-30  Karl Berry  <karl@gnu.org>
21138
21139         * config/srclist-update: double space after USA in the license
21140         substitution, since that's how it's usually (?) written.
21141
21142 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21143
21144         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21145         reported by Bruno Haible.
21146
21147 2007-03-29  Bruno Haible  <bruno@clisp.org>
21148
21149         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21150         a bug in AIX iconv().
21151
21152 2007-03-29  Bruno Haible  <bruno@clisp.org>
21153
21154         * modules/ldexpl-tests: New file.
21155         * tests/test-ldexpl.c: New file.
21156
21157 2007-03-29  Bruno Haible  <bruno@clisp.org>
21158
21159         * lib/ldexpl.c: Include fpucw.h.
21160         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21161         multiplication.
21162         * modules/ldexpl (Depends-on): Add fpucw.
21163
21164 2007-03-29  Bruno Haible  <bruno@clisp.org>
21165
21166         * modules/ldexpl: New file.
21167         * m4/ldexpl.m4: New file.
21168         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21169         set.
21170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21171         REPLACE_LDEXPL.
21172         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21173         REPLACE_LDEXPL.
21174         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21175         gl_FUNC_LDEXPL_WORKS.
21176         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21177         * modules/mathl (Files): Remove lib/ldexpl.c.
21178         (Depends-on): Add ldexpl.
21179
21180 2007-03-29  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21183
21184 2007-03-29  Bruno Haible  <bruno@clisp.org>
21185
21186         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21187         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21188         and possibly also HP-UX.
21189         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21190         work on AIX, IRIX, HP-UX, OSF/1.
21191         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21192         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21193         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21194         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21195         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21196         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21197
21198 2007-03-29  Bruno Haible  <bruno@clisp.org>
21199
21200         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21201
21202 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21203
21204         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21205         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21206
21207 2007-03-29  Eric Blake  <ebb9@byu.net>
21208
21209         * lib/acl-internal.h: Remove redundant include.
21210         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21211         Cygwin when a file is locked.
21212
21213 2007-03-29  Bruno Haible  <bruno@clisp.org>
21214
21215         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21216         file.
21217         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21218
21219 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21220
21221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21222         try to remove a parent directory if the child couldn't be removed
21223         (except for the first rmdir, which could fail because the child
21224         doesn't exist).  Problem reported by Jeff Blaine in
21225         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21226
21227 2007-03-28  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/striconveh.c (utf8conv_carefully): New function.
21230         (mem_cd_iconveh_internal): Invoke it.
21231
21232 2007-03-28  Bruno Haible  <bruno@clisp.org>
21233
21234         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21235         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21236         input.
21237         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21238         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21239         unistr/u8-uctomb.
21240
21241 2007-03-28  Bruno Haible  <bruno@clisp.org>
21242
21243         * modules/unistr/u8-mbtoucr: New file.
21244         * lib/unistr/u8-mbtoucr.c: New file.
21245         * modules/unistr/u16-mbtoucr: New file.
21246         * lib/unistr/u16-mbtoucr.c: New file.
21247         * modules/unistr/u16-mbtoucr: New file.
21248         * lib/unistr/u16-mbtoucr.c: New file.
21249         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21250
21251 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21252             Bruno Haible  <bruno@clisp.org>
21253
21254         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21255         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21256         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21257
21258         * m4/stdio_h.m4: Add stubs for vasprintf too.
21259
21260         * modules/stdio: Support vasprintf in sed command.
21261
21262         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21263         vasprintf.h.  Add stdio module indicator.
21264
21265         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21266         vasprintf.h.
21267
21268         * lib/vasprintf.h: File removed.
21269
21270         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21271         * lib/vasprintf.c: Ditto.
21272         * lib/xvasprintf.c: Ditto.
21273         * tests/test-vasprintf-posix.c: Ditto.
21274         * tests/test-vasprintf.c: Ditto.
21275
21276 2007-03-27  Bruno Haible  <bruno@clisp.org>
21277
21278         Make vasnprintf multithread-safe.
21279         * lib/vasnprintf.c (decimal_point_char): New function.
21280         (VASNPRINTF): Use it.
21281         Suggested by Simon Josefsson.
21282
21283 2007-03-27  Eric Blake  <ebb9@byu.net>
21284
21285         Support sub-second birthtime on cygwin.
21286         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21287         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21288         (get_stat_birthtime): Also work with st_birthtim.
21289
21290 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21291
21292         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21293         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21294         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21295         (get_stat_birthtime_ns): Simplify compile-time tests.
21296         (get_stat_birthtime): Change the API to look like
21297         get_stat_mtime etc., except return a negative tv_nsec on error.
21298         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21299         Don't check for "spare" fields.
21300         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21301         or for struct stat.st_birthtime, as these tests aren't used.
21302         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21303
21304 2007-03-27  Bruno Haible  <bruno@clisp.org>
21305
21306         * lib/stat-time.h: Include <sys/stat.h>.
21307
21308 2007-03-27  James Youngman  <jay@gnu.org>
21309
21310         * lib/stat-time.h (get_stat_birthtime): New function for
21311           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21312         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21313           and its variants.
21314         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21315         * modules/stat-time-test: New file.
21316         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21317
21318 2007-03-26  Bruno Haible  <bruno@clisp.org>
21319
21320         Better support of signalling NaNs.
21321         * lib/atanl.c: Include isnanl.h.
21322         (atanl): Perform test for NaN at the beginning of the function and
21323         through a call to isnanl.
21324         * lib/cosl.c: Include isnanl.h.
21325         (cosl): Perform test for NaN at the beginning of the function and
21326         through a call to isnanl.
21327         * lib/ldexpl.c: Include isnanl.h.
21328         (ldexpl): Perform test for NaN through a call to isnanl.
21329         * lib/logl.c: Include isnanl.h.
21330         (logl): Perform test for NaN at the beginning of the function and
21331         through a call to isnanl.
21332         * lib/sinl.c: Include isnanl.h.
21333         (sinl): Perform test for NaN at the beginning of the function and
21334         through a call to isnanl.
21335         * lib/sqrtl.c: Include isnanl.h.
21336         (sqrtl): Perform test for NaN at the beginning of the function and
21337         through a call to isnanl.
21338         * lib/tanl.c: Include isnanl.h.
21339         (tanl): Perform test for NaN at the beginning of the function and
21340         through a call to isnanl.
21341         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21342         * modules/mathl (Depends-on): Add isnanl.
21343
21344 2007-03-26  Eric Blake  <ebb9@byu.net>
21345
21346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21347         regression in logic sense of previous patch.
21348
21349 2007-03-26  Bruno Haible  <bruno@clisp.org>
21350
21351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21352         unportable shell command "if ! ...".
21353         Reported by Ralf Wildenhues.
21354
21355 2007-03-25  Bruno Haible  <bruno@clisp.org>
21356
21357         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21358         <sysexits.h> file, and only add EX_CONFIG.
21359         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21360         absolute file name and whether it is sufficient. Substitute also
21361         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21362         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21363         ABSOLUTE_SYSEXITS_H into sysexits.h.
21364
21365 2007-03-25  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21368         hints is NULL.
21369
21370 2007-03-25  Bruno Haible  <bruno@clisp.org>
21371
21372         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21373         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21374
21375 2007-03-25  Bruno Haible  <bruno@clisp.org>
21376
21377         * lib/vasnprintf.c: Include langinfo.h.
21378         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21379         multithread-safe.
21380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21389         Reported by Simon Josefsson.
21390
21391 2007-03-25  Bruno Haible  <bruno@clisp.org>
21392
21393         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21394         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21395         * modules/vasnprintf (Depends-on): Add stdint.
21396
21397 2007-03-25  Bruno Haible  <bruno@clisp.org>
21398
21399         * modules/fpieee: New file.
21400         * m4/fpieee.m4: New file.
21401         * modules/isnan-nolibm (Depends-on): Add fpieee.
21402         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21403         * modules/isnanl (Depends-on): Add fpieee.
21404
21405 2007-03-25  Bruno Haible  <bruno@clisp.org>
21406
21407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21408
21409 2007-03-25  Bruno Haible  <bruno@clisp.org>
21410
21411         Avoid test failures on IRIX 6.5.
21412         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21413         (main): Use it.
21414         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21415         macros.
21416         (main): Use them.
21417
21418 2007-03-25  Bruno Haible  <bruno@clisp.org>
21419
21420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21421         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21422         exists but doesn't work.
21423         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21424         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21426         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21427
21428 2007-03-25  Bruno Haible  <bruno@clisp.org>
21429
21430         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21431         returns inf. Needed on IRIX 6.5.
21432
21433 2007-03-25  Bruno Haible  <bruno@clisp.org>
21434
21435         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21436         (main): Use isnanl instead of x != x idiom.
21437         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21438
21439         * tests/test-frexp.c: Include isnan.h.
21440         (main): Use isnan instead of x != x idiom.
21441         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21442
21443 2007-03-25  Bruno Haible  <bruno@clisp.org>
21444
21445         * tests/test-frexp.c (NaN): New function/macro.
21446         (main): Use it instead of 0.0 / 0.0.
21447         * tests/test-isnan.c (NaN): New function/macro.
21448         (main): Use it instead of 0.0 / 0.0.
21449         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21450         (test_function): Use it instead of 0.0 / 0.0.
21451         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21452         (test_function): Use it instead of 0.0 / 0.0.
21453         * tests/test-snprintf-posix.h (NaN): New function/macro.
21454         (test_function): Use it instead of 0.0 / 0.0.
21455         * tests/test-sprintf-posix.h (NaN): New function/macro.
21456         (test_function): Use it instead of 0.0 / 0.0.
21457         * tests/test-fprintf-posix.h (NaN): New function/macro.
21458         (test_function): Use it instead of 0.0 / 0.0.
21459         * tests/test-printf-posix.h (NaN): New function/macro.
21460         (test_function): Use it instead of 0.0 / 0.0.
21461
21462         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21463
21464 2007-03-25  Bruno Haible  <bruno@clisp.org>
21465
21466         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21467
21468 2007-03-25  Bruno Haible  <bruno@clisp.org>
21469
21470         * lib/regexec.c (merge_state_with_log): Make static.
21471
21472 2007-03-25  Bruno Haible  <bruno@clisp.org>
21473
21474         * lib/trigl.c (kernel_rem_pio2): Make static.
21475
21476 2007-03-25  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/sincosl.c (sincosl_table): Make static.
21479
21480 2007-03-25  Bruno Haible  <bruno@clisp.org>
21481
21482         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21483         if the compiler does not support C99.
21484
21485 2007-03-25  Bruno Haible  <bruno@clisp.org>
21486
21487         * modules/time (Makefile.am): Ensure all rule action lines start with a
21488         tab.
21489
21490 2007-03-24  Bruno Haible  <bruno@clisp.org>
21491
21492         * modules/tsearch-tests: New file.
21493         * tests/test-tsearch.sh: New file.
21494         * tests/test-tsearch.c: New file, mostly copied from glibc.
21495
21496         * modules/search-tests: New file.
21497         * tests/test-search.c: New file.
21498
21499         * modules/search: New file.
21500         * lib/search_.h: New file, incorporating lib/tsearch.h.
21501         * m4/search_h.m4: New file.
21502         * lib/tsearch.h: Remove file.
21503         * lib/tsearch.c: Include search.h instead of tsearch.h.
21504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21505         HAVE_TSEARCH.
21506         * modules/tsearch (Files): Remove lib/tsearch.h.
21507         (Depends-on): Add search.
21508         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21509         (Include): Change tsearch.h into search.h.
21510
21511 2007-03-24  Bruno Haible  <bruno@clisp.org>
21512
21513         * modules/fpucw: New file.
21514         * lib/fpucw.h: New file.
21515         * lib/frexp.c: Include fpucw.h.
21516         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21517         (FUNC): Use them.
21518         * lib/printf-frexp.c: Include fpucw.h.
21519         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21520         (FUNC): Use them.
21521         * lib/vasnprintf.c: Include fpucw.h.
21522         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21523         'long double' calculations.
21524         * tests/test-frexpl.c: Include fpucw.h.
21525         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21526         * tests/test-printf-frexpl.c: Include fpucw.h.
21527         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21528         * modules/frexpl (Depends-on): Add fpucw.
21529         * modules/printf-frexpl (Depends-on): Likewise.
21530         * modules/fprintf-posix (Depends-on): Likewise.
21531         * modules/snprintf-posix (Depends-on): Likewise.
21532         * modules/sprintf-posix (Depends-on): Likewise.
21533         * modules/vasnprintf-posix (Depends-on): Likewise.
21534         * modules/vasprintf-posix (Depends-on): Likewise.
21535         * modules/vfprintf-posix (Depends-on): Likewise.
21536         * modules/vsnprintf-posix (Depends-on): Likewise.
21537         * modules/vsprintf-posix (Depends-on): Likewise.
21538         * modules/frexpl-tests (Depends-on): Likewise.
21539         * modules/printf-frexpl-tests (Depends-on): Likewise.
21540
21541 2007-03-24  Bruno Haible  <bruno@clisp.org>
21542
21543         * lib/float+.h: New file.
21544         * lib/isnan.c: Include float+.h.
21545         (SIZE): New macro.
21546         (FUNC): Compare only SIZE bytes of the value.
21547         * lib/vasnprintf.c: Include float+.h.
21548         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21549         SIZEOF_LDBL or SIZEOF_DBL bytes.
21550         * modules/isnan-nolibm (Files): Add lib/float+.h.
21551         * modules/isnanl-nolibm (Files): Add lib/float+.h.
21552         * modules/isnanl (Files): Add lib/float+.h.
21553         * modules/vasnprintf (Files): Add lib/float+.h.
21554
21555 2007-03-24  Bruno Haible  <bruno@clisp.org>
21556
21557         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21558         include isnanl-nolibm.h.
21559
21560 2007-03-24  Bruno Haible  <bruno@clisp.org>
21561
21562         * tests/test-read-file.c (main): Don't produce spurious output for
21563         expected situations. Make the test fail if it encountered unexpected
21564         results.
21565
21566 2007-03-24  Bruno Haible  <bruno@clisp.org>
21567
21568         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21569         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21570
21571 2007-03-24  Bruno Haible  <bruno@clisp.org>
21572
21573         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21574
21575 2007-03-24  Bruno Haible  <bruno@clisp.org>
21576
21577         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21578         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21579
21580         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21581         * modules/utf8-ucs4: Turn into a symbolic link to module
21582         unistr/u8-mbtouc.
21583
21584         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21585         utf8-ucs4-unsafe.
21586         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21587         unistr/u8-mbtouc-unsafe.
21588
21589         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21590         * modules/utf16-ucs4: Turn into a symbolic link to module
21591         unistr/u16-mbtouc.
21592
21593         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21594         utf16-ucs4-unsafe.
21595         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21596         unistr/u16-mbtouc-unsafe.
21597
21598         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21599         * modules/ucs4-utf8: Turn into a symbolic link to module
21600         unistr/u8-ubtomb.
21601
21602         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21603         * modules/ucs4-utf16: Turn into a symbolic link to module
21604         unistr/u16-ubtomb.
21605
21606 2007-03-24  Bruno Haible  <bruno@clisp.org>
21607
21608         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
21609         Enable the function only if HAVE_INLINE.
21610         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
21611         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21612         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
21613         Enable the function only if HAVE_INLINE.
21614         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
21615         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21616         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
21617         Enable the function only if HAVE_INLINE.
21618         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
21619         Enable the function only if HAVE_INLINE.
21620         * modules/utf8-ucs4: Update.
21621         * modules/utf8-ucs4-unsafe: Update.
21622         * modules/utf16-ucs4: Update.
21623         * modules/utf16-ucs4-unsafe: Update.
21624         * modules/ucs4-utf8: Update.
21625         * modules/ucs4-utf16: Update.
21626
21627 2007-03-24  Bruno Haible  <bruno@clisp.org>
21628
21629         * lib/utf8-ucs4.h: Remove file.
21630         * lib/utf8-ucs4-unsafe.h: Remove file.
21631         * lib/utf16-ucs4.h: Remove file.
21632         * lib/utf16-ucs4-unsafe.h: Remove file.
21633         * lib/ucs4-utf8.h: Remove file.
21634         * lib/ucs4-utf16.h: Remove file.
21635         * lib/unistr.h: Include their previous contents.
21636         * m4/utf-ucs4.m4: Remove file.
21637         * m4/ucs4-utf.m4: Remove file.
21638         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
21639         (Depends-on): Add unistr/base.
21640         (configure.ac): Remove gl_UTF_UCS4.
21641         (Makefile.am): Update.
21642         (Include): Change to unistr.h.
21643         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
21644         (Depends-on): Add unistr/base.
21645         (configure.ac): Remove gl_UTF_UCS4.
21646         (Makefile.am): Update.
21647         (Include): Change to unistr.h.
21648         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
21649         (Depends-on): Add unistr/base.
21650         (configure.ac): Remove gl_UTF_UCS4.
21651         (Makefile.am): Update.
21652         (Include): Change to unistr.h.
21653         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
21654         (Depends-on): Add unistr/base.
21655         (configure.ac): Remove gl_UTF_UCS4.
21656         (Makefile.am): Update.
21657         (Include): Change to unistr.h.
21658         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
21659         (Depends-on): Add unistr/base.
21660         (configure.ac): Remove gl_UCS4_UTF.
21661         (Makefile.am): Update.
21662         (Include): Change to unistr.h.
21663         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
21664         (Depends-on): Add unistr/base.
21665         (configure.ac): Remove gl_UCS4_UTF.
21666         (Makefile.am): Update.
21667         (Include): Change to unistr.h.
21668         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
21669         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
21670         utf8-ucs4-unsafe.h.
21671         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
21672         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
21673         utf16-ucs4-unsafe.h.
21674         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
21675         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
21676         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
21677         * lib/unistr/u8-strchr.c: Likewise.
21678         * lib/unistr/u8-strrchr.c: Likewise.
21679         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
21680         * lib/unistr/u16-strchr.c: Likewise.
21681         * lib/unistr/u16-strrchr.c: Likewise.
21682         * lib/striconveh.c: Update.
21683         * lib/linebreak.c: Update.
21684
21685 2007-03-24  Bruno Haible  <bruno@clisp.org>
21686
21687         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
21688         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
21689
21690 2007-03-22  Bruno Haible  <bruno@clisp.org>
21691
21692         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
21693
21694 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         * MODULES.html.sh (File system functions): New module write-any-file.
21697         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
21698         * m4/write-any-file.m4: New files.
21699
21700 2007-03-23  Eric Blake  <ebb9@byu.net>
21701
21702         * gnulib-tool: Rearrange space-tab sequences, since some editors
21703         like to eat them.
21704
21705 2007-03-23  Eric Blake  <ebb9@byu.net>
21706
21707         * lib/version-etc.c (version_etc_va): Update license wording to
21708         be more concise.  Recommended by Richard Stallman.
21709
21710 2007-03-22  Bruno Haible  <bruno@clisp.org>
21711
21712         * lib/poll.c (MSG_PEEK): New fallback definition.
21713
21714 2007-03-22  Bruno Haible  <bruno@clisp.org>
21715
21716         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
21717         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
21718         (main): Update.
21719         Fixes a compilation error on BeOS.
21720
21721 2007-03-22  Bruno Haible  <bruno@clisp.org>
21722
21723         * modules/frexpl-tests: New file.
21724         * tests/test-frexpl.c: New file.
21725
21726         * modules/frexpl: New file.
21727         * m4/frexpl.m4: New file.
21728         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
21729         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
21730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
21731         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
21732         (Depends-on): Add frexpl. Remove isnanl-nolibm.
21733         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
21734
21735 2007-03-22  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/frexpl.c: Share code with lib/frexp.c.
21738         * modules/mathl (Files): Add lib/frexp.c.
21739         (Depends-on): Add isnanl-nolibm.
21740
21741 2007-03-22  Bruno Haible  <bruno@clisp.org>
21742
21743         * modules/printf-frexp (Files): Add m4/frexp.m4.
21744         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
21745         only if the found frexp function actually works.
21746
21747 2007-03-22  Bruno Haible  <bruno@clisp.org>
21748
21749         * lib/frexp.c: Remove older implementation that uses divisions.
21750
21751 2007-03-21  Bruno Haible  <bruno@clisp.org>
21752
21753         * modules/frexp-tests: New file.
21754         * tests/test-frexp.c: New file.
21755
21756         * modules/frexp: New file.
21757         * lib/frexp.c: New file.
21758         * m4/frexp.m4: New file.
21759         * lib/math_.h (frexp): New declaration.
21760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
21761         REPLACE_FREXP.
21762         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
21763
21764 2007-03-21  Bruno Haible  <bruno@clisp.org>
21765
21766         * modules/isnanl-tests: New file.
21767         * tests/test-isnanl.c: New file.
21768
21769         * modules/isnanl: New file.
21770         * lib/isnanl.h: New file.
21771         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
21772         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
21773         gl_FUNC_ISNANL_WORKS.
21774         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
21775         New macros.
21776
21777 2007-03-21  Bruno Haible  <bruno@clisp.org>
21778
21779         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
21780         lib/isnanl.h.
21781         (Include): Update.
21782         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
21783         * lib/vasnprintf.c: Update.
21784         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
21785         tests/test-isnanl.h, remove tests/test-isnanl.c.
21786         (Makefile.am): Update.
21787         * tests/test-isnanl-nolibm.c: New file.
21788         * tests/test-isnanl.h: New file.
21789         * tests/test-isnanl.c: Remove file.
21790
21791 2007-03-21  Jim Meyering  <jim@meyering.net>
21792
21793         When trying to open ".", treat ESTALE like EACCES.
21794         * lib/savewd.c (savewd_save): Resort to forking not just upon
21795         failure with EACCES, but also when errno is ESTALE.
21796
21797 2007-03-20  Bruno Haible  <bruno@clisp.org>
21798
21799         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
21800         Needed on AIX 5.1. Reported by Matthew Woehlke.
21801
21802 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21803
21804         Suggestions by Bruno Haible:
21805         * lib/acl-internal.h: Include "gettext.h" rather than rolling
21806         our own.
21807         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
21808         * modules/acl (Depends-on): Add gettext.
21809
21810 2007-03-19  Bruno Haible  <bruno@clisp.org>
21811
21812         * modules/iconvme: Remove file.
21813         * lib/iconvme.h: Remove file.
21814         * lib/iconvme.c: Remove file.
21815         * m4/iconvme.m4: Remove file.
21816
21817 2007-03-19  Bruno Haible  <bruno@clisp.org>
21818
21819         * doc/relocatable-maint.texi: Break long shell script line.
21820         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21821
21822 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
21825         handle file_has_acl.
21826         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
21827         * lib/acl.c: Move header inclusions and related macro defns into
21828         lib/acl-internal.h.
21829         (S_ISLNK): Remove defn, since that's now done for us.
21830         (file_has_acl): Move to lib/file-has-acl.c.
21831         Call acl_trivial if available.  This is the crucial part of the fix.
21832         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
21833         shared within the library.  Rewrite a bit, partly to make it compatible
21834         with the GNU coding style.
21835         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
21836         Remove unnecessary double-quotes.
21837         Don't test for acl_to_text; the build will catch that.
21838         Replace acl_entries if it doesn't exist and it is needed.
21839         Check for -lsec and acl_trivial (as used on Solaris 10).
21840         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
21841         lib/file-has-acl.c.
21842         (Depends-on): Add sys_stat, for S_ISLNK.
21843
21844 2007-03-19  Ben Pfaff  <blp@gnu.org>
21845
21846         * doc/gnulib.texi: Fix typos.
21847         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21848
21849 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21850
21851         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
21852         If size is zero here, buf must be zero.
21853
21854 2007-03-19  Simon Josefsson  <simon@josefsson.org>
21855
21856         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
21857         <bruno@clisp.org>.
21858
21859 2007-03-18  Bruno Haible  <bruno@clisp.org>
21860
21861         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
21862         Suggested by Eric Blake.
21863
21864 2007-03-18  Ben Pfaff  <blp@gnu.org>
21865
21866         * doc/relocatable.texi: Recommend using as prefix a directory
21867         that does not exist and will never be created.  Based on
21868         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
21869         and others.
21870
21871 2007-03-17  Bruno Haible  <bruno@clisp.org>
21872
21873         * lib/fchownat.c: Include lchown.h.
21874
21875 2007-03-17  Bruno Haible  <bruno@clisp.org>
21876
21877         Fix endless loop when the given allocated size was > INT_MAX.
21878         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
21879         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
21880         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
21881         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
21882         * lib/sprintf.c (sprintf): Likewise.
21883
21884 2007-03-17  Bruno Haible  <bruno@clisp.org>
21885
21886         * tests/test-argp-2.sh (func_compare): Output a context diff.
21887
21888 2007-03-17  Bruno Haible  <bruno@clisp.org>
21889
21890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
21891         locale's decimal-point character.
21892
21893 2007-03-17  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
21896         before comparing it. Needed because on some platforms (e.g. x86) a
21897         'long double' occupies less bytes than sizeof (long double).
21898
21899 2007-03-17  Bruno Haible  <bruno@clisp.org>
21900
21901         * tests/test-crc.c (main): Make printf statements 64-bit clean.
21902         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
21903         * tests/test-getaddrinfo.c (simple): Likewise.
21904         * tests/test-read-file.c (main): Likewise.
21905
21906 2007-03-17  Bruno Haible  <bruno@clisp.org>
21907
21908         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
21909
21910 2007-03-17  Bruno Haible  <bruno@clisp.org>
21911
21912         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
21913         unused variable.
21914
21915 2007-03-17  Bruno Haible  <bruno@clisp.org>
21916
21917         * tests/test-c-strcasecmp.c: Include c-strcase.h.
21918         * tests/test-c-strncasecmp.c: Likewise.
21919
21920 2007-03-17  Bruno Haible  <bruno@clisp.org>
21921
21922         * modules/stdlib (Depends-on): Add unistd.
21923         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
21924         Needed for MacOS X 10.3.
21925
21926 2007-03-17  Bruno Haible  <bruno@clisp.org>
21927
21928         * lib/unistr/u-strdup.h: Include <stdlib.h>.
21929
21930 2007-03-17  Bruno Haible  <bruno@clisp.org>
21931
21932         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
21933
21934 2007-03-17  Bruno Haible  <bruno@clisp.org>
21935
21936         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
21937         to reflect files copied from gnulib (with or without modifications).
21938         Suggested by Jim Meyering.
21939
21940 2007-03-17  Eric Blake  <ebb9@byu.net>
21941
21942         * NEWS: Document stdlib change from 2007-02-18.
21943
21944 2007-03-17  Jim Meyering  <jim@meyering.net>
21945
21946         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
21947         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
21948         someone uses a name containing shell meta-characters.
21949         Reported by Alfred M. Szmidt.
21950
21951         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
21952
21953 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
21954
21955         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
21956         and copy gettext configuration files only if configure.ac contains
21957         a use of AM_GNU_GETTEXT_VERSION.
21958
21959 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
21960
21961         * build-aux/bootstrap (gnulib_name): New variable.
21962         (gnulib_tool_options): Use it.
21963
21964 2007-03-13  Simon Josefsson  <simon@josefsson.org>
21965
21966         * tests/test-des.c: Use new namespace.
21967
21968 2007-03-15  Bruno Haible  <bruno@clisp.org>
21969
21970         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
21971         Reported by James Youngman <jay@gnu.org>.
21972
21973 2007-03-15  Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
21976         declared prototype. Needed with cc on OSF/1 5.1.
21977
21978 2007-03-15  Bruno Haible  <bruno@clisp.org>
21979
21980         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
21981         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
21982         (struct gl_list_implementation): Add dispose_fn argument to the
21983         'create_empty', 'create' methods.
21984         (struct gl_list_impl_base): Add field 'dispose_fn'.
21985         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
21986         argument.
21987         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
21988         dispose_fn argument.
21989         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
21990         dispose_fn on the dropped values.
21991         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
21992         dispose_fn argument.
21993         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
21994         dropped values.
21995         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
21996         (gl_tree_remove_node): Call dispose_fn on the dropped value.
21997         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
21998         (gl_tree_remove_node): Call dispose_fn on the dropped value.
21999         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22000         argument.
22001         (gl_tree_list_free): Call dispose_fn on the dropped values.
22002         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22003         the dropped values.
22004         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22005         Add dispose_fn argument.
22006         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22007         Call dispose_fn on the dropped values.
22008         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22009         Add dispose_fn argument.
22010         (gl_sublist_create): Initialize the 'dispose_fn' field.
22011         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22012         * tests/test-array_list.c (main): Update.
22013         * tests/test-carray_list.c (main): Update.
22014         * tests/test-avltree_list.c (main): Update.
22015         * tests/test-rbtree_list.c (main): Update.
22016         * tests/test-avltreehash_list.c (main): Update.
22017         * tests/test-rbtreehash_list.c (main): Update.
22018         * tests/test-linked_list.c (main): Update.
22019         * tests/test-linkedhash_list.c (main): Update.
22020         * tests/test-array_oset.c (main): Update.
22021
22022 2007-03-15  Bruno Haible  <bruno@clisp.org>
22023
22024         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22025         (gl_oset_create_empty): Add dispose_fn argument.
22026         (struct gl_oset_implementation): Add dispose_fn argument to
22027         'create_empty' method.
22028         (struct gl_oset_impl_base): Add dispose_fn field.
22029         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22030         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22031         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22032         values.
22033         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22034         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22035         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22036         dropped value.
22037         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22038         dropped value.
22039         * tests/test-array_oset.c (main): Update.
22040         * tests/test-avltree_oset.c (main): Update.
22041         * tests/test-rbtree_oset.c (main): Update.
22042         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22043
22044 2007-03-13  Bruno Haible  <bruno@clisp.org>
22045
22046         * tests/test-stdbool.c (i): Update after last patch.
22047
22048 2007-03-12  Bruno Haible  <bruno@clisp.org>
22049
22050         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22051         the iswprint macro. Needed on Solaris 2.5.1.
22052
22053 2007-03-12  Bruno Haible  <bruno@clisp.org>
22054
22055         * tests/test-printf-frexp.c (main): Declare x as volatile.
22056
22057 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22058
22059         * doc/gnulib.texi (Build robot for gnulib): New section.
22060
22061 2007-03-12  Jim Meyering  <jim@meyering.net>
22062
22063         * build-aux/bootstrap: New file.
22064         * build-aux/bootstrap.conf: New file, from coreutils.
22065
22066 2007-03-11  Bruno Haible  <bruno@clisp.org>
22067
22068         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22069
22070 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22071
22072         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22073         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22074         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22075
22076 2007-03-11  Bruno Haible  <bruno@clisp.org>
22077
22078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22079         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22080
22081 2007-03-11  Bruno Haible  <bruno@clisp.org>
22082
22083         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22084         formula. Needed for SunPRO C 5.0.
22085
22086 2007-03-11  Bruno Haible  <bruno@clisp.org>
22087
22088         * modules/long-options (Depends-on): Add getopt.
22089
22090 2007-03-11  Bruno Haible  <bruno@clisp.org>
22091
22092         * modules/modechange (Depends-on): Add stdbool.
22093
22094 2007-03-11  Bruno Haible  <bruno@clisp.org>
22095
22096         * modules/i-ring (Depends-on): Add stdbool.
22097
22098 2007-03-11  Bruno Haible  <bruno@clisp.org>
22099
22100         * modules/gc-des (Depends-on): Add stdbool.
22101
22102 2007-03-11  Bruno Haible  <bruno@clisp.org>
22103
22104         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22105
22106 2007-03-11  Bruno Haible  <bruno@clisp.org>
22107
22108         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22109
22110 2007-03-11  Bruno Haible  <bruno@clisp.org>
22111
22112         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22113
22114 2007-03-11  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/vasnprintf.c (sprintf): Undefine.
22117
22118 2007-03-11  Bruno Haible  <bruno@clisp.org>
22119
22120         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22121         initializers in SunPRO C and Compaq C compilers.
22122
22123 2007-03-11  Bruno Haible  <bruno@clisp.org>
22124
22125         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22126         decrementing code ANSI C compliant.
22127
22128 2007-03-11  Bruno Haible  <bruno@clisp.org>
22129
22130         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22131         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22132
22133 2007-03-11  Bruno Haible  <bruno@clisp.org>
22134
22135         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22136         <stdbool.h> substitute doesn't pass.
22137
22138 2007-03-11  Bruno Haible  <bruno@clisp.org>
22139
22140         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22141
22142 2007-03-11  Bruno Haible  <bruno@clisp.org>
22143
22144         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22145         script, for submission to autobuild.josefsson.org.
22146
22147 2007-03-10  Bruno Haible  <bruno@clisp.org>
22148
22149         * modules/canonicalize-lgpl-tests: New file.
22150         * tests/test-canonicalize-lgpl.sh: New file.
22151         * tests/test-canonicalize-lgpl.c: New file.
22152
22153         * modules/c-strcase-tests: New file.
22154         * tests/test-c-strcase.sh: New file.
22155         * tests/test-c-strcasecmp.c: New file.
22156         * tests/test-c-strncasecmp.c: New file.
22157
22158         * modules/atexit-tests: New file.
22159         * tests/test-atexit.sh: New file.
22160         * tests/test-atexit.c: New file.
22161
22162 2007-03-10  Bruno Haible  <bruno@clisp.org>
22163
22164         * tests/test-binary-io.sh: Use temporary filenames that are not so
22165         likely to clash with those of other tests (in a parallel make).
22166         * tests/test-binary-io.c: Likewise.
22167
22168 2007-03-10  Bruno Haible  <bruno@clisp.org>
22169
22170         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22171         fallback; use #error instead.
22172         Suggested by Simon Josefsson.
22173
22174 2007-03-10  Bruno Haible  <bruno@clisp.org>
22175
22176         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22177         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22178         first and the last.
22179
22180 2007-03-10  Bruno Haible  <bruno@clisp.org>
22181
22182         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22183
22184 2007-03-10  Bruno Haible  <bruno@clisp.org>
22185
22186         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22187         "make distcheck".
22188         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22189         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22190         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22191
22192 2007-03-10  Bruno Haible  <bruno@clisp.org>
22193
22194         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22195         variable.
22196         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22197         variable.
22198
22199 2007-03-09  Eric Blake  <ebb9@byu.net>
22200         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22201
22202         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22203         types are not being provided by gnulib.
22204         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22205         types are supported.
22206
22207 2007-03-10  Bruno Haible  <bruno@clisp.org>
22208
22209         * lib/stdio_.h (__attribute__): New macro.
22210         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22211         vsprintf): Specify __attribute__ __format__ for GCC.
22212         Suggested by Eric Blake.
22213
22214 2007-03-09  Bruno Haible  <bruno@clisp.org>
22215
22216         * modules/printf-posix-tests: New file.
22217         * tests/test-printf-posix.sh: New file.
22218         * tests/test-printf-posix.c: New file.
22219
22220         * modules/printf-posix: New file.
22221         * lib/printf.c: New file.
22222         * m4/printf-posix-rpl.m4: New file.
22223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22224         REPLACE_PRINTF.
22225         * lib/stdio_.h (printf): New declaration.
22226         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22227         ____strfmon____): New macros.
22228         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22229         REPLACE_PRINTF.
22230
22231 2007-03-09  Bruno Haible  <bruno@clisp.org>
22232
22233         * tests/test-vasnprintf-posix2.sh: New file.
22234         * tests/test-vasnprintf-posix2.c: New file.
22235         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22236         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22237         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22238
22239         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22240         a locale dependent decimal point, rather than always '.'.
22241
22242 2007-03-09  Eric Blake  <ebb9@byu.net>
22243
22244         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22245         spite of platforms like Tandem/NSK that define it to -1.
22246
22247 2007-03-08  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/vprintf-posix-tests: New file.
22250         * tests/test-vprintf-posix.sh: New file.
22251         * tests/test-vprintf-posix.c: New file.
22252         * tests/test-printf-posix.h: New file.
22253
22254         * modules/vprintf-posix: New file.
22255         * lib/vprintf.c: New file.
22256         * m4/vprintf-posix.m4: New file.
22257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22258         REPLACE_VPRINTF.
22259         * lib/stdio_.h (vprintf): New declaration.
22260         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22261         REPLACE_VPRINTF.
22262
22263 2007-03-08  Bruno Haible  <bruno@clisp.org>
22264
22265         * modules/fprintf-posix-tests: New file.
22266         * tests/test-fprintf-posix.sh: New file.
22267         * tests/test-fprintf-posix.c: New file.
22268
22269         * modules/fprintf-posix: New file.
22270         * lib/fprintf.c: New file.
22271         * m4/fprintf-posix.m4: New file.
22272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22273         REPLACE_FPRINTF.
22274         * lib/stdio_.h (fprintf): New declaration.
22275         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22276         REPLACE_FPRINTF.
22277
22278 2007-03-08  Bruno Haible  <bruno@clisp.org>
22279
22280         * modules/vfprintf-posix-tests: New file.
22281         * tests/test-vfprintf-posix.sh: New file.
22282         * tests/test-vfprintf-posix.c: New file.
22283         * tests/test-fprintf-posix.h: New file.
22284         * tests/test-fprintf-posix.out: New file.
22285
22286         * modules/vfprintf-posix: New file.
22287         * lib/vfprintf.c: New file.
22288         * m4/vfprintf-posix.m4: New file.
22289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22290         REPLACE_VFPRINTF.
22291         * lib/stdio_.h (vfprintf): New declaration.
22292         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22293         REPLACE_VFPRINTF.
22294
22295 2007-03-08  Bruno Haible  <bruno@clisp.org>
22296
22297         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22298
22299 2007-03-08  Bruno Haible  <bruno@clisp.org>
22300
22301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22302         instead of 'expr' invocations.
22303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22308         Suggested by Paul Eggert.
22309
22310 2007-03-08  Bruno Haible  <bruno@clisp.org>
22311
22312         * modules/fseterr-tests: New file.
22313         * tests/test-fseterr.c: New file.
22314
22315         * modules/fseterr: New file.
22316         * lib/fseterr.h: New file.
22317         * lib/fseterr.c: New file.
22318
22319 2007-03-08  Bruno Haible  <bruno@clisp.org>
22320
22321         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22322         * lib/getopt_.h: Likewise.
22323         * lib/mbswidth.h: Likewise.
22324         * lib/setenv.h: Likewise.
22325         * lib/vasnprintf.h: Likewise.
22326         * lib/vasprintf.h: Likewise.
22327         * lib/verror.h: Likewise.
22328         * lib/xsetenv.h: Likewise.
22329         * lib/xvasprintf.h: Likewise.
22330
22331 2007-03-08  Jim Meyering  <jim@meyering.net>
22332
22333         * users.txt: Add parted.
22334
22335         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22336
22337 2007-03-07  Bruno Haible  <bruno@clisp.org>
22338
22339         * m4/printf.m4: Make the shell script snippets copy&pastable.
22340
22341 2007-03-02  Bruno Haible  <bruno@clisp.org>
22342
22343         * lib/netinet_in_.h: New file.
22344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22345         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22346         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22347         (Depends-on): Add absolute-header.
22348         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22349         into netinet/in.h.
22350
22351 2007-03-03  Bruno Haible  <bruno@clisp.org>
22352
22353         * lib/sys_select_.h: New file.
22354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22355         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22356         * modules/sys_select (Files): Add lib/sys_select_.h.
22357         (Depends-on): Add absolute-header.
22358         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22359         into sys/select.h.
22360
22361 2007-03-02  Bruno Haible  <bruno@clisp.org>
22362
22363         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22364         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22365         values.
22366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22367         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22368         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22369         * modules/sys_socket (Depends-on): Add absolute-header.
22370         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22371         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22372         (Include): Remove requirement of inclusion of <sys/types.h>.
22373
22374 2007-03-02  Bruno Haible  <bruno@clisp.org>
22375
22376         * lib/byteswap_.h (bswap_32): Fix formula.
22377
22378 2007-03-06  Bruno Haible  <bruno@clisp.org>
22379
22380         * modules/sprintf-posix-tests: New file.
22381         * tests/test-sprintf-posix.c: New file.
22382
22383         * modules/sprintf-posix: New file.
22384         * lib/sprintf.c: New file.
22385         * m4/sprintf-posix.m4: New file.
22386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22387         REPLACE_SPRINTF.
22388         * lib/stdio_.h (sprintf): New declaration.
22389         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22390         REPLACE_SPRINTF.
22391
22392 2007-03-06  Bruno Haible  <bruno@clisp.org>
22393
22394         * modules/vsprintf-posix-tests: New file.
22395         * tests/test-vsprintf-posix.c: New file.
22396         * tests/test-sprintf-posix.h: New file.
22397
22398         * modules/vsprintf-posix: New file.
22399         * lib/vsprintf.c: New file.
22400         * m4/vsprintf-posix.m4: New file.
22401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22402         REPLACE_VSPRINTF.
22403         * lib/stdio_.h (vsprintf): New declaration.
22404         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22405         REPLACE_VSPRINTF.
22406
22407 2007-03-06  Bruno Haible  <bruno@clisp.org>
22408
22409         * modules/vsnprintf (Depend-on): Remove minmax.
22410
22411 2007-03-06  Bruno Haible  <bruno@clisp.org>
22412
22413         * modules/snprintf-posix-tests: New file.
22414         * tests/test-snprintf-posix.c: New file.
22415
22416         * modules/snprintf-posix: New file.
22417         * m4/snprintf-posix.m4: New file.
22418         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22419         gl_FUNC_SNPRINTF.
22420         (gl_FUNC_SNPRINTF): Invoke it.
22421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22422         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22423         is set.
22424         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22425
22426 2007-03-06  Bruno Haible  <bruno@clisp.org>
22427
22428         * modules/vsnprintf-posix-tests: New file.
22429         * tests/test-vsnprintf-posix.c: New file.
22430         * tests/test-snprintf-posix.h: New file.
22431
22432         * modules/vsnprintf-posix: New file.
22433         * m4/vsnprintf-posix.m4: New file.
22434         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22435         gl_FUNC_VSNPRINTF.
22436         (gl_FUNC_VSNPRINTF): Invoke it.
22437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22438         * lib/stdio_.h (vsnprintf): Define as a replacement if
22439         REPLACE_VSNPRINTF is set.
22440         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22441
22442 2007-03-06  Bruno Haible  <bruno@clisp.org>
22443
22444         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22446
22447 2007-03-06  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22450         (asinl): Declare also if HAVE_DECL_ASINL is set.
22451         (atanl): Declare also if HAVE_DECL_ATANL is set.
22452         (ceill): Declare also if HAVE_DECL_CEILL is set.
22453         (cosl): Declare also if HAVE_DECL_COSL is set.
22454         (expl): Declare also if HAVE_DECL_EXPL is set.
22455         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22456         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22457         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22458         (logl): Declare also if HAVE_DECL_LOGL is set.
22459         (sinl): Declare also if HAVE_DECL_SINL is set.
22460         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22461         (tanl): Declare also if HAVE_DECL_TANL is set.
22462         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22464         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22465         declaration of frexpl, ldexpl.
22466         * modules/printf-frexpl (Depends-on): Add math.
22467         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22468
22469 2007-03-05  Bruno Haible  <bruno@clisp.org>
22470
22471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22472         frexpl and ldexpl are declared.
22473         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22474
22475 2007-03-05  Bruno Haible  <bruno@clisp.org>
22476
22477         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22478         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22479
22480 2007-03-05  Bruno Haible  <bruno@clisp.org>
22481
22482         * lib/stdio_.h: Include <stddef.h>.
22483
22484 2007-03-05  Bruno Haible  <bruno@clisp.org>
22485
22486         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22487
22488 2007-03-05  Bruno Haible  <bruno@clisp.org>
22489
22490         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22491         NetBSD 4, from Ralf Wildenhues.
22492
22493 2007-03-04  Bruno Haible  <bruno@clisp.org>
22494
22495         * lib/vasprintf.h: Update #if logic for the case when the functions
22496         exist but are overridden.
22497
22498 2007-03-04  Bruno Haible  <bruno@clisp.org>
22499
22500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22501         implementations: glibc-2.4 and MacOS X 10.3.
22502         * tests/test-vasnprintf-posix.c (test_function): Test also the case
22503         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22504         * tests/test-vasprintf-posix.c (test_function): Likewise.
22505
22506 2007-03-04  Bruno Haible  <bruno@clisp.org>
22507
22508         * modules/vasprintf-posix-tests: New file.
22509         * tests/test-vasprintf-posix.c: New file.
22510
22511         * modules/vasprintf-posix: New file.
22512         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22513         defined.
22514         * m4/vasprintf-posix.m4: New file.
22515         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22516         gl_FUNC_VASPRINTF.
22517         (gl_FUNC_VASPRINTF): Invoke it.
22518         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22519         here.
22520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22521
22522 2007-03-04  Bruno Haible  <bruno@clisp.org>
22523
22524         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22525         REPLACE_GETTIMEOFDAY.
22526         * modules/sys_time (Makefile.am): Likewise.
22527         * m4/sys_time_h.m4: Likewise.
22528         * m4/gettimeofday.m4: Likewise.
22529
22530 2007-03-04  Bruno Haible  <bruno@clisp.org>
22531
22532         * modules/vasnprintf-posix-tests: New file.
22533         * tests/test-vasnprintf-posix.c: New file.
22534
22535         * modules/vasnprintf-posix: New file.
22536         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22537         printf-frexpl.h.
22538         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22539         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22540         REPLACE_VASNPRINTF is defined.
22541         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22542         gl_FUNC_VASNPRINTF.
22543         (gl_FUNC_VASNPRINTF): Invoke it.
22544         * m4/vasnprintf-posix.m4: New file.
22545         * m4/printf.m4: New file.
22546
22547 2007-03-04  Bruno Haible  <bruno@clisp.org>
22548
22549         Compile progreloc.c only if --enable-relocatable is specified.
22550         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22551         if --enable-relocatable was specified.
22552         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22553         lib_SOURCES.
22554
22555 2007-03-04  Jim Meyering  <jim@meyering.net>
22556
22557         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22558         Use it consistently, rather than enumerating errno constants.
22559
22560 2007-03-04  Bruno Haible  <bruno@clisp.org>
22561
22562         * modules/xvasprintf-tests: New file.
22563         * tests/test-xvasprintf.c: New file.
22564
22565         * modules/vasprintf-tests: New file.
22566         * tests/test-vasprintf.c: New file.
22567
22568         * modules/vasnprintf-tests: New file.
22569         * tests/test-vasnprintf.c: New file.
22570
22571         * modules/vsnprintf-tests: New file.
22572         * tests/test-vsnprintf.c: New file.
22573
22574         * modules/snprintf-tests: New file.
22575         * tests/test-snprintf.c: New file.
22576
22577 2007-03-04  Bruno Haible  <bruno@clisp.org>
22578
22579         Compile relocatable.c only if --enable-relocatable is specified.
22580         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22581         gl_RELOCATABLE_LIBRARY.
22582         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22583         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22584         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22585         gl_RELOCATABLE_LIBRARY.
22586         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22587         (Makefile.am): Remove lib_SOURCES.
22588         * modules/relocatable-lib-lgpl (configure.ac): Invoke
22589         gl_RELOCATABLE_LIBRARY.
22590         (Makefile.am): Remove lib_SOURCES.
22591         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22592         always.
22593         * modules/relocatable-prog-wrapper (configure.ac): Invoke
22594         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22595
22596 2007-03-04  Bruno Haible  <bruno@clisp.org>
22597
22598         * modules/argmatch-tests: New file.
22599         * tests/test-argmatch.c: New file.
22600
22601         * tests/test-allocsa.c (main): Halve the number of loop runs.
22602
22603         * modules/alloca-opt-tests: New file.
22604         * tests/test-alloca-opt.c: New file.
22605
22606 2007-03-04  Jim Meyering  <jim@meyering.net>
22607
22608         Work around difference between Linux ACLs and Solaris 10 ZFS.
22609         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
22610         for EINVAL.
22611
22612 2007-03-03  Bruno Haible  <bruno@clisp.org>
22613
22614         * modules/relocatable-prog (Depends-on): Add back progreloc's
22615         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
22616
22617 2007-03-03  Bruno Haible  <bruno@clisp.org>
22618
22619         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
22620         * modules/relocatable-lib: New file.
22621
22622 2007-03-03  Bruno Haible  <bruno@clisp.org>
22623
22624         * modules/relocatable-prog: Renamed from modules/relocatable.
22625         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
22626
22627 2007-03-03  Bruno Haible  <bruno@clisp.org>
22628
22629         * modules/relocatable-script (Files): Add doc/relocatable.texi,
22630         m4/relocatable-lib.m4.
22631         (Depends-on): Remove 'relocatable'.
22632         (configure.ac): Add gl_RELOCATABLE_NOP.
22633
22634 2007-03-03  Bruno Haible  <bruno@clisp.org>
22635
22636         * modules/relocatable-prog-wrapper: New file.
22637         * modules/relocatable (Depends-on): Add it. Remove all other
22638         dependencies except progname.
22639         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
22640
22641         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
22642         (gl_FUNC_STRERROR): Nop.
22643         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
22644
22645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
22646         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
22647
22648         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
22649         (gl_FUNC_READLINK): Update.
22650
22651         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
22652
22653 2007-03-03  Bruno Haible  <bruno@clisp.org>
22654
22655         * lib/xreadlink.c: Include <unistd.h> unconditionally.
22656         * modules/xreadlink (Depends-on): Add unistd.
22657         * modules/xreadlink-with-size (Depends-on): Likewise.
22658
22659 2007-03-03  Bruno Haible  <bruno@clisp.org>
22660
22661         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
22662         extracted from gt_FUNC_SETENV.
22663         (gt_FUNC_SETENV): Remove macro.
22664         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
22665         remove gt_FUNC_SETENV.
22666
22667 2007-03-03  Bruno Haible  <bruno@clisp.org>
22668
22669         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
22670         ENABLE_RELOCATABLE here.
22671         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
22672
22673 2007-03-03  Bruno Haible  <bruno@clisp.org>
22674
22675         * modules/rbtreehash-list-tests (Depends-on): Add progname.
22676         * tests/test-rbtreehash_list.c: Include progname.h.
22677         (main): Call set_program_name.
22678
22679         * modules/rbtree-oset-tests (Depends-on): Add progname.
22680         * tests/test-rbtree_oset.c: Include progname.h.
22681         (main): Call set_program_name.
22682
22683         * modules/rbtree-list-tests (Depends-on): Add progname.
22684         * tests/test-rbtree_list.c: Include progname.h.
22685         (main): Call set_program_name.
22686
22687         * modules/linked-list-tests (Depends-on): Add progname.
22688         * tests/test-linked_list.c: Include progname.h.
22689         (main): Call set_program_name.
22690
22691 2007-03-03  Bruno Haible  <bruno@clisp.org>
22692
22693         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
22694         All uses of __restrict changed to _Restrict_.
22695         * lib/glob_.h (__restrict): Remove macro.
22696
22697 2007-03-02  Bruno Haible  <bruno@clisp.org>
22698
22699         * modules/gettext (configure.ac): Require gettext infrastructure
22700         from version 0.16.1.
22701
22702 2007-03-02  Bruno Haible  <bruno@clisp.org>
22703
22704         * modules/linkedhash-list-tests (Depends-on): Add progname.
22705         * tests/test-linkedhash_list.c: Include progname.h.
22706         (main): Call set_program_name.
22707
22708         * modules/carray-list-tests (Depends-on): Add progname.
22709         * tests/test-carray_list.c: Include progname.h.
22710         (main): Call set_program_name.
22711
22712         * modules/avltreehash-list-tests (Depends-on): Add progname.
22713         * tests/test-avltreehash_list.c: Include progname.h.
22714         (main): Call set_program_name.
22715
22716         * modules/avltree-oset-tests (Depends-on): Add progname.
22717         * tests/test-avltree_oset.c: Include progname.h.
22718         (main): Call set_program_name.
22719
22720         * modules/avltree-list-tests (Depends-on): Add progname.
22721         * tests/test-avltree_list.c: Include progname.h.
22722         (main): Call set_program_name.
22723
22724         * modules/array-oset-tests (Depends-on): Add progname.
22725         * tests/test-array_oset.c: Include progname.h.
22726         (main): Call set_program_name.
22727
22728         * modules/array-list-tests (Depends-on): Add progname.
22729         * tests/test-array_list.c: Include progname.h.
22730         (main): Call set_program_name.
22731
22732         * modules/argp-tests (Depends-on): Add progname.
22733         * tests/test-argp.c: Include argp.h first. Include progname.h.
22734         (main): Call set_program_name.
22735
22736 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
22737
22738         * doc/gnulib-tool.texi (Initial import): Reword description of
22739         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
22740         limited effect even if defined after the first system include.
22741
22742 2007-03-01  Bruno Haible  <bruno@clisp.org>
22743
22744         * build-aux/config.libpath: Update to libtool-1.5.22.
22745         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22746
22747 2007-03-01  Bruno Haible  <bruno@clisp.org>
22748
22749         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
22750         foo_CFLAGS.
22751         Reported by Ralf Wildenhues.
22752
22753 2007-03-01  Bruno Haible  <bruno@clisp.org>
22754
22755         * build-aux/install-reloc: Remove object files left over by some
22756         compilers.
22757         Reported by Ralf Wildenhues.
22758
22759 2007-03-01  Bruno Haible  <bruno@clisp.org>
22760
22761         * build-aux/install-reloc: Break long lines.
22762
22763 2007-03-01  Bruno Haible  <bruno@clisp.org>
22764
22765         * doc/relocatable.texi: Document that it may not work on OpenBSD.
22766         Reported by Ralf Wildenhues.
22767
22768 2007-03-01  Bruno Haible  <bruno@clisp.org>
22769
22770         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
22771         include ordering constraints.
22772
22773 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22774
22775         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
22776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
22777         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
22778         as another example.
22779         * lib/time_.h: Fix misspelling.
22780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22781         Require gl_HEADER_TIME_H_DEFAULTS.
22782         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
22783         * m4/time_r.m4 (gl_TIME_R): Likewise.
22784         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
22785
22786 2007-03-01  Bruno Haible  <bruno@clisp.org>
22787
22788         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
22789         * m4/utimens.m4 (gl_UTIMENS): Likewise.
22790
22791 2007-03-01  Jim Meyering  <jim@meyering.net>
22792
22793         * modules/xreadlink (Maintainer): Add my name.
22794         * modules/xreadlink-with-size (Depends-on): Alphabetize.
22795
22796 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
22797             Bruno Haible  <bruno@clisp.org>
22798
22799         * build-aux/install-reloc: Compile also c-ctype.c.
22800         * build-aux/relocatable.sh.in: New file.
22801         * doc/relocatable.texi: New file.
22802         * doc/relocatable-maint.texi: New file.
22803         * doc/gnulib.texi: Include relocatable-maint.texi.
22804         * lib/progreloc.c: Include unistd.h unconditionally.
22805         * lib/relocwrapper.c: Include unistd.h unconditionally.
22806         Include c-ctype.h.
22807         (add_dotbin): Use c_tolower.
22808         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
22809         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
22810         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
22811         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
22812         to m4/relocatable-lib.m4.
22813         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
22814         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
22815         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
22816         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
22817         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
22818         * modules/relocatable: New file.
22819         * modules/relocatable-lib: New file.
22820         * modules/relocatable-script: New file.
22821
22822 2007-02-28  Bruno Haible  <bruno@clisp.org>
22823
22824         Import --enable-relocatable infrastructure.
22825         * build-aux/config.libpath: New file, from GNU gettext.
22826         * build-aux/install-reloc: New file, from GNU gettext.
22827         * build-aux/reloc-ldflags: New file, from GNU gettext.
22828         * lib/relocatable.h: New file, from GNU gettext.
22829         * lib/relocatable.c: New file, from GNU gettext.
22830         * lib/relocwrapper.c: New file, from GNU gettext.
22831         * m4/relocatable.m4: New file, from GNU gettext.
22832
22833 2007-02-28  Bruno Haible  <bruno@clisp.org>
22834
22835         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
22836
22837         * modules/xreadlink: New file, from GNU gettext with modifications.
22838         * lib/xreadlink.c: New file, from GNU gettext.
22839         * lib/xreadlink.h: Add comments.
22840         (xreadlink): New declaration.
22841
22842         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
22843         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
22844         lib/xreadlink-with-size.c.
22845         (configure.ac): Remove gl_XREADLINK invocation.
22846         (Makefile.am): Augment lib_SOURCES.
22847         * m4/xreadlink.m4: Remove file.
22848         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
22849         (xreadlink_with_size): Renamed from xreadink.
22850         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
22851         * modules/canonicalize (Depends-on): Replace xreadlink with
22852         xreadlink-with-size.
22853         * lib/canonicalize.c (canonicalize_filename_mode): Update.
22854
22855 2007-02-25  Jim Meyering  <jim@meyering.net>
22856
22857         * build-aux/announce-gen: When complaining about excess arguments,
22858         list them.
22859
22860 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22861
22862         * README: Document signed integer overflow situation more
22863         accurately.
22864
22865 2007-02-25  Bruno Haible  <bruno@clisp.org>
22866
22867         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
22868         'a' or 'A' conversion.
22869
22870 2007-02-25  Bruno Haible  <bruno@clisp.org>
22871
22872         * modules/filename: Renamed from modules/pathname.
22873         (Files): Replace lib/pathname.h with lib/filename.h. Replace
22874         lib/concatpath.c with lib/concat-filename.c.
22875         (Makefile.am): Update.
22876         (Include): Replace pathname.h with filename.h.
22877         * lib/filename.h: Renamed from lib/pathname.h.
22878         (concatenated_filename): Renamed from concatenated_pathname.
22879         * lib/concat-filename.c: Renamed from lib/concatpath.c.
22880         (concatenated_filename): Renamed from concatenated_pathname.
22881         * lib/findprog.c: Include filename.h instead of pathname.h.
22882         (find_in_path): Update.
22883         * lib/javacomp.c: Include filename.h instead of pathname.h.
22884         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22885         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22886         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22887         is_oldgcj_14_13_usable, is_javac_usable): Update.
22888         * lib/javaexec.c: Include filename.h instead of pathname.h.
22889         (execute_java_class): Update.
22890         * modules/findprog: Update.
22891         * modules/javacomp: Update.
22892         * modules/javaexec: Update.
22893         * MODULES.html.sh (File system functions): Add 'filename', remove
22894         'pathname'.
22895
22896 2007-02-25  Bruno Haible  <bruno@clisp.org>
22897
22898         * modules/printf-frexpl-tests: New file.
22899         * tests/test-printf-frexpl.c: New file.
22900
22901         * modules/printf-frexpl: New file.
22902         * lib/printf-frexpl.h: New file.
22903         * lib/printf-frexpl.c: New file.
22904         * m4/printf-frexpl.m4: New file.
22905
22906 2007-02-25  Bruno Haible  <bruno@clisp.org>
22907
22908         * modules/printf-frexp-tests: New file.
22909         * tests/test-printf-frexp.c: New file.
22910
22911         * modules/printf-frexp: New file.
22912         * lib/printf-frexp.h: New file.
22913         * lib/printf-frexp.c: New file.
22914         * m4/printf-frexp.m4: New file.
22915
22916 2007-02-25  Bruno Haible  <bruno@clisp.org>
22917
22918         Assume automake >= 1.10 for the tests.
22919         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
22920         * modules/arctwo-tests: Likewise.
22921         * modules/argp-tests: Likewise.
22922         * modules/avltree-list-tests: Likewise.
22923         * modules/avltree-oset-tests: Likewise.
22924         * modules/avltreehash-list-tests: Likewise.
22925         * modules/carray-list-tests: Likewise.
22926         * modules/crc-tests: Likewise.
22927         * modules/des-tests: Likewise.
22928         * modules/gc-arcfour-tests: Likewise.
22929         * modules/gc-arctwo-tests: Likewise.
22930         * modules/gc-des-tests: Likewise.
22931         * modules/gc-hmac-md5-tests: Likewise.
22932         * modules/gc-hmac-sha1-tests: Likewise.
22933         * modules/gc-md2-tests: Likewise.
22934         * modules/gc-md4-tests: Likewise.
22935         * modules/gc-md5-tests: Likewise.
22936         * modules/gc-pbkdf2-sha1-tests: Likewise.
22937         * modules/gc-rijndael-tests: Likewise.
22938         * modules/gc-sha1-tests: Likewise.
22939         * modules/gc-tests: Likewise.
22940         * modules/getaddrinfo-tests: Likewise.
22941         * modules/hmac-md5-tests: Likewise.
22942         * modules/hmac-sha1-tests: Likewise.
22943         * modules/linked-list-tests: Likewise.
22944         * modules/linkedhash-list-tests: Likewise.
22945         * modules/lock-tests: Likewise.
22946         * modules/md2-tests: Likewise.
22947         * modules/md4-tests: Likewise.
22948         * modules/md5-tests: Likewise.
22949         * modules/rbtree-list-tests: Likewise.
22950         * modules/rbtree-oset-tests: Likewise.
22951         * modules/rbtreehash-list-tests: Likewise.
22952         * modules/read-file-tests: Likewise.
22953         * modules/rijndael-tests: Likewise.
22954         * modules/stdint-tests: Likewise.
22955         * modules/tls-tests: Likewise.
22956
22957 2007-02-24  Bruno Haible  <bruno@clisp.org>
22958
22959         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
22960         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
22961         function; instead check whether isnan with a double argument links.
22962         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
22963         function; instead check whether isnan with a 'long double' argument
22964         links.
22965         Reported by Eric Blake <ebb9@byu.net>.
22966
22967 2007-02-24  Bruno Haible  <bruno@clisp.org>
22968
22969         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
22970         defined.
22971         * lib/isnanl.c: Remove all code. Just include isnan.c.
22972         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
22973
22974 2007-02-25  Jim Meyering  <jim@meyering.net>
22975
22976         Avoid conflicting types for 'unsetenv' on FreeBSD.
22977         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
22978         conflicting with FreeBSD's (5.0 and 6.1) function declaration
22979         in stdlib.h.
22980
22981 2007-02-24  Bruno Haible  <bruno@clisp.org>
22982
22983         * modules/isnanl-nolibm-tests: New file.
22984         * tests/test-isnanl.c: New file.
22985
22986         * modules/isnanl-nolibm: New file.
22987         * lib/isnanl.h: New file.
22988         * lib/isnanl.c: New file.
22989         * m4/isnanl.m4: New file.
22990
22991 2007-02-24  Bruno Haible  <bruno@clisp.org>
22992
22993         * modules/isnan-nolibm-tests: New file.
22994         * tests/test-isnan.c: New file.
22995
22996         * modules/isnan-nolibm: New file.
22997         * lib/isnan.h: New file.
22998         * lib/isnan.c: New file.
22999         * m4/isnan.m4: New file.
23000
23001 2007-02-24  Bruno Haible  <bruno@clisp.org>
23002
23003         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23004         assume that an exponent fits in 20 bits.
23005
23006 2007-02-24  Jim Meyering  <jim@meyering.net>
23007
23008         * m4/regex.m4: Update the description of the configure-time option,
23009         --without-included-regex, to state accurately what the defaults are,
23010         and perhaps to give people an idea why using this option is risky.
23011
23012 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23013
23014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23015         loops on small arguments.  This attempts to avoid the problem
23016         Bruno Haible reported for AIX 4.3.2 in
23017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23018
23019 2007-02-23  Bruno Haible  <bruno@clisp.org>
23020
23021         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23022         Needed for help2man.
23023
23024 2007-02-23  Karl Berry  <karl@gnu.org>
23025
23026         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23027         exists, foo.h should be cvs-ignored, not committed.
23028
23029 2007-02-23  Eric Blake  <ebb9@byu.net>
23030
23031         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23032         * lib/stat-time.h (includes): Likewise.
23033         * lib/utimecmp.c (includes): Likewise.
23034         * lib/utimens.h (includes): Likewise.
23035         * lib/getdate.y (includes): Also include "timespec.h" for use
23036         internal to the module.
23037         * modules/utimens (Depends-on): Revert yesterday's patch.
23038         * modules/nanosleep (Depends-on): Add missing dependency.
23039
23040 2007-02-22  Bruno Haible  <bruno@clisp.org>
23041
23042         * lib/glob.c: Don't include getlogin_r.h.
23043
23044 2007-02-22  Jim Meyering  <jim@meyering.net>
23045
23046         * modules/utimens (Depends-on): Add timespec, required for
23047         utimens.h's inclusion of timespec.h.
23048
23049 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23052         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23053         Schwab in
23054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23055         I'll try to think of a better way to fix the Solaris problem.
23056
23057         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23058         like glibc; on Solaris 10, it fails with errno == EINVAL.
23059         POSIX says the behavior is unspecified if the first argument is NULL,
23060         so play it safe and never pass NULL to the system getcwd.
23061
23062 2007-02-21  Jim Meyering  <jim@meyering.net>
23063
23064         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23065         of gettimeofday.  It would conflict with the one now always
23066         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23067         an IRIX 6.5 build failure.
23068
23069 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23070
23071         Minor fixups to port to Solaris 10 with Sun C 5.8.
23072         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23073         * modules/getcwd (Depends-on): Add dirfd.
23074         * lib/putenv.c (putenv): #undef it.
23075         (rpl_putenv): New decl.
23076         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23077
23078 2007-02-20  Bruno Haible  <bruno@clisp.org>
23079
23080         * modules/stdio-tests: New file.
23081         * tests/test-stdio.c: New file.
23082
23083         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23084         (Depends-on): Add stdio.
23085         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23086         (Include): Use <stdio.h> instead of vsnprintf.h.
23087         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23088         HAVE_DECL_VSNPRINTF.
23089         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23090
23091         * modules/snprintf (Files): Remove lib/snprintf.h.
23092         (Depends-on): Add stdio.
23093         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23094         (Include): Use <stdio.h> instead of snprintf.h.
23095         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23096         HAVE_DECL_SNPRINTF.
23097         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23098         * lib/getaddrinfo.c: Likewise.
23099
23100         * modules/stdio: New file.
23101         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23102         * lib/snprintf.h: Remove file.
23103         * lib/vsnprintf.h: Remove file.
23104         * lib/.cppi-disable: Remove snprintf.h.
23105         * m4/stdio_h.m4: New file.
23106         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23107
23108 2007-02-20  Jim Meyering  <jim@meyering.net>
23109
23110         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23111         used by e.g., mingw.  From Bruno Haible.
23112
23113 2007-02-19  Bruno Haible  <bruno@clisp.org>
23114
23115         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23116         warnings.
23117         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23118
23119 2007-02-19  Bruno Haible  <bruno@clisp.org>
23120
23121         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23122         from mingw users.
23123
23124 2007-02-19  Bruno Haible  <bruno@clisp.org>
23125
23126         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23127         warnings.
23128         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23129
23130 2007-02-19  Jim Meyering  <jim@meyering.net>
23131
23132         Don't use FD after a successful "fdopendir (fd)".
23133         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23134         Reset it by calling dirfd on the just-obtained DIR*.
23135
23136         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23137         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23138
23139 2007-02-18  Bruno Haible  <bruno@clisp.org>
23140
23141         * lib/readlink.c: Include <unistd.h>.
23142         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23143         HAVE_READLINK.
23144         * modules/readlink (Depends-on): Add unistd.
23145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23146         (Include): Add <unistd.h>.
23147
23148         * lib/getlogin_r.h: Remove file.
23149         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23150         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23151         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23152         HAVE_DECL_GETLOGIN_R.
23153         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23155         (Include): Use <unistd.h> instead of getlogin_r.h.
23156
23157         * lib/getcwd.h: Remove file.
23158         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23159         * lib/xgetcwd.c: Likewise.
23160         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23161         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23162         * modules/getcwd (Files): Remove lib/getcwd.h.
23163         (Depends-on): Add unistd.
23164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23165         (Include): Use <unistd.h> instad of getcwd.h.
23166
23167         * lib/ftruncate.c: Include <unistd.h> first.
23168         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23169         Set HAVE_FTRUNCATE.
23170         * modules/ftruncate (Depends-on): Add unistd.
23171         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23172
23173         * lib/fchdir.c: Include <unistd.h> first.
23174         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23176         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23177         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23178         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23179
23180         * lib/dup2.c: Include <unistd.h> first.
23181         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23182         HAVE_DUP2.
23183         * modules/dup2 (Depends-on): Add unistd.
23184         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23185
23186         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23187         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23188         REPLACE_CHOWN. Don't define chown as a macro here.
23189         * modules/chown (Depends-on): Add unistd.
23190         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23191
23192         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23193         Add definition for GL_LINK_WARNING.
23194         (chown, dup2): New declarations.
23195         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23196         link warning.
23197         (ftruncate): New declaration.
23198         (getcwd): New declaration, taken from old getcwd.h.
23199         (getlogin_r): New declaration, taken from old getlogin_r.h.
23200         (readlink): New declaration.
23201         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23202         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23203         (gl_PREREQ_UNISTD): Remove macro.
23204         (gl_UNISTD_MODULE_INDICATOR): New macro.
23205         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23206         many new variables. Don't set UNISTD_H.
23207         * modules/unistd (Description): Change.
23208         (Depends-on): Add link-warning.
23209         (configure.ac): Update.
23210         (Makefile.am): Create unistd.h always. Substitute many new variables
23211         into it.
23212
23213 2007-02-18  Bruno Haible  <bruno@clisp.org>
23214
23215         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23216         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23217         HAVE_GETSUBOPT.
23218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23219         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23220         * lib/getsubopt.h: Remove file.
23221         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23222         (Depends-on): Add stdlib.
23223         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23224         (Includes): Use <stdlib.h> instead of getsubopt.h.
23225         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23226         Set HAVE_GETSUBOPT.
23227         * lib/getsubopt.c: Don't include getsubopt.h.
23228
23229 2007-02-18  Bruno Haible  <bruno@clisp.org>
23230
23231         * modules/fchdir (Depends-on): Add dup2.
23232
23233 2007-02-18  Bruno Haible  <bruno@clisp.org>
23234
23235         * lib/stdlib_.h: Handle glibc's special invocation convention
23236         specially.
23237
23238 2007-02-18  Bruno Haible  <bruno@clisp.org>
23239
23240         * modules/stdlib-tests: New file.
23241         * tests/test-stdlib.c: New file.
23242
23243         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23244         (Depends-on): Add stdlib.
23245         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23246         (Includes): Use <stdlib.h> instead of mkstemp.h.
23247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23248         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23249         * lib/mkstemp.c: Don't include mkstemp.h.
23250         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23251         * lib/stdlib--.h: Don't include mkstemp.h.
23252
23253         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23254         (Depends-on): Add stdlib.
23255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23256         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23257         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23258         HAVE_MKDTEMP.
23259         * lib/mkdtemp.c: Don't include mkdtemp.h.
23260         * lib/clean-temp.c: Don't include mkdtemp.h.
23261
23262         * modules/exit (Files): Remove lib/exit.h.
23263         (Depends-on): Add stdlib.
23264         (Makefile.am): Remove lib_SOURCES.
23265         (Include): Use <stdlib.h> instead of exit.h.
23266         * lib/argmatch.c: Don't include exit.h.
23267         * lib/execute.c: Likewise.
23268         * lib/pagealign_alloc.c: Likewise.
23269         * lib/pipe.c: Likewise.
23270         * lib/wait-process.c: Likewise.
23271         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23272         * lib/exitfail.c: Likewise.
23273         * lib/savewd.c: Likewise.
23274         * lib/xsetenv.c: Likewise.
23275
23276         * modules/stdlib: New file.
23277         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23278         and extra comments about mkstemp().
23279         * lib/exit.h: Remove file.
23280         * lib/mkdtemp.h: Remove file.
23281         * lib/mkstemp.h: Remove file.
23282         * m4/stdlib_h.m4: New file.
23283         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23284
23285 2007-02-18  Bruno Haible  <bruno@clisp.org>
23286
23287         * modules/math-tests: New file.
23288         * tests/test-math.c: New file.
23289
23290         * modules/math: New file.
23291         * modules/mathl (Files): Remove lib/mathl.h.
23292         (Depends-on): Add math.
23293         (Makefile.am): Don't mention mathl.h.
23294         (Include): Use <math.h> instead of mathl.h.
23295         * lib/math_.h: New file.
23296         * lib/mathl.h: Remove file.
23297         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23298         mathl.h.
23299         * lib/asinl.c: Likewise.
23300         * lib/atanl.c: Likewise.
23301         * lib/ceill.c: Likewise.
23302         * lib/cosl.c: Likewise.
23303         * lib/expl.c: Likewise.
23304         * lib/floorl.c: Likewise.
23305         * lib/frexpl.c: Likewise.
23306         * lib/ldexpl.c: Likewise.
23307         * lib/logl.c: Likewise.
23308         * lib/sincosl.c: Likewise.
23309         * lib/sinl.c: Likewise.
23310         * lib/sqrtl.c: Likewise.
23311         * lib/tanl.c: Likewise.
23312         * lib/trigl.c: Likewise.
23313         * m4/math_h.m4: New file.
23314         * MODULES.html.sh (Mathematics): Add math.
23315
23316 2007-02-17  Bruno Haible  <bruno@clisp.org>
23317
23318         * modules/wctype-tests: New file.
23319         * tests/test-wctype.c: New file.
23320
23321         * modules/wchar-tests: New file.
23322         * tests/test-wchar.c: New file.
23323
23324         * modules/unistd-tests: New file.
23325         * tests/test-unistd.c: New file.
23326
23327         * modules/time-tests: New file.
23328         * tests/test-time.c: New file.
23329
23330         * modules/sysexits-tests: New file.
23331         * tests/test-sysexits.c: New file.
23332
23333         * modules/sys_time-tests: New file.
23334         * tests/test-sys_time.c: New file.
23335
23336         * modules/sys_stat-tests: New file.
23337         * tests/test-sys_stat.c: New file.
23338
23339         * modules/sys_socket-tests: New file.
23340         * tests/test-sys_socket.c: New file.
23341
23342         * modules/sys_select-tests: New file.
23343         * tests/test-sys_select.c: New file.
23344
23345         * modules/string-tests: New file.
23346         * tests/test-string.c: New file.
23347
23348         * modules/stdbool-tests: New file.
23349         * tests/test-stdbool.c: New file.
23350
23351         * modules/netinet_in-tests: New file.
23352         * tests/test-netinet_in.c: New file.
23353
23354         * modules/inttypes-tests: New file.
23355         * tests/test-inttypes.c: New file.
23356
23357         * modules/fcntl-tests: New file.
23358         * tests/test-fcntl.c: New file.
23359
23360         * modules/byteswap-tests: New file.
23361         * tests/test-byteswap.c: New file.
23362
23363         * modules/arpa_inet-tests: New file.
23364         * tests/test-arpa_inet.c: New file.
23365
23366 2007-02-17  Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23369         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23370         if the corresponding module is not enabled. Emit link warnings if
23371         the function is used nevertheless.
23372         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23373         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23374         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23375         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23376         * modules/inttypes (Depends-on): Add link-warning.
23377         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23378         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23379         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23380         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23381         * modules/imaxdiv (configure.ac): Likewise.
23382         * modules/strtoimax (configure.ac): Likewise.
23383         * modules/strtoumax (configure.ac): Likewise.
23384
23385 2007-02-17  Bruno Haible  <bruno@clisp.org>
23386
23387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23388         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23389         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23390         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23391
23392 2007-02-17  Bruno Haible  <bruno@clisp.org>
23393
23394         * modules/link-warning: New file.
23395         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23396         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23397         * modules/string (Depends-on): Add link-warning.
23398         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23399         string.h.
23400         * MODULES.html.sh (Support for building libraries and executables): Add
23401         link-warning.
23402
23403 2007-02-17  Bruno Haible  <bruno@clisp.org>
23404
23405         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23406         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23407         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23408         long lines.
23409
23410 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23411             Bruno Haible  <bruno@clisp.org>
23412
23413         * modules/tmpfile: New file.
23414         * lib/tmpfile.c: New file.
23415         * m4/tmpfile.m4: New file.
23416         * MODULES.html.sh (func_all_modules): New section "Input/output".
23417
23418 2007-02-15  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23421         (supports_delete_on_close): New function.
23422         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23423
23424 2007-02-14  Bruno Haible  <bruno@clisp.org>
23425
23426         * modules/mbspcasecmp-tests: New file.
23427         * tests/test-mbspcasecmp.sh: New file.
23428         * tests/test-mbspcasecmp.c: New file.
23429
23430         New module mbspcasecmp.
23431         * modules/mbspcasecmp: New file.
23432         * lib/mbspcasecmp.c: New file.
23433         * lib/string_.h (strncasecmp): Change warning message.
23434         (mbspcasecmp): New declaration.
23435         * m4/mbspcasecmp.m4: New file.
23436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23437         GNULIB_MBSPCASECMP.
23438         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23439         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23440
23441 2007-02-14  Bruno Haible  <bruno@clisp.org>
23442
23443         * modules/mbsncasecmp-tests: New file.
23444         * tests/test-mbsncasecmp.sh: New file.
23445         * tests/test-mbsncasecmp.c: New file.
23446
23447         New module mbsncasecmp.
23448         * modules/mbsncasecmp: New file.
23449         * lib/mbsncasecmp.c: New file.
23450         * lib/string_.h (mbsncasecmp): New declaration.
23451         * m4/mbsncasecmp.m4: New file.
23452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23453         GNULIB_MBSNCASECMP.
23454         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23455         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23456
23457 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23458
23459         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23460         Verify that it doesn't overlap with our flags.
23461         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23462         do not have the desired effect in multibyte locales; instead, use
23463         mbscasecmp.
23464         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23465         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23466         we don't require GNU fnmatch ourselves (if our users require it, they
23467         should do so explicitly).
23468
23469         Fix regex code so it doesn't rely on strcasecmp.
23470         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23471         Otherwise, include gnulib's langinfo.h.
23472         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23473         undesirable behavior in non-C locales.  Instead, rely on localecharset.
23474         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23475         * modules/regex (FILES): Remove m4/codeset.m4.
23476         (Depends-on): Add localcharset.  Remove strcase.
23477
23478 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23479
23480         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23481         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23482
23483 2007-02-13  Bruno Haible  <bruno@clisp.org>
23484
23485         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23487
23488 2007-02-12  Bruno Haible  <bruno@clisp.org>
23489
23490         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23491         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23492         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23493         time warning rather than a link error.
23494
23495 2007-02-12  Bruno Haible  <bruno@clisp.org>
23496
23497         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23500
23501 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23502
23503         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23504         args, not 2.
23505
23506 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23507
23508         New module 'time', so that apps can include <time.h> as per
23509         POSIX and GNU instead of separate include files like time_r.h
23510         and timegm.h.  This implementation tries out a simpler approach
23511         for replacing decls in standard include files (as compared to
23512         the string module), somewhat as an experiment.
23513
23514         * config/srclist.txt: Comment out mktime.c for now.
23515         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23516         since it doesn't apply any more.  Use generic wording instead.
23517         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23518         'time'.
23519         * lib/time_.h, m4/time_h.m4, modules/time: New files.
23520         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23521         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23522         Don't include <sys/types.h>; no longer needed since we assume C89.
23523         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23524         * lib/strftime.c: Likewise.
23525         * lib/time_r.c: Likewise.
23526         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23527         * lib/nanosleep.c: Include <time.h> first, to check interface.
23528         * lib/strptime.c: Likewise.
23529         * lib/time_r.c: Likewise.
23530         * lib/timegm.c: Likewise.
23531         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23532         needed.
23533         * lib/timegm.c: Don't include timegm.h; no longer needed.
23534         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23535         time.h now handles any problems in that area.
23536         (struct timespec, nanosleep): Remove; time.h now arranges for these.
23537         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23538         that time.h defines struct timespec.
23539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23540         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
23541         handles that.
23542         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23543         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23544         needed.  Set REPLACE_LOCALTIME.
23545         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23546         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23547         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23548         nanosleep; time_h.m4 now does that.  Don't require
23549         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23550         module handles this now.
23551         * modules/getdate (Depends-on): Remove timespec.  Add time.
23552         * modules/nanosleep (Depends-on): Likewise.
23553         * modules/stat-time (Depends-on): Likewise.
23554         * modules/nanosleep (Include): Include time.h, not timespec.h.
23555         * modules/strptime (Files): Remove lib/strptime.h.
23556         (Depends-on): Add extensions, time.
23557         (Include): Include time.h, not strptime.h.
23558         * modules/time_r (Files): Remove lib/time_r.h.
23559         (Depends-on): Add time.
23560         (Include): Include time.h, not time_r.h.
23561         * modules/timegm: Likewise.
23562         * modules/timespec (Description): Now does timespec-related decls
23563         of our own, instead of struct timespec itself.
23564         (Depends-on): Add time; remove extensions.
23565         (Maintainer): Add self.
23566         * modules/utimecmp (Depends-on): Add time; remove timespec.
23567         * modules/utimens (Depends-on): Likewise.
23568         * modules/xnanosleep (Depends-on): Likewise.
23569
23570 2007-02-11  Bruno Haible  <bruno@clisp.org>
23571
23572         * lib/c-strstr.c: Include allocsa.h.
23573         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23574         * lib/c-strcasestr.c: Include allocsa.h.
23575         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23576         * lib/strcasestr.c: Include allocsa.h.
23577         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23578         * lib/mbsstr.c: Include allocsa.h.
23579         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23580         allocsa/freesa instead of malloc/free.
23581         * lib/mbscasestr.c: Include allocsa.h.
23582         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23583         allocsa/freesa instead of malloc/free.
23584         * modules/c-strstr (Depends-on): Add allocsa.
23585         * modules/c-strcasestr (Depends-on): Likewise.
23586         * modules/strcasestr (Depends-on): Likewise.
23587         * modules/mbsstr (Depends-on): Likewise.
23588         * modules/mbscasestr (Depends-on): Likewise.
23589
23590 2007-02-11  Bruno Haible  <bruno@clisp.org>
23591
23592         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23593
23594         * modules/mbsspn-tests: New file.
23595         * tests/test-mbsspn.sh: New file.
23596         * tests/test-mbsspn.c: New file.
23597
23598 2007-02-11  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23601
23602         * modules/mbspbrk-tests: New file.
23603         * tests/test-mbspbrk.sh: New file.
23604         * tests/test-mbspbrk.c: New file.
23605
23606 2007-02-11  Bruno Haible  <bruno@clisp.org>
23607
23608         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
23609         unneeded cast.
23610
23611         * modules/mbscspn-tests: New file.
23612         * tests/test-mbscspn.sh: New file.
23613         * tests/test-mbscspn.c: New file.
23614
23615 2007-02-11  Bruno Haible  <bruno@clisp.org>
23616
23617         * modules/mbscasecmp-tests: New file.
23618         * tests/test-mbscasecmp.sh: New file.
23619         * tests/test-mbscasecmp.c: New file.
23620
23621 2007-02-11  Bruno Haible  <bruno@clisp.org>
23622
23623         Ensure O(n) worst-case complexity of mbscasestr.
23624         * lib/mbscasestr.c: Include stdbool.h.
23625         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23626         functions.
23627         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
23628         the bookkeeping indicates that it's worth it.
23629         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
23630
23631         * modules/mbscasestr-tests: New file.
23632         * tests/test-mbscasestr1.c: New file.
23633         * tests/test-mbscasestr2.sh: New file.
23634         * tests/test-mbscasestr2.c: New file.
23635         * tests/test-mbscasestr3.sh: New file.
23636         * tests/test-mbscasestr3.c: New file.
23637         * tests/test-mbscasestr4.sh: New file.
23638         * tests/test-mbscasestr4.c: New file.
23639         * m4/locale-tr.m4: New file.
23640
23641 2007-02-11  Bruno Haible  <bruno@clisp.org>
23642
23643         Ensure O(n) worst-case complexity of mbsstr.
23644         * lib/mbsstr.c: Include stdbool.h.
23645         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23646         functions.
23647         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
23648         bookkeeping indicates that it's worth it.
23649         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
23650
23651         * modules/mbsstr-tests: New file.
23652         * tests/test-mbsstr1.c: New file.
23653         * tests/test-mbsstr2.sh: New file.
23654         * tests/test-mbsstr2.c: New file.
23655         * tests/test-mbsstr3.sh: New file.
23656         * tests/test-mbsstr3.c: New file.
23657         * m4/locale-fr.m4: New file.
23658
23659 2007-02-11  Bruno Haible  <bruno@clisp.org>
23660
23661         * lib/mbsrchr.c (mbsrchr): Fix bug.
23662
23663         * modules/mbsrchr-tests: New file.
23664         * tests/test-mbsrchr.sh: New file.
23665         * tests/test-mbsrchr.c: New file.
23666
23667 2007-02-11  Bruno Haible  <bruno@clisp.org>
23668
23669         * lib/mbschr.c (mbschr): Fix bug.
23670
23671         * modules/mbschr-tests: New file.
23672         * tests/test-mbschr.sh: New file.
23673         * tests/test-mbschr.c: New file.
23674         * m4/locale-zh.m4: New file.
23675
23676 2007-02-11  Bruno Haible  <bruno@clisp.org>
23677
23678         Support for copying multibyte string iterators.
23679         * lib/mbiter.h: Include <string.h>.
23680         (mbiter_multi_copy): New function.
23681         (mbi_copy): New macro.
23682         * lib/mbuiter.h: Include <string.h>.
23683         (mbuiter_multi_copy): New function.
23684         (mbui_copy): New macro.
23685
23686 2007-02-11  Bruno Haible  <bruno@clisp.org>
23687
23688         New module mbslen.
23689         * modules/mbslen: New file.
23690         * lib/mbslen.c: New file.
23691         * lib/string_.h (mbslen): New declaration.
23692         * m4/mbslen.m4: New file.
23693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23694         GNULIB_MBSLEN.
23695         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
23696         * MODULES.html.sh (Internationalization functions): Add mbslen.
23697
23698 2007-02-11  Bruno Haible  <bruno@clisp.org>
23699
23700         Ensure O(n) worst-case complexity of strcasestr substitute.
23701         * lib/strcasestr.c: Include stdbool.h.
23702         (knuth_morris_pratt): New function.
23703         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23704         bookkeeping indicates that it's worth it.
23705         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
23706
23707         * modules/strcasestr-tests: New file.
23708         * tests/test-strcasestr.c: New file.
23709
23710 2007-02-11  Bruno Haible  <bruno@clisp.org>
23711
23712         Ensure O(n) worst-case complexity of c_strcasestr.
23713         * lib/c-strcasestr.c: Include stdbool.h, string.h.
23714         (knuth_morris_pratt): New function.
23715         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
23716         the bookkeeping indicates that it's worth it.
23717         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
23718
23719         * modules/c-strcasestr-tests: New file.
23720         * tests/test-c-strcasestr.c: New file.
23721
23722 2007-02-11  Bruno Haible  <bruno@clisp.org>
23723
23724         Ensure O(n) worst-case complexity of c_strstr.
23725         * lib/c-strstr.c: Include stdbool.h, string.h.
23726         (knuth_morris_pratt): New function.
23727         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23728         bookkeeping indicates that it's worth it.
23729         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
23730
23731         * lib/c-strstr.c: Complete rewrite for maintainability.
23732
23733         * modules/c-strstr-tests: New file.
23734         * tests/test-c-strstr.c: New file.
23735
23736 2007-02-11  Bruno Haible  <bruno@clisp.org>
23737
23738         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
23739         5.2.1 and earlier, whereby \055 was treated just like the range
23740         delimiter '-'.
23741         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23742
23743 2007-02-08  Bruno Haible  <bruno@clisp.org>
23744
23745         * modules/regex (Depends-on): Add stdbool.
23746         Reported by Dalibor Topic <robilad@kaffe.org>.
23747
23748 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23749
23750         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
23751         Prefer returning from main to exiting from it.
23752         Remove unnecessary parens after sizeof.
23753
23754 2007-02-05  Bruno Haible  <bruno@clisp.org>
23755
23756         New module mbssep.
23757         * modules/mbssep: New file.
23758         * lib/mbssep.c: New file.
23759         * lib/string_.h (strsep): Add a conditional link warning.
23760         (mbssep): New declaration.
23761         * m4/mbssep.m4: New file.
23762         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23763         GNULIB_MBSSEP.
23764         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
23765         * MODULES.html.sh (Internationalization functions): Add mbssep.
23766
23767 2007-02-05  Bruno Haible  <bruno@clisp.org>
23768
23769         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
23770         Optimize search in case of 1 delimiter.
23771
23772 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23773
23774         * lib/acl.h: Include sys/types.h before sys/acl.h.
23775
23776 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23777
23778         Merge upstream fix for glibc bugzilla #3957:
23779
23780         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
23781
23782         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
23783         bit for RE_HAT_LISTS_NOT_NEWLINE.
23784         (build_charclass_op): Remove bogus comment.
23785
23786 2007-02-05  Simon Josefsson  <simon@josefsson.org>
23787
23788         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
23789
23790 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
23793         * lib/memmem.c [!defined _LIBC]: Include config.h.
23794
23795 2007-02-04  Bruno Haible  <bruno@clisp.org>
23796
23797         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
23798         warning message.
23799
23800 2007-02-04  Bruno Haible  <bruno@clisp.org>
23801
23802         New module mbstok_r.
23803         * modules/mbstok_r: New file.
23804         * lib/mbstok_r.c: New file.
23805         * lib/string_.h (strtok_r): Change argument names to match the
23806         comments. Add a conditional link warning.
23807         (mbstok_r): New declaration.
23808         * m4/mbstok_r.m4: New file.
23809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23810         GNULIB_MBSTOK_R.
23811         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
23812         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
23813
23814 2007-02-04  Bruno Haible  <bruno@clisp.org>
23815
23816         New module mbsspn.
23817         * modules/mbsspn: New file.
23818         * lib/mbsspn.c: New file.
23819         * lib/string_.h (strspn): Add a conditional link warning.
23820         (mbsspn): New declaration.
23821         * m4/mbsspn.m4: New file.
23822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23823         GNULIB_MBSSPN.
23824         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
23825         * MODULES.html.sh (Internationalization functions): Add mbsspn.
23826
23827 2007-02-04  Bruno Haible  <bruno@clisp.org>
23828
23829         New module mbspbrk.
23830         * modules/mbspbrk: New file.
23831         * lib/mbspbrk.c: New file.
23832         * lib/string_.h (strpbrk): Add a conditional link warning.
23833         (mbspbrk): New declaration.
23834         * m4/mbspbrk.m4: New file.
23835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23836         GNULIB_MBSPBRK.
23837         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
23838         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
23839
23840 2007-02-04  Bruno Haible  <bruno@clisp.org>
23841
23842         New module mbscspn.
23843         * modules/mbscspn: New file.
23844         * lib/mbscspn.c: New file.
23845         * lib/string_.h (strcspn): Add a conditional link warning.
23846         (mbscspn): New declaration.
23847         * m4/mbscspn.m4: New file.
23848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23849         GNULIB_MBSCSPN.
23850         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
23851         * MODULES.html.sh (Internationalization functions): Add mbscspn.
23852
23853 2007-02-04  Bruno Haible  <bruno@clisp.org>
23854
23855         New module mbscasestr, reduced goal of strcasestr.
23856         * modules/mbscasestr: New file.
23857         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
23858         (mbscasestr): Renamed from strcasestr.
23859         * lib/strcasestr.c: Don't include mbuiter.h.
23860         (strcasestr): Remove support for multibyte locales.
23861         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
23862         Change the conditional link warning.
23863         (mbscasestr): New declaration.
23864         * m4/mbscasestr.m4: New file.
23865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
23866         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
23867         REPLACE_STRCASESTR.
23868         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
23869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23870         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
23871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
23872         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
23873         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
23874         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
23875         (Depends-on): Remove mbuiter.
23876         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
23877
23878 2007-02-04  Bruno Haible  <bruno@clisp.org>
23879
23880         Simplify handling of strncasecmp.
23881         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
23882         the conditional link warning.
23883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23884         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
23885         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
23886         * modules/strcase (configure.ac): Don't invoke
23887         gl_STRING_MODULE_INDICATOR.
23888         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
23889
23890 2007-02-04  Bruno Haible  <bruno@clisp.org>
23891
23892         New module mbscasecmp, reduced goal of strcasecmp.
23893         * modules/mbscasecmp: New file.
23894         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
23895         (mbscasecmp): Renamed from strcasecmp.
23896         * lib/strcasecmp.c: Don't include mbuiter.h.
23897         (strcasecmp): Remove support for multibyte locales.
23898         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
23899         Change the conditional link warning.
23900         (mbscasecmp): New declaration.
23901         * m4/mbscasecmp.m4: New file.
23902         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
23903         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
23904         REPLACE_STRCASECMP.
23905         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
23906         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23907         GNULIB_MBSCASECMP.
23908         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
23909         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
23910         * modules/strcase (Files): Remove m4/mbrtowc.m4.
23911         (Depends-on): Remove mbuiter.
23912         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
23913
23914 2007-02-04  Bruno Haible  <bruno@clisp.org>
23915
23916         New module mbsstr. Remove module strstr.
23917         * modules/mbsstr: New file.
23918         * modules/strstr: Remove file.
23919         * lib/mbsstr.c: Renamed from lib/strstr.c.
23920         (mbsstr): Renamed from strstr.
23921         * lib/string_.h (strstr): Remove declaration. Change the conditional
23922         link warning.
23923         (mbsstr): New declaration.
23924         * m4/mbsstr.m4: New file.
23925         * m4/strstr.m4: Remove file.
23926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23927         REPLACE_STRSTR.
23928         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
23929         Don't initialize GNULIB_STRSTR.
23930         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
23931         substitute GNULIB_STRSTR and REPLACE_STRSTR.
23932         * MODULES.html.sh (Internationalization functions): Add mbsstr.
23933         (Support for systems lacking ANSI C 89): Remove strstr.
23934
23935 2007-02-04  Bruno Haible  <bruno@clisp.org>
23936
23937         New module mbsrchr.
23938         * modules/mbsrchr: New file.
23939         * lib/mbsrchr.c: New file.
23940         * lib/string_.h (strrchr): Add a conditional link warning.
23941         (mbsrchr): New declaration.
23942         * m4/mbsrchr.m4: New file.
23943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23944         GNULIB_MBSRCHR.
23945         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
23946         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
23947
23948 2007-02-04  Bruno Haible  <bruno@clisp.org>
23949
23950         New module mbschr.
23951         * modules/mbschr: New file.
23952         * lib/mbschr.c: New file.
23953         * lib/string_.h (strchr): Add a conditional link warning.
23954         (mbschr): New declaration.
23955         * m4/mbschr.m4: New file.
23956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23957         GNULIB_MBSCHR.
23958         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
23959         * MODULES.html.sh (Internationalization functions): Add mbschr.
23960
23961 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
23964
23965         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
23966
23967 2007-02-04  Bruno Haible  <bruno@clisp.org>
23968
23969         New module description section 'configure.ac-early'.
23970         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
23971         (func_get_autoconf_early_snippet): New function.
23972         (func_import, func_create_testdir): Use it. Remove special cases for
23973         modules 'extensions' and 'lock'.
23974         * modules/extensions (configure.ac-early): Require
23975         gl_USE_SYSTEM_EXTENSIONS.
23976         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
23977
23978 2007-02-04  Bruno Haible  <bruno@clisp.org>
23979
23980         Make use of gcj-4.3's -fsource and -ftarget option.
23981         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
23982         and if so try the options -fsource and -ftarget.
23983         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
23984         source_version, ftarget_option, target_version arguments.
23985         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
23986         (is_envjavac_oldgcj_14_14_usable): Renamed from
23987         is_envjavac_gcj_14_14_usable.
23988         (is_envjavac_oldgcj_14_13_usable): Renamed from
23989         is_envjavac_gcj_14_13_usable.
23990         (is_gcj_present): Update.
23991         (is_gcj_43, is_gcj43_usable): New functions.
23992         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
23993         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
23994         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
23995         try the options -fsource and -ftarget.
23996
23997 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
23998
23999         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24000         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24001         larger value.
24002
24003 2007-02-03  Jim Meyering  <jim@meyering.net>
24004
24005         Give tools a better chance to allocate space for very large buffers.
24006         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24007
24008         Make pwd and readlink work also when run with an unreadable parent dir
24009         on systems with openat support.
24010         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24011         provided getcwd function, even when we have openat support.
24012         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24013
24014 2007-02-02  Bruno Haible  <bruno@clisp.org>
24015
24016         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24017         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24018         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24019         portability problems if one of these functions is only used on specific
24020         platforms.
24021         Reported by Paul Eggert.
24022
24023 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24024
24025         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24026         is causing more trouble than it's curing.
24027         * lib/regex_internal.h (__mempcpy): Remove.
24028         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24029         (and make the code a tad smaller to boot).
24030         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24031
24032 2007-02-02  Jim Meyering  <jim@meyering.net>
24033
24034         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24035         section, not in the Makefile.am: one.
24036
24037 2007-02-02  Eric Blake  <ebb9@byu.net>
24038
24039         * lib/strchrnul.c: Always include config.h first.
24040
24041         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24042         gnulib strstr is not necessary here.
24043
24044 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24045
24046         * m4/socklen.m4: Fix typo.
24047
24048 2007-02-02  Eric Blake  <ebb9@byu.net>
24049
24050         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24051         * modules/netinet_in (Makefile.am): Likewise.
24052
24053 2007-02-01  Bruno Haible  <bruno@clisp.org>
24054
24055         * lib/string_.h (GL_LINK_WARNING): New macro.
24056         (strcasecmp, strstr, strcasestr): If provided by the system,
24057         conditionally define as a macro that leads to a warning instead of to
24058         an error.
24059         (strncasecmp): Conditionally define as a macro that leads to a warning.
24060
24061 2007-02-01  Karl Berry  <karl@gnu.org>
24062
24063         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24064
24065 2007-02-01  Bruno Haible  <bruno@clisp.org>
24066
24067         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24068         renamings.
24069
24070 2007-02-01  Eric Blake  <ebb9@byu.net>
24071
24072         * modules/regex (Depends-on): Revert dependence on mempcpy.
24073         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24074         module's definition of mempcpy.
24075         Reported by Paul Eggert.
24076
24077 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24078
24079         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24080         the symbol XYZ before redefining it.  This fixes a problem with
24081         programs that don't use XYZ, when compiled on systems that define
24082         XYZ to something else.
24083
24084 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24085
24086         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24087         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24088         writeable to group or other and (2) is intended to have a special
24089         mode bit that is set or cleared.  In such a case, the directory
24090         should be neither group- nor other-writeable until the special
24091         mode bits are right.
24092
24093 2007-01-31  Eric Blake  <ebb9@byu.net>
24094
24095         * modules/mountlist (Depends-on): Add strstr.
24096
24097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24098         bug.
24099         * modules/string (Makefile.am): Remove redundant replacement.
24100         * modules/regex (Depends-on): Add mempcpy.
24101
24102 2007-01-31  Bruno Haible  <bruno@clisp.org>
24103
24104         New module description field 'Link'.
24105         * gnulib-tool (func_usage): Document --extract-link-directive.
24106         (sed_extract_prog): Recognize 'Link' directive.
24107         (func_get_link_directive): New function.
24108         (func_import): Show summary of link directives.
24109         Handle --extract-link-directive option.
24110         * modules/acl (Link): New section.
24111         * modules/clock-time (Link): New section.
24112         * modules/euidaccess (Link): New section.
24113         * modules/gettext (Link): New section.
24114         * modules/iconv (Link): New section.
24115         * modules/lock (Link): New section.
24116         * modules/nanosleep (Link): New section.
24117         * modules/readline (Link): New section.
24118
24119 2007-01-27  Bruno Haible  <bruno@clisp.org>
24120
24121         Enforce the use of gnulib modules for unportable <string.h> functions.
24122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24123         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24124         (gl_HEADER_STRING_H_BODY): Require it.
24125         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24126         the symbol XYZ to one that gives a link error.
24127         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24128         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24129         * modules/mempcpy (configure.ac): Likewise.
24130         * modules/memrchr (configure.ac): Likewise.
24131         * modules/stpcpy (configure.ac): Likewise.
24132         * modules/stpncpy (configure.ac): Likewise.
24133         * modules/strcase (configure.ac): Likewise.
24134         * modules/strcasestr (configure.ac): Likewise.
24135         * modules/strchrnul (configure.ac): Likewise.
24136         * modules/strdup (configure.ac): Likewise.
24137         * modules/strndup (configure.ac): Likewise.
24138         * modules/strnlen (configure.ac): Likewise.
24139         * modules/strpbrk (configure.ac): Likewise.
24140         * modules/strsep (configure.ac): Likewise.
24141         * modules/strstr (configure.ac): Likewise.
24142         * modules/strtok_r (configure.ac): Likewise.
24143
24144 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24145
24146         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24147
24148 2007-01-30  Jim Meyering  <jim@meyering.net>
24149
24150         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24151
24152 2007-01-29  Bruno Haible  <bruno@clisp.org>
24153
24154         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24155         * lib/execute.c: Likewise.
24156         * lib/pipe.c: Likewise.
24157         * lib/printf-args.h: Likewise.
24158         * lib/printf-args.c: Likewise.
24159         * lib/printf-parse.c: Likewise.
24160         * lib/vasnprintf.c: Likewise.
24161
24162 2007-01-29  Eric Blake  <ebb9@byu.net>
24163
24164         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24165         declaration.
24166
24167 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         * lib/strptime.h (strptime): Use 'restrict' for args where
24170         POSIX requires this.
24171         * lib/strptime.c (strptime): Likewise.
24172         Change license notice from LGPL to GPL, since gnulib-tool will
24173         change this as needed.
24174         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24175         defined.
24176         Include "strptime.h" first, to check interface.
24177         Do not #undef _LIBC and _NL_CURRENT.
24178         Do not include <stdlib.h>; no longer needed.
24179         Include "time_r.h" and declare ptime_locale_status
24180         only if _LIBC is not defined.
24181         (__P): Remove unused macro.
24182         (match_string): Bring back glibc version, but use it only if _LIBC
24183         is defined.
24184         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24185         Remove unnecessary assertion and abort() call.
24186         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24187         * m4/strptime.m4: Fix serial number comment.
24188         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24189         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24190         (Depends-on): Add time_r.
24191
24192 2007-01-29  Bruno Haible  <bruno@clisp.org>
24193
24194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24195         strptime.
24196         * modules/strptime (Depends-on): Add stdbool.
24197         * lib/strptime.h: Include <time.h> always. Add comments.
24198
24199 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24200
24201         * modules/strptime: New file.
24202         * lib/strptime.h: New file.
24203         * lib/strptime.c: New file.
24204         * m4/strptime.m4: New file.
24205
24206 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         * MODULES.html.sh: New module mpsort.
24209         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24210
24211         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24212         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24214         All uses changed.
24215         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24216         All uses changed.
24217         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24218         to _Restrict_.
24219         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24220         the parameter matches the prototype.
24221
24222 2007-01-28  Jim Meyering  <jim@meyering.net>
24223
24224         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24225         sys/time.h here, reverting that part of the previous patch:
24226         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24227
24228 2007-01-28  Bruno Haible  <bruno@clisp.org>
24229
24230         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24231         value of $(SYS_TIME_H).
24232         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24233         remove it conditionally, too. [added by Jim Meyering]
24234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24236         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24237         GETTIMEOFDAY_REPLACEMENT to 1.
24238
24239 2007-01-28  Bruno Haible  <bruno@clisp.org>
24240
24241         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24242         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24244         Set UNISTD_H instead of UNISTD_H2.
24245         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24246
24247 2007-01-28  Bruno Haible  <bruno@clisp.org>
24248
24249         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24250         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24251
24252 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24253
24254         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24255         (func_create_testdir): Ensure C locale for `grep' and `tr'
24256         character ranges.
24257         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24258         ACLOCAL_AMFLAGS parsing state machine.
24259
24260 2007-01-27  Bruno Haible  <bruno@clisp.org>
24261
24262         * modules/unistr/base: Update.
24263
24264 2007-01-27  Bruno Haible  <bruno@clisp.org>
24265
24266         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24267         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24268         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24269         modules/unistr/u32-mbtouc.
24270         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24271         * lib/unistr.h: Update.
24272         * lib/linebreak.c: Update.
24273         * modules/unistr/u32-mbtouc: Renamed from
24274         modules/unistr/u32-mbtouc-safe.
24275         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24276         * lib/unistr.h: Update.
24277         * lib/unistr/u32-to-u8.c: Update.
24278         * lib/unistr/u32-to-u16.c: Update.
24279
24280 2007-01-27  Bruno Haible  <bruno@clisp.org>
24281
24282         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24283         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24284         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24285         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24286         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24287         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24288         modules/unistr/u16-mbtouc.
24289         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24290         * lib/unistr.h: Update.
24291         * lib/linebreak.c: Update.
24292         * modules/linebreak: Update.
24293         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24294         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24295         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24296         * modules/unistr/u16-mbtouc: Renamed from
24297         modules/unistr/u16-mbtouc-safe.
24298         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24299         * lib/unistr.h: Update.
24300         * lib/unistr/u16-to-u8.c: Update.
24301         * modules/unistr/u16-to-u8: Update.
24302         * lib/unistr/u16-to-u32.c: Update.
24303         * modules/unistr/u16-to-u32: Update.
24304
24305 2007-01-27  Bruno Haible  <bruno@clisp.org>
24306
24307         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24308         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24309         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24310         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24311         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24312         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24313         modules/unistr/u8-mbtouc.
24314         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24315         * lib/unistr.h: Update.
24316         * lib/striconveh.c: Update.
24317         * modules/striconveh: Update.
24318         * lib/linebreak.c: Update.
24319         * modules/linebreak: Update.
24320         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24321         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24322         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24323         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24324         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24325         * lib/unistr.h: Update.
24326         * lib/striconveh.c: Update.
24327         * modules/striconveh: Update.
24328         * lib/unistr/u8-to-u16.c: Update.
24329         * modules/unistr/u8-to-u16: Update.
24330         * lib/unistr/u8-to-u32.c: Update.
24331         * modules/unistr/u8-to-u32: Update.
24332
24333 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24334
24335         Sync from Libtool.
24336         * lib/argz.c: Do not include strings.h nor memory.h, include
24337         string.h unconditionally.  Patch by Simon Josefsson.
24338
24339 2007-01-27  Bruno Haible  <bruno@clisp.org>
24340
24341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24342         from gl_HEADER_STRING_H_BODY.
24343         (gl_HEADER_STRING_H_BODY): Require it.
24344         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24345         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24346         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24347         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24348         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24349         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24352         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24353         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24354         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24355         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24356         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24359
24360 2007-01-27  Bruno Haible  <bruno@clisp.org>
24361
24362         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24363         check_PROGRAMS into noinst_PROGRAMS.
24364         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24365         check_PROGRAMS in this case.
24366         (func_import): Set for_test to false.
24367         (func_create_testdir): Set for_test to true.
24368
24369 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24370             Bruno Haible  <bruno@clisp.org>
24371
24372         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24373         (Depends-on): Add string.
24374         (Includes): Use <string.h> instead of strcasestr.h.
24375         * modules/string (Makefile.am): Also substitute the value of
24376         REPLACE_STRCASESTR.
24377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24378         assume strcasestr is declared in <string.h> not <strings.h>. Also
24379         set REPLACE_STRCASESTR.
24380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24381         REPLACE_STRCASESTR.
24382         * lib/strcasestr.h: Remove file.
24383         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24384         * lib/string_.h (strcasestr): New declaration.
24385
24386 2007-01-27  Bruno Haible  <bruno@clisp.org>
24387
24388         * lib/string_.h: Use 'extern'.
24389
24390 2007-01-27  Jim Meyering  <jim@meyering.net>
24391
24392         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24393         of set-but-not-used local, "q".
24394
24395         * lib/mempcpy.c: Include <config.h> before <string.h>.
24396         This fixes a compilation error on HP-UX, due to the system's
24397         "restrict"-using mempcpy prototype.
24398
24399 2007-01-26  Bruno Haible  <bruno@clisp.org>
24400
24401         Small optimization.
24402         * lib/javacomp.c: Include c-strstr.h.
24403          (is_envjavac_gcj): Use c_strstr instead of strstr.
24404         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24405
24406 2007-01-26  Bruno Haible  <bruno@clisp.org>
24407
24408         * MODULES.html.sh (Unicode string functions): Add the new modules.
24409
24410         * modules/uniconv/u32-strconv-to-locale: New file.
24411         * lib/uniconv/u32-strconv-to-locale.c: New file.
24412
24413         * modules/uniconv/u16-strconv-to-locale: New file.
24414         * lib/uniconv/u16-strconv-to-locale.c: New file.
24415
24416         * modules/uniconv/u8-strconv-to-locale: New file.
24417         * lib/uniconv/u8-strconv-to-locale.c: New file.
24418
24419         * modules/uniconv/u32-strconv-from-locale: New file.
24420         * lib/uniconv/u32-strconv-from-locale.c: New file.
24421
24422         * modules/uniconv/u16-strconv-from-locale: New file.
24423         * lib/uniconv/u16-strconv-from-locale.c: New file.
24424
24425         * modules/uniconv/u8-strconv-from-locale: New file.
24426         * lib/uniconv/u8-strconv-from-locale.c: New file.
24427
24428         * modules/uniconv/u32-strconv-to-enc: New file.
24429         * lib/uniconv/u32-strconv-to-enc.c: New file.
24430         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24431         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24432
24433         * modules/uniconv/u16-strconv-to-enc: New file.
24434         * lib/uniconv/u16-strconv-to-enc.c: New file.
24435         * lib/uniconv/u-strconv-to-enc.h: New file.
24436         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24437         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24438
24439         * modules/uniconv/u8-strconv-to-enc: New file.
24440         * lib/uniconv/u8-strconv-to-enc.c: New file.
24441         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24442         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24443
24444         * modules/uniconv/u32-strconv-from-enc: New file.
24445         * lib/uniconv/u32-strconv-from-enc.c: New file.
24446         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24447         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24448
24449         * modules/uniconv/u16-strconv-from-enc: New file.
24450         * lib/uniconv/u16-strconv-from-enc.c: New file.
24451         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24452         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24453
24454         * modules/uniconv/u8-strconv-from-enc: New file.
24455         * lib/uniconv/u8-strconv-from-enc.c: New file.
24456         * lib/uniconv/u-strconv-from-enc.h: New file.
24457         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24458         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24459
24460         * modules/uniconv/u32-conv-from-enc: New file.
24461         * lib/uniconv/u32-conv-from-enc.c: New file.
24462         * modules/uniconv/u32-conv-from-enc-tests: New file.
24463         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24464
24465         * modules/uniconv/u16-conv-from-enc: New file.
24466         * lib/uniconv/u16-conv-from-enc.c: New file.
24467         * lib/uniconv/u-conv-from-enc.h: New file.
24468         * modules/uniconv/u16-conv-from-enc-tests: New file.
24469         * tests/uniconv/test-u16-conv-from-enc.c: New file.
24470
24471         * modules/uniconv/u8-conv-from-enc: New file.
24472         * lib/uniconv/u8-conv-from-enc.c: New file.
24473         * modules/uniconv/u8-conv-from-enc-tests: New file.
24474         * tests/uniconv/test-u8-conv-from-enc.c: New file.
24475
24476         * modules/uniconv/base: New file.
24477         * lib/uniconv.h: New file.
24478
24479 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24480
24481         * doc/gnulib-tool.texi (Initial import): Update to match current
24482         behavior with strdup module.
24483         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24484         * lib/memmem.h: Remove; all uses removed.  This is now done
24485         by <string.h>.
24486         * lib/mempcpy.h: Likewise.
24487         * lib/memrchr.h: Likewise.
24488         * lib/stpcpy.h: Likewise.
24489         * lib/stpncpy.h: Likewise.
24490         * lib/strcase.h: Likewise.
24491         * lib/strchrnul.h: Likewise.
24492         * lib/strdup.h: Likewise.
24493         * lib/strndup.h: Likewise.
24494         * lib/strnlen.h: Likewise.
24495         * lib/strpbrk.h: Likewise.
24496         * lib/strsep.h: Likewise.
24497         * lib/strstr.h: Likewise.
24498         * lib/strtok_r.h: Likewise.
24499         * lib/string_.h: New file.
24500         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24501         Rely on <string.h> instead.
24502         * lib/canon-host.c: Likewise.
24503         * lib/chdir-long.c: Likewise.
24504         * lib/concatpath.c: Likewise.
24505         * lib/exclude.c: Likewise.
24506         * lib/fchdir.c: Likewise.
24507         * lib/getaddrinfo.c: Likewise.
24508         * lib/getcwd.c: Likewise.
24509         * lib/getsubopt.c: Likewise.
24510         * lib/glob.c: Likewise.
24511         * lib/hard-locale.c: Likewise.
24512         * lib/iconvme.c: Likewise.
24513         * lib/javacomp.c: Likewise.
24514         * lib/mempcpy.c: Likewise.
24515         * lib/memrchr.c: Likewise.
24516         * lib/regex_internal.h: Likewise.
24517         * lib/stpncpy.c: Likewise.
24518         * lib/strcasecmp.c: Likewise.
24519         * lib/strchrnul.c: Likewise.
24520         * lib/strdup.c: Likewise.
24521         * lib/striconv.c: Likewise.
24522         * lib/striconveh.c: Likewise.
24523         * lib/striconveha.c: Likewise.
24524         * lib/strncasecmp.c: Likewise.
24525         * lib/strndup.c: Likewise.
24526         * lib/strnlen.c: Likewise.
24527         * lib/strsep.c: Likewise.
24528         * lib/strstr.c: Likewise.
24529         * lib/strtok_r.c: Likewise.
24530         * lib/userspec.c: Likewise.
24531         * lib/w32spawn.h: Likewise.
24532         * lib/xstrndup.c: Likewise.
24533         * lib/mountlist.c (strstr): Remove decl.
24534         * m4/string_h.m4: New file.
24535         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24536         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24537         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24538         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24539         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24540         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24541         Set REPLACE_STRCASECMP if necessary.
24542         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24543         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24544         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24546         HAVE_DECL_STRDUP if necessary.
24547         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24548         since gl_FUNC_STRNDUP does that now.
24549         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24550         Check for decl here...
24551         (gl_PREREQ_STRNLEN): ... not here.
24552         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24553         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24554         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24555         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24556         necessary.
24557         * modules/string: New file.
24558         * modules/memmem (Files): Remove special-purpose include file.
24559         (Depends-on): Add string.
24560         (Include): Include <string.h>, not the removed file.
24561         * modules/mempcpy: Likewise.
24562         * modules/memrchr: Likewise.
24563         * modules/stpcpy: Likewise.
24564         * modules/stpncpy: Likewise.
24565         * modules/strcase: Likewise.
24566         * modules/strchrnul: Likewise.
24567         * modules/strdup: Likewise.
24568         * modules/strndup: Likewise.
24569         * modules/strnlen: Likewise.
24570         * modules/strpbrk: Likewise.
24571         * modules/strsep: Likewise.
24572         * modules/strstr: Likewise.
24573         * modules/strtok_r: Likewise.
24574         * tests/test-dirname.c: Don't include "strdup.h", since
24575         <string.h> now suffices.
24576         * tests/test-memmem.c: Don't include "memmem.h", since
24577         <string.h> now suffices.
24578
24579 2007-01-25  Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24582         *resultp is 0.
24583
24584         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24585         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24586         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24587         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24588
24589         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24590         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24591         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24592         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24593         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24594         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24595
24596 2007-01-24  Bruno Haible  <bruno@clisp.org>
24597
24598         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24600         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24601         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24602         gl_FUNC_FTS_CORE.
24603         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24604         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24606         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24607         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24608         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
24609         gl_FUNC_FCHOWNAT.
24610         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
24611         gl_FUNC_STRFTIME.
24612         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
24613         Reported by Ralf Wildenhues.
24614
24615 2007-01-24  Bruno Haible  <bruno@clisp.org>
24616
24617         Drop AC_REQUIRE calls that are redundant with the module dependencies.
24618         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
24619         gl_GETADDRINFO.
24620         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
24621         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
24622         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
24623
24624 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
24627         Don't use 'exit'; just return from 'main'.
24628         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
24629
24630         * lib/fnmatch_.h: Readjust white space and comments to match
24631         glibc, to avoid spurious diffs.
24632
24633 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24634
24635         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
24636         2004-12-01 change by Jakub Jelinek, since this code won't compile
24637         if !LIBC.  Problem reported by Bob Proulx.
24638
24639 2007-01-23  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/striconveh.c: Include c-strcaseeq.h.
24642         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
24643         * modules/striconveh (Depends-on): Add c-strcaseeq.
24644
24645 2007-01-23  Bruno Haible  <bruno@clisp.org>
24646
24647         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
24648
24649         * modules/c-strcaseeq: New file.
24650         * lib/c-strcaseeq.h: New file.
24651
24652         * modules/streq: New file.
24653         * lib/streq.h: New file.
24654
24655 2007-01-23  Bruno Haible  <bruno@clisp.org>
24656
24657         * modules/striconveha-tests: New file.
24658         * tests/test-striconveha.c: New file.
24659
24660         * lib/striconveha.h: Include <stdbool.h>.
24661         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
24662         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
24663         (mem_iconveha_notranslit): Renamed from mem_iconveha.
24664         (mem_iconveha): New function.
24665         (str_iconveha_notranslit): Renamed from str_iconveha.
24666         (str_iconveha): New function.
24667         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
24668         c-strcase.
24669
24670 2007-01-23  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
24673         encodings without forgiving before trying any encoding with handler.
24674         (str_iconveha): Try all encodings without forgiving before trying any
24675         encoding with handler.
24676
24677 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24678
24679         Import the following changes from libc.
24680
24681         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24682
24683         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
24684
24685         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
24686
24687         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
24688         normal_bracket label.
24689
24690         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
24691
24692         [BZ #361]
24693         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
24694         to normal_bracket after fetching the next character.
24695
24696 2007-01-22  Bruno Haible  <bruno@clisp.org>
24697
24698         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
24699         argument.
24700         * lib/striconveh.c (iconv_carefully_1): New function.
24701         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
24702         argument.
24703         (str_cd_iconveh): Update.
24704         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
24705         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
24706         * tests/test-striconveh.c (MAGIC): New macro.
24707         (new_offsets): New function.
24708         (main): Test call with and without offsets.
24709
24710 2007-01-22  Bruno Haible  <bruno@clisp.org>
24711
24712         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
24713         * modules/sys_select (Makefile.am): Likewise.
24714         * modules/sys_socket (Makefile.am): Likewise.
24715         * modules/sys_time (Makefile.am): Likewise.
24716
24717 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24718
24719         * modules/gettimeofday (License): Change from GPL to LGPL, since
24720         gettimeofday is a library function.
24721
24722 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24723
24724         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
24725
24726 2007-01-21  Bruno Haible  <bruno@clisp.org>
24727
24728         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
24729
24730 2007-01-21  Bruno Haible  <bruno@clisp.org>
24731
24732         * modules/striconveha: New file.
24733         * lib/striconveha.h: New file.
24734         * lib/striconveha.c: New file.
24735         * MODULES.html.sh (Internationalization functions): Add striconveha.
24736         * lib/striconv.c (str_iconv): Optimize the case of an empty input
24737         string.
24738         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
24739
24740 2007-01-21  Bruno Haible  <bruno@clisp.org>
24741
24742         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
24743         * lib/striconveh.c (str_iconveh): Likewise.
24744
24745 2007-01-21  Bruno Haible  <bruno@clisp.org>
24746
24747         * lib/striconveh.h (mem_iconveh): New declaration.
24748         * lib/striconveh.c (mem_iconveh): New function.
24749         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
24750
24751 2007-01-21  Bruno Haible  <bruno@clisp.org>
24752
24753         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
24754
24755         * lib/striconveh.h (mem_cd_iconveh): Change specification.
24756         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
24757         original result buffer.
24758         (str_cd_iconveh): Update.
24759         * tests/test-striconveh.c (main): Update.
24760
24761         * lib/striconv.h (mem_cd_iconv): Change specification.
24762         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
24763         result buffer.
24764         (str_cd_iconv): Update.
24765         * tests/test-striconv.c (main): Update.
24766
24767 2007-01-21  Bruno Haible  <bruno@clisp.org>
24768
24769         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
24770
24771 2007-01-20  Jim Meyering  <jim@meyering.net>
24772
24773         * lib/userspec.c (parse_with_separator): If a user or group string
24774         starts with "+", skip the corresponding name-to-ID look-up, since
24775         such a look-up must fail: user and group names may not include "+".
24776
24777 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24778
24779         * lib/poll.c: Include sys/time.h and time.h unconditionally,
24780         since we now assume the sys_time module.
24781         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
24782         check for sys/time.h; no longer needed.
24783         * modules/poll (Depends-on): Depend on sys_time.
24784
24785 2007-01-18  Bruno Haible  <bruno@clisp.org>
24786
24787         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
24788         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24789
24790         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
24791         gettimeofday.
24792
24793         * tests/test-gettimeofday.c: Include <time.h>.
24794         (dummy): Remove variable.
24795
24796         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
24797         gl_HEADER_SYS_TIME_H.
24798         (gl_HEADER_SYS_TIME_H): New macro.
24799
24800         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
24801         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24802         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
24803         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
24804         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
24806         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
24807         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24808         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
24809         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
24810         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24811
24812         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
24813         last change; it caused a compilation error when cross-compiling to
24814         Cygwin.
24815
24816 2007-01-18  Jim Meyering  <jim@meyering.net>
24817
24818         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
24819         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
24820         than the race-prone "test -d sys || mkdir sys".
24821         (configure.ac): Use AC_PROG_MKDIR_P.
24822         * modules/sys_select: Likewise.
24823         * modules/sys_socket: Likewise.
24824         * modules/sys_time: Likewise.
24825
24826 2007-01-18  Eric Blake  <ebb9@byu.net>
24827
24828         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
24829         replace gettimeofday.
24830         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
24831         name, to avoid infinite recursion.
24832
24833 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
24834
24835         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
24836         module sys_time.
24837         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
24838         assume timespec.h defines struct timeval.
24839         * lib/settime.c: Likewise.
24840         * lib/utimens.c: Likewise.
24841         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
24842         since we now assume the gettimeofday module.
24843         * lib/tempname.c (__gen_tempname): Likewise.
24844         * lib/gettimeofday.h: Remove.
24845         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
24846         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
24847         Include <time.h>, for 'time()'.
24848         (localtime_buffer_addr): Also use this workaround if
24849         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
24850         to simplify the uses.  All uses changed.
24851         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
24852         that #undef is inside {}, and 'const' follows type name consistently.
24853         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
24854         (gettimeofday): Do not use the maximum possible value for
24855         tv->tv_usec, since that might break usages other than ls.c.
24856         Instead, we'll leave ls.c alone.  This undoes today's patch
24857         by Bruno.  Add a compile-time warning for 1s-clock resolution;
24858         we've never observed the problem but might as well keep the
24859         canary.
24860         * lib/nanosleep.c: Include timespec.h first, for interface check.
24861         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
24862         now assume the sys_time module.
24863         * lib/tempname.c: Likewise.
24864         * lib/timespec.h: Likewise.
24865         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
24866         needed.
24867         * lib/strftime.c: Likewise.
24868         * lib/timespec.h: Likewise.
24869         * lib/posixtm.c: Include posixtm.h first, for interface check.
24870         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
24871         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
24872         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
24873         * lib/sys_time_.h: New file.
24874         * lib/timespec.h (struct timespec): Use long int, not long.
24875         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24876         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
24877         Remove obsolescent call to AC_HEADER_TIME.
24878         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24881         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
24882         Likewise.
24883         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
24884         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
24885         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
24886         into the sys_time module.  Check for gettimeofday just once.
24887         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
24888         for gettimeofday signature to just check the signature.  Merely
24889         compile it, since linking doesn't test signature.  Improve test for
24890         whether gettimeofday.o is actually needed.
24891         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
24892         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
24893         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
24894         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24895         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
24896         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
24897         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
24898         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
24899         than worrying about sys/time.h.
24900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
24901         Don't bother worrying about TIME_WITH_SYS_TIME.
24902         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24903         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
24904         * m4/sys_time_h.m4: New file.
24905         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
24906         Don't include sys/time.h.  Return from main rather than exiting.
24907         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
24908         all uses changed.
24909         * modules/gethrxtime (Depends-on): Add sys_time.
24910         * modules/gettime (Depends-on): Likewise.
24911         * modules/gettimeofday (Depends-on): Likewise.
24912         * modules/nanosleep (Depends-on): Likewise.
24913         * modules/settime (Depends-on): Likewise.
24914         * modules/tempname (Depends-on): Likewise.
24915         * modules/utimens (Depends-on): Likewise.
24916         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
24917         (Include:) Change back to <sys/time.h>.
24918         (Maintainer:) Add self.
24919         * modules/sys_time: New file.
24920         * modules/tempname (Depends-on): Add gettimeofday.
24921         * tests/test-gettimeofday.c: Include <sys/time.h>
24922         rather than gettimeofday.h.
24923
24924 2007-01-17  Bruno Haible  <bruno@clisp.org>
24925
24926         * gnulib-tool (func_get_license): Revert last patch. Instead, let
24927         the license default to GPL.
24928         (func_create_testdir): Don't complain if a module is LGPL and its
24929         tests module depends on GPLed modules.
24930
24931 2007-01-17  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/gettimeofday.c (gettimeofday): Add code for the case
24934         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
24935         maximum possible value for tv->tv_usec, rather than the minimum one.
24936
24937 2005-10-08  Martin Lambers  <marlam@marlam.de>
24938 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24939 2007-01-16  Bruno Haible  <bruno@clisp.org>
24940
24941         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
24942         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
24943         gl_FUNC_GETTIMEOFDAY.
24944         (Include): Add gettimeofday.h.
24945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
24946         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
24947         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
24948         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
24949         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
24950         * lib/gettimeofday.h: New file.
24951         * lib/gettimeofday.c: Include <sys/timeb.h>.
24952         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
24953         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24954         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
24955         fall back on time().
24956
24957         * tests/test-gettimeofday.c: New file.
24958         * modules/gettimeofday-tests: New file.
24959
24960 2007-01-16  Eric Blake  <ebb9@byu.net>
24961
24962         * modules/fnmatch (Depends-on): Depend on wchar.
24963         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
24964         * m4/fnmatch.m4: Likewise.
24965         * modules/mbchar (Makefile.am): Assume <wchar.h>.
24966         * m4/mbchar.m4: Likewise.
24967         * modules/mbswidth (Depends-on): Depend on wchar.
24968         * lib/mbswidth.c: Assume <wchar.h>.
24969         * m4/mbswidth.m4: Likewise.
24970         * modules/quotearg (Depends-on): Depend on wchar.
24971         * lib/quotearg.c: Assume <wchar.h>.
24972         * m4/quotearg.m4: Likewise.
24973         * modules/regex (Depends-on): Depend on wchar.
24974         * lib/regex_internal.h: Assume <wchar.h>.
24975         * m4/regex.m4: Likewise.
24976         * modules/stdint (Depends-on): Depend on wchar.
24977         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
24978         * m4/stdint.m4: Likewise.
24979         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
24980         * modules/strftime (Depends-on): Depend on wchar.
24981         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
24982         * modules/strtol (Depends-on): Depend on wchar.
24983         * lib/strtol.c: Assume <wchar.h>.
24984         * modules/wcwidth (Depends-on): Depend on wchar.
24985         * lib/wcwidth.h: Assume <wchar.h>.
24986         * m4/wcwidth.m4: Likewise.
24987
24988 2007-01-16  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/csharpexec-script: New, created from...
24991         * modules/csharpexec: ... this.
24992
24993 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
24994
24995         * modules/javaexec-script: New, created from...
24996         * modules/javaexec: ... this.
24997
24998 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24999
25000         * modules/poll (Dependencies): Add sys_select.
25001
25002 2007-01-15  Jim Meyering  <jim@meyering.net>
25003
25004         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25005         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25006         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25007         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25008
25009 2007-01-15  Bruno Haible  <bruno@clisp.org>
25010
25011         * modules/striconveh: New file.
25012         * lib/striconveh.h: New file.
25013         * lib/striconveh.c: New file.
25014         * MODULES.html.sh (Internationalization functions): Add striconveh.
25015
25016         * modules/striconveh-tests: New file.
25017         * tests/test-striconveh.c: New file.
25018
25019 2007-01-15  Bruno Haible  <bruno@clisp.org>
25020
25021         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25022         not from GNU libiconv or GNU libc.
25023
25024 2007-01-15  Bruno Haible  <bruno@clisp.org>
25025
25026         * doc/gnulib-intro.texi (Copyright): Explain the different license
25027         terms for module descriptions, autoconf macros, tests, documentation.
25028
25029 2007-01-14  Bruno Haible  <bruno@clisp.org>
25030
25031         * modules/striconv-tests: New file.
25032         * tests/test-striconv.c: New file.
25033
25034 2007-01-14  Bruno Haible  <bruno@clisp.org>
25035
25036         * modules/iconv-tests: New file.
25037         * tests/test-iconv.c: New file.
25038
25039 2007-01-14  Bruno Haible  <bruno@clisp.org>
25040
25041         * gnulib-tool (func_get_license): For test modules, use the license of
25042         the main module.
25043
25044 2007-01-14  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25047         if iconv is found to exist.
25048
25049 2007-01-14  Bruno Haible  <bruno@clisp.org>
25050
25051         * modules/c-ctype-tests: New file.
25052         * tests/test-c-ctype.c: New file.
25053
25054 2007-01-14  Bruno Haible  <bruno@clisp.org>
25055
25056         * modules/binary-io-tests: New file.
25057         * tests/test-binary-io.sh: New file.
25058         * tests/test-binary-io.c: New file.
25059
25060 2007-01-14  Bruno Haible  <bruno@clisp.org>
25061
25062         * modules/array-oset-tests: New file.
25063         * tests/test-array_oset.c: New file.
25064
25065 2007-01-14  Bruno Haible  <bruno@clisp.org>
25066
25067         * modules/array-list-tests: New file.
25068         * tests/test-array_list.c: New file.
25069
25070 2007-01-14  Bruno Haible  <bruno@clisp.org>
25071
25072         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25073         and make.
25074         Reported by Simon Josefsson in
25075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25076
25077 2007-01-14  Bruno Haible  <bruno@clisp.org>
25078
25079         * modules/allocsa-tests: New file.
25080         * tests/test-allocsa.c: New file.
25081
25082 2007-01-14  Bruno Haible  <bruno@clisp.org>
25083
25084         * modules/fchdir (Depends-on): Add absolute-header.
25085         * modules/unistd (Depends-on): Likewise.
25086
25087 2006-12-30  Bruno Haible  <bruno@clisp.org>
25088
25089         * modules/fchdir: New file.
25090         * modules/unistd (Files): Add lib/unistd_.h.
25091         (Makefile.am): Generate unistd.h from unistd_.h.
25092         * lib/fchdir.c: New file.
25093         * lib/dirent_.h: New file.
25094         * lib/unistd_.h: New file.
25095         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25096         * m4/fchdir.m4: New file.
25097         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25098         (gl_HEADER_UNISTD): Invoke it.
25099         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25100         function.
25101         * lib/backupfile.c (opendir, closedir): Undefine.
25102         * lib/chown.c (open, close): Undefine.
25103         * lib/clean-temp.c (open, close): Undefine.
25104         * lib/copy-file.c (open, close): Undefine.
25105         * lib/execute.c (open, close): Undefine.
25106         * lib/fsusage.c (open, close): Undefine.
25107         * lib/gc-gnulib.c (open, close): Undefine.
25108         * lib/getcwd.c (opendir, closedir): Undefine.
25109         * lib/glob.c (opendir, closedir): Undefine.
25110         * lib/javacomp.c (open, close): Undefine.
25111         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25112         * lib/openat-proc.c (open, close): Undefine.
25113         * lib/pagealign_alloc.c (open, close): Undefine.
25114         * lib/pipe.c (open, close): Undefine.
25115         * lib/progreloc.c (open, close): Undefine.
25116         * lib/savedir.c (opendir, closedir): Undefine.
25117         * lib/utime.c (open, close): Undefine.
25118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25119
25120 2007-01-10  Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25123
25124 2007-01-12  Eric Blake  <ebb9@byu.net>
25125
25126         Provide a robust <wchar.h>.  Further simplifications are now
25127         possible in other modules, but not included here.
25128         * modules/wchar: New module.
25129         * m4/wchar.m4: New file.
25130         * lib/wchar_.h: Likewise.
25131         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25132         of the new module.
25133         * MODULES.html.sh (Extended multibyte and wide character utilities):
25134         New section.
25135
25136 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25139         to a reasonable default for memory allocation.
25140         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25141         file system that reports garbage st_size values for symlinks.
25142         Problem reported by Liyang Hu.
25143
25144 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25145
25146         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25147         Emacs .#* auto-save files).
25148
25149 2007-01-11  Bruno Haible  <bruno@clisp.org>
25150
25151         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25152         directory.
25153
25154 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25155
25156         Use @...@ consistently in lib/wctype_.h.
25157         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25158         on it being set to 1 or 0.
25159         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25160         go back to AC_SUBSTing it.
25161         * modules/wctype (Makefile.am): Undo previous change.
25162
25163 2007-01-10  Eric Blake  <ebb9@byu.net>
25164
25165         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25166         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25167         * modules/wctype (Makefile.am): Likewise.
25168         Reported by Chris McGuire.
25169
25170 2007-01-10  Jim Meyering  <jim@meyering.net>
25171
25172         fts.c: a small readability/maintainability improvement
25173         * lib/fts.c (fts_read): Make this code slightly more readable and
25174         maintainable by hoisting the "sp->fts_cur = p" assignments to
25175         immediately follow the statements that set P.  Derived from
25176         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25177
25178 2007-01-10  Eric Blake  <ebb9@byu.net>
25179
25180         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25181         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25183         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25184         Reported by Chris McGuire.
25185
25186 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25187
25188         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25189         in sed script.
25190
25191 2007-01-09  Bruno Haible  <bruno@clisp.org>
25192
25193         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25194         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25195         variables.
25196         (func_module): Use them.
25197
25198 2007-01-09  Bruno Haible  <bruno@clisp.org>
25199
25200         * modules/unistr/base: New file.
25201         * lib/unistr.h: New file.
25202
25203         * modules/unistr/u8-to-u16: New file.
25204         * lib/unistr/u8-to-u16.c: New file.
25205
25206         * modules/unistr/u8-to-u32: New file.
25207         * lib/unistr/u8-to-u32.c: New file.
25208
25209         * modules/unistr/u16-to-u8: New file.
25210         * lib/unistr/u16-to-u8.c: New file.
25211
25212         * modules/unistr/u16-to-u32: New file.
25213         * lib/unistr/u16-to-u32.c: New file.
25214
25215         * modules/unistr/u32-to-u8: New file.
25216         * lib/unistr/u32-to-u8.c: New file.
25217
25218         * modules/unistr/u32-to-u16: New file.
25219         * lib/unistr/u32-to-u16.c: New file.
25220
25221         * modules/unistr/u8-check: New file.
25222         * modules/unistr/u16-check: New file.
25223         * modules/unistr/u32-check: New file.
25224         * lib/unistr/u8-check.c: New file.
25225         * lib/unistr/u16-check.c: New file.
25226         * lib/unistr/u32-check.c: New file.
25227
25228         * modules/unistr/u8-chr: New file.
25229         * modules/unistr/u16-chr: New file.
25230         * modules/unistr/u32-chr: New file.
25231         * lib/unistr/u8-chr.c: New file.
25232         * lib/unistr/u16-chr.c: New file.
25233         * lib/unistr/u32-chr.c: New file.
25234
25235         * modules/unistr/u8-cmp: New file.
25236         * modules/unistr/u16-cmp: New file.
25237         * modules/unistr/u32-cmp: New file.
25238         * lib/unistr/u8-cmp.c: New file.
25239         * lib/unistr/u16-cmp.c: New file.
25240         * lib/unistr/u32-cmp.c: New file.
25241
25242         * modules/unistr/u8-cpy: New file.
25243         * modules/unistr/u16-cpy: New file.
25244         * modules/unistr/u32-cpy: New file.
25245         * lib/unistr/u8-cpy.c: New file.
25246         * lib/unistr/u16-cpy.c: New file.
25247         * lib/unistr/u32-cpy.c: New file.
25248         * lib/unistr/u-cpy.h: New file.
25249
25250         * modules/unistr/u8-cpy-alloc: New file.
25251         * modules/unistr/u16-cpy-alloc: New file.
25252         * modules/unistr/u32-cpy-alloc: New file.
25253         * lib/unistr/u8-cpy-alloc.c: New file.
25254         * lib/unistr/u16-cpy-alloc.c: New file.
25255         * lib/unistr/u32-cpy-alloc.c: New file.
25256         * lib/unistr/u-cpy-alloc.h: New file.
25257
25258         * modules/unistr/u8-endswith: New file.
25259         * modules/unistr/u16-endswith: New file.
25260         * modules/unistr/u32-endswith: New file.
25261         * lib/unistr/u8-endswith.c: New file.
25262         * lib/unistr/u16-endswith.c: New file.
25263         * lib/unistr/u32-endswith.c: New file.
25264         * lib/unistr/u-endswith.h: New file.
25265
25266         * modules/unistr/u8-mblen: New file.
25267         * modules/unistr/u16-mblen: New file.
25268         * modules/unistr/u32-mblen: New file.
25269         * lib/unistr/u8-mblen.c: New file.
25270         * lib/unistr/u16-mblen.c: New file.
25271         * lib/unistr/u32-mblen.c: New file.
25272
25273         * modules/unistr/u8-mbtouc: New file.
25274         * modules/unistr/u16-mbtouc: New file.
25275         * modules/unistr/u32-mbtouc: New file.
25276         * lib/unistr/u8-mbtouc.c: New file.
25277         * lib/unistr/u16-mbtouc.c: New file.
25278         * lib/unistr/u32-mbtouc.c: New file.
25279
25280         * modules/unistr/u8-mbtouc-safe: New file.
25281         * modules/unistr/u16-mbtouc-safe: New file.
25282         * modules/unistr/u32-mbtouc-safe: New file.
25283         * lib/unistr/u8-mbtouc-safe.c: New file.
25284         * lib/unistr/u16-mbtouc-safe.c: New file.
25285         * lib/unistr/u32-mbtouc-safe.c: New file.
25286
25287         * modules/unistr/u8-move: New file.
25288         * modules/unistr/u16-move: New file.
25289         * modules/unistr/u32-move: New file.
25290         * lib/unistr/u8-move.c: New file.
25291         * lib/unistr/u16-move.c: New file.
25292         * lib/unistr/u32-move.c: New file.
25293         * lib/unistr/u-move.h: New file.
25294
25295         * modules/unistr/u8-next: New file.
25296         * modules/unistr/u16-next: New file.
25297         * modules/unistr/u32-next: New file.
25298         * lib/unistr/u8-next.c: New file.
25299         * lib/unistr/u16-next.c: New file.
25300         * lib/unistr/u32-next.c: New file.
25301
25302         * modules/unistr/u8-prev: New file.
25303         * modules/unistr/u16-prev: New file.
25304         * modules/unistr/u32-prev: New file.
25305         * lib/unistr/u8-prev.c: New file.
25306         * lib/unistr/u16-prev.c: New file.
25307         * lib/unistr/u32-prev.c: New file.
25308
25309         * modules/unistr/u8-set: New file.
25310         * modules/unistr/u16-set: New file.
25311         * modules/unistr/u32-set: New file.
25312         * lib/unistr/u8-set.c: New file.
25313         * lib/unistr/u16-set.c: New file.
25314         * lib/unistr/u32-set.c: New file.
25315         * lib/unistr/u-set.h: New file.
25316
25317         * modules/unistr/u8-startswith: New file.
25318         * modules/unistr/u16-startswith: New file.
25319         * modules/unistr/u32-startswith: New file.
25320         * lib/unistr/u8-startswith.c: New file.
25321         * lib/unistr/u16-startswith.c: New file.
25322         * lib/unistr/u32-startswith.c: New file.
25323         * lib/unistr/u-startswith.h: New file.
25324
25325         * modules/unistr/u8-stpcpy: New file.
25326         * modules/unistr/u16-stpcpy: New file.
25327         * modules/unistr/u32-stpcpy: New file.
25328         * lib/unistr/u8-stpcpy.c: New file.
25329         * lib/unistr/u16-stpcpy.c: New file.
25330         * lib/unistr/u32-stpcpy.c: New file.
25331         * lib/unistr/u-stpcpy.h: New file.
25332
25333         * modules/unistr/u8-stpncpy: New file.
25334         * modules/unistr/u16-stpncpy: New file.
25335         * modules/unistr/u32-stpncpy: New file.
25336         * lib/unistr/u8-stpncpy.c: New file.
25337         * lib/unistr/u16-stpncpy.c: New file.
25338         * lib/unistr/u32-stpncpy.c: New file.
25339         * lib/unistr/u-stpncpy.h: New file.
25340
25341         * modules/unistr/u8-strcat: New file.
25342         * modules/unistr/u16-strcat: New file.
25343         * modules/unistr/u32-strcat: New file.
25344         * lib/unistr/u8-strcat.c: New file.
25345         * lib/unistr/u16-strcat.c: New file.
25346         * lib/unistr/u32-strcat.c: New file.
25347         * lib/unistr/u-strcat.h: New file.
25348
25349         * modules/unistr/u8-strchr: New file.
25350         * modules/unistr/u16-strchr: New file.
25351         * modules/unistr/u32-strchr: New file.
25352         * lib/unistr/u8-strchr.c: New file.
25353         * lib/unistr/u16-strchr.c: New file.
25354         * lib/unistr/u32-strchr.c: New file.
25355
25356         * modules/unistr/u8-strcmp: New file.
25357         * modules/unistr/u16-strcmp: New file.
25358         * modules/unistr/u32-strcmp: New file.
25359         * lib/unistr/u8-strcmp.c: New file.
25360         * lib/unistr/u16-strcmp.c: New file.
25361         * lib/unistr/u32-strcmp.c: New file.
25362
25363         * modules/unistr/u8-strcpy: New file.
25364         * modules/unistr/u16-strcpy: New file.
25365         * modules/unistr/u32-strcpy: New file.
25366         * lib/unistr/u8-strcpy.c: New file.
25367         * lib/unistr/u16-strcpy.c: New file.
25368         * lib/unistr/u32-strcpy.c: New file.
25369         * lib/unistr/u-strcpy.h: New file.
25370
25371         * modules/unistr/u8-strcspn: New file.
25372         * modules/unistr/u16-strcspn: New file.
25373         * modules/unistr/u32-strcspn: New file.
25374         * lib/unistr/u8-strcspn.c: New file.
25375         * lib/unistr/u16-strcspn.c: New file.
25376         * lib/unistr/u32-strcspn.c: New file.
25377         * lib/unistr/u-strcspn.h: New file.
25378
25379         * modules/unistr/u8-strdup: New file.
25380         * modules/unistr/u16-strdup: New file.
25381         * modules/unistr/u32-strdup: New file.
25382         * lib/unistr/u8-strdup.c: New file.
25383         * lib/unistr/u16-strdup.c: New file.
25384         * lib/unistr/u32-strdup.c: New file.
25385         * lib/unistr/u-strdup.h: New file.
25386
25387         * modules/unistr/u8-strlen: New file.
25388         * modules/unistr/u16-strlen: New file.
25389         * modules/unistr/u32-strlen: New file.
25390         * lib/unistr/u8-strlen.c: New file.
25391         * lib/unistr/u16-strlen.c: New file.
25392         * lib/unistr/u32-strlen.c: New file.
25393         * lib/unistr/u-strlen.h: New file.
25394
25395         * modules/unistr/u8-strmblen: New file.
25396         * modules/unistr/u16-strmblen: New file.
25397         * modules/unistr/u32-strmblen: New file.
25398         * lib/unistr/u8-strmblen.c: New file.
25399         * lib/unistr/u16-strmblen.c: New file.
25400         * lib/unistr/u32-strmblen.c: New file.
25401
25402         * modules/unistr/u8-strmbtouc: New file.
25403         * modules/unistr/u16-strmbtouc: New file.
25404         * modules/unistr/u32-strmbtouc: New file.
25405         * lib/unistr/u8-strmbtouc.c: New file.
25406         * lib/unistr/u16-strmbtouc.c: New file.
25407         * lib/unistr/u32-strmbtouc.c: New file.
25408
25409         * modules/unistr/u8-strncat: New file.
25410         * modules/unistr/u16-strncat: New file.
25411         * modules/unistr/u32-strncat: New file.
25412         * lib/unistr/u8-strncat.c: New file.
25413         * lib/unistr/u16-strncat.c: New file.
25414         * lib/unistr/u32-strncat.c: New file.
25415         * lib/unistr/u-strncat.h: New file.
25416
25417         * modules/unistr/u8-strncmp: New file.
25418         * modules/unistr/u16-strncmp: New file.
25419         * modules/unistr/u32-strncmp: New file.
25420         * lib/unistr/u8-strncmp.c: New file.
25421         * lib/unistr/u16-strncmp.c: New file.
25422         * lib/unistr/u32-strncmp.c: New file.
25423
25424         * modules/unistr/u8-strncpy: New file.
25425         * modules/unistr/u16-strncpy: New file.
25426         * modules/unistr/u32-strncpy: New file.
25427         * lib/unistr/u8-strncpy.c: New file.
25428         * lib/unistr/u16-strncpy.c: New file.
25429         * lib/unistr/u32-strncpy.c: New file.
25430         * lib/unistr/u-strncpy.h: New file.
25431
25432         * modules/unistr/u8-strnlen: New file.
25433         * modules/unistr/u16-strnlen: New file.
25434         * modules/unistr/u32-strnlen: New file.
25435         * lib/unistr/u8-strnlen.c: New file.
25436         * lib/unistr/u16-strnlen.c: New file.
25437         * lib/unistr/u32-strnlen.c: New file.
25438         * lib/unistr/u-strnlen.h: New file.
25439
25440         * modules/unistr/u8-strpbrk: New file.
25441         * modules/unistr/u16-strpbrk: New file.
25442         * modules/unistr/u32-strpbrk: New file.
25443         * lib/unistr/u8-strpbrk.c: New file.
25444         * lib/unistr/u16-strpbrk.c: New file.
25445         * lib/unistr/u32-strpbrk.c: New file.
25446         * lib/unistr/u-strpbrk.h: New file.
25447
25448         * modules/unistr/u8-strrchr: New file.
25449         * modules/unistr/u16-strrchr: New file.
25450         * modules/unistr/u32-strrchr: New file.
25451         * lib/unistr/u8-strrchr.c: New file.
25452         * lib/unistr/u16-strrchr.c: New file.
25453         * lib/unistr/u32-strrchr.c: New file.
25454
25455         * modules/unistr/u8-strspn: New file.
25456         * modules/unistr/u16-strspn: New file.
25457         * modules/unistr/u32-strspn: New file.
25458         * lib/unistr/u8-strspn.c: New file.
25459         * lib/unistr/u16-strspn.c: New file.
25460         * lib/unistr/u32-strspn.c: New file.
25461         * lib/unistr/u-strspn.h: New file.
25462
25463         * modules/unistr/u8-strstr: New file.
25464         * modules/unistr/u16-strstr: New file.
25465         * modules/unistr/u32-strstr: New file.
25466         * lib/unistr/u8-strstr.c: New file.
25467         * lib/unistr/u16-strstr.c: New file.
25468         * lib/unistr/u32-strstr.c: New file.
25469         * lib/unistr/u-strstr.h: New file.
25470
25471         * modules/unistr/u8-strtok: New file.
25472         * modules/unistr/u16-strtok: New file.
25473         * modules/unistr/u32-strtok: New file.
25474         * lib/unistr/u8-strtok.c: New file.
25475         * lib/unistr/u16-strtok.c: New file.
25476         * lib/unistr/u32-strtok.c: New file.
25477         * lib/unistr/u-strtok.h: New file.
25478
25479         * modules/unistr/u8-uctomb: New file.
25480         * modules/unistr/u16-uctomb: New file.
25481         * modules/unistr/u32-uctomb: New file.
25482         * lib/unistr/u8-uctomb.c: New file.
25483         * lib/unistr/u16-uctomb.c: New file.
25484         * lib/unistr/u32-uctomb.c: New file.
25485
25486         * MODULES.html.sh (Unicode string functions): Add the new modules.
25487
25488 2007-01-08  Bruno Haible  <bruno@clisp.org>
25489
25490         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25491         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25492         subdirectories.
25493
25494 2007-01-08  Karl Berry  <karl@gnu.org>
25495
25496         * doc/error.texi: mention that main() fns must set program_name
25497         when progname is used.
25498
25499 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25500
25501         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25502         WCTYPE_H is empty, for the benefit of builds from non-distclean
25503         directories.  Problem reported by Eric Blake in
25504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25505
25506 2007-01-08  Bruno Haible  <bruno@clisp.org>
25507
25508         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25509         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25510         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25511         PROVIDE_CANONICALIZE_FILENAME_MODE.
25512         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25513
25514 2007-01-08  Bruno Haible  <bruno@clisp.org>
25515
25516         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25517         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25518         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25519         * lib/fts.c: Likewise.
25520         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25521
25522 2006-12-25  Bruno Haible  <bruno@clisp.org>
25523
25524         * modules/utf8-ucs4-safe: New file.
25525         * lib/utf8-ucs4-safe.h: New file.
25526         * lib/unistr/utf8-ucs4-safe.c: New file.
25527
25528         * modules/utf16-ucs4-safe: New file.
25529         * lib/utf16-ucs4-safe.h: New file.
25530         * lib/unistr/utf16-ucs4-safe.c: New file.
25531
25532         * MODULES.html.sh (Unicode string functions): Add the new modules.
25533
25534 2007-01-08  Bruno Haible  <bruno@clisp.org>
25535
25536         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25537         (Depends-on): Add unitypes.
25538         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25539         (u8_mbtouc_aux): Move out to separate file.
25540         (u8_mbtouc): Use ucs4_t, uint8_t types.
25541         * lib/unistr/utf8-ucs4.c: New file.
25542
25543         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25544         (Depends-on): Add unitypes.
25545         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25546         (u16_mbtouc_aux): Move out to separate file.
25547         (u16_mbtouc): Use ucs4_t, uint16_t types.
25548         * lib/unistr/utf16-ucs4.c: New file.
25549
25550         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25551         (Depends-on): Add unitypes.
25552         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25553         (u8_uctomb_aux): Move out to separate file.
25554         (u8_uctomb): Use ucs4_t, uint8_t types.
25555         * lib/unistr/ucs4-utf8.c: New file.
25556
25557         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25558         (Depends-on): Add unitypes.
25559         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25560         (u16_uctomb_aux): Move out to separate file.
25561         (u16_uctomb): Use ucs4_t, uint16_t types.
25562         * lib/unistr/ucs4-utf16.c: New file.
25563
25564 2006-12-25  Bruno Haible  <bruno@clisp.org>
25565
25566         * modules/unitypes: New file.
25567         * lib/unitypes.h: New file.
25568         * MODULES.html.sh (func_all_modules): New section "Unicode string
25569         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25570         this section. Add unitypes.
25571
25572 2007-01-08  Bruno Haible  <bruno@clisp.org>
25573
25574         Avoid variable names that conflict with those from libtool.
25575         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25576         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25577         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25578         library_names_spec to acl_library_names_spec, hardcode_* to
25579         acl_hardcode_*.
25580         Reported by Ralf Wildenhues.
25581
25582 2007-01-08  Bruno Haible  <bruno@clisp.org>
25583
25584         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25585         definition.
25586         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25587         definition.
25588         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25589         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25590         definition.
25591         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25592         definition.
25593         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25594         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25595         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25596         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25597         definition.
25598         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25599         definition.
25600         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25601         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25602         GC_USE_<algorithm>.
25603         * lib/gc-libgcrypt.c: Likewise.
25604         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25605         * modules/gc-arctwo (configure.ac): Likewise.
25606         * modules/gc-des (configure.ac): Likewise.
25607         * modules/gc-hmac-md5 (configure.ac): Likewise.
25608         * modules/gc-hmac-sha1 (configure.ac): Likewise.
25609         * modules/gc-md2 (configure.ac): Likewise.
25610         * modules/gc-md4 (configure.ac): Likewise.
25611         * modules/gc-md5 (configure.ac): Likewise.
25612         * modules/gc-random (configure.ac): Likewise.
25613         * modules/gc-rijndael (configure.ac): Likewise.
25614         * modules/gc-sha1 (configure.ac): Likewise.
25615
25616 2007-01-08  Bruno Haible  <bruno@clisp.org>
25617
25618         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
25619         macro definition.
25620         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
25621         definition.
25622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
25623         definition.
25624         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
25625         * modules/fcntl-safer (configure.ac): Likewise.
25626         * modules/fopen-safer (configure.ac): Likewise.
25627         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
25628         GNULIB_FWRITEERROR macro definition.
25629
25630 2007-01-08  Bruno Haible  <bruno@clisp.org>
25631
25632         * m4/gnulib-common.m4: New file.
25633         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
25634         (func_get_filelist): Add m4/gnulib-common.m4.
25635
25636 2007-01-08  Bruno Haible  <bruno@clisp.org>
25637
25638         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
25639         command.
25640
25641 2007-01-08  Jim Meyering  <jim@meyering.net>
25642
25643         Use a more robust test for a "can't happen" condition.
25644         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
25645         narrowed the st_size value.  Presuming the "can't happen" condition
25646         is true, that narrowing could conceivably convert an invalid st_size
25647         value into a valid one.  Instead, use a change based on Matthew
25648         Woehlke's original patch.
25649
25650         Slight readability improvement: use an assert-like macro
25651         in place of literal "abort ()" uses.
25652         * lib/fts.c (fts_assert): Define.
25653         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
25654         Use this macro instead of a bare 'abort'.
25655
25656 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25657
25658         Don't worry about using IRIX 5.3's wctype.h broken definitions;
25659         simply work around them.
25660         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
25661         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
25662         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
25663         declaring.
25664         Don't bother to define as macros, since the standard doesn't require it.
25665         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
25666         longer worry about IRIX 5.3.
25667         (HAVE_WCTYPE_CTMP_BUG): Remove.
25668
25669 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25670
25671         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
25672         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
25673         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25674         Problems reported by Georg Schwarz for IRIX 5.3.
25675
25676         * gnulib-tool (autoconf_minversion): Take the maximum version number
25677         found, not the minimum.  Problem reported by James Youngman.
25678
25679 2007-01-03  Karl Berry  <karl@gnu.org>
25680
25681         * doc/error.texi: new file, explaining interaction with progname.
25682         * doc/gnulib.texi: include it.  Update copyright.
25683
25684 2007-01-03  Simon Josefsson  <simon@josefsson.org>
25685
25686         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
25687         AC_CANONICAL_HOST, to improve autobuild outputs.
25688
25689 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
25690             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25691
25692         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
25693         sockets, server sockets, and other file descriptors.  Count errors
25694         to compute the return value.  Reorder the code a bit to be easier
25695         to follow.  Don't set event bits that were not requested (except
25696         POLLERR and POLLHUP).
25697
25698 2007-01-01  Bruno Haible  <bruno@clisp.org>
25699
25700         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
25701
25702 2007-01-03  Jim Meyering  <jim@meyering.net>
25703
25704         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
25705
25706 2007-01-02  Bruno Haible  <bruno@clisp.org>
25707
25708         * modules/settime (Include): Require timespec.h.
25709         * modules/nanosleep (Include): Likewise.
25710
25711 2007-01-01  Bruno Haible  <bruno@clisp.org>
25712
25713         * gnulib-tool (func_emit_copyright_notice): Bump year.
25714         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
25715
25716 2007-01-01  Bruno Haible  <bruno@clisp.org>
25717
25718         Improve support for OpenBSD.
25719         * build-aux/config.rpath (libname_spec): Export.
25720         (library_names_spec): New variable. Export.
25721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
25722         library_names_spec from the config.rpath output. Locate shared library
25723         through the name pattern in library_names_spec.
25724
25725 2007-01-01  Eric Blake  <ebb9@byu.net>
25726
25727         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
25728
25729 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25730
25731         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
25732         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
25733         assume the C locale, and avoid an "eval" that could cause trouble.
25734         Problem with SORT reported by Bob Proulx.
25735
25736         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
25737         Define.  Trivial patch from Henning Nielsen Lund, originally
25738         sent to bug-grep@gnu.org today.
25739
25740 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25741
25742         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
25743         struct stat.  Problem reported by Henning Nielsen Lund.
25744         * lib/acl.c: Include acl.h first, to check interface.  Don't
25745         bother to include sys/types.h and sys/stat.h again.
25746
25747 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25748
25749         Import the following change from libc; problem reported by
25750         Sven Verdoolaege.
25751
25752         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
25753
25754         [BZ #1373]
25755         * lib/argp.h: Remove __NTH for __argp_usage inline function.
25756
25757 2006-12-28  Jim Meyering  <jim@meyering.net>
25758
25759         * build-aux/announce-gen: Do not assume that the package
25760         builds any of tar.gz, tar.bz2, and .xdelta files.
25761         Suggestion from Simon Josefsson.
25762
25763 2006-12-28  Simon Josefsson  <simon@josefsson.org>
25764
25765         * modules/announce-gen: New file.
25766
25767 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25768
25769         * lib/mbchar.h: Just include <wctype.h>; the wctype module
25770         handles its gotchas now.
25771         * lib/mbswidth.c: Likewise.
25772         * lib/wcwidth.h: Likewise.
25773         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
25774         and iswcntrl; the wctype module does this stuff now.
25775         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25777         * modules/mbchar (Depends-on): Add wctype.
25778         * modules/mbswidth (Depends-on): Likewise.
25779         * modules/wcwidth (Depends-on): Likewise.
25780
25781 2006-12-27  Eric Blake  <ebb9@byu.net>
25782
25783         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
25784         module uses more than what <wctype.h> is required to provide.
25785
25786 2006-12-26  Eric Blake  <ebb9@byu.net>
25787
25788         * gnulib-tool (sed_extract_prog): Avoid space-tab.
25789
25790 2006-12-26  Eric Blake  <ebb9@byu.net>
25791
25792         * modules/absolute-header: New module.
25793         * modules/fcntl (Depends-on): Depend on it.
25794         * modules/inttypes (Depends-on): Likewise.
25795         * modules/stdint (Depends-on): Likewise.
25796         * modules/sys_stat (Depends-on): Likewise.
25797         * modules/wctype (Depends-on): Likewise.
25798         * MODULES.html.sh (Support for building libraries and
25799         executables): Document it.
25800
25801 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25802
25803         * gnulib-tool (SED): Remove, undoing previous change.
25804         The problem was that it broke coreutils on Solaris, because
25805         "sed --posix" leaked into a makefile.
25806         (sed): New alias, if 'alias' and GNU sed.
25807
25808 2006-12-24  Jim Meyering  <jim@meyering.net>
25809
25810         Work around an fchownat bug in glibc-2.4:
25811         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
25812         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
25813         in spite of the -P option.
25814         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
25815         New macros.
25816         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
25817         * modules/openat (Files): Add lib/fchownat.c.
25818         * lib/openat.c (fchownat): Don't define here.  Move to...
25819         * lib/fchownat.c: ...this new file.
25820
25821 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25822
25823         Fix bug reported by Bruno Haible in
25824         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
25825         where quotearg.c didn't compile on Mac OS X 10.2 because it
25826         lacks <wchar.h> and wint_t.
25827         * lib/wctype_.h (__wctype_wint_t): New type.
25828         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
25829         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
25830         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
25831         Arg is now of type __wctype_wint_t, not wint_t.
25832         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
25833         substitute HAVE_WINT_T.
25834         * modules/wctype (Files): Add m4/wint_t.m4.
25835         (wctype.h): Substitute HAVE_WINT_T.
25836
25837 2006-12-23  Bruno Haible  <bruno@clisp.org>
25838
25839         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
25840
25841 2006-12-23  Bruno Haible  <bruno@clisp.org>
25842
25843         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
25844         S_ISLNK.
25845         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
25846         mingw.
25847
25848 2006-12-22  Bruno Haible  <bruno@clisp.org>
25849
25850         * lib/copy-file.c: Include acl.h.
25851         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
25852         Close the file descriptors only after being done with copy_acl.
25853         * modules/copy-file (Depends-on): Add acl.
25854
25855 2006-12-22  Bruno Haible  <bruno@clisp.org>
25856
25857         * gnulib-tool (SED): New variable.
25858         Use $SED instead of sed everywhere.
25859
25860 2006-12-22  Bruno Haible  <bruno@clisp.org>
25861
25862         * modules/no-c++: New file.
25863         * m4/no-c++.m4: New file.
25864         * MODULES.html.sh (Support for building libraries and executables):
25865         Add no-c++.
25866
25867 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25868
25869         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
25870         Include <limits.h>, and use its INT_MAX to rewrite the
25871         j loop so that it does not overflow 'int'.  Problem reported by
25872         Ralf Wildenhues in
25873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
25874         Play it safe by shifting left by 1 rather than multiplying by 2,
25875         as GCC is less likely to optimize this away when the value
25876         is signed (when it assumes overflow leads to undefined behavior).
25877         Also, don't assume time_t uses two's complement.
25878
25879 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25880
25881         * MODULES.html.sh: New module wctype.
25882         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
25883         * lib/fnmatch.c: Don't bother to include <wchar.h> before
25884         <wctype.h>, since the new wctype module should fix this.
25885         * lib/quotearg.c: Include <wctype.h> unconditionally, since
25886         the wctype module should arrange for it.
25887         * lib/regex_internal.h: Likewise.
25888         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
25889         since the wctype module should handle this now.
25890         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
25891         * modules/fnmatch (Depends-on): Add wctype.
25892         * modules/quotearg (Depends-on): Likewise.
25893         * modules/regex (Depends-on): Likewise.
25894
25895 2006-12-19  Bruno Haible  <bruno@clisp.org>
25896
25897         * lib/strdup.h [C++]: Wrap definitions in extern "C".
25898         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
25899
25900 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25901
25902         * modules/savewd (Depends-on): Fix dependency on fcntl.
25903
25904 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25905
25906         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
25907         conforms to C99, rather than relying on the user's environment
25908         setting of STDINT_H.
25909
25910 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25911         and Eric Blake  <ebb9@byu.net>
25912
25913         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
25914         This is more consistent with the other defines here.
25915         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
25916         Port to z/OS.  Problem reported by Paul Gilmartin.
25917         Change local vars to use gl_ prefix rather than ac_.
25918         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
25919         with other defines.
25920         * modules/double-slash-root: New module.
25921         * modules/dirname (Files): Remove m4/double-slash-root.m4.
25922         (Depends-on): Add double-slash-root.
25923         * MODULES.html.sh (File system functions): Mention new module.
25924
25925 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
25928         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
25929         This is for the benefit of gzip, which doesn't do i18n.
25930
25931 2006-12-12  Jim Meyering  <jim@meyering.net>
25932
25933         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
25934         Reported by Andreas Schwab <schwab@suse.de>.
25935
25936 2006-12-12  Bruno Haible  <bruno@clisp.org>
25937
25938         Merge these changes.
25939         2006-09-05  Bruno Haible  <bruno@clisp.org>
25940         * lib/iconvme.c (iconv_string): No need to save and restore errno when
25941         iconv_alloc succeeded.
25942         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
25943         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
25944         test for " && dest " at the end - dest is always != NULL there. Call
25945         iconv with 4xNULL arguments initially, to reset the state. Call iconv
25946         with 2xNULL arguments, also to flush the state storage. Handle the
25947         IRIX iconv behaviour. Realloc the final result, to throw away unused
25948         memory.
25949
25950 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
25953         and fchmodat unconditionally, since glibc 2.4 has them.
25954         Problem reported by Arkadiusz Miskiewicz.
25955
25956 2006-12-10  Bruno Haible  <bruno@clisp.org>
25957
25958         * gnulib-tool (func_import): Show the include files only for those
25959         modules that are copied and specified.
25960         Reported by Karl Berry.
25961
25962 2006-12-08  Jim Meyering  <jim@meyering.net>
25963
25964         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
25965         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
25966
25967         * build-aux/announce-gen: Add two new options, both optional:
25968         --bootstrap-tools=TOOL_LIST
25969               a comma-separated list of tools, e.g.,
25970               autoconf,automake,bison,gnulib
25971         --gnulib-snapshot-date=DATE
25972               if gnulib is in the bootstrap tool list,
25973               then report this as the snapshot date.
25974               If not specified, use the current date/time.
25975               If you specify a date here, be sure it's UTC.
25976
25977 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25978
25979         * tests/test-argp-2.sh: Fix test to match actual output.
25980         (func_compare): Fix sed script to be portable.
25981
25982 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25983
25984         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
25985         workaround for this case.  It is not autoconfigured now; offhand
25986         it's hard to see how to autoconfigure it.
25987
25988 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
25989
25990         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
25991         a directory that is about to be chowned.  Such a directory's
25992         initial file permissions should permit the owner only and this
25993         should not be changed until after the chown, since the group and
25994         other bits would be incorrect if they granted permission before
25995         the chown.
25996
25997         Fix porting problem for iswctype reported by Georg Schwarz in:
25998         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
25999         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26000         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26001         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26002         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26003
26004 2006-12-03  Jim Meyering  <jim@meyering.net>
26005
26006         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26007         p->fts_statp may not yet be defined.
26008         (fts_read): Instead, set it in the caller, once p->fts_statp is
26009         sure to be defined, and corresponds to a top-level directory.
26010         This bug made du -x fail.  Here's the coreutils test case:
26011         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26012         Reported by Mike Frysinger.
26013
26014 2006-12-01  Jim Meyering  <jim@meyering.net>
26015
26016         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26017         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26018         Reported by Simon Josefsson.
26019
26020 2006-11-30  Jim Meyering  <jim@meyering.net>
26021
26022         * m4/warning.m4: Use the all-permissive copyright notice
26023         recommended by RMS (rather than LGPL).
26024         * m4/vararrays.m4: Likewise.
26025         * m4/flexmember.m4: Likewise.
26026
26027 2006-11-29  Bruno Haible  <bruno@clisp.org>
26028
26029         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26030         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26031         using +=.
26032         Reported by Simon Josefsson <simon@josefsson.org>.
26033
26034 2006-11-28  James Youngman <jay@gnu.org>
26035
26036         * README: Advise users that they might find the bug-gnulib@gnu.org
26037         and autotools-announce@gnu.org mailing lists useful.
26038
26039 2006-11-28  Bruno Haible  <bruno@clisp.org>
26040
26041         * m4/ptrdiff_max.m4: Remove file.
26042
26043 2006-11-21  Bruno Haible  <bruno@clisp.org>
26044
26045         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26046         _AC_COMPUTE_INT.
26047         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26048         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26049         _AC_COMPUTE_INT.
26050         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26051         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26052         _AC_COMPUTE_INT.
26053         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26054
26055 2006-11-28  Jim Meyering  <jim@meyering.net>
26056
26057         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26058         warning from "gcc -Wshadow" about shadowing the builtin.
26059
26060 2006-11-27  Bruno Haible  <bruno@clisp.org>
26061
26062         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26063         _AC_COMPUTE_INT.
26064         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26065
26066 2006-11-27  Bruno Haible  <bruno@clisp.org>
26067             Paul Eggert  <eggert@cs.ucla.edu>
26068
26069         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26070
26071 2006-11-26  Bruno Haible  <bruno@clisp.org>
26072
26073         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26074         noinst_LTLIBRARIES.
26075
26076 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26077             Bruno Haible  <bruno@clisp.org>
26078
26079         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26080         if compiling with "gcc -ansi".
26081
26082 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26083
26084         Fix some incompatibilities with gcc -ansi -pedantic.
26085         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26086         if compiling pedantically with GCC, unless it's C99 or later.
26087         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26088         it mishandles gcc -ansi -pedantic as well.
26089         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26090         if gcc -pedantic.
26091         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26092         initializers for struct if -pedantic, unless it's C99 or later.
26093
26094 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26095
26096         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26097         Don't close an fd more than once. Identical atimes indicate
26098         success, not failure.
26099
26100 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26101
26102         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26103
26104 2006-11-23  Jim Meyering  <jim@meyering.net>
26105
26106         * build-aux/announce-gen: New file.  From coreutils.
26107
26108 2006-11-22  Jim Meyering  <jim@meyering.net>
26109
26110         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26111         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26112         (fts_read): Use a temporary to narrow the overused st_size member
26113         before using it in a switch statement.  Reported by Matthew Woehlke.
26114
26115         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26116         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26117
26118 2006-11-20  Bruno Haible  <bruno@clisp.org>
26119
26120         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26121         changequote instead of pairs of brackets.
26122         Reported by Andreas Schwab <schwab@suse.de>.
26123
26124 2006-11-21  Jim Meyering  <jim@meyering.net>
26125
26126         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26127         so as to remain compatible with older compilers.
26128         Patch from Michael Deutschmann.
26129
26130 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26131
26132         * MODULES.html.sh (File system functions): Add openat.
26133
26134         * lib/openat.h (rpl_fstatat): New macro, if
26135         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26136         (fstatat): Define to rpl_fstatat under the same conditions,
26137         unless COMPILING_FSTATAT.
26138         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26139         seems to have the bug.
26140         * lib/fstatat.c: New file.
26141         * modules/openat (Files): Add it.
26142
26143 2006-11-20  Bruno Haible  <bruno@clisp.org>
26144
26145         * Makefile: New file.
26146
26147 2006-11-20  Jim Meyering  <jim@meyering.net>
26148
26149         The beginnings of syntax-related checks for gnulib.
26150         * lib/Makefile: New file.
26151         * lib/t-idcache: New script.  Ensure that the two halves of
26152         idcache.c stay in sync.
26153
26154         * lib/idcache.c: Adjust comments in user- and group- portions to
26155         be more accurate, and to be consistent with one another.
26156
26157 2006-11-20  Jim Meyering  <jim@meyering.net>
26158
26159         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26160         continue using the flexible array member (thus, this module performs
26161         half as many malloc calls), with the addition that...
26162         (getgroup, getuser): Consistently record a non-match via an empty
26163         "name" string, and map an empty string match to a NULL return value.
26164         * modules/idcache (Depends-on): Re-add flexmember.
26165
26166         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26167         (getuidbyname, getgroup, getgidbyname): Likewise.
26168
26169         Use cleaner syntax: NULL rather than 0.
26170         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26171
26172 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26173
26174         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26175         It mishandled the case where the group was missing.
26176         Problem reported by Greg Schafer.
26177         * modules/idcache: Likewise.
26178
26179 2006-11-18  Jim Meyering  <jim@meyering.net>
26180
26181         * check-module (%exempt_header): Add exception for some
26182         conditionally-included headers.
26183
26184         * modules/i-ring (Depends-on): Add verify.
26185         (License): Change to LGPL.
26186
26187 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26188
26189         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26190         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26191         and inttostr.h.  Use snprintf rather than uinttostr, so that
26192         LGPLed code doesn't depend on GPLed.
26193
26194 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26195
26196         * modules/inline (License): Change from GPL to LGPL.
26197
26198 2006-11-17  Jim Meyering  <jim@meyering.net>
26199
26200         * modules/d-type (License): Switch to LGPL.
26201
26202 2006-11-15  Bruno Haible  <bruno@clisp.org>
26203
26204         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26205
26206 2006-11-15  Eric Blake  <ebb9@byu.net>
26207
26208         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26209         the module dependency.
26210
26211 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26212             Bruno Haible  <bruno@clisp.org>
26213
26214         * gnulib-tool (func_create_testdir): Add license consistency check.
26215
26216 2006-11-15  Eric Blake  <ebb9@byu.net>
26217
26218         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26219         random "(cached)" in configure output.
26220
26221 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26222
26223         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26224         test for conforming inttypes.h is both announced and cached.
26225
26226         * MODULES.html.sh (seen_modules, seen_files): New variables.
26227         (func_module): Rewrite to use a few less gnulib-tool and sed
26228         invocations.  Avoid a couple of quadratic algorithms for ...
26229         (missed_modules, missed_files): ... these, with ...
26230         (func_append, func_tmpdir): ... these new functions, from
26231         gnulib-tool.  Analogously, install traps for cleanup.
26232
26233         * tests/test-gc.c (main): Remove unused variables.
26234         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26235
26236 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26237
26238         * modules/inttostr (License): Change to LGPL.
26239
26240 2006-11-14  Eric Blake  <ebb9@byu.net>
26241
26242         * modules/tempname (License): Change to LGPL.
26243
26244 2006-11-14  Eric Blake  <ebb9@byu.net>
26245
26246         * doc/functions.texi (Function Portability): *printf functions on
26247         Cygwin now understand all POSIX size specifiers.
26248
26249 2006-11-14  Bruno Haible  <bruno@clisp.org>
26250
26251         * modules/c-ctype (License): Change to LGPL.
26252
26253 2006-11-12  Bruno Haible  <bruno@clisp.org>
26254
26255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26256         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26257         for GNOME libraries, for which the include files are installed in
26258         subdirectories of $prefix/include.
26259
26260 2006-11-12  Bruno Haible  <bruno@clisp.org>
26261
26262         * m4/lib-link.m4: Require at least autoconf-2.54.
26263         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26264         name to underscores for the --with option.
26265
26266 2006-11-13  Bruno Haible  <bruno@clisp.org>
26267
26268         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26269         the tests directory.
26270         Reported by Ralf Wildenhues.
26271
26272 2006-11-13  Bruno Haible  <bruno@clisp.org>
26273
26274         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26275         (func_emit_initmacro_end): Undo the override here.
26276         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26277         Works around the famous automake error in coreutils.
26278
26279 2006-11-13  Eric Blake  <ebb9@byu.net>
26280
26281         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26282         element, not its node.
26283
26284 2006-11-12  Bruno Haible  <bruno@clisp.org>
26285
26286         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26287         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26288
26289 2006-11-12  Bruno Haible  <bruno@clisp.org>
26290
26291         * gnulib-tool: New option --local-symlink.
26292         (func_usage): Document it.
26293         (lsymbolic): New variable.
26294         (func_import, func_create_testdir): If --symlink was not specified,
26295         test whether --local-symlink was specified and the file comes from
26296         the local_gnulib_dir.
26297
26298 2006-11-12  Bruno Haible  <bruno@clisp.org>
26299
26300         * gnulib-tool (func_ln): New function.
26301         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26302
26303 2006-11-12  Bruno Haible  <bruno@clisp.org>
26304
26305         Finish support for source files in subdirectories.
26306         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26307         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26308         AUTOMAKE_OPTIONS.
26309         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26310
26311 2006-11-12  Bruno Haible  <bruno@clisp.org>
26312
26313         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26314         EXTRA_lib_SOURCES augmentation.
26315         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26316
26317 2006-11-12  Jim Meyering  <jim@meyering.net>
26318
26319         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26320         file descriptors.  This also averts a failure on systems with
26321         native openat support when a traversed directory lacks "x" access.
26322         * lib/fts_.h: Include "i-ring.h"
26323         (struct FTS) [fts_fd_ring]: New member.
26324         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26325         (FCHDIR): Add parentheses.
26326         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26327         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26328         When descending, rather than simply closing the previous
26329         fts_cwd_fd value, push that file descriptor onto the ring.
26330         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26331         (fts_open): Initialize the new fd_ring member.
26332         (fts_close): Clear the ring.
26333         (fts_safe_changedir): When possible, use our new fd_ring to skip
26334         the diropen and fstat and dev/ino comparison that would normally
26335         accompany a virtual `chdir ("..")'.
26336
26337         * modules/fts (Depends-on): Add i-ring.
26338         * modules/i-ring: New module.
26339         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26340         * m4/i-ring.m4: New file.
26341
26342 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26343
26344         * gnulib-tool (func_create_testdir): Fix replacement of
26345         `build-aux' in configure.ac.  Run autotools in gltests
26346         subdirectory.
26347         (func_create_testdir, func_create_megatestdir, test): There is
26348         no need for '--force' in most autotool invocations in a new
26349         tree.  Actually fail the whole test if any of the tools, or the
26350         configure or make stages fail.
26351
26352         Sync from Automake.
26353         * build-aux/gnupload: Revert last change.  Add pointer to upload
26354         instructions of the GNU Maintenance Instructions.
26355         Suggestion by Karl Berry.
26356
26357 2006-11-10  Jim Meyering  <jim@meyering.net>
26358
26359         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26360
26361 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26362
26363         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26364         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26365         (bind_textdomain_codeset) [! ENABLE_NLS]:
26366         Evaluate all the arguments.  That way, callers get compatible behavior
26367         if the arguments have side effects.  Also, it avoids some GCC
26368         diagnostics in some cases; Joel E. Denny reported problems when Bison
26369         was configured with --enable-gcc-warnigs.
26370
26371 2006-11-10  Jim Meyering  <jim@meyering.net>
26372
26373         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26374         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26375         account.
26376
26377 2006-11-10  Jim Meyering  <jim@meyering.net>
26378
26379         * modules/inline: New file/module.
26380         * modules/xalloc (Files): Remove m4/inline.m4.
26381         (Depends-on): Add inline, instead.
26382         * modules/oset: Likewise.
26383         * modules/list: Likewise.
26384
26385 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26386
26387         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26388         Problem reported by Matthew Woehlke.
26389
26390 2006-11-09  Bruno Haible  <bruno@clisp.org>
26391
26392         * lib/tempname.c (gen_tempname): Remove variant that invokes
26393         __gen_tempname.
26394         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26395         __gen_tempname.
26396
26397 2006-11-08  Bruno Haible  <bruno@clisp.org>
26398
26399         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26400         to 'yes' instead of 'cross-compiling'.
26401
26402 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26403
26404         * lib/quotearg.h (quotearg_free): New decl.
26405         * lib/quotearg.c (quotearg_free): New function.
26406         (slot0, nslots, slotvec0, slotvec):
26407         Now file-scope so that quotearg_free can get at them.
26408
26409 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26410
26411         Sync from Automake.
26412         * build-aux/gnupload: Add missing 'gnu' to example URL.
26413         Report by Karl Berry.
26414
26415 2006-11-08  Bruno Haible  <bruno@clisp.org>
26416
26417         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26418         Suggested by Paul Eggert.
26419
26420 2006-11-08  Jim Meyering  <jim@meyering.net>
26421
26422         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26423         It's already included if !_LIBC.
26424         (fts_safe_changedir): Add a comment.
26425
26426 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26427
26428         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26429         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26430         Matthew Woehlke.
26431
26432         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26433         definitions up, to avoid colliding with change below.
26434         (static_inline) [HAVE_INLINE]: New macro.
26435         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26436         Provide extern decls when !HAVE_INLINE.  Do not define unless
26437         static_inline is defined, either by us or by xmalloc.c.  Use
26438         static_inline rather than static inline.
26439         (XCALLOC): Optimize sizeof(T) = 1 case.
26440         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26441
26442 2006-11-07  Bruno Haible  <bruno@clisp.org>
26443
26444         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26445         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26446         AC_C_INLINE.
26447         * modules/xalloc (Files): Add m4/inline.m4.
26448
26449 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26450
26451         * README: Fix typo.
26452         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26453         (Miscellanous Notes): ...from this.
26454
26455 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26456
26457         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26458         Mention that offsetof should be used instead of sizeof.
26459         From Bruno Haible.
26460
26461 2006-11-07  Bruno Haible  <bruno@clisp.org>
26462
26463         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26464
26465 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26466
26467         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26468         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26469         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26470         (gl_tree_add_before, gl_tree_add_after):
26471         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26472         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26473         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26474         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26475         (gl_linked_add_after, gl_linked_add_at): Likewise.
26476         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26477         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26478         (gl_tree_add_before, gl_tree_add_after): Likewise.
26479         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26480         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26481         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26482
26483 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26484
26485         * lib/gl_oset.h: Use C comment style, not C++ comment style.
26486
26487 2006-11-06  Bruno Haible  <bruno@clisp.org>
26488
26489         * m4/inline.m4: New file.
26490         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26491         * modules/list (Files): Add m4/inline.m4.
26492         * modules/oset (Files): Likewise.
26493
26494 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26495
26496         * lib/idcache.c: Include <stddef.h>, for offsetof.
26497         (struct userid.name): Change from char * to a flexible array member.
26498         All uses changed.
26499         * modules/idcache (Depends-on): Add flexmember.
26500
26501         * MODULES.html.sh (Core language properties): New module flexmember.
26502         * modules/flexmember, m4/flexmember.m4: New files.
26503
26504         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26505         inline functions that are identical with the old xnmalloc_inline,
26506         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
26507         that we can avoid some unnecessary integer multiplications and
26508         divisions in the common case where the element size is known at
26509         compile time.
26510         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26511         needed.
26512         (xnboundedmalloc): Remove.
26513         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26514         arguments, for consistency with rest of this header.
26515         (xcharalloc): Rewrite using XNMALLOC.
26516         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26517         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
26518         versions have been moved to lib/xalloc.h and renamed to be the
26519         non-*_inline versions.
26520         (xmalloc, xrealloc): Implement without reference to the xnmalloc
26521         and xnrealloc functions, since those functions are now inline and
26522         now call us.
26523         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26524         renaming described above.
26525         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26526         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
26527         captures the dependency in AC_C_INLINE.
26528
26529         New module canonicalize-lgpl, proposed by Charles Wilson in
26530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26531         with a few small changes afterwards.
26532         * MODULES.html.sh (File system functions): New module
26533         canonicalize-lgpl.
26534         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26535         and canonicalize_file_name.
26536         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26537         * modules/canonicalize-lgpl: New files.
26538
26539 2006-11-05  Bruno Haible  <bruno@clisp.org>
26540
26541         * gnulib-tool (func_import, func_create_testdir): Create directories
26542         also for files in subdirectories of lib/.
26543
26544 2006-11-05  Bruno Haible  <bruno@clisp.org>
26545
26546         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26547         ANSI C compliant.
26548
26549 2006-11-03  Bruno Haible  <bruno@clisp.org>
26550
26551         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26552         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26553         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26554         (xnboundedmalloc): New inline function.
26555         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26556         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26557         xmalloc.
26558         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26559         xmalloc.
26560         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26561         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26562         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26563         xmalloc.
26564         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26565         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26566         xmalloc.
26567         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26568         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26569         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26570         xmalloc.
26571         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26572         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26573         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26574         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26575         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26576         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26577         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26578
26579 2006-11-03  Bruno Haible  <bruno@clisp.org>
26580
26581         * lib/c-ctype.h [C++]: Define functions without name mangling.
26582         * lib/fwriteerror.h [C++]: Likewise.
26583         * lib/gcd.h [C++]: Likewise.
26584         * lib/linebreak.h [C++]: Likewise.
26585
26586 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26587
26588         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26589         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26590         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26591         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26592         Check for functions and headers just once.
26593         Check for declaration of canonicalize_file_name.
26594         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26595
26596 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26597
26598         * gnulib-tool (func_import): Fix typo in actioncmd.
26599
26600 2006-11-02  Bruno Haible  <bruno@clisp.org>
26601
26602         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26603         newline sequence in the Makefile.am snippet as a space, like "make"
26604         does.
26605         Reported by Roger Persson <perrog@gmail.com>.
26606
26607 2006-11-01  Bruno Haible  <bruno@clisp.org>
26608
26609         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
26610         already declared in <string.h>.
26611         * lib/strcase.h (strncasecmp): Don't declare it if yes.
26612
26613 2006-11-01  Bruno Haible  <bruno@clisp.org>
26614
26615         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
26616         * lib/strcase.h: Include <string.h>.
26617         (strcasecmp): Define to rpl_strcasecmp here.
26618
26619 2006-11-01  Bruno Haible  <bruno@clisp.org>
26620
26621         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
26622
26623 2006-11-01  Eric Blake  <ebb9@byu.net>
26624
26625         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
26626
26627         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
26628
26629 2006-10-29  Bruno Haible  <bruno@clisp.org>
26630
26631         Make it compile in C++ mode.
26632         * lib/full-write.c (full_rw): Add a cast.
26633
26634 2006-11-01  Bruno Haible  <bruno@clisp.org>
26635
26636         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
26637         be POSIX compliant.
26638         Reported by Roger Persson <perrog@gmail.com>.
26639
26640 2006-11-01  Eric Blake  <ebb9@byu.net>
26641
26642         * lib/getopt_.h: Fix comments.
26643
26644 2006-10-31  Eric Blake  <ebb9@byu.net>
26645
26646         * modules/tmpdir (Depends-on): Add sys_stat.
26647         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26648         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
26649         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
26650         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
26651         tempname.
26652
26653 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26654
26655         Avoid some C++ diagnostics reported by Bruno Haible.
26656         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
26657         xmalloc.
26658         (quotearg_alloc): Use xcharalloc rather than xmalloc.
26659         (struct slotvec): Move to top level.
26660         (quotearg_n_options): Rewrite to avoid xmalloc.
26661         * lib/xalloc.h (xcharalloc): New function.
26662         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
26663         [defined __cplusplus]: Add function template that provides result
26664         type propagation.  This part of the change is from Bruno Haible.
26665
26666 2006-10-29  Bruno Haible  <bruno@clisp.org>
26667
26668         Make it compile in C++ mode.
26669         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
26670         * lib/strnlen1.c (strnlen1): Cast memchr result.
26671         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
26672         * lib/clean-temp.c (string_equals, string_hash): Add casts.
26673         (create_temp_dir): Rename local variable 'template'.
26674         (compile_csharp_using_sscli): Add cast.
26675         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
26676         * lib/findprog.c (find_in_path): Likewise.
26677         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
26678         * lib/wait-process.c (register_slave_subprocess): Likewise.
26679
26680 2006-10-22  Bruno Haible  <bruno@clisp.org>
26681
26682         * modules/tsearch: New file.
26683         * lib/tsearch.h: New file.
26684         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
26685         * m4/tsearch.m4: New file.
26686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
26687
26688 2006-10-29  Eric Blake  <ebb9@byu.net>
26689
26690         * lib/arcfour.c: Assume config.h.
26691         * lib/arctwo.c: Likewise.
26692         * lib/base64.c: Likewise.
26693         * lib/check-version.c: Likewise.
26694         * lib/crc.c: Likewise.
26695         * lib/des.c: Likewise.
26696         * lib/gc-gnulib.c: Likewise.
26697         * lib/gc-libgcrypt.c: Likewise.
26698         * lib/gc-pbkdf2-sha1.c: Likewise.
26699         * lib/getaddrinfo.c: Likewise.
26700         * lib/getdelim.c: Likewise.
26701         * lib/getline.c: Likewise.
26702         * lib/hmac-md5.c: Likewise.
26703         * lib/hmac-sha1.c: Likewise.
26704         * lib/iconvme.c: Likewise.
26705         * lib/md2.c: Likewise.
26706         * lib/md4.c: Likewise.
26707         * lib/memxor.c: Likewise.
26708         * lib/read-file.c: Likewise.
26709         * lib/readline.c: Likewise.
26710         * lib/rijndael-alg-fst.c: Likewise.
26711         * lib/rijndael-api-fst.c: Likewise.
26712         * lib/xgetdomainname.c: Likewise.
26713
26714 2006-10-28  Eric Blake  <ebb9@byu.net>
26715
26716         * lib/xstrndup.c: Assume config.h.
26717
26718 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26719
26720         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
26721         stat-macros.h is now for our own macros, whereas stat_h is for
26722         macros in the <sys/stat.h> name space.
26723         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
26724         (STAT_MACROS_H): Remove.
26725         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
26726         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
26727         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
26728         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
26729         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
26730         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
26731         Move these macros to ...
26732         * lib/stat_.h: here.  Don't include stat-macros.h.
26733         * lib/canonicalize.c: Don't include stat-macros.h.
26734         * lib/chown.c: Likewise.
26735         * lib/euidaccess.c: Likewise.
26736         * lib/file-type.c: Likewise.
26737         * lib/filemode.c: Likewise.
26738         * lib/glob.c: Likewise.
26739         * lib/isapipe.c: Likewise.
26740         * lib/lchown.c: Likewise.
26741         * lib/lstat.c: Likewise.
26742         * lib/mkdir-p.c: Likewise.
26743         * lib/rmdir.c: Likewise.
26744         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
26745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
26746         unless mkdir isn't declared, to speed up 'configure'.
26747         Always create sys/stat.h, since it's unlikely any real sys/stat.h
26748         would define all the S_* symbols.
26749         * modules/canonicalize (Depends-on):
26750         Depend on sys_stat, not stat-macros.
26751         * modules/chown: Likewise.
26752         * modules/euidaccess: Likewise.
26753         * modules/filemode: Likewise.
26754         * modules/file-type: Likewise.
26755         * modules/glob: Likewise.
26756         * modules/isapipe: Likewise.
26757         * modules/lchown: Likewise.
26758         * modules/lstat: Likewise.
26759         * modules/mkancesdirs: Likewise.
26760         * modules/rmdir: Likewise.
26761         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
26762         * modules/modechange: Likewise.
26763         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
26764         (configure.ac): Remove gl_STAT_MACROS.
26765         * modules/sys_stat (Depends-on): Remove stat-macros.
26766
26767 2006-10-27  Bruno Haible  <bruno@clisp.org>
26768
26769         * m4/signed.m4: Remove file.
26770         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
26771         invocation.
26772         * modules/vasnprintf (Files): Remove m4/signed.m4.
26773
26774 2006-10-27  Bruno Haible  <bruno@clisp.org>
26775
26776         Update to GNU gettext 0.16.
26777         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
26778         m4/inttypes-h.m4, m4/signed.m4.
26779         * m4/gettext.m4: Update to GNU gettext 0.16.
26780         * m4/intl.m4: New file, from GNU gettext.
26781         * m4/intldir.m4: New file, from GNU gettext.
26782         * config/srclist.txt: Update
26783
26784 2006-10-27  Eric Blake  <ebb9@byu.net>
26785
26786         * MODULES.html.sh: Document tempname.
26787         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
26788         dependencies.
26789         (Files): Move lib/tempname.c...
26790         * modules/tempname: ...to this new module.
26791         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
26792         (gl_PREREQ_TEMPNAME): Move...
26793         * m4/tempname.m4: ...to this new file.
26794         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
26795         * modules/sys_stat (Depends-on): Add stat-macros.
26796         * lib/stat_.h (includes): Pick up stat macros.
26797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
26798         if stat macros are broken.
26799         * lib/tempname.c (includes): No need to include "stat-macros.h".
26800         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
26801         (direxists, __path_search) [!_LIBC]: Don't compile these in
26802         gnulib; the tmpdir module covers that.
26803         * lib/tempname.h: New file.
26804
26805 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26806
26807         * COPYING: Explain how gnulib-tool converts licence headers.
26808         Almost all wording by Eric Blake.
26809
26810 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         * lib/mbchar.h (is_basic_table): Make read-only.
26813         * lib/mbchar.c (is_basic_table): Likewise.
26814         Reported by John Darrington.
26815
26816 2006-10-25  Bruno Haible  <bruno@clisp.org>
26817
26818         * lib/progname.h (set_program_name): Undefine before defining.
26819
26820 2006-10-25  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
26823         false for non-gcc C++ compilers.
26824         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26825
26826 2006-10-24  Bruno Haible  <bruno@clisp.org>
26827
26828         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
26829         iconv implementations like Irix iconv.
26830
26831 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26832
26833         * modules/vararrays: New file.
26834         * m4/vararrays.m4: New file, taken from diffutils.
26835         * MODULES.html.sh: New module vararrays.
26836
26837 2006-10-24  Karl Berry  <karl@gnu.org>
26838
26839         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
26840         Don't call GNU Unix.
26841
26842 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26843
26844         * users.txt: Add Libtool.
26845
26846         Sync from Libtool:
26847
26848         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26849
26850         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
26851         to gnulib's policy of including config.h unconditionally.
26852
26853 2006-10-24  Bruno Haible  <bruno@clisp.org>
26854
26855         * modules/wcwidth (Files): Add m4/wint_t.m4.
26856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
26857         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
26858
26859 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26860
26861         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
26862         to pacify GCC with some -W flags enabled.  Problem reported by
26863         Bruno Haible.
26864
26865 2006-10-24  Jim Meyering  <jim@meyering.net>
26866
26867         * MODULES.html.sh: Remove uinttostr.  It's not a module.
26868         Reported by Karl Berry.
26869
26870 2006-10-23  Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
26873
26874 2006-10-24  Bruno Haible  <bruno@clisp.org>
26875
26876         * lib/gl_list.h: Use C comment style, not C++ comment style.
26877
26878 2006-10-23  Eric Blake  <ebb9@byu.net>
26879
26880         * lib/getaddrinfo.c (includes): Add missing include.
26881
26882 2006-10-23  Bruno Haible  <bruno@clisp.org>
26883             Paul Eggert  <eggert@cs.ucla.edu>
26884
26885         Ability to rename obstack_free.
26886         * lib/obstack.h (__obstack_free): New macro. Declare instead of
26887         obstack_free.
26888         (obstack_free): Invoke the __obstack_free macro.
26889         * lib/obstack.c (obstack_free): Use __obstack_free macro.
26890
26891 2006-10-23  Bruno Haible  <bruno@clisp.org>
26892             Paul Eggert  <eggert@cs.ucla.edu>
26893
26894         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
26895         __argc, __argv from the declaration. (They are defined as macros on
26896         mingw.)
26897
26898 2006-10-22  Bruno Haible  <bruno@clisp.org>
26899
26900         * doc/gnulib-intro.texi: New file.
26901         * doc/gnulib.texi: Include it.
26902
26903 2006-10-21  Bruno Haible  <bruno@clisp.org>
26904
26905         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
26906         "Introduction", "Miscellanous Notes", "Particular Modules".
26907
26908 2006-10-21  Bruno Haible  <bruno@clisp.org>
26909
26910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26911         Change mostlyclean-local rule to avoid sh syntax error from bash
26912         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
26913
26914 2006-10-23  Jim Meyering  <jim@meyering.net>
26915
26916         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
26917         in place of snprintf.
26918
26919         * modules/inttostr (Files): Add lib/uinttostr.c.
26920         * lib/uinttostr.c (inttostr): New file/function.
26921         * lib/inttostr.h (uinttostr): Declare.
26922         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
26923         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26924         Add uinttostr.
26925         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
26926
26927 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
26928
26929         * lib/canonicalize.c (ELOOP): Define if not already defined.
26930         Problem reported by Bruno Haible in
26931         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
26932
26933 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
26934
26935         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
26936         Problem reported by Perry Smith and Ville Laurikari.
26937
26938         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
26939         uses.
26940
26941 2006-10-19  Bruno Haible  <bruno@clisp.org>
26942
26943         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
26944         for mingw.
26945
26946 2006-10-19  Bruno Haible  <bruno@clisp.org>
26947
26948         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
26949         Needed for mingw.
26950
26951 2006-10-19  Bruno Haible  <bruno@clisp.org>
26952
26953         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
26954
26955 2006-10-19  Bruno Haible  <bruno@clisp.org>
26956
26957         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
26958         it.
26959
26960 2006-10-19  Bruno Haible  <bruno@clisp.org>
26961
26962         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
26963         invocation.
26964
26965 2006-10-19  Bruno Haible  <bruno@clisp.org>
26966
26967         * gnulib-tool (func_create_testdir): Don't include ftruncate and
26968         mountlist by default.
26969
26970 2006-10-16  Bruno Haible  <bruno@clisp.org>
26971
26972         * lib/c-strstr.c: Include c-strstr.h.
26973
26974 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26975
26976         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
26977         in a slash.
26978
26979 2006-10-18  Bruno Haible  <bruno@clisp.org>
26980
26981         * lib/lock.h [C++]: Wrap definitions in extern "C".
26982
26983 2006-10-18  Bruno Haible  <bruno@clisp.org>
26984
26985         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
26986         gl_LIBOBJS list.
26987
26988 2006-10-18  Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
26991
26992 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26993
26994         * lib/xstrtol.h: Include gettext.h.
26995         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
26996         Problem reported by Eric Blake.
26997         * modules/xstrtol (Depends-on): Add gettext-h.
26998
26999 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27000
27001         * lib/strftime.c (advance): New macro.
27002         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27003         incomplete type, so you can't add 0 to it.  Problem and patch
27004         reported by Eelco Dolstra for dietlibc.
27005
27006 2006-10-18  Jim Meyering  <jim@meyering.net>
27007
27008         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27009         type for a local, and rename it: s/up/user_proc/.
27010
27011 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27012
27013         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27014         READ_UTMP_USER_PROCESS.
27015         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27016
27017 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27018
27019         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27020         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27021
27022 2006-10-17  Eric Blake  <ebb9@byu.net>
27023
27024         * lib/sigprocmask.c (sigprocmask): Fix typo.
27025
27026         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27027
27028         * modules/clean-temp (Makefile.am): Don't add to make output...
27029         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27030         config.h.
27031
27032 2006-10-17  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27035         differently if DEFAULT_TEXT_DOMAIN is set.
27036
27037 2006-10-16  Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/clean-temp.c: Include fwriteerror.h.
27040
27041 2006-10-16  Bruno Haible  <bruno@clisp.org>
27042
27043         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27044
27045 2006-10-16  Bruno Haible  <bruno@clisp.org>
27046
27047         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27048         * lib/sigprocmask.h: Include <sys/types.h>.
27049         (sigset_t): Use the system's definition if present.
27050
27051 2006-10-17  Eric Blake  <ebb9@byu.net>
27052
27053         * lib/xvasprintf.c (includes): Assume config.h.
27054         * lib/xasprintf.c (includes): Likewise.
27055
27056 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27057
27058         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27059         at least as wide as intmax_t.
27060
27061 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27062
27063         (Imported from Automake.)
27064         * build-aux/gnupload: Update to version 1.1 of directive file.
27065
27066 2006-10-16  Eric Blake  <ebb9@byu.net>
27067
27068         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27069         match Automake 1.10a.
27070
27071 2006-10-14  Bruno Haible  <bruno@clisp.org>
27072
27073         * modules/sigprocmask: New file.
27074         * lib/sigprocmask.h: New file.
27075         * lib/sigprocmask.c: New file.
27076         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27077         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27078         request sigprocmask.o.
27079         (gl_PREREQ_SIGPROCMASK): New macro.
27080         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27081         (Depends-on): Add sigprocmask.
27082         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27083         gt_SIGNALBLOCKING. Test for 'raise' only once.
27084         * lib/fatal-signal.c: Include sigprocmask.h.
27085         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27086         unblock_fatal_signals): Define always.
27087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27088         sigprocmask.
27089
27090 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27091
27092         Sync from Automake.
27093         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27094         which incorrectly sets the mode of an existing destination
27095         directory.  In some cases the unpatched install-sh could do the
27096         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27097         system.  We hope this is rare in practice, but it's clearly worth
27098         fixing.  Problem reported by Alex Unleashed in
27099         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27100         Also, don't bother to check for -m bugs unless we're using -m;
27101         suggested by Stepan Kasal.
27102
27103 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27104
27105         Sync from Automake.
27106         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27107         `-c' flag, so they appear at the same position as in %FASTDEP%
27108         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27109         which ignores unknown options only after the first non-option.
27110         Bug report against M4 by Nelson H. F. Beebe.
27111
27112 2006-10-13  Jim Meyering  <jim@meyering.net>
27113
27114         Fix a bug in yesterday's change.
27115         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27116         p->fts_statp->st_dev would be used uninitialized.
27117         Ensures that we always call fts_stat on the very first entry.
27118         Miklos Szeredi reported that find -xdev stopped working.
27119
27120 2006-10-12  Bruno Haible  <bruno@clisp.org>
27121
27122         * gnulib-tool (func_get_automake_snippet): Append an automatically
27123         computed EXTRA_DIST augmentation.
27124         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27125         * modules/alloca-opt (Makefile.am): Likewise.
27126         * modules/allocsa (Makefile.am): Likewise.
27127         * modules/arcfour (Makefile.am): Likewise.
27128         * modules/arctwo (Makefile.am): Likewise.
27129         * modules/argmatch (Makefile.am): Likewise.
27130         * modules/argz (Makefile.am): Likewise.
27131         * modules/atexit (Makefile.am): Likewise.
27132         * modules/backupfile (Makefile.am): Likewise.
27133         * modules/byteswap (Makefile.am): Likewise.
27134         * modules/c-strtod (Makefile.am): Likewise.
27135         * modules/c-strtold (Makefile.am): Likewise.
27136         * modules/calloc (Makefile.am): Likewise.
27137         * modules/canon-host (Makefile.am): Likewise.
27138         * modules/canonicalize (Makefile.am): Likewise.
27139         * modules/chdir-long (Makefile.am): Likewise.
27140         * modules/chdir-safer (Makefile.am): Likewise.
27141         * modules/check-version (Makefile.am): Likewise.
27142         * modules/chown (Makefile.am): Likewise.
27143         * modules/cloexec (Makefile.am): Likewise.
27144         * modules/close-stream (Makefile.am): Likewise.
27145         * modules/closeout (Makefile.am): Likewise.
27146         * modules/crc (Makefile.am): Likewise.
27147         * modules/csharpexec (Makefile.am): Likewise.
27148         * modules/cycle-check (Makefile.am): Likewise.
27149         * modules/des (Makefile.am): Likewise.
27150         * modules/dev-ino (Makefile.am): Likewise.
27151         * modules/dirfd (Makefile.am): Likewise.
27152         * modules/dirname (Makefile.am): Likewise.
27153         * modules/dup2 (Makefile.am): Likewise.
27154         * modules/eealloc (Makefile.am): Likewise.
27155         * modules/error (Makefile.am): Likewise.
27156         * modules/euidaccess (Makefile.am): Likewise.
27157         * modules/exclude (Makefile.am): Likewise.
27158         * modules/exitfail (Makefile.am): Likewise.
27159         * modules/fcntl-safer (Makefile.am): Likewise.
27160         * modules/fcntl (Makefile.am): Likewise.
27161         * modules/file-type (Makefile.am): Likewise.
27162         * modules/fileblocks (Makefile.am): Likewise.
27163         * modules/filemode (Makefile.am): Likewise.
27164         * modules/filenamecat (Makefile.am): Likewise.
27165         * modules/fnmatch (Makefile.am): Likewise.
27166         * modules/fopen-safer (Makefile.am): Likewise.
27167         * modules/fpending (Makefile.am): Likewise.
27168         * modules/fprintftime (Makefile.am): Likewise.
27169         * modules/free (Makefile.am): Likewise.
27170         * modules/fsusage (Makefile.am): Likewise.
27171         * modules/ftruncate (Makefile.am): Likewise.
27172         * modules/fts (Makefile.am): Likewise.
27173         * modules/gc-arcfour (Makefile.am): Likewise.
27174         * modules/gc-des (Makefile.am): Likewise.
27175         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27176         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27177         * modules/gc-md4 (Makefile.am): Likewise.
27178         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27179         * modules/gc-sha1 (Makefile.am): Likewise.
27180         * modules/gc (Makefile.am): Likewise.
27181         * modules/getaddrinfo (Makefile.am): Likewise.
27182         * modules/getcwd (Makefile.am): Likewise.
27183         * modules/getdelim (Makefile.am): Likewise.
27184         * modules/getdomainname (Makefile.am): Likewise.
27185         * modules/getgroups (Makefile.am): Likewise.
27186         * modules/gethostname (Makefile.am): Likewise.
27187         * modules/gethrxtime (Makefile.am): Likewise.
27188         * modules/getline (Makefile.am): Likewise.
27189         * modules/getloadavg (Makefile.am): Likewise.
27190         * modules/getlogin_r (Makefile.am): Likewise.
27191         * modules/getndelim2 (Makefile.am): Likewise.
27192         * modules/getopt (Makefile.am): Likewise.
27193         * modules/getpagesize (Makefile.am): Likewise.
27194         * modules/getpass-gnu (Makefile.am): Likewise.
27195         * modules/getpass (Makefile.am): Likewise.
27196         * modules/getsubopt (Makefile.am): Likewise.
27197         * modules/gettime (Makefile.am): Likewise.
27198         * modules/gettimeofday (Makefile.am): Likewise.
27199         * modules/getugroups (Makefile.am): Likewise.
27200         * modules/getusershell (Makefile.am): Likewise.
27201         * modules/glob (Makefile.am): Likewise.
27202         * modules/group-member (Makefile.am): Likewise.
27203         * modules/hard-locale (Makefile.am): Likewise.
27204         * modules/hash (Makefile.am): Likewise.
27205         * modules/hmac-md5 (Makefile.am): Likewise.
27206         * modules/hmac-sha1 (Makefile.am): Likewise.
27207         * modules/human (Makefile.am): Likewise.
27208         * modules/idcache (Makefile.am): Likewise.
27209         * modules/imaxabs (Makefile.am): Likewise.
27210         * modules/imaxdiv (Makefile.am): Likewise.
27211         * modules/inet_ntop (Makefile.am): Likewise.
27212         * modules/inet_pton (Makefile.am): Likewise.
27213         * modules/intprops (Makefile.am): Likewise.
27214         * modules/inttostr (Makefile.am): Likewise.
27215         * modules/inttypes (Makefile.am): Likewise.
27216         * modules/isapipe (Makefile.am): Likewise.
27217         * modules/javaversion (Makefile.am): Likewise.
27218         * modules/lchmod (Makefile.am): Likewise.
27219         * modules/lchown (Makefile.am): Likewise.
27220         * modules/localcharset (Makefile.am): Likewise.
27221         * modules/long-options (Makefile.am): Likewise.
27222         * modules/lstat (Makefile.am): Likewise.
27223         * modules/malloc (Makefile.am): Likewise.
27224         * modules/mathl (Makefile.am): Likewise.
27225         * modules/mbchar (Makefile.am): Likewise.
27226         * modules/md2 (Makefile.am): Likewise.
27227         * modules/md4 (Makefile.am): Likewise.
27228         * modules/md5 (Makefile.am): Likewise.
27229         * modules/memcasecmp (Makefile.am): Likewise.
27230         * modules/memchr (Makefile.am): Likewise.
27231         * modules/memcmp (Makefile.am): Likewise.
27232         * modules/memcoll (Makefile.am): Likewise.
27233         * modules/memcpy (Makefile.am): Likewise.
27234         * modules/memmem (Makefile.am): Likewise.
27235         * modules/memmove (Makefile.am): Likewise.
27236         * modules/mempcpy (Makefile.am): Likewise.
27237         * modules/memrchr (Makefile.am): Likewise.
27238         * modules/memset (Makefile.am): Likewise.
27239         * modules/memxor (Makefile.am): Likewise.
27240         * modules/mkancesdirs (Makefile.am): Likewise.
27241         * modules/mkdir-p (Makefile.am): Likewise.
27242         * modules/mkdir (Makefile.am): Likewise.
27243         * modules/mkdtemp (Makefile.am): Likewise.
27244         * modules/mkstemp (Makefile.am): Likewise.
27245         * modules/mktime (Makefile.am): Likewise.
27246         * modules/modechange (Makefile.am): Likewise.
27247         * modules/mountlist (Makefile.am): Likewise.
27248         * modules/nanosleep (Makefile.am): Likewise.
27249         * modules/obstack (Makefile.am): Likewise.
27250         * modules/openat (Makefile.am): Likewise.
27251         * modules/pagealign_alloc (Makefile.am): Likewise.
27252         * modules/pathmax (Makefile.am): Likewise.
27253         * modules/physmem (Makefile.am): Likewise.
27254         * modules/poll (Makefile.am): Likewise.
27255         * modules/posixtm (Makefile.am): Likewise.
27256         * modules/posixver (Makefile.am): Likewise.
27257         * modules/putenv (Makefile.am): Likewise.
27258         * modules/quote (Makefile.am): Likewise.
27259         * modules/quotearg (Makefile.am): Likewise.
27260         * modules/raise (Makefile.am): Likewise.
27261         * modules/read-file (Makefile.am): Likewise.
27262         * modules/readline (Makefile.am): Likewise.
27263         * modules/readlink (Makefile.am): Likewise.
27264         * modules/readtokens (Makefile.am): Likewise.
27265         * modules/readutmp (Makefile.am): Likewise.
27266         * modules/realloc (Makefile.am): Likewise.
27267         * modules/regex (Makefile.am): Likewise.
27268         * modules/rename-dest-slash (Makefile.am): Likewise.
27269         * modules/rename (Makefile.am): Likewise.
27270         * modules/rijndael (Makefile.am): Likewise.
27271         * modules/rmdir (Makefile.am): Likewise.
27272         * modules/rpmatch (Makefile.am): Likewise.
27273         * modules/safe-read (Makefile.am): Likewise.
27274         * modules/safe-write (Makefile.am): Likewise.
27275         * modules/same-inode (Makefile.am): Likewise.
27276         * modules/same (Makefile.am): Likewise.
27277         * modules/save-cwd (Makefile.am): Likewise.
27278         * modules/savedir (Makefile.am): Likewise.
27279         * modules/setenv (Makefile.am): Likewise.
27280         * modules/settime (Makefile.am): Likewise.
27281         * modules/sha1 (Makefile.am): Likewise.
27282         * modules/sig2str (Makefile.am): Likewise.
27283         * modules/snprintf (Makefile.am): Likewise.
27284         * modules/stat-macros (Makefile.am): Likewise.
27285         * modules/stat-time (Makefile.am): Likewise.
27286         * modules/stdbool (Makefile.am): Likewise.
27287         * modules/stdint (Makefile.am): Likewise.
27288         * modules/stdlib-safer (Makefile.am): Likewise.
27289         * modules/stpcpy (Makefile.am): Likewise.
27290         * modules/stpncpy (Makefile.am): Likewise.
27291         * modules/strcase (Makefile.am): Likewise.
27292         * modules/strcasestr (Makefile.am): Likewise.
27293         * modules/strchrnul (Makefile.am): Likewise.
27294         * modules/strcspn (Makefile.am): Likewise.
27295         * modules/strdup (Makefile.am): Likewise.
27296         * modules/strerror (Makefile.am): Likewise.
27297         * modules/strftime (Makefile.am): Likewise.
27298         * modules/strndup (Makefile.am): Likewise.
27299         * modules/strnlen (Makefile.am): Likewise.
27300         * modules/strpbrk (Makefile.am): Likewise.
27301         * modules/strsep (Makefile.am): Likewise.
27302         * modules/strstr (Makefile.am): Likewise.
27303         * modules/strtod (Makefile.am): Likewise.
27304         * modules/strtoimax (Makefile.am): Likewise.
27305         * modules/strtok_r (Makefile.am): Likewise.
27306         * modules/strtol (Makefile.am): Likewise.
27307         * modules/strtoll (Makefile.am): Likewise.
27308         * modules/strtoul (Makefile.am): Likewise.
27309         * modules/strtoull (Makefile.am): Likewise.
27310         * modules/strtoumax (Makefile.am): Likewise.
27311         * modules/strverscmp (Makefile.am): Likewise.
27312         * modules/sys_socket (Makefile.am): Likewise.
27313         * modules/sys_stat (Makefile.am): Likewise.
27314         * modules/sysexits (Makefile.am): Likewise.
27315         * modules/time_r (Makefile.am): Likewise.
27316         * modules/timegm (Makefile.am): Likewise.
27317         * modules/timespec (Makefile.am): Likewise.
27318         * modules/tmpfile-safer (Makefile.am): Likewise.
27319         * modules/trim (Makefile.am): Likewise.
27320         * modules/unistd-safer (Makefile.am): Likewise.
27321         * modules/unlinkdir (Makefile.am): Likewise.
27322         * modules/unlocked-io (Makefile.am): Likewise.
27323         * modules/userspec (Makefile.am): Likewise.
27324         * modules/utime (Makefile.am): Likewise.
27325         * modules/utimecmp (Makefile.am): Likewise.
27326         * modules/utimens (Makefile.am): Likewise.
27327         * modules/vasnprintf (Makefile.am): Likewise.
27328         * modules/vasprintf (Makefile.am): Likewise.
27329         * modules/vsnprintf (Makefile.am): Likewise.
27330         * modules/xalloc (Makefile.am): Likewise.
27331         * modules/xgetcwd (Makefile.am): Likewise.
27332         * modules/xnanosleep (Makefile.am): Likewise.
27333         * modules/xreadlink (Makefile.am): Likewise.
27334         * modules/xstrtod (Makefile.am): Likewise.
27335         * modules/xstrtol (Makefile.am): Likewise.
27336         * modules/xstrtold (Makefile.am): Likewise.
27337         * modules/yesno (Makefile.am): Likewise.
27338         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27339
27340 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27341
27342         * modules/error (Makefile.am): Distribute files through
27343         EXTRA_DIST, not lib_SOURCES.
27344
27345 2006-10-12  Eric Blake  <ebb9@byu.net>
27346
27347         * modules/error (Makefile.am): Distribute files in /lib.
27348         * modules/obstack (Makefile.am): Likewise.
27349
27350 2006-10-12  Bruno Haible  <bruno@clisp.org>
27351
27352         * modules/acl (Makefile.am): Distribute all files in lib/ through
27353         EXTRA_DIST.
27354         * modules/arcfour (Makefile.am): Likewise.
27355         * modules/arctwo (Makefile.am): Likewise.
27356         * modules/argmatch (Makefile.am): Likewise.
27357         * modules/argz (Makefile.am): Likewise.
27358         * modules/atexit (Makefile.am): Likewise.
27359         * modules/backupfile (Makefile.am): Likewise.
27360         * modules/c-strtod (Makefile.am): Likewise.
27361         * modules/c-strtold (Makefile.am): Likewise.
27362         * modules/calloc (Makefile.am): Likewise.
27363         * modules/canon-host (Makefile.am): Likewise.
27364         * modules/canonicalize (Makefile.am): Likewise.
27365         * modules/chdir-long (Makefile.am): Likewise.
27366         * modules/chdir-safer (Makefile.am): Likewise.
27367         * modules/check-version (Makefile.am): Likewise.
27368         * modules/chown (Makefile.am): Likewise.
27369         * modules/cloexec (Makefile.am): Likewise.
27370         * modules/close-stream (Makefile.am): Likewise.
27371         * modules/closeout (Makefile.am): Likewise.
27372         * modules/crc (Makefile.am): Likewise.
27373         * modules/cycle-check (Makefile.am): Likewise.
27374         * modules/des (Makefile.am): Likewise.
27375         * modules/dirfd (Makefile.am): Likewise.
27376         * modules/dirname (Makefile.am): Likewise.
27377         * modules/dup2 (Makefile.am): Likewise.
27378         * modules/euidaccess (Makefile.am): Likewise.
27379         * modules/exclude (Makefile.am): Likewise.
27380         * modules/exitfail (Makefile.am): Likewise.
27381         * modules/fcntl-safer (Makefile.am): Likewise.
27382         * modules/file-type (Makefile.am): Likewise.
27383         * modules/fileblocks (Makefile.am): Likewise.
27384         * modules/filemode (Makefile.am): Likewise.
27385         * modules/filenamecat (Makefile.am): Likewise.
27386         * modules/fnmatch (Makefile.am): Likewise.
27387         * modules/fopen-safer (Makefile.am): Likewise.
27388         * modules/fpending (Makefile.am): Likewise.
27389         * modules/fprintftime (Makefile.am): Likewise.
27390         * modules/free (Makefile.am): Likewise.
27391         * modules/fsusage (Makefile.am): Likewise.
27392         * modules/ftruncate (Makefile.am): Likewise.
27393         * modules/fts (Makefile.am): Likewise.
27394         * modules/gc (Makefile.am): Likewise.
27395         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27396         * modules/getaddrinfo (Makefile.am): Likewise.
27397         * modules/getcwd (Makefile.am): Likewise.
27398         * modules/getdelim (Makefile.am): Likewise.
27399         * modules/getdomainname (Makefile.am): Likewise.
27400         * modules/getgroups (Makefile.am): Likewise.
27401         * modules/gethostname (Makefile.am): Likewise.
27402         * modules/gethrxtime (Makefile.am): Likewise.
27403         * modules/getline (Makefile.am): Likewise.
27404         * modules/getloadavg (Makefile.am): Likewise.
27405         * modules/getlogin_r (Makefile.am): Likewise.
27406         * modules/getopt (Makefile.am): Likewise.
27407         * modules/getpass (Makefile.am): Likewise.
27408         * modules/getpass-gnu (Makefile.am): Likewise.
27409         * modules/getsubopt (Makefile.am): Likewise.
27410         * modules/gettime (Makefile.am): Likewise.
27411         * modules/gettimeofday (Makefile.am): Likewise.
27412         * modules/getugroups (Makefile.am): Likewise.
27413         * modules/getusershell (Makefile.am): Likewise.
27414         * modules/glob (Makefile.am): Likewise.
27415         * modules/group-member (Makefile.am): Likewise.
27416         * modules/hard-locale (Makefile.am): Likewise.
27417         * modules/hash (Makefile.am): Likewise.
27418         * modules/hmac-md5 (Makefile.am): Likewise.
27419         * modules/hmac-sha1 (Makefile.am): Likewise.
27420         * modules/human (Makefile.am): Likewise.
27421         * modules/idcache (Makefile.am): Likewise.
27422         * modules/imaxabs (Makefile.am): Likewise.
27423         * modules/imaxdiv (Makefile.am): Likewise.
27424         * modules/inet_ntop (Makefile.am): Likewise.
27425         * modules/inet_pton (Makefile.am): Likewise.
27426         * modules/inttostr (Makefile.am): Likewise.
27427         * modules/isapipe (Makefile.am): Likewise.
27428         * modules/lchown (Makefile.am): Likewise.
27429         * modules/long-options (Makefile.am): Likewise.
27430         * modules/lstat (Makefile.am): Likewise.
27431         * modules/malloc (Makefile.am): Likewise.
27432         * modules/mathl (Makefile.am): Likewise.
27433         * modules/mbchar (Makefile.am): Likewise.
27434         * modules/md2 (Makefile.am): Likewise.
27435         * modules/md4 (Makefile.am): Likewise.
27436         * modules/md5 (Makefile.am): Likewise.
27437         * modules/memcasecmp (Makefile.am): Likewise.
27438         * modules/memchr (Makefile.am): Likewise.
27439         * modules/memcmp (Makefile.am): Likewise.
27440         * modules/memcoll (Makefile.am): Likewise.
27441         * modules/memcpy (Makefile.am): Likewise.
27442         * modules/memmem (Makefile.am): Likewise.
27443         * modules/memmove (Makefile.am): Likewise.
27444         * modules/mempcpy (Makefile.am): Likewise.
27445         * modules/memrchr (Makefile.am): Likewise.
27446         * modules/memset (Makefile.am): Likewise.
27447         * modules/memxor (Makefile.am): Likewise.
27448         * modules/mkancesdirs (Makefile.am): Likewise.
27449         * modules/mkdir (Makefile.am): Likewise.
27450         * modules/mkdir-p (Makefile.am): Likewise.
27451         * modules/mkdtemp (Makefile.am): Likewise.
27452         * modules/mkstemp (Makefile.am): Likewise.
27453         * modules/mktime (Makefile.am): Likewise.
27454         * modules/modechange (Makefile.am): Likewise.
27455         * modules/mountlist (Makefile.am): Likewise.
27456         * modules/nanosleep (Makefile.am): Likewise.
27457         * modules/openat (Makefile.am): Likewise.
27458         * modules/pagealign_alloc (Makefile.am): Likewise.
27459         * modules/physmem (Makefile.am): Likewise.
27460         * modules/poll (Makefile.am): Likewise.
27461         * modules/posixtm (Makefile.am): Likewise.
27462         * modules/posixver (Makefile.am): Likewise.
27463         * modules/putenv (Makefile.am): Likewise.
27464         * modules/quote (Makefile.am): Likewise.
27465         * modules/quotearg (Makefile.am): Likewise.
27466         * modules/raise (Makefile.am): Likewise.
27467         * modules/read-file (Makefile.am): Likewise.
27468         * modules/readline (Makefile.am): Likewise.
27469         * modules/readlink (Makefile.am): Likewise.
27470         * modules/readtokens (Makefile.am): Likewise.
27471         * modules/readutmp (Makefile.am): Likewise.
27472         * modules/realloc (Makefile.am): Likewise.
27473         * modules/regex (Makefile.am): Likewise.
27474         * modules/rename (Makefile.am): Likewise.
27475         * modules/rename-dest-slash (Makefile.am): Likewise.
27476         * modules/rijndael (Makefile.am): Likewise.
27477         * modules/rmdir (Makefile.am): Likewise.
27478         * modules/rpmatch (Makefile.am): Likewise.
27479         * modules/safe-read (Makefile.am): Likewise.
27480         * modules/safe-write (Makefile.am): Likewise.
27481         * modules/same (Makefile.am): Likewise.
27482         * modules/save-cwd (Makefile.am): Likewise.
27483         * modules/savedir (Makefile.am): Likewise.
27484         * modules/setenv (Makefile.am): Likewise.
27485         * modules/settime (Makefile.am): Likewise.
27486         * modules/sha1 (Makefile.am): Likewise.
27487         * modules/sig2str (Makefile.am): Likewise.
27488         * modules/snprintf (Makefile.am): Likewise.
27489         * modules/stdlib-safer (Makefile.am): Likewise.
27490         * modules/stpcpy (Makefile.am): Likewise.
27491         * modules/stpncpy (Makefile.am): Likewise.
27492         * modules/strcase (Makefile.am): Likewise.
27493         * modules/strcasestr (Makefile.am): Likewise.
27494         * modules/strchrnul (Makefile.am): Likewise.
27495         * modules/strcspn (Makefile.am): Likewise.
27496         * modules/strdup (Makefile.am): Likewise.
27497         * modules/strerror (Makefile.am): Likewise.
27498         * modules/strftime (Makefile.am): Likewise.
27499         * modules/strndup (Makefile.am): Likewise.
27500         * modules/strnlen (Makefile.am): Likewise.
27501         * modules/strpbrk (Makefile.am): Likewise.
27502         * modules/strsep (Makefile.am): Likewise.
27503         * modules/strstr (Makefile.am): Likewise.
27504         * modules/strtod (Makefile.am): Likewise.
27505         * modules/strtoimax (Makefile.am): Likewise.
27506         * modules/strtok_r (Makefile.am): Likewise.
27507         * modules/strtol (Makefile.am): Likewise.
27508         * modules/strtoll (Makefile.am): Likewise.
27509         * modules/strtoul (Makefile.am): Likewise.
27510         * modules/strtoull (Makefile.am): Likewise.
27511         * modules/strtoumax (Makefile.am): Likewise.
27512         * modules/strverscmp (Makefile.am): Likewise.
27513         * modules/time_r (Makefile.am): Likewise.
27514         * modules/timegm (Makefile.am): Likewise.
27515         * modules/tmpfile-safer (Makefile.am): Likewise.
27516         * modules/unistd-safer (Makefile.am): Likewise.
27517         * modules/unlinkdir (Makefile.am): Likewise.
27518         * modules/userspec (Makefile.am): Likewise.
27519         * modules/utime (Makefile.am): Likewise.
27520         * modules/utimecmp (Makefile.am): Likewise.
27521         * modules/utimens (Makefile.am): Likewise.
27522         * modules/vasnprintf (Makefile.am): Likewise.
27523         * modules/vasprintf (Makefile.am): Likewise.
27524         * modules/vsnprintf (Makefile.am): Likewise.
27525         * modules/xalloc (Makefile.am): Likewise.
27526         * modules/xgetcwd (Makefile.am): Likewise.
27527         * modules/xnanosleep (Makefile.am): Likewise.
27528         * modules/xreadlink (Makefile.am): Likewise.
27529         * modules/xstrtod (Makefile.am): Likewise.
27530         * modules/xstrtol (Makefile.am): Likewise.
27531         * modules/xstrtold (Makefile.am): Likewise.
27532         * modules/yesno (Makefile.am): Likewise.
27533
27534 2006-10-12  Jim Meyering  <jim@meyering.net>
27535
27536         * m4/getloadavg.m4: Revert the change below.
27537
27538         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27539         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
27540         fail with a symlink, which is what coreutils' ./bootstrap now
27541         creates by default.
27542
27543 2006-10-12  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27546         mingw.
27547         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27548         MSVC and mingw explicitly.
27549
27550 2006-10-11  Simon Josefsson  <jas@extundo.com>
27551             Bruno Haible  <bruno@clisp.org>
27552
27553         Add support for multiple gnulib-tool invocations in the scope of a
27554         single configure.ac file.
27555         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27556         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27557         with the same contents as the _LIBADD variable.
27558         (func_emit_initmacro_start, func_emit_initmacro_end,
27559         func_emit_initmacro_done): New functions.
27560         (func_import, func_create_testdir): Invoke them. Allow the identifiers
27561         gl_LIBOBJS and gl_LTLIBOBJS.
27562
27563 2006-10-11  Bruno Haible  <bruno@clisp.org>
27564
27565         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27566         (func_create_testdir): Don't create po/Makefile.am, don't invoke
27567         autoreconf. Instead, invoke autopoint explicitly but move back the
27568         *.m4 files from gnulib.
27569
27570 2006-10-11  Bruno Haible  <bruno@clisp.org>
27571
27572         * gnulib-tool (func_usage): Make module names after --create-testdir
27573         optional.
27574         (func_create_testdir): If no module was specified, use nearly all
27575         modules.
27576
27577 2006-10-12  Jim Meyering  <jim@meyering.net>
27578
27579         Big performance improvement for fts-based tools that use FTS_NOSTAT.
27580         Avoid spurious inode-mismatch problems on non-POSIX file systems.
27581         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27582         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27583         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27584         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27585         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27586         (fts_set_stat_required): New function.
27587         (fts_open): Defer the calls to fts_stat, if possible or requested.
27588         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27589         into fts_stat itself.
27590         (fts_read): Perform any required (deferred) fts_stat call.
27591         (fts_build): Likewise, for the directory we're about to open and read.
27592         In the readdir loop, carefully decide whether each entry will require
27593         an eventual call to fts_stat, using dirent.d_type info if available.
27594         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27595         a command line argument into this function.  Update all callers.
27596         Map a return value of FTS_DOT to FTS_D for a command line argument.
27597         * modules/fts (Depends-on): Add d-type.  Alphabetize.
27598         Thanks to Miklos Szeredi for his tenacity and for the initial
27599         bug report about "find" failing on a FUSE-based file system.
27600
27601         * lib/fts.c (fts_open): Use consistent indentation.
27602
27603 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27604
27605         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27606         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27607         reported by Jim Meyering.  All uses of cache variables renamed
27608         to match Autoconf's.
27609         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
27610         the other one.
27611
27612         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27613         Fix misspelling in diagnostic.
27614
27615 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27616
27617         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
27618         defined.  Problem reported by Matthew Woehlke.
27619
27620         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
27621         Add support for Tandem NonStop R series.
27622         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
27623         Use new macro.
27624
27625         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
27626         (has_trailing_slash): Omit size arg; all callers changed.
27627         Omit 'inline', since it doesn't help performance and we'd
27628         need to configure it.
27629         Don't count //, ///, etc. as having a trailing slash.
27630         As a side effect, this removes a C99ism reported by Matthew Woehlke.
27631         (rpl_rename_dest_slash): On failure, use rename's errno rather
27632         than (in some cases) an incorrect or junk errno.
27633         Simplify code by removing need to compute length; this does
27634         cause it to make two passes instead of one over the file name,
27635         but it's worth it.
27636
27637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
27638         change, since Autoconf's version may no longer be appropriate now
27639         that we are using CVS Autoconf's version.  Add support for Tandem.
27640
27641 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27642             Bruno Haible  <bruno@clisp.org>
27643
27644         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
27645         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
27646         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
27647         gl_AC_TYPE_LONG_LONG.
27648
27649         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
27650         instead of HAVE_LONG_LONG.
27651         * lib/printf-args.c (printf_fetchargs): Likewise.
27652         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27653         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27654         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
27655         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
27656         gl_AC_TYPE_LONG_LONG.
27657
27658 2006-10-11  Bruno Haible  <bruno@clisp.org>
27659
27660         * m4/longlong.m4: Add comments.
27661         * m4/ulonglong.m4: Likewise.
27662
27663 2006-10-10  Bruno Haible  <bruno@clisp.org>
27664
27665         Make it possible to #define stpcpy, strdup to aliases.
27666         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
27667         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
27668
27669 2006-10-10  Bruno Haible  <bruno@clisp.org>
27670
27671         Make it possible to #define gcd to an alias.
27672         * lib/gcd.c: Include config.h.
27673
27674 2006-10-10  Bruno Haible  <bruno@clisp.org>
27675
27676         Make it possible to #define c_isascii to an alias.
27677         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
27678         defined. Undefine the macros before defining them, to avoid gcc
27679         warnings.
27680         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
27681         define NO_C_CTYPE_MACROS early.
27682
27683 2006-10-10  Bruno Haible  <bruno@clisp.org>
27684
27685         Make it possible to #define set_program_name to an alias.
27686         * lib/progname.c: Don't undefine set_program_name; instead, undefine
27687         ENABLE_RELOCATABLE early.
27688
27689 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27690
27691         Port to Tandem NSK OSS, which has 64-bit signed int but at most
27692         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
27693         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
27694         More generally, don't assume that 64-bit signed int is available
27695         if unsigned int is, and vice versa.
27696         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
27697         unsigned symbols, not on their signed counterparts.
27698         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
27699         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27700         (UINT64_C, UINTMAX_C):
27701         Likewise.
27702         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
27703         unsigned counterparts.
27704         (Have_long_long, Unsigned): New macros.
27705         (Int): Renamed from INT.
27706         (strtoimax): Use the new macros.
27707         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
27708         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
27709         * modules/inttypes (inttypes.h): Substitute
27710         HAVE_UNSIGNED_LONG_LONG_INT.
27711         * modules/stdint (stdint.h): Likewise.
27712         (Files): Add m4/ulonglong.m4.
27713
27714 2006-10-10  Bruno Haible  <bruno@clisp.org>
27715
27716         Fix a gcc -Wshadow warning.
27717         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
27718         to 'bucket'.
27719         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
27720         gl_linked_indexof_from_to): Likewise.
27721         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
27722         Likewise.
27723         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
27724         Likewise.
27725         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
27726         Reported by Eric Blake.
27727
27728 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
27729
27730         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
27731         for NetBSD.  Problem reported by Bruno Haible.
27732
27733 2006-10-09  Jim Meyering  <jim@meyering.net>
27734
27735         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
27736         Patch from Bruno Haible.
27737
27738 2006-10-09  Jim Meyering  <jim@meyering.net>
27739
27740         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
27741         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
27742         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
27743
27744 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27745
27746         Don't include <config.h> twice; this doesn't work in some cases,
27747         e.g., when config.h has "#define intmax_t long long int" and
27748         we include <config.h>, <inttypes.h>, <config.h> in that order.
27749         Problem reported by Matthew Woehlke in:
27750         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
27751         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
27752         * lib/fts-cycle.c: Don't include config.h.
27753         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27754         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
27755         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
27756         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
27757         inttypes.h.
27758         * lib/xstrtoumax.c: Likewise.
27759         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
27760         __strtol and the like, so that this module is more like its siblings.
27761         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
27762         Remove; no longer needed now that we assume gnulib inttypes.h.
27763
27764 2006-10-08  Bruno Haible  <bruno@clisp.org>
27765
27766         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
27767         option.
27768
27769 2006-10-07  Jim Meyering  <jim@meyering.net>
27770
27771         * modules/inttypes (inttypes.h): Revert what seems to have been
27772         an inadvertent part of today's change: use "|", not "/" in the
27773         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
27774
27775 2006-10-07  Bruno Haible  <bruno@clisp.org>
27776
27777         * modules/sublist: New file.
27778
27779 2006-10-07  Bruno Haible  <bruno@clisp.org>
27780
27781         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
27782         * modules/argz (argz.h): Likewise.
27783         * modules/arpa_inet (arpa/inet.h): Likewise.
27784         * modules/byteswap (byteswap.h): Likewise.
27785         * modules/configmake (configmake.h): Likewise.
27786         * modules/fcntl (fcntl.h): Likewise.
27787         * modules/fnmatch (fnmatch.h): Likewise.
27788         * modules/getopt (getopt.h): Likewise.
27789         * modules/glob (glob.h): Likewise.
27790         * modules/inttypes (inttypes.h): Likewise.
27791         * modules/netinet_in (netinet/in.h): Likewise.
27792         * modules/poll (poll.h): Likewise.
27793         * modules/stdbool (stdbool.h): Likewise.
27794         * modules/stdint (stdint.h): Likewise.
27795         * modules/sys_select (sys/select.h): Likewise.
27796         * modules/sys_socket (sys/socket.h): Likewise.
27797         * modules/sys_stat (sys/stat.h): Likewise.
27798         * modules/sysexits (sysexits.h): Likewise.
27799         * modules/unistd (unistd.h): Likewise.
27800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27801         Add a "DO NOT EDIT" comment to the generated file.
27802         (func_import): Likewise for gnulib-comp.m4.
27803
27804 2006-10-07  Bruno Haible  <bruno@clisp.org>
27805
27806         * lib/gl_sublist.h: New file.
27807         * lib/gl_sublist.c: New file.
27808
27809 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27810
27811         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
27812         name (relative to the original working directory) and the file
27813         name component (relative to the temporary working directory).  All
27814         callers changed.
27815         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
27816         * lib/mkdir-p.c (make_dir_parents): Likewise.
27817         * lib/mkdir-p.h (make_dir_parents): Likewise.
27818
27819 2006-10-06  Eric Blake  <ebb9@byu.net>
27820
27821         Define several macros for use by the clean-temp module.
27822         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
27823         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
27824         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
27825
27826         * lib/clean-temp.h (close_stream_temp): New declaration.
27827         * lib/clean-temp.c (includes): Pull in headers according to what
27828         other modules are in use.
27829         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
27830
27831 2006-10-06  Bruno Haible  <bruno@clisp.org>
27832
27833         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
27834         instead of fopen, fwriteerror.
27835
27836 2006-10-06  Bruno Haible  <bruno@clisp.org>
27837
27838         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
27839         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
27840         int.
27841         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
27842         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
27843         Return an error indicator.
27844         Suggested by Eric Blake.
27845
27846 2006-10-06  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
27849         Reported by Eric Blake.
27850
27851 2006-10-06  Bruno Haible  <bruno@clisp.org>
27852
27853         * modules/closeout (Description): Mention stderr too.
27854
27855 2006-10-06  Bruno Haible  <bruno@clisp.org>
27856         and Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         * lib/closeout.c (close_stdout): Also close stderr.
27859         * lib/closeout.h: Update comment.
27860
27861 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27862
27863         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
27864         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
27865         * lib/dirchownmod.c: Include lchown.h.
27866         * lib/lchown.c: Don't include files that lchown.h now includes.
27867         Don't declare chown, since lchown.h now does that.
27868         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
27869         (lchown): Define to rpl_chown if lchown is declared but
27870         does not exist.  Declare using a prototype if lchown is not
27871         declared.  Add a copyright notice.
27872         * lib/mkstemp.h: Include <unistd.h>.
27873         * lib/openat.c: Include lchown.h.
27874
27875         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
27876         we now test for that separately.
27877         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
27878         rather than O_NOFOLLOW, when testing whether it's possible to
27879         avoid a race condition reliably.
27880         * lib/savewd.c (savewd_chdir): Likewise.
27881
27882         Remove macros that are no longer needed now that stdint.h is
27883         reliable.
27884         * lib/fsusage.c (UINTMAX_MAX): Remove.
27885         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
27886         * lib/utimecmp.c (SIZE_MAX): Remove.
27887
27888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
27889
27890         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
27891         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
27892         O_NOATIME works.
27893
27894 2006-10-05  Bruno Haible  <bruno@clisp.org>
27895
27896         * lib/gl_list.h (gl_sortedlist_search_from_to,
27897         gl_sortedlist_indexof_from_to): New declarations.
27898         (gl_list_implementation): New fields sortedlist_search_from_to,
27899         sortedlist_indexof_from_to.
27900         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
27901         inline functions.
27902         * lib/gl_list.c (gl_sortedlist_search_from_to,
27903         gl_sortedlist_indexof_from_to): New functions.
27904         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
27905         function.
27906         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
27907         (gl_array_sortedlist_search_from_to): New function.
27908         (gl_array_list_implementation): Update.
27909         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
27910         function.
27911         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
27912         (gl_carray_sortedlist_search_from_to): New function.
27913         (gl_carray_list_implementation): Update.
27914         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
27915         gl_linked_sortedlist_indexof_from_to): New functions.
27916         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27917         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27918         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
27919         gl_tree_sortedlist_indexof_from_to): New functions.
27920         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27921         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27922         Update.
27923         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27924         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
27925         Update.
27926
27927 2006-10-05  Bruno Haible  <bruno@clisp.org>
27928
27929         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
27930         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
27931         (struct gl_list_implementation): Add fields search_from_to,
27932         indexof_from_to. Remove fields search, indexof.
27933         (gl_list_search): Use the search_from_to method.
27934         (gl_list_search_from, gl_list_search_from_to): New functions.
27935         (gl_list_indexof): Use the indexof_from_to method.
27936         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
27937         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
27938         (gl_list_search_from, gl_list_search_from_to): New functions.
27939         (gl_list_indexof): Use the indexof_from_to method.
27940         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
27941         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
27942         gl_array_indexof. Add start_index, end_index arguments.
27943         (gl_array_search_from_to): Renamed from gl_array_search. Add
27944         start_index, end_index arguments.
27945         (gl_array_remove, gl_array_list_implementation): Update.
27946         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
27947         gl_carray_indexof. Add start_index, end_index arguments.
27948         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
27949         start_index, end_index arguments.
27950         (gl_carray_remove, gl_carray_list_implementation): Update.
27951         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
27952         gl_linked_search. Add start_index, end_index arguments.
27953         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
27954         start_index, end_index arguments.
27955         (gl_linked_remove): Update.
27956         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27957         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27958         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
27959         field to 'size_t'.
27960         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
27961         gl_tree_search. Add start_index, end_index arguments.
27962         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
27963         start_index, end_index arguments.
27964         (gl_tree_remove): Update.
27965         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27966         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27967         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
27968         function.
27969         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
27970         gl_tree_search. Add start_index, end_index arguments.
27971         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
27972         start_index, end_index arguments.
27973         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27974         Update.
27975         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27976
27977 2006-10-05  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
27980
27981         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
27982         fwriteerror_temp): New declarations.
27983         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
27984         (descriptors): New variable.
27985         (cleanup): First, close the descriptors.
27986         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
27987         fclose_temp, fwriteerror_temp): New functions.
27988
27989 2006-10-04  Jim Meyering  <jim@meyering.net>
27990
27991         * lib/fts.c (fts_open): Tiny comment change.
27992
27993 2006-10-04  Bruno Haible  <bruno@clisp.org>
27994
27995         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
27996         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
27997         gl_LOCK_BODY.
27998         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
27999         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28000         gl_LOCK_EARLY_BODY.
28001         (gl_LOCK): Require gl_LOCK_BODY.
28002
28003 2006-10-04  Bruno Haible  <bruno@clisp.org>
28004
28005         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28006         (gl_oset_search_atleast): New declaration.
28007         (struct gl_oset_implementation): Add field 'search_atleast'.
28008         (gl_oset_search_atleast): New inline function.
28009         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28010         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28011         (gl_array_oset_implementation): Update.
28012         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28013         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28014         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28015
28016 2006-10-04  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28019
28020 2006-10-03  Bruno Haible  <bruno@clisp.org>
28021
28022         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28023         from gl_avltreehash_list_implementation.
28024
28025 2006-10-03  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/gl_oset.c (gl_oset_add): Fix return type.
28028
28029 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28030
28031         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28032
28033 2006-10-02  Eric Blake  <ebb9@byu.net>
28034
28035         * modules/strnlen (Depends-on): Add extensions.
28036
28037 2006-10-02  Eric Blake  <ebb9@byu.net>
28038
28039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28040         definition in 2.60+.
28041
28042 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28043
28044         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28045         checks.
28046
28047 2006-10-02  Bruno Haible  <bruno@clisp.org>
28048
28049         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28050         to the AUTOMAKE_OPTIONS.
28051         Reported by Jim Meyering.
28052
28053 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28054
28055         Work around bug in Solaris 10 /proc file system:
28056         /proc/self/fd/NNN/.. isn't the parent directory of
28057         the directory whose file descriptor is NNN.  This needs to
28058         be worked around at run time, not compile time, since a
28059         program might be built on Solaris 8, where things work, and
28060         run on Solaris 10.
28061         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28062         to use the following interface instead:
28063         (OPENAT_BUFFER_SIZE): New macro.
28064         (openat_proc_name): New function.
28065         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28066         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28067         Likewise.
28068         * lib/openat-proc.c: New file.
28069         * modules/openat (Files): Add lib/openat-proc.c.
28070         (Depends-on): Add same-inode, stdbool.
28071         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28072
28073 2006-09-29  Bruno Haible  <bruno@clisp.org>
28074
28075         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28076         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28077         argument. Set stdout_closed before testing for ferror, not after.
28078         (fwriteerror, fwriteerror_no_ebadf): New functions.
28079
28080 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28081
28082         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28083
28084 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28085
28086         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28087         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28088
28089 2006-09-28  Jim Meyering  <jim@meyering.net>
28090
28091         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28092         Include <unistd.h>.
28093
28094 2006-09-28  Bruno Haible  <bruno@clisp.org>
28095
28096         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28097         * modules/linkedhash-list (Depends-on): Likewise.
28098         * modules/rbtreehash-list (Depends-on): Likewise.
28099
28100 2006-09-28  Bruno Haible  <bruno@clisp.org>
28101
28102         * lib/strndup.h: Simplify the redefinition of strndup.
28103         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28105
28106 2006-09-28  Bruno Haible  <bruno@clisp.org>
28107
28108         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28109         * lib/gl_linkedhash_list.c: Likewise.
28110         * lib/gl_rbtreehash_list.c: Likewise.
28111
28112 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28113
28114         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28115         getaddrinfo.
28116
28117         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28118         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28119         it causes <stdio_ext.h> to cause a compile-time error.
28120         Problem reported by Nelson H. F. Beebe.
28121         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28122         of HAVE_DECL___PENDING.
28123
28124         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28125         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28126         declaration.
28127
28128 2006-09-27  Jim Meyering  <jim@meyering.net>
28129
28130         This file could end up with a definition for a function
28131         named __strndup, rather than rpl_strndup on a system with
28132         incomplete weak_alias support.
28133         * lib/strndup.c (strndup): Rename from __strndup.
28134         Remove #defines that used to map __strndup to strndup.
28135         Don't use K&R prototypes.
28136         Remove LIBC-related code, since this file is not sync'd with glibc.
28137         * lib/strndup.h: Revamp, accordingly.
28138         * m4/strndup.m4: Modernize.
28139
28140 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28141
28142         * modules/savewd (Depends-on): Add 'raise'.
28143         * lib/savewd.c: Include <signal.h>, for 'raise'.
28144
28145 2006-09-26  Jim Meyering  <jim@meyering.net>
28146
28147         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28148         when we detect Darwin 8.7.0's acl_get_file bug.
28149         Rearrange to perform the new (below) run-test while $LIBS
28150         contains any acl-related library.  Set USE_ACL at the end.
28151         (gl_ACL_GET_FILE): New function.
28152
28153 2006-09-26  Eric Blake  <ebb9@byu.net>
28154
28155         * lib/verror.c: Include <config.h> unconditionally.
28156
28157 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28158
28159         * modules/clock-time (Maintainer): Add self.
28160         * modules/getlogin_r (Depends-on): Add extensions.
28161
28162 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28163
28164         * modules/clock-time: New module.
28165         * modules/nanosleep (Depends-on): Add clock-time.
28166         * modules/gethrxtime (Depends-on): Likewise.
28167         * modules/gettime (Depends-on): Likewise.
28168         * modules/settime (Depends-on): Likewise.
28169
28170         * modules/fts-lgpl: Depend on openat.
28171         * modules/mkancesdirs: Depend on savewd.
28172         * modules/mkdir-p: Likewise.
28173
28174 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28175
28176         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28177
28178         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28179         `gl_have_arbitrary_file_name_length_limit' to
28180         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28181         actually works between configure runs.
28182
28183 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28184             Bruno Haible  <bruno@clisp.org>
28185
28186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28187
28188 2006-09-25  Jim Meyering  <jim@meyering.net>
28189
28190         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28191         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28192
28193 2006-09-25  Eric Blake  <ebb9@byu.net>
28194
28195         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28196         exec's in 2006-09-18 patch when shuffling fds.
28197
28198 2006-09-25  Bruno Haible  <bruno@clisp.org>
28199
28200         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28201         Reported by Jim Meyering.
28202
28203 2006-09-24  Jim Meyering  <jim@meyering.net>
28204
28205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28206         compare a pointer against a literal "0".  That caused failures with
28207         at least HP-UX's hpcc.
28208
28209 2006-09-22  Simon Josefsson  <jas@extundo.com>
28210
28211         * modules/gc-sha1:
28212         * modules/gc-md4:
28213         * modules/gc-hmac-sha1:
28214         * modules/gc-hmac-md5:
28215         * modules/gc-des:
28216         * modules/gc-arcfour: Distribute more files.
28217
28218 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28219
28220         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28221         (gl_linked_iterator_from_to): Initialize struct completely.
28222         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28223         (gl_tree_iterator_from_to): Likewise
28224         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28225         * lib/gl_array_list.c [lint] (gl_array_iterator)
28226         (gl_array_iterator_from_to): Likewise.
28227         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28228         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28229         (gl_carray_iterator_from_to): Likewise.
28230
28231         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28232         * lib/md4.c (md4_process_block): Remove unused variable.
28233         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28234         parentheses for clarity.
28235
28236 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28237
28238         * modules/bison-i18n (Depends-on): Add gettext.
28239
28240 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28241
28242         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28243         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28244         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28245         also add missing comma that caused broken test.
28246         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28247         stdlib.h, for `abort'.
28248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28249         variables.
28250         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28251         include unistd.h if present, for `rmdir'.
28252         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28253         variables.
28254         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28255         in the process include standard headers for prototypes.
28256         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28257         gets declared on GNU/Linux.
28258         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28259         unistd.h, for `rmdir'.
28260         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28261
28262         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28263         always true.
28264         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28265
28266         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28267
28268 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28269
28270         * gnulib-tool (func_version): Create output all at once.  This
28271         may help avoid triggering unnecessary SIGPIPEs, and at any
28272         rate it doesn't hurt.
28273
28274 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28275             Bruno Haible  <bruno@clisp.org>
28276
28277         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28278         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28279         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28280
28281         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28282         (gl_FUNC_VASPRINTF): Invoke it.
28283
28284 2006-09-22  Bruno Haible  <bruno@clisp.org>
28285
28286         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28287         getloadavg.c as first argument.
28288
28289 2006-09-22  Bruno Haible  <bruno@clisp.org>
28290
28291         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28292         at the beginning of the gl_INIT macro.
28293         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28294         gl_GETLOADAVG.
28295
28296 2006-09-22  Bruno Haible  <bruno@clisp.org>
28297
28298         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28299         module.
28300         Suggested by Ralf Wildenhues.
28301
28302 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28303
28304         Import this patch from libc:
28305
28306         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28307
28308         * lib/regex_internal.c (re_string_reconstruct): Handle
28309         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28310         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28311         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28312         re_string_context_at.
28313
28314         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28315         now requires it.
28316         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28317         gl_REGEX now does it for us.
28318         (gl_REGEX): Add test taken from
28319         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28320
28321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28322         Check that large offsets work.  Modernize Autoconf usages.
28323         Prefer "yes" to mean a good thing rather than a bad.
28324         Don't put "#define mkstemp" in config.h, as this might interfere
28325         with standard system headers that "#define mkstemp mkstemp64".
28326
28327         * modules/mkstemp (Depends-on): Add extensions, so that
28328         mkstemp is visible on some platforms.
28329         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28330         (Include): Change to "mkstemp.h" from <stdlib.h>.
28331         (Files): Add mkstemp.h.
28332
28333         * lib/mkstemp.h: New file, since some standard headers
28334         #define mkstemp.
28335         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28336         Include "mkstemp.h".
28337         Make the _LIBC code resemble glibc original more,
28338         e.g., use K&R style.
28339         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28340         (mkstemp): Remove, since mkstemp.h does this for us.
28341         * lib/stdlib--.h: Include mkstemp.h.
28342
28343         Import this patch from libc:
28344
28345         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28346
28347         * lib/tempname.c (__gen_tempname): Change attempts_min
28348         into a macro.  Use preprocessor to decide how to initialize
28349         attempts [Coverity CID 67].
28350
28351 2006-09-20  Bruno Haible  <bruno@clisp.org>
28352
28353         * lib/mkdtemp.c: Import from libc.
28354         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28355                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28356                 attempts_min into a macro.  Use preprocessor to decide how to
28357                 initialize attempts [Coverity CID 67].
28358         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28359                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28360                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28361
28362 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28363
28364         * gnulib-tool (func_exit): New function, to allow to pass the
28365         exit status portably through the trap.  Use everywhere.
28366         (--help, --version): Signal a write error.
28367         (trap): catch SIGPIPE, for write errors.
28368         Exit at the end of the trap, with the correct exit status.
28369
28370 2006-09-19  Karl Berry  <karl@gnu.org>
28371
28372         * doc/gnulib.texi: note about the license texinfo files.
28373
28374 2006-09-19  Eric Blake  <ebb9@byu.net>
28375
28376         * gnulib-tool: Avoid space-tab.
28377
28378 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28379
28380         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28381         that prevented coreutils 6.1 from building.  Problem reported
28382         by Petter Reinholdtsen.
28383
28384 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28385
28386         * gnulib-tool (avoidlist): Fix typo that broke options like
28387         --avoid=lock that are used by coreutils bootstrap.
28388
28389 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28390
28391         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28392         more systematically.
28393
28394 2006-09-18  Jim Meyering  <jim@meyering.net>
28395
28396         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28397
28398 2006-09-18  Bruno Haible  <bruno@clisp.org>
28399
28400         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28401
28402 2006-09-18  Bruno Haible  <bruno@clisp.org>
28403
28404         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28405         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28406         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28407         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28408         * m4/gettext.m4: Require autoconf >= 2.52.
28409         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28410         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28411         of gl_cv_header_inttypes_h.
28412
28413 2006-09-18  Bruno Haible  <bruno@clisp.org>
28414
28415         * lib/javaversion.c: Include configmake.h.
28416
28417 2006-09-18  Bruno Haible  <bruno@clisp.org>
28418
28419         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28420         avoid that the while loops be executed in a subshell.
28421
28422 2006-09-18  Bruno Haible  <bruno@clisp.org>
28423
28424         * MODULES.html.sh (func_module): Break long lines.
28425         Suggested by Bruce Korb <bkorb@gnu.org>.
28426
28427 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28428
28429         Speed up by a factor of 1.12.
28430         * gnulib-tool (nl): New variable.
28431         (func_import): Rewrite include directive extraction to only read each
28432         directive once.
28433
28434 2006-09-17  Bruno Haible  <bruno@clisp.org>
28435
28436         * modules/javaversion (Makefile.am): Remove DEFS setting.
28437         (Depends-on): Add configmake, for PKGDATADIR definition.
28438
28439 2006-09-17  Bruno Haible  <bruno@clisp.org>
28440
28441         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28442
28443 2006-09-17  Bruno Haible  <bruno@clisp.org>
28444
28445         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28446         (func_modules_transitive_closure, func_modules_add_dummy,
28447         func_modules_to_filelist, func_import, func_create_testdir,
28448         func_create_megatestdir, ...): Use it wherever possible.
28449         Suggested by Ralf Wildenhues.
28450
28451 2006-09-16  Karl Berry  <karl@gnu.org>
28452
28453         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28454         to avoid sectioning errors.
28455         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28456         [ifinfo]: blank line after @center-ed titles.
28457         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28458         Spell FSF address consistently with others.
28459         (These changes approved by rms.)
28460
28461 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28462
28463         Speed up by a factor of 1.61.
28464         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28465         already checked module names again.
28466
28467 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28468
28469         Speed up by a factor of 1.13.
28470         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28471         for new_files, and the input to func_add_or_update.
28472
28473 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28474
28475         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28476         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28477
28478 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28479
28480         * modules/mkancesdirs (Depends-on): Add fcntl.
28481         * modules/savewd: New file.
28482         * MODULES.html.sh (File system functions): Add savewd.
28483
28484         * modules/configmake (Makefile.am): Add support for the
28485         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28486
28487 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28488
28489         * m4/savewd.m4: New file.
28490
28491 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28494         (dirchownmod): New arg FD.  All callers changed.
28495         Use FD rather than opening the directory ourself, as opening is
28496         now the caller's responsibility.
28497         * lib/dirchownmod.h: Likewise.
28498         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28499         hosts that require <sys/types.h> before <sys/stat.h>.  Include
28500         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28501         (test_dir): Remove.
28502         (mkancesdirs): Return length of prefix of FILE that has already
28503         been made, or -2 if there is a child doing the work.  Redo
28504         algorithm so that it is O(N) rather than O(N**2).  Optimize away
28505         ".", and treat ".." specially since it might stray back into
28506         already-created areas.  Use a subprocess if necessary.  New arg
28507         WD; all users changed.  MAKE_DIR function should now return 1
28508         if it creates a directory that is not readable.  Return -2 if
28509         a child process is spun off.
28510         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28511         Adjust signature to match code.
28512         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28513         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
28514         all users changed.
28515         * lib/savewd.c, lib/savewd.h: New files.
28516
28517 2006-09-15  Jim Meyering  <jim@meyering.net>
28518
28519         * modules/rename-dest-slash: New module.
28520         * MODULES.html.sh (posix_compat): Add it here.
28521
28522         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28523
28524 2006-09-15  Jim Meyering  <jim@meyering.net>
28525
28526         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28527         file.
28528
28529         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28530
28531 2006-09-15  Jim Meyering  <jim@meyering.net>
28532
28533         * lib/rename-dest-slash.c (has_trailing_slash): Use
28534         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28535         (rpl_rename_dest_slash): Perform the cheaper trailing slash
28536         test before testing whether SRC is a directory.
28537         Suggestions from Bruno Haible.
28538
28539         Avoid a warning about an unused variable.
28540         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28541         into the #ifdef block where it's used.
28542
28543         * lib/rename-dest-slash.c: New file.
28544
28545 2006-09-14  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/allocsa.c: Include <config.h> unconditionally.
28548         * lib/asnprintf.c: Likewise.
28549         * lib/asprintf.c: Likewise.
28550         * lib/c-strcasecmp.c: Likewise.
28551         * lib/c-strcasestr.c: Likewise.
28552         * lib/c-strncasecmp.c: Likewise.
28553         * lib/c-strstr.c: Likewise.
28554         * lib/classpath.c: Likewise.
28555         * lib/clean-temp.c: Likewise.
28556         * lib/concatpath.c: Likewise.
28557         * lib/copy-file.c: Likewise.
28558         * lib/csharpcomp.c: Likewise.
28559         * lib/csharpexec.c: Likewise.
28560         * lib/execute.c: Likewise.
28561         * lib/fatal-signal.c: Likewise.
28562         * lib/findprog.c: Likewise.
28563         * lib/fwriteerror.c: Likewise.
28564         * lib/gl_array_list.c: Likewise.
28565         * lib/gl_array_oset.c: Likewise.
28566         * lib/gl_avltree_list.c: Likewise.
28567         * lib/gl_avltree_oset.c: Likewise.
28568         * lib/gl_avltreehash_list.c: Likewise.
28569         * lib/gl_carray_list.c: Likewise.
28570         * lib/gl_linked_list.c: Likewise.
28571         * lib/gl_linkedhash_list.c: Likewise.
28572         * lib/gl_list.c: Likewise.
28573         * lib/gl_oset.c: Likewise.
28574         * lib/gl_rbtree_list.c: Likewise.
28575         * lib/gl_rbtree_oset.c: Likewise.
28576         * lib/gl_rbtreehash_list.c: Likewise.
28577         * lib/imaxabs.c: Likewise.
28578         * lib/imaxdiv.c: Likewise.
28579         * lib/javacomp.c: Likewise.
28580         * lib/javaexec.c: Likewise.
28581         * lib/javaversion.c: Likewise.
28582         * lib/linebreak.c: Likewise.
28583         * lib/localcharset.c: Likewise.
28584         * lib/lock.c: Likewise.
28585         * lib/mbchar.c: Likewise.
28586         * lib/mbswidth.c: Likewise.
28587         * lib/mkdtemp.c: Likewise.
28588         * lib/pipe.c: Likewise.
28589         * lib/printf-args.c: Likewise.
28590         * lib/printf-parse.c: Likewise.
28591         * lib/progname.c: Likewise.
28592         * lib/progreloc.c: Likewise.
28593         * lib/readlink.c: Likewise.
28594         * lib/sh-quote.c: Likewise.
28595         * lib/stpcpy.c: Likewise.
28596         * lib/stpncpy.c: Likewise.
28597         * lib/strcasecmp.c: Likewise.
28598         * lib/strcasestr.c: Likewise.
28599         * lib/strcspn.c: Likewise.
28600         * lib/striconv.c: Likewise.
28601         * lib/strncasecmp.c: Likewise.
28602         * lib/strnlen1.c: Likewise.
28603         * lib/strstr.c: Likewise.
28604         * lib/strtok_r.c: Likewise.
28605         * lib/tls.c: Likewise.
28606         * lib/tmpdir.c: Likewise.
28607         * lib/unicodeio.c: Likewise.
28608         * lib/unsetenv.c: Likewise.
28609         * lib/vasnprintf.c: Likewise.
28610         * lib/vasprintf.c: Likewise.
28611         * lib/wait-process.c: Likewise.
28612         * lib/xallocsa.c: Likewise.
28613         * lib/xsetenv.c: Likewise.
28614         * lib/xstriconv.c: Likewise.
28615
28616 2006-09-13  Simon Josefsson  <jas@extundo.com>
28617
28618         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
28619         that internally, suggested by Ralf Wildenhues
28620         <Ralf.Wildenhues@gmx.de>.
28621
28622 2006-09-13  Simon Josefsson  <jas@extundo.com>
28623
28624         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
28625         @LIBOBJS@.
28626         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28627
28628 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         * lib/_fpending.c: Include <config.h> unconditionally, since we no
28631         longer worry about uses that don't define HAVE_CONFIG_H.
28632         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
28633         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
28634         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
28635         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
28636         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
28637         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
28638         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
28639         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
28640         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
28641         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
28642         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
28643         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
28644         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
28645         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
28646         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
28647         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
28648         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
28649         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
28650         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
28651         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
28652         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
28653         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
28654         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
28655         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
28656         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
28657         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
28658         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
28659         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
28660         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
28661         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
28662         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
28663         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
28664         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
28665         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
28666         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
28667         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
28668         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
28669         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
28670         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
28671         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
28672         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
28673         Likewise.
28674
28675 2006-09-13  Eric Blake  <ebb9@byu.net>
28676
28677         * lib/getopt.c: Fix typo in last commit.
28678
28679 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28680
28681         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
28682         dgettext.
28683
28684 2006-09-12  Jim Meyering  <jim@meyering.net>
28685
28686         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
28687         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
28688         Reported by Nelson H. F. Beebe.
28689
28690 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28691
28692         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
28693         program_invocation_name and program_invocation_short_name are
28694         initialized.
28695         * lib/argp-namefrob.h: Move declarations of program_invocation_name
28696         and program_invocation_short_name to argp.h, so they are visible
28697         to user programs.
28698         * lib/argp.h: Likewise
28699
28700 2006-09-10  Bruno Haible  <bruno@clisp.org>
28701
28702         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28703         m4/inttypes_h.m4, m4/uintmax_t.m4.
28704
28705 2006-09-10  Bruno Haible  <bruno@clisp.org>
28706
28707         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
28708         gl_AC_TYPE_UINTMAX_T.
28709
28710 2006-09-10  Bruno Haible  <bruno@clisp.org>
28711
28712         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
28713
28714 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28715
28716         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
28717         convention.  Text proposed by Bruno Haible.
28718         (struct argp_option): Document the use of N_() wrappers.
28719
28720         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
28721         '\v', and translate the two parts separately, instead of feeding
28722         the whole string to gettext.  This allows to exclude
28723         '\v' from the strings visible to the translator by writing doc
28724         strings as N_("..") "\v" N_("..").
28725
28726 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         * config/srclist.txt: Undo latest change; the bug was fixed.
28729
28730 2006-09-09  Bruno Haible  <bruno@clisp.org>
28731
28732         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
28733         assignments if building a library without libtool.
28734         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
28735         in func_emit_lib_Makefile_am.
28736         (func_import): When building a static library libfoo.a, arrange to
28737         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
28738         (func_create_testdir): Likewise.
28739         * modules/gc (configure.ac, Makefile.am): If building statically,
28740         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
28741         * modules/iconvme (configure.ac, Makefile.am): Likewise.
28742         * modules/striconv (configure.ac, Makefile.am): Likewise.
28743         Based on a suggestion by Ralf Wildenhues.
28744
28745 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28746
28747         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28748         Check for unistd.h too, since Autoconf doesn't assume POSIX.
28749         Also:
28750
28751         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28752         Add year_2050_test to catch glibc bug 2821
28753         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28754
28755         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28756         Prefer #ifdef to #if.
28757
28758         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28759         Return from 'main' instead of calling 'exit'.
28760
28761 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28762
28763         * lib/mktime.c (guess_time_tm): Fix bug where mktime
28764         returned the maximum time_t value rather than (time_t) -1.
28765         Problem originally reported by William Bardwell
28766         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28767
28768         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28769         Moved to here ...
28770         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28771         ... from here.
28772
28773 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28774
28775         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
28776         2821 is fixed.
28777
28778 2006-09-08  Jim Meyering  <jim@meyering.net>
28779
28780         Don't make generated files read-only.  That would bother too many
28781         people.  However, do retain the ability to work when targets are
28782         read-only: remove the destination and temporary files before writing
28783         them (when generated via sed or echo), or by using the -f option for
28784         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
28785         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28786         * modules/byteswap, modules/configmake, modules/fcntl:
28787         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28788         * modules/localcharset, modules/netinet_in, modules/poll:
28789         * modules/stdbool, modules/stdint, modules/sys_select:
28790         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28791
28792 2006-09-08  Jim Meyering  <jim@meyering.net>
28793
28794         Avoid new build failure on FreeBSD 6.0.
28795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
28796         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
28797         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
28798
28799 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28800
28801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
28802
28803 2006-09-07  Jim Meyering  <jim@meyering.net>
28804
28805         Fix global typo in last change: use chmod u-w, not chmod u-x.
28806         Spotted by Paul Eggert and Bruce Korb.
28807         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28808         * modules/byteswap, modules/configmake, modules/fcntl:
28809         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28810         * modules/localcharset, modules/netinet_in, modules/poll:
28811         * modules/stdbool, modules/stdint, modules/sys_select:
28812         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28813
28814 2006-09-06  Jim Meyering  <jim@meyering.net>
28815
28816         Make generated files be read-only.
28817         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
28818         Ensure that each generated file is now read-only.
28819         * modules/argz: Likewise.
28820         * modules/arpa_inet: Likewise.
28821         * modules/byteswap: Likewise.
28822         * modules/configmake: Likewise.
28823         * modules/fcntl: Likewise.
28824         * modules/fnmatch: Likewise.
28825         * modules/getopt: Likewise.
28826         * modules/glob: Likewise.
28827         * modules/inttypes: Likewise.
28828         * modules/netinet_in: Likewise.
28829         * modules/poll: Likewise.
28830         * modules/stdbool: Likewise.
28831         * modules/stdint: Likewise.
28832         * modules/sys_select: Likewise.
28833         * modules/sys_socket: Likewise.
28834         * modules/sys_stat: Likewise.
28835         * modules/sysexits: Likewise.
28836         * modules/localcharset: Same as above, but continue using temporary
28837         file named "t-$@" (why different?) rather than the "$@-t" used
28838         everywhere else.
28839
28840         * modules/sysexits (Makefile.am): Replace literal occurrences
28841         of "sysexit.h" more readable, and more consistent, "$@".
28842
28843 2006-09-06  Bruno Haible  <bruno@clisp.org>
28844
28845         * modules/striconv: New file.
28846         * modules/xstriconv: New file.
28847         * MODULES.html.sh (Internationalization functions): Add striconv,
28848         xstriconv.
28849
28850 2006-09-06  Bruno Haible  <bruno@clisp.org>
28851
28852         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
28853         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
28854         not using libtool correctly.
28855
28856 2006-09-06  Bruno Haible  <bruno@clisp.org>
28857
28858         * lib/striconv.h: New file.
28859         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
28860         iconvstring.c.
28861         * lib/xstriconv.h: New file.
28862         * lib/xstriconv.c: New file.
28863
28864 2006-09-06  Bruno Haible  <bruno@clisp.org>
28865
28866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28867         lib_..._LDFLAGS.
28868
28869 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28870
28871         * lib/argz_.h: Sync from Libtool.
28872
28873         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
28874                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28875
28876         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
28877
28878 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
28879
28880         * modules/trim: New file.
28881
28882 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
28883
28884         * lib/trim.h: New file.
28885         * lib/trim.c: New file.
28886
28887 2006-09-05  Bruno Haible  <bruno@clisp.org>
28888
28889         * MODULES.html.sh (String handling): Add trim.
28890
28891 2006-09-04  Karl Berry  <karl@gnu.org>
28892
28893         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
28894         until next release.
28895
28896 2006-09-03  Bruno Haible  <bruno@clisp.org>
28897
28898         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
28899         correctly.
28900
28901 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
28904         not gl_GETLOADAVG.  Omit unneeded semicolons.
28905         Problems reported by Ralf Wildenhues in
28906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
28907         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
28908         at the end, which is the usual gnulib style.
28909
28910         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
28911         of doing all the work ourselves.
28912         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
28913         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
28914
28915 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28916
28917         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
28918         Problem reported by Ralf Wildenhues in
28919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
28920
28921         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
28922         HAVE_STRUCT_STATFS_F_FSTYPENAME.
28923
28924 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28925
28926         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
28927         yesterday's patch by changing test -n to test -z.
28928
28929 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28930
28931         * modules/getloadavg (Files): Add m4/getloadavg.m4.
28932         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
28933         the former is now obsolescent.
28934
28935         * modules/chdir-long (Depends-on): Add fcntl.
28936
28937 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28938
28939         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
28940         obsolescent, and programs should use gnulib instead.
28941         * m4/getloadavg.m4: New file, with contents taken from Autoconf
28942         but with prefixes changed.
28943
28944 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28945
28946         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
28947         or stdbool.h, because they might not exist while configuring.
28948
28949         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
28950         Don't include unistd.h or limits.h; not needed, since chdir-long.h
28951         does that for us.
28952         (O_DIRECTORY): Remove.
28953
28954 2006-08-31  Eric Blake  <ebb9@byu.net>
28955
28956         * gnulib-tool: Don't let emacs change spaces to TAB.
28957
28958 2006-08-31  Bruno Haible  <bruno@clisp.org>
28959
28960         * gnulib-tool: When calling func_import more than once, do it in a
28961         subshell.
28962         Reported by Eric Blake <ebb9@byu.net>.
28963
28964 2006-08-31  Bruno Haible  <bruno@clisp.org>
28965
28966         * gnulib-tool (nl): Remove variable.
28967         (sed_transform_lib_file): Use more robust test for config-h module.
28968         (func_import): Fix typo in 2006-08-25 patch.
28969
28970 2006-08-31  Bruno Haible  <bruno@clisp.org>
28971
28972         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
28973         specified, augment Makefile.am variables instead of assigning them.
28974
28975 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28976
28977         Work around a bug in both the Linux and SunOS 64-bit kernels:
28978         nanosleep mishandles sleeps for longer than 2**31 seconds.
28979         Problem reported by Frank v Waveren in
28980         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
28981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
28982         Check for nanosleep bug.
28983         (LIB_NANOSLEEP): Append clock_gettime library if needed.
28984
28985 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         Work around a bug in both the Linux and SunOS 64-bit kernels:
28988         nanosleep mishandles sleeps for longer than 2**31 seconds.
28989         Problem reported by Frank v Waveren in
28990         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
28991         * lib/nanosleep.c (BILLION): New constant.
28992         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
28993         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
28994         implementation.
28995
28996 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         * modules/nanosleep (Depends-on): Add gettime.
28999
29000 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29001         and Simon Josefsson  <jas@extundo.com>
29002         and Oskar Liljeblad  <oskar@osk.mine.nu>
29003
29004         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29005         * gnulib-tool (func_import): New license type 'unmodifiable license
29006         text'.
29007         * modules/fdl: Use it.  Longer description.
29008         * module/gpl, module/lgpl: New files.
29009
29010 2006-08-30  Jim Meyering  <jim@meyering.net>
29011
29012         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29013         shadowing the parameter.
29014
29015 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29016
29017         Sync from Libtool:
29018
29019         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29020
29021         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29022         sharing with gnulib.  Report by Eric Blake.
29023
29024 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29025
29026         * modules/isapipe: New file.
29027         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29028
29029 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29030
29031         * modules/configmake (Makefile.am): Add a comment, and omit
29032         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29033         by Bruno Haible.
29034
29035 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29036
29037         * m4/isapipe.m4: New file.
29038
29039 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29040
29041         * lib/isapipe.c, lib/isapipe.h: New files.
29042
29043 2006-08-29  Jim Meyering  <jim@meyering.net>
29044
29045         * modules/configmake (Makefile.am): Make configmake.h depend on
29046         Makefile.  Otherwise, a stale configmake.h could hang around.
29047
29048 2006-08-29  Eric Blake  <ebb9@byu.net>
29049
29050         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29051         resolution of upstream bug 3044.
29052
29053 2006-08-29  Bruno Haible  <bruno@clisp.org>
29054
29055         * modules/localcharset (Depends-on): Add configmake.
29056         (Makefile.am): Remove setting of LIBDIR through DEFS.
29057
29058 2006-08-29  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29061         defined.
29062
29063 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29064
29065         * modules/fcntl: New file.
29066         * modules/chdir-safer (Depends-on): Add fcntl.
29067         * modules/fts: Likewise.
29068         * modules/mkdir-p: Likewise.
29069
29070         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29071         This undoes the most recent change, since we're now addressing the
29072         problem in a different way.
29073
29074         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29075         into output, since the output might be called Makefile.am even
29076         if $makefile_name is something different.
29077         (func_import): Use $makefile_am rather than
29078         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29079         empty.
29080
29081         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29082
29083 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29084
29085         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29086         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29087         recent change to stdint.m4, since we're now addressing the problem in a
29088         different way.
29089
29090 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29091
29092         * m4/fcntl_h.m4: New file.
29093
29094 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29095
29096         * lib/fcntl_.h: New file.
29097         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29098         the fcntl module.
29099         * lib/dirchownmod.c: Likewise.
29100         * lib/fts.c: Likewise.
29101
29102         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29103         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29104         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29105         just before including <inttypes.h>, to avoid circular inclusion.
29106
29107 2006-08-28  Jim Meyering  <jim@meyering.net>
29108
29109         * doc/visibility.texi: Actually read and correct the grammar of the
29110         sentence affected by yesterday's change.
29111
29112 2006-08-28  Eric Blake  <ebb9@byu.net>
29113
29114         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29115         needs wrapper.
29116
29117 2006-08-28  Eric Blake  <ebb9@byu.net>
29118
29119         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29120
29121 2006-08-28  Eric Blake  <ebb9@byu.net>
29122
29123         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29124
29125 2006-08-28  Bruno Haible  <bruno@clisp.org>
29126
29127         * modules/c-strstr: New file, from GNU gettext.
29128         * MODULES.html.sh (String handling): Add c-strstr.
29129
29130 2006-08-28  Bruno Haible  <bruno@clisp.org>
29131
29132         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29133         macros.
29134         Reported by Eric Blake.
29135
29136 2006-08-28  Bruno Haible  <bruno@clisp.org>
29137
29138         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29139         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29140         * lib/vasprintf.c: Include errno.h, limits.h.
29141         (EOVERFLOW): New fallback definition.
29142         (vasprintf): Test here whether the string length is > INT_MAX.
29143         * lib/vsnprintf.c: Include errno.h, limits.h.
29144         (EOVERFLOW): New fallback definition.
29145         (vsnprintf): Fix bug when generated string was too long for the buffer.
29146         Test here whether the string length is > INT_MAX.
29147
29148 2006-08-28  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/inttypes_.h (SCNX*): Remove definitions.
29151         Reported by Eric Blake.
29152
29153 2006-08-28  Bruno Haible  <bruno@clisp.org>
29154
29155         * lib/c-strstr.h: New file, from GNU gettext.
29156         * lib/c-strstr.c: New file, from GNU gettext.
29157
29158 2006-08-28  Bruno Haible  <bruno@clisp.org>
29159
29160         * gnulib-tool: Reorder some statements.
29161
29162 2006-08-28  Bruno Haible  <bruno@clisp.org>
29163
29164         * gnulib-tool: New option --makefile-name.
29165         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29166         $makefile_name.
29167         (func_import): Write $makefile_name to the cache file, and read it from
29168         there unless explicitly specified. Use $makefile_name as file name
29169         instead of Makefile.am. Adjust the recommendations accordingly.
29170
29171 2006-08-28  Bruno Haible  <bruno@clisp.org>
29172
29173         * gnulib-tool (func_verify_module): Check against misapplying patch.
29174
29175 2006-08-28  Bruno Haible  <bruno@clisp.org>
29176
29177         * gnulib-tool (func_relativize, func_relconcat): New functions.
29178         Give an error if --local-dir is given with --update.
29179         Remove trailing slashes from $local_gnulib_dir.
29180         (func_import): Store the relativized $local_gnulib_dir in
29181         gnulib-cache.m4, and read it from there if not specified explicitly.
29182
29183 2006-08-28  Bruno Haible  <bruno@clisp.org>
29184
29185         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29186         is the current directory. Respect also $local_gnulib_dir.
29187
29188 2006-08-28  Bruno Haible  <bruno@clisp.org>
29189             Simon Josefsson  <jas@extundo.com>
29190
29191         BeOS portability.
29192         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29193
29194 2006-08-27  Jim Meyering  <jim@meyering.net>
29195
29196         * doc/visibility.texi: Remove duplicate word: "pointer".
29197
29198 2006-08-26  Bruno Haible  <bruno@clisp.org>
29199
29200         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29201         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29202         (Makefile.am): Create inttypes.h from inttypes_.h.
29203         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29204
29205         * modules/imaxabs: New file.
29206
29207         * modules/imaxdiv: New file.
29208
29209 2006-08-26  Bruno Haible  <bruno@clisp.org>
29210
29211         * m4/inttypes.m4: New file.
29212         * m4/_inttypes_h.m4: Remove file.
29213         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29214         PRI_MACROS_BROKEN.
29215         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29216
29217         * m4/imaxabs.m4: New file.
29218
29219         * m4/imaxdiv.m4: New file.
29220
29221 2006-08-26  Bruno Haible  <bruno@clisp.org>
29222
29223         * lib/inttypes_.h: New file.
29224         * lib/inttypes.h: Remove file.
29225         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29226
29227         * lib/imaxabs.c: New file.
29228
29229         * lib/imaxdiv.c: New file.
29230
29231 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29232
29233         New config-h module, so that "make" output needn't be cluttered
29234         by -DHAVE_CONFIG_H.
29235         * MODULES.html.sh (Support for building libraries and executables):
29236         Add config-h.
29237         * modules/config-h: New file.
29238         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29239         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29240         the config-h module is used.
29241
29242         New configmake module, so that "make" output needn't be cluttered
29243         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29244         * MODULES.html.sh (Support for building libraries and executables):
29245         Add configmake.
29246         * modules/configmake: New file.
29247
29248 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29249
29250         * m4/config-h.m4: New file.
29251
29252 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29253
29254         * config/srclist.txt: Add elisp-comp.
29255
29256 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29257
29258         * MODULES.html.sh (Support for building libraries and executables):
29259         Add elisp-comp.
29260         * build-aux/elisp-comp: New file.
29261         * modules/elisp-comp: New file.
29262
29263 2006-08-24  Bruno Haible  <bruno@clisp.org>
29264
29265         * gnulib-tool (func_create_testdir): Use non-default values of
29266         sourcebase and m4base.
29267
29268 2006-08-24  Bruno Haible  <bruno@clisp.org>
29269
29270         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29271         HTML structure.
29272
29273 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29274
29275         * modules/openat (Depends-on): Add lchown.
29276
29277 2006-08-23  Bruno Haible  <bruno@clisp.org>
29278
29279         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29280         of gl_LOCK_EARLY instead of gl_LOCK.
29281
29282 2006-08-23  Bruno Haible  <bruno@clisp.org>
29283
29284         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29285         on OSF/1 to no.
29286         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29287
29288 2006-08-23  Bruno Haible  <bruno@clisp.org>
29289
29290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29291         as unusable.
29292
29293         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29294         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29295         (gl_LOCK): New macro.
29296
29297 2006-08-22  Simon Josefsson  <jas@extundo.com>
29298
29299         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29300         to md5 module.
29301
29302 2006-08-22  Simon Josefsson  <jas@extundo.com>
29303
29304         * MODULES.html.sh: Add "Support for maintaining and release
29305         projects".
29306
29307         * build-aux/gnupload: New file, from coreutils.
29308
29309 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29310
29311         Avoid the need for AC_LIBSOURCES in m4 macros.
29312         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29313         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29314         * modules/check-version (EXTRA_DIST): Add check-version.h.
29315         * modules/crc (EXTRA_DIST): Add crc.h.
29316         * modules/des (EXTRA_DIST): Add des.h.
29317         * modules/gc (EXTRA_DIST): Add gc.h.
29318         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29319         * modules/getline (EXTRA_DIST): Add getline.h.
29320         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29321         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29322         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29323         * modules/md2 (EXTRA_DIST): Add md2.h.
29324         * modules/md4 (EXTRA_DIST): Add md4.h.
29325         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29326         * modules/read-file (EXTRA_DIST): Add read-file.h.
29327         * modules/readline (EXTRA_DIST): Add readline.h.
29328         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29329         rijndael-api-fst.h.
29330
29331 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29332
29333         * m4/rijndael.m4 (gl_ARCFOUR):
29334         * m4/arctwo.m4 (gl_ARCTWO):
29335         * m4/check-version.m4 (gl_CHECK_VERSION):
29336         * m4/crc.m4 (gl_CRC):
29337         * m4/des.m4 (gl_DES):
29338         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29339         * m4/gc.m4 (gl_GC):
29340         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29341         * m4/getline.m4 (gl_FUNC_GETLINE):
29342         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29343         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29344         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29345         * m4/md2.m4 (gl_MD2):
29346         * m4/md4.m4 (gl_MD4):
29347         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29348         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29349         * m4/readline.m4 (gl_FUNC_READLINE):
29350         * m4/rijndael.m4 (gl_RIJNDAEL):
29351         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29352         to get the necessary .h files and whatnot.
29353
29354 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29355
29356         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29357         gnulib rather than the other way around.
29358         * config/srclistvars.sh (COREUTILS): Remove.
29359
29360 2006-08-22  Jim Meyering  <jim@meyering.net>
29361
29362         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29363
29364         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29365
29366 2006-08-22  Eric Blake  <ebb9@byu.net>
29367
29368         * modules/regexprops-generic: New file.
29369         * MODULES.html.sh (Support for building documentation): List it.
29370
29371 2006-08-22  Eric Blake  <ebb9@byu.net>
29372
29373         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29374         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29375         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29376         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29377
29378 2006-08-22  Bruno Haible  <bruno@clisp.org>
29379
29380         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29381         and lib_LTLIBRARIES like the other lib_* variables.
29382
29383 2006-08-22  Bruno Haible  <bruno@clisp.org>
29384
29385         * build-aux/x-to-1.in: New file, from GNU gettext.
29386
29387 2006-08-22  Bruno Haible  <bruno@clisp.org>
29388
29389         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29390         <utmpx.h> exists.
29391
29392 2006-08-22  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29395         <utmpx.h> exists.
29396
29397 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29398
29399         BeOS portability.
29400         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29401         exist.
29402         Problem reported by Bruno Haible.
29403
29404 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29405
29406         Avoid the need for AC_LIBSOURCES in m4 macros.
29407         * modules/acl (EXTRA_DIST): Add acl.h.
29408         * modules/argmatch (Files): Add m4/argmatch.m4.
29409         (configure.ac): Add gl_ARGMATCH.
29410         (EXTRA_DIST): Renamed from lib_SOURCES, for
29411         consistency with the other modules.  Remove argmatch.c.
29412         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29413         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29414         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29415         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29416         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29417         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29418         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29419         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29420         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29421         * modules/closeout (EXTRA_DIST): Add closeout.h.
29422         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29423         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29424         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29425         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29426         dirname.h; remove basename.c and stripslash.c.
29427         * modules/exclude (EXTRA_DIST): Add exclude.h.
29428         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29429         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29430         * modules/file-type (EXTRA_DIST): Add file-type.h.
29431         * modules/filemode (EXTRA_DIST): Add filemode.h.
29432         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29433         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29434         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29435         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29436         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29437         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29438         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29439         * modules/getdate (EXTRA_DIST): Add getdate.c.
29440         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29441         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29442         * modules/getpass (EXTRA_DIST): Add getpass.h.
29443         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29444         * modules/group-member (EXTRA_DIST): Add group-member.h.
29445         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29446         * modules/hash (EXTRA_DIST): Add hash.h.
29447         * modules/human (EXTRA_DIST): Add human.h.
29448         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29449         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29450         * modules/lchown (EXTRA_DIST): Add lchown.h.
29451         * modules/long-options (EXTRA_DIST): Add long-options.h.
29452         * modules/lstat (EXTRA_DIST): Add lstat.h.
29453         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29454         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29455         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29456         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29457         * modules/memxor (EXTRA_DIST): Add memxor.h.
29458         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29459         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29460         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29461         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29462         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29463         * modules/physmem (EXTRA_DIST): Add physmem.h.
29464         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29465         * modules/posixver (EXTRA_DIST): Add posixver.h.
29466         * modules/quote (EXTRA_DIST): Add quote.h.
29467         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29468         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29469         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29470         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29471         regex_internal.h regexec.c.
29472         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29473         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29474         * modules/same (EXTRA_DIST): Add same.h.
29475         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29476         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29477         * modules/savedir (EXTRA_DIST): Add savedir.h.
29478         * modules/sha1 (EXTRA_DIST): Add sha1.h.
29479         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29480         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29481         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29482         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29483         * modules/strdup (EXTRA_DIST): Add strdup.h.
29484         * modules/strftime (EXTRA_DIST): Add strftime.h.
29485         * modules/strndup (EXTRA_DIST): Add strndup.h.
29486         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29487         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29488         * modules/time_r (EXTRA_DIST): Add time_r.h.
29489         * modules/timespec (EXTRA_DIST): Add timespec.h.
29490         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29491         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29492         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29493         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29494         * modules/userspec (EXTRA_DIST): Add userspec.h.
29495         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29496         * modules/utimens (EXTRA_DIST): Add utimens.h.
29497         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29498         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29499         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29500         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29501         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29502         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29503         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29504         * modules/yesno (EXTRA_DIST): Add yesno.h.
29505
29506 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29509
29510         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29511         * m4/dev-ino.m4, same-inode.m4: Remove.
29512
29513         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29514         * m4/acl.m4 (AC_FUNC_ACL):
29515         * m4/backupfile.m4 (gl_BACKUPFILE):
29516         * m4/c-strtod.m4 (gl_C99_STRTOLD):
29517         * m4/canon-host.m4 (gl_CANON_HOST):
29518         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29520         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29521         * m4/cloexec.m4 (gl_CLOEXEC):
29522         * m4/close-stream.m4 (gl_CLOSE_STREAM):
29523         * m4/closeout.m4 (gl_CLOSEOUT):
29524         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29525         * m4/dirname.m4 (gl_DIRNAME):
29526         * m4/exclude.m4 (gl_EXCLUDE):
29527         * m4/exitfail.m4 (gl_EXITFAIL):
29528         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29529         * m4/file-type.m4 (gl_FILE_TYPE):
29530         * m4/filemode.m4 (gl_FILEMODE):
29531         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29532         * m4/fpending.m4 (gl_FUNC_FPENDING):
29533         * m4/fprintftime.m4 (gl_FPRINTFTIME):
29534         * m4/fts.m4 (gl_FUNC_FTS):
29535         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29536         * m4/getdate.m4 (gl_GETDATE):
29537         * m4/gethrxtime.m4 (gl_GETHRXTIME):
29538         * m4/getpagesize.m4 (gl_GETPAGESIZE):
29539         * m4/getpass.m4 (gl_FUNC_GETPASS):
29540         * m4/gettime.m4 (gl_GETTIME):
29541         * m4/getugroups.m4 (gl_GETUGROUPS):
29542         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29543         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29544         * m4/hard-locale.m4 (gl_HARD_LOCALE):
29545         * m4/hash.m4 (gl_HASH):
29546         * m4/idcache.m4 (gl_IDCACHE):
29547         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29548         * m4/lchown.m4 (gl_FUNC_LCHOWN):
29549         * m4/long-options.m4 (gl_LONG_OPTIONS):
29550         * m4/lstat.m4 (gl_FUNC_LSTAT):
29551         * m4/md5.m4 (gl_MD5):
29552         * m4/memcasecmp.m4 (gl_MEMCASECMP):
29553         * m4/memcoll.m4 (gl_MEMCOLL):
29554         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29556         * m4/memxor.m4 (gl_MEMXOR):
29557         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29558         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29559         * m4/modechange.m4 (gl_MODECHANGE):
29560         * m4/mountlist.m4 (gl_MOUNTLIST):
29561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29562         * m4/openat.m4 (gl_FUNC_OPENAT):
29563         * m4/pathmax.m4 (gl_PATHMAX):
29564         * m4/physmem.m4 (gl_PHYSMEM):
29565         * m4/posixtm.m4 (gl_POSIXTM):
29566         * m4/posixver.m4 (gl_POSIXVER):
29567         * m4/quote.m4 (gl_QUOTE):
29568         * m4/quotearg.m4 (gl_QUOTEARG):
29569         * m4/readtokens.m4 (gl_READTOKENS):
29570         * m4/readutmp.m4 (gl_READUTMP):
29571         * m4/regex.m4 (gl_REGEX):
29572         * m4/safe-read.m4 (gl_SAFE_READ):
29573         * m4/safe-write.m4 (gl_SAFE_WRITE):
29574         * m4/same.m4 (gl_SAME):
29575         * m4/save-cwd.m4 (gl_SAVE_CWD):
29576         * m4/savedir.m4 (gl_SAVEDIR):
29577         * m4/settime.m4 (gl_SETTIME):
29578         * m4/sha1.m4 (gl_SHA1):
29579         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29580         * m4/stat-macros.m4 (gl_STAT_MACROS):
29581         * m4/stat-time.m4 (gl_STAT_TIME):
29582         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29583         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29584         * m4/strdup.m4 (gl_FUNC_STRDUP):
29585         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29586         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29587         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29588         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29589         * m4/time_r.m4 (gl_TIME_R):
29590         * m4/timespec.m4 (gl_TIMESPEC):
29591         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29592         * m4/unlinkdir.m4 (gl_UNLINKDIR):
29593         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29594         * m4/userspec.m4 (gl_USERSPEC):
29595         * m4/utimecmp.m4 (gl_UTIMECMP):
29596         * m4/utimens.m4 (gl_UTIMENS):
29597         * m4/xalloc.m4 (gl_XALLOC):
29598         * m4/xgetcwd.m4 (gl_XGETCWD):
29599         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29600         * m4/xreadlink.m4 (gl_XREADLINK):
29601         * m4/xstrtod.m4 (gl_XSTRTOD):
29602         * m4/yesno.m4 (gl_YESNO):
29603         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29604         to get the necessary .h files and whatnot.
29605
29606 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
29607             Bruno Haible  <bruno@clisp.org>
29608
29609         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
29610         /bin/sh understanding of '!' conditional negation.
29611
29612 2006-08-21  Jim Meyering  <jim@meyering.net>
29613
29614         * modules/openat (Depends-on): Really alphabetize.
29615
29616         * modules/acl (Depends-on): Add error and quote.
29617
29618         * check-module (find_included_lib_files): Add at-func.c to the
29619         ok-to-include-more-than-once white list.
29620
29621         * modules/openat (Depends-on): Add lstat.  Alphabetize.
29622
29623 2006-08-21  Bruno Haible  <bruno@clisp.org>
29624
29625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29626         Emit a pkgdata_DATA variable only if some snippets add contents to it.
29627         Reported by Martin Lambers <marlam@marlam.de>.
29628
29629 2006-08-21  Bruno Haible  <bruno@clisp.org>
29630
29631         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
29632         specify an installation location, don't emit a noinst_LIBRARIES or
29633         noinst_LTLIBRARIES assignment.
29634
29635 2006-08-21  Bruno Haible  <bruno@clisp.org>
29636
29637         BeOS portability.
29638         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
29639         BeOS has mbrtowc() but no <wctype.h>.
29640
29641 2006-08-21  Bruno Haible  <bruno@clisp.org>
29642
29643         BeOS portability.
29644         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
29645         exist.
29646
29647 2006-08-21  Bruno Haible  <bruno@clisp.org>
29648
29649         BeOS portability.
29650         * lib/mbchar.h: Include <wctype.h> only if it exists.
29651
29652 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29653
29654         Remove files that are no longer needed by their respective modules.
29655         * m4/obstack.m4: Remove.
29656         * m4/strerror_r.m4: Remove.
29657         * m4/uint32_t.m4: Remove.
29658         * m4/uintptr_t.m4: Remove.
29659         * m4/ullong_max.m4: Remove.
29660         * m4/xstrtoimax.m4: Remove.
29661         * m4/xstrtoumax.m4: Remove.
29662
29663         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
29664         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
29665         dependencies now capture this.
29666
29667         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
29668         Do not use AC_LIBSOURCES, since gnulib modules now do this.
29669         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
29670         * m4/human.m4 (gl_HUMAN): Likewise.
29671         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
29672         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
29673
29674         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
29675
29676         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
29677         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
29678         stdint.
29679         * m4/human.m4 (gl_HUMAN): Likewise.
29680         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
29681         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
29682         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29683         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29684         * m4/xstrtol (gl_XSTRTOL): Likewise.
29685
29686         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
29687         AC_TYPE_LONG_LONG_INT.
29688         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29689         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
29690         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
29691         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29692
29693         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
29694         on stdbool.
29695
29696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
29697         (gl_PREREQ_XSTRTOUL): Remove.
29698
29699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
29700
29701         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
29702         mode.
29703
29704 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29705
29706         Add and change modules to make it easier for coreutils to use
29707         gnulib-tool.
29708         * modules/backupfile (Files): Remove m4/d-ino.m4.
29709         (Depends-on): Add d-ino.
29710         * modules/cycle-check (Depends-on): Add stdint.
29711         (lib_SOURCES): Add cycle-check.h.
29712         * modules/d-ino: New module.
29713         * modules/d-type: New module.
29714         * modules/error (Files): Remove m4/strerror_r.m4.
29715         * modules/filemode (Files): Add m4/st_dm_mode.m4.
29716         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29717         m4/inttypes_h.m4, m4/uintmax_t.m4.
29718         (Depends-on): Add stdint.
29719         (lib_SOURCES): Add fsusage.h.
29720         * modules/getcwd (Files): Remove d-ino.m4.
29721         (Depends-on): Add d-ino.
29722         * modules/getndelim2 (Depends-on): Add stdint.
29723         * modules/glob (Files): Remove m4/d-type.m4.
29724         (Depends-on): Add d-type.
29725         * modules/host-os: New module.
29726         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
29727         m4/inttypes_h.m4, m4/uintmax_t.m4.
29728         * Depends-on: Add stdint.
29729         (lib_SOURCES): Add human.h.
29730         * modules/inttostr (Files): Remove m4/intmax_t.m4,
29731         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
29732         m4/uintmax_t.m4, m4/ulonglong.m4.
29733         (Depends-on): Add stdint.
29734         (EXTRA_DIST): Add inttostr.h.
29735         * modules/lchmod: New module.
29736         * modules/link-follow: New module.
29737         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
29738         (Depends-on): Add lchmod.
29739         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
29740         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
29741         (Depends-on): Add stdint.
29742         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
29743         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
29744         (Depends-on): Add stdint.
29745         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
29746         * modules/perl: New module.
29747         * modules/regex (Depends-on): Add stdint.
29748         * modules/rmdir-errno: New module.
29749         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29750         m4/intmax_t.m4.
29751         (Depends-on): Add stdint.
29752         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29753         m4/uintmax_t.m4.
29754         (Depends-on): Add stdint.
29755         * modules/unlink-busy: New module.
29756         * modules/utimecmp (Depends-on): Add stdint.
29757         * modules/uptime: New module.
29758         * modules/winsz-ioctl: New module.
29759         * modules/winsz-termios: New module.
29760         * modules/xnanosleep (Depends-on): Add nanosleep.
29761         * modules/ullong_max: Remove.
29762         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
29763         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
29764         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
29765         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
29766         (Depends-on): Add inttypes.
29767         (lib_SOURCES): Add xstrtol.h.
29768         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
29769         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
29770         * MODULES.html.sh: Move 'assert' into the assert section.
29771         Move 'dummy' into the linking section.
29772         Remove ullong_max.
29773         Add section for compatibility checks for POSIX:2001 functions,
29774         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
29775         winsz-ioctl, and winsz-termios into it.
29776         Add lchmod.
29777         Add top-level Misc section and put host-os, perl, and uptime
29778         into it.
29779
29780 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29781
29782         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
29783         now assume the stdint module.  Do not include inttypes.h.
29784         * lib/fsusage.h: Likewise.
29785         * lib/getndelim2.c: Likewise.
29786         * lib/human.h: Likewise.
29787         * lib/inttostr.h: Likewise.
29788         * lib/obstack.c: Likewise.
29789         * lib/regex_internal.h: Likewise.
29790         * lib/tempname.c: Likewise.
29791         * lib/utimecmp.c: Likewise.
29792         * lib/xstrtol.h: Likewise.
29793
29794         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
29795
29796         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
29797         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
29798         * lib/xtime.h: Likewise.
29799
29800 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29801
29802         * modules/openat (Files): Add lib/fchmodat.c.
29803         Fixes problem reported by Jay Youngman.
29804
29805 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29806
29807         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
29808         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
29809
29810 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29811             Bruno Haible  <bruno@clisp.org>
29812
29813         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
29814         and is a script that invokes bison. Tighten the code. Add comments.
29815
29816 2006-08-18  Jim Meyering  <jim@meyering.net>
29817
29818         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
29819         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
29820         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
29821         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
29822
29823 2006-08-18  Bruno Haible  <bruno@clisp.org>
29824
29825         * modules/bison-i18n: New file.
29826         * MODULES.html.sh (Internationalization functions): Add it.
29827
29828 2006-08-18  Bruno Haible  <bruno@clisp.org>
29829
29830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
29831         sys/statvfs.h. When getmntinfo was found, check its declaration and
29832         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
29833
29834 2006-08-18  Bruno Haible  <bruno@clisp.org>
29835
29836         * m4/bison-i18n.m4: New file, from bison.
29837
29838 2006-08-18  Bruno Haible  <bruno@clisp.org>
29839
29840         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
29841         (ME_DUMMY): Treat "kernfs" as a dummy.
29842         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
29843
29844 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29845
29846         Update from coreutils.
29847
29848         2006-08-15  Jim Meyering  <jim@meyering.net>
29849
29850         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
29851
29852         2006-01-17  Jim Meyering  <jim@meyering.net>
29853
29854         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
29855
29856         2006-01-11  Jim Meyering  <jim@meyering.net>
29857
29858         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
29859         Check for the lchmod function.
29860
29861 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29862
29863         Update from coreutils.
29864
29865         * lib/__fpending.h: Add copyright notice.
29866         * lib/fprintftime.h: Likewise.
29867         * lib/savedir.c: Use (C) in copyright notice.
29868         * lib/savedir.h: Likewise.
29869
29870         2006-08-15  Jim Meyering  <jim@meyering.net>
29871
29872         * lib/at-func.c: New file, with the logic of all emulated at-functions.
29873         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
29874         in support of the EXPECTED_ERRNO macro.
29875         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
29876         definitions.  Instead, define the appropriate symbols and include
29877         "at-func.c".
29878         * lib/mkdirat.c (mkdirat): Likewise.
29879         * lib/fchmodat.c (fchmodat): Likewise.
29880         (ENOSYS): Remove definition.
29881         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
29882         it.  Don't include "unistd--.h" -- it wasn't ever used.
29883
29884         2006-01-17  Jim Meyering  <jim@meyering.net>
29885
29886         Rewrite fts.c not to change the current working directory,
29887         by using openat, fstatat, fdopendir, etc..
29888
29889         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
29890         (HAVE_OPENAT_SUPPORT): Define.
29891         [_LIBC] (fchdir): Don't undef or define; no longer used.
29892         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
29893         Now, this `function' always succeeds, and consumes its file descriptor
29894         parameter -- so callers must not close such FDs.  Update callers.
29895         (diropen_fd, opendirat, cwd_advance_fd): New functions.
29896         (diropen): Add parameter, SP.  Adjust all callers.
29897         Implement using diropen_fd, rather than open.
29898         (fts_open): Initialize new member, fts_cwd_fd.
29899         Remove fts_rft-setting code.
29900         (fts_close): Close fts_cwd_fd, if necessary.
29901         (__opendir2): Define in terms of opendir or opendirat,
29902         depending on whether the FST_NOCHDIR flag is set.
29903         (fts_build): Since fts_safe_changedir consumes its FD, and since
29904         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
29905         and close the dup'd file descriptor upon failure.
29906         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
29907         (fts_safe_changedir): Tweak semantics to reflect that this function
29908         now calls cwd_advance_fd and hence consumes its FD argument.
29909         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
29910         [struct FTS] (fts_rft): Remove now-unused member.
29911         [struct FTS] (fts_cycle.state): Improve comment.
29912
29913         * lib/openat.c (openat_needs_fchdir): New function.
29914         * lib/openat.h (openat_needs_fchdir): Declare it.
29915
29916 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29917
29918         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
29919         Problem and fix reported by Pádraig Brady in
29920         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
29921
29922 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
29925
29926 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29927
29928         * lib/memcoll.c (memcoll): Optimize for the common case where the
29929         arguments are bytewise equal.
29930
29931 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29932
29933         * doc/regexprops-generic.texi: Add a copyright notice.
29934
29935 2006-08-15  Bruno Haible  <bruno@clisp.org>
29936
29937         * modules/tmpdir (License): Change to LGPL.
29938
29939 2006-08-15  Bruno Haible  <bruno@clisp.org>
29940
29941         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
29942         module.
29943
29944 2006-08-14  Simon Josefsson  <jas@extundo.com>
29945
29946         * config/srclist.txt: Add gnupload.
29947
29948 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         Change copyright notice from LGPL 2 to GPL 2, since that's the
29951         standard form used in the gnulib repository.
29952         * tests/test-lock.c: Likewise.
29953         * tests/test-stdint.c: Likewise.
29954         * tests/test-tls.c: Likewise.
29955
29956         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
29957         prelude-manager.  User shorter URLs for GNU projects, without '?'.
29958         Add copyright notice.
29959
29960         * check-module: Add copyright notice.  Output a copyright
29961         notice if "--version" is specified.
29962         * modules/COPYING: New file.
29963         * tests/test-getaddrinfo.c: Add copyright notice.
29964         * tests/test-verify.c: Likewise.
29965
29966 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29967
29968         Change copyright notice from LGPL 2 to GPL 2, since that's the
29969         standard form used in the gnulib repository.
29970         * lib/lock.c: LGPL -> GPL.
29971         * lib/lock.h: Likewise.
29972         * lib/strnlen1.c: Likewise.
29973         * lib/strnlen1.h: Likewise.
29974         * lib/tls.c: Likewise.
29975         * lib/tls.h: Likewise.
29976         * lib/tmpdir.c: Likewise.
29977
29978         * lib/TODO: Remove; this belongs only in coreutils.
29979
29980 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         Add copyright notices to long-enough files that lack them, since
29983         otherwise the files aren't clearly free.  Use the same notice that
29984         getdate.texi already uses.
29985         * doc/alloca-opt.texi: Add copyright notice.
29986         * doc/alloca.texi: Likewise.
29987         * doc/ctime.texi: Likewise.
29988         * doc/functions.texi: Likewise.
29989         * doc/gcd.texi: Likewise.
29990         * doc/gnulib-tool.texi: Likewise.
29991         * doc/inet_ntoa.texi: Likewise.
29992         * doc/visibility.texi: Likewise.
29993
29994         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
29995         * doc/quote.texi: Add copyright notice.
29996
29997         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
29998         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
29999         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30000         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30001         is now obsolete, and give a pointer to the Sun list.
30002         Add copyright notice.
30003
30004 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         * config/srclistvars.sh: Add copyright notice.
30007
30008 2006-08-14  Eric Blake  <ebb9@byu.net>
30009
30010         Import the following change from libc:
30011
30012         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30013
30014         Upstream bug 2997.
30015         * lib/misc/error.c: Add space between program name and message if file
30016         name is missing.
30017
30018 2006-08-12  Karl Berry  <karl@gnu.org>
30019
30020         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30021         remove, these originate in gnulib now.
30022
30023 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30024
30025         * doc/Makefile (standards.info standards.html standards.dvi):
30026         Also depend on make-stds.texi.
30027
30028 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30029
30030         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30031         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30032
30033         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30034         in wchar_t.  Problem reported by Eric Blake.
30035
30036         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30037         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30038         Also, help the compiler to keep LEN in a register.
30039
30040 2006-08-11  Eric Blake  <ebb9@byu.net>
30041
30042         * users.txt: Sort.  Add tar.
30043
30044 2006-08-11  Bruno Haible  <bruno@clisp.org>
30045
30046         * users.txt: New file.
30047
30048 2006-08-11  Bruno Haible  <bruno@clisp.org>
30049
30050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30051         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30052
30053 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30054
30055         * modules/snprintf (Depends-on): Remove minmax.
30056         (Maintainer): Add self and Bruno.
30057
30058 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30059
30060         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30061         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30062         (EOVERFLOW): Define if the system does not.
30063         Do not include "minmax.h"; it wasn't used.
30064         (snprintf): Don't assume size_t promotes to an unsigned type.
30065         Fix bug when generated string was too long for the buffer: the
30066         buffer's contents are supposed to be the initial prefix of the
30067         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30068         exceeds INT_MAX; do the check ourselves.
30069
30070         Import the following changes from libc:
30071
30072         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30073
30074         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30075         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30076         set wc to the byte which couldn't be converted.
30077         (re_string_reconstruct): Don't clear valid_raw_len before calling
30078         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30079         tip_context using re_string_context_at.
30080
30081         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30082
30083         * lib/posix/regex.h: g++ still cannot handled [restrict].
30084
30085         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30086
30087         * lib/posix/regex.h: Remove special handling for VMS.
30088
30089 2006-08-10  Jim Meyering  <jim@meyering.net>
30090
30091         * modules/same-inode: New module.
30092         * modules/dev-ino: New module.
30093         * modules/cycle-check: Depend on these modules, rather than simply
30094         including their .h files.
30095         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30096         required via m4/cycle-check.m4.
30097         * modules/same: Depend on new same-inode module, rather than
30098         including same-inode.h.
30099         * modules/chdir-safer: New file.
30100
30101         * modules/chown (Depends-on): Add stat-macros.
30102
30103 2006-08-10  Jim Meyering  <jim@meyering.net>
30104
30105         * m4/cycle-check.m4: New file.
30106         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30107         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30108
30109 2006-08-10  Eric Blake  <ebb9@byu.net>
30110
30111         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30112         in from original proposal.
30113
30114 2006-08-10  Eric Blake  <ebb9@byu.net>
30115         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30116
30117         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30118         namespace.
30119
30120 2006-08-10  Bruno Haible  <bruno@clisp.org>
30121
30122         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30123         as well.
30124
30125 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30126
30127         Sync from coreutils.
30128
30129         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30130
30131         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30132         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30133
30134 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         * modules/restrict: Remove; no longer needed now that we assume
30137         Autoconf 2.59 or later.
30138         * MODULES.html.sh: Remove 'restrict'.
30139         * modules/argp (Depends-on): Remove 'restrict'.
30140         * modules/base64 (Depends-on): Likewise.
30141         * modules/gc (Depends-on): Likewise.
30142         * modules/getaddrinfo (Depends-on): Likewise.
30143         * modules/glob (Depends-on): Likewise.
30144         * modules/inet_ntop (Depends-on): Likewise.
30145         * modules/inet_pton (Depends-on): Likewise.
30146         * modules/memxor (Depends-on): Likewise.
30147         * modules/regex (Depends-on): Likewise.
30148         * modules/strtok_r (Depends-on): Likewise.
30149         * modules/time_r (Depends-on): Likewise.
30150
30151 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30152
30153         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30154         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30155         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30156         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30157         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30158         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30159         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30160         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30161
30162         Merge from coreutils.
30163         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30164         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30166         * m4/time_r.m4 (gl_TIME_R): Likewise.
30167
30168 2006-08-09  Karl Berry  <karl@gnu.org>
30169
30170         * config/srclist.txt: no more gettext-tools, per Bruno.
30171
30172 2006-08-08  Eric Blake  <ebb9@byu.net>
30173
30174         * modules/verror: New module.
30175         * MODULES.html.sh: Document it.
30176
30177 2006-08-08  Eric Blake  <ebb9@byu.net>
30178
30179         * lib/verror.h, lib/verror.c: New files.
30180
30181 2006-08-08  Eric Blake  <ebb9@byu.net>
30182
30183         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30184         verror_at_line output complies with GNU Coding Standards even when
30185         file is NULL.
30186
30187 2006-08-07  Bruno Haible  <bruno@clisp.org>
30188
30189         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30190         versions of AIX.
30191         Reported by Ralf Wildenhues.
30192
30193 2006-08-07  Bruno Haible  <bruno@clisp.org>
30194
30195         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30196         in an AC_DEFUN. Needed so that the autoconf snippets can use
30197         AC_REQUIRE.
30198
30199 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30200
30201         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30202         Initialize pkgdata_DATA.
30203         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30204         overriding it.
30205
30206 2006-08-06  Eric Blake  <ebb9@byu.net>
30207
30208         * lib/error.h: Fold in some upstream changes from glibc.
30209         * lib/error.c: Likewise.
30210
30211 2006-08-04  Bruno Haible  <bruno@clisp.org>
30212
30213         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30214         Make the mostlyclean-local rule depend on mostlyclean-generic.
30215         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30216
30217 2006-07-31  Bruno Haible  <bruno@clisp.org>
30218
30219         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30220         <stdlib.h>, <string.h>.
30221
30222 2006-07-30  Bruno Haible  <bruno@clisp.org>
30223
30224         * modules/readlink (License): Change to LGPL.
30225
30226 2006-07-30  Bruno Haible  <bruno@clisp.org>
30227
30228         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30229         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30230         set PKGDATADIR to point to it.
30231
30232 2006-07-30  Bruno Haible  <bruno@clisp.org>
30233
30234         * modules/csharpexec (configure.ac): Comment out macro invocation.
30235         * modules/javaexec (configure.ac): Likewise.
30236         * modules/javacomp-script (configure.ac): Likewise.
30237
30238         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30239
30240 2006-07-30  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30243         linked-list.
30244
30245 2006-07-30  Bruno Haible  <bruno@clisp.org>
30246
30247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30248
30249 2006-07-30  Bruno Haible  <bruno@clisp.org>
30250
30251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30252         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30253         get removed.
30254
30255 2006-07-29  Bruno Haible  <bruno@clisp.org>
30256
30257         Make it possible for gnulib-tool to work with locally modified or
30258         augmented gnulib repositories.
30259         * gnulib-tool (func_usage): Document --local-dir option.
30260         (local_gnulib_dir): New variable.
30261         Handle --local-dir option.
30262         (func_lookup_file): New function.
30263         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30264         (func_get_description, func_get_filelist, func_get_description,
30265         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30266         func_get_automake_snippet, func_get_include_directive,
30267         func_get_license, func_get_maintainer): Use func_lookup_file.
30268         (func_import, func_create_testdir): Use func_lookup_file.
30269
30270 2006-07-29  Bruno Haible  <bruno@clisp.org>
30271
30272         * modules/setenv (Depends-on): Add unistd.
30273
30274 2006-07-29  Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30277
30278 2006-07-29  Bruno Haible  <bruno@clisp.org>
30279
30280         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30281
30282 2006-07-29  Bruno Haible  <bruno@clisp.org>
30283
30284         * gnulib-tool (import, update): If there is no Makefile.am, look at
30285         aclocal.m4, instead of bailing out.
30286
30287 2006-07-29  Bruno Haible  <bruno@clisp.org>
30288
30289         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30290         Categorize the options by when they are useful.
30291
30292 2006-07-29  Bruno Haible  <bruno@clisp.org>
30293
30294         * gnulib-tool (func_usage): Document option --no-libtool.
30295         Handle option --no-libtool.
30296         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30297         for changed semantics of $libtool variable.
30298         (func_import): Likewise. If libtool is not used, show this through
30299         an option --no-libtool.
30300         (func_create_testdir): Update.
30301
30302 2006-07-29  Bruno Haible  <bruno@clisp.org>
30303
30304         * gnulib-tool (func_import): Extend error message about missing
30305         --doc-base.
30306
30307 2006-07-29  Bruno Haible  <bruno@clisp.org>
30308
30309         * gnulib-tool (func_import): Don't create the $docbase directory if
30310         there is no file to store there.
30311
30312 2006-07-29  Bruno Haible  <bruno@clisp.org>
30313
30314         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30315         relevant, look for configure.ac there, not in the current directory.
30316         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30317
30318 2006-07-29  Bruno Haible  <bruno@clisp.org>
30319
30320         * gnulib-tool (SORT): New variable.
30321         (func_usage): Undocument --assume-autoconf option.
30322         Remove --assume-autoconf option handling.
30323         (autoconf_minversion): Determine from the contents of configure.ac.
30324         (func_import): Remove autoconf_minversion handling.
30325         Suggested by Eric Blake.
30326
30327 2006-07-29  Bruno Haible  <bruno@clisp.org>
30328
30329         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30330
30331 2006-07-29  Bruno Haible  <bruno@clisp.org>
30332
30333         * config/srclist.txt (*setenv.[ch]): Remove rules.
30334
30335 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30336
30337         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30338
30339 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30340
30341         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30342         arpa/inet.h.
30343
30344 2006-07-28  Simon Josefsson  <jas@extundo.com>
30345
30346         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30347         * modules/inet_pton (Depends-on): Likewise.
30348
30349 2006-07-28  Simon Josefsson  <jas@extundo.com>
30350
30351         * m4/netinet_in_h.m4: New file.
30352
30353 2006-07-28  Simon Josefsson  <jas@extundo.com>
30354
30355         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30356         #include's.
30357
30358 2006-07-28  Simon Josefsson  <jas@extundo.com>
30359
30360         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30361         #include's.
30362
30363 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30364
30365         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30366         setgid on directories only if they set these bits.
30367         * lib/modechange.h: Remove obsolete comment about masks.
30368
30369 2006-07-28  Eric Blake  <ebb9@byu.net>
30370
30371         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30372         macro expansion.
30373
30374 2006-07-28  Bruno Haible  <bruno@clisp.org>
30375
30376         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30377
30378 2006-07-28  Bruno Haible  <bruno@clisp.org>
30379
30380         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30381
30382 2006-07-28  Bruno Haible  <bruno@clisp.org>
30383
30384         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30385         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30386         Define fallbacks.
30387         Avoids link error on FreeBSD 4.x.
30388         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30389
30390         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30391         encoding.
30392         * lib/mbswidth.c (iswcntrl): Likewise.
30393
30394 2006-07-27  Bruno Haible  <bruno@clisp.org>
30395
30396         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30397         test.
30398
30399 2006-07-27  Bruno Haible  <bruno@clisp.org>
30400
30401         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30402         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30403         defined.
30404
30405 2006-07-26  Eric Blake  <ebb9@byu.net>
30406
30407         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30408
30409 2006-07-26  Eric Blake  <ebb9@byu.net>
30410
30411         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30412         like mingw that lack mkstemp.
30413         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30414         avoid compilation warning on mingw.
30415
30416 2006-07-26  Bruno Haible  <bruno@clisp.org>
30417
30418         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30419         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30420         INT_FAST*_MIN, INTPTR_MIN.
30421
30422 2006-07-25  Bruno Haible  <bruno@clisp.org>
30423
30424         * modules/version-etc (Depends-on): Add stdarg.
30425
30426 2006-07-25  Bruno Haible  <bruno@clisp.org>
30427
30428         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30429         complex commands.
30430
30431 2006-07-25  Bruno Haible  <bruno@clisp.org>
30432
30433         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30434         defined in <stdarg.h> or config.h.
30435
30436 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30437
30438         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30439         (gl_STDIO_SAFER): Remove.
30440
30441 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30442
30443         * MODULES.html.sh (File stream based Input/Output):
30444         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30445         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30446         * modules/fopen-safer, modules/tmpfile-safer: New files.
30447         * modules/stdio-safer: Remove.
30448
30449 2006-07-24  Bruno Haible  <bruno@clisp.org>
30450
30451         * modules/tmpdir: New file.
30452         * MODULES.html.sh (File system functions): Add it.
30453
30454 2006-07-24  Bruno Haible  <bruno@clisp.org>
30455
30456         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30457         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30458
30459 2006-07-24  Bruno Haible  <bruno@clisp.org>
30460
30461         * modules/clean-temp: New file.
30462
30463 2006-07-24  Bruno Haible  <bruno@clisp.org>
30464
30465         * m4/tmpdir.m4: New file, from GNU gettext.
30466
30467 2006-07-24  Bruno Haible  <bruno@clisp.org>
30468
30469         * lib/tmpdir.h: New file, from GNU gettext.
30470         * lib/tmpdir.c: New file, from GNU gettext.
30471
30472 2006-07-24  Bruno Haible  <bruno@clisp.org>
30473
30474         * lib/clean-temp.h: New file, from GNU gettext.
30475         * lib/clean-temp.c: New file, from GNU gettext.
30476
30477 2006-07-23  Eric Blake  <ebb9@byu.net>
30478
30479         * modules/stdio-safer (Files): Add tmpfile-safer.c.
30480         (Depends-on): Add binary-io.
30481
30482 2006-07-23  Eric Blake  <ebb9@byu.net>
30483
30484         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30485
30486 2006-07-23  Eric Blake  <ebb9@byu.net>
30487
30488         * lib/tmpfile-safer.c: New file.
30489         * lib/stdio-safer.h (fopen_safer): Add prototype.
30490         * lib/stdio--.h (tmpfile): Make safer.
30491
30492 2006-07-23  Bruno Haible  <bruno@clisp.org>
30493
30494         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30495         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30496         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30497         gl_linked_remove_at): Use it.
30498
30499 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30500         and Simon Josefsson <jas@extundo.com>
30501
30502         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30503
30504         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30505
30506 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30507
30508         * modules/close-stream: New file.
30509         * modules/closeout (Description): Make it clear that it exits
30510         with a diagnostic on error.
30511         (Depends-on): Add close-stream.  Remove fpending, stdbool.
30512         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30513
30514 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30515
30516         * m4/close-stream.m4: New file.
30517
30518 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30519
30520         * lib/close-stream.c, lib/close-stream.h: New files.
30521
30522 2006-07-22  Bruno Haible  <bruno@clisp.org>
30523
30524         Merge from GNU gettext 0.15.
30525
30526         2006-05-01  Bruno Haible  <bruno@clisp.org>
30527
30528                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30529
30530         2006-07-22  Bruno Haible  <bruno@clisp.org>
30531
30532                 * modules/javaversion: New file.
30533                 * MODULES.html.sh (Java): Add javaversion.
30534
30535         2006-03-12  Bruno Haible  <bruno@clisp.org>
30536
30537                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30538
30539         2005-12-04  Bruno Haible  <bruno@clisp.org>
30540
30541                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30542                 (untested).
30543
30544         2006-06-21  Bruno Haible  <bruno@clisp.org>
30545
30546                 Avoid warnings from recent versions of mcs.
30547                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30548                 -o, -L, -r any more. Use options documented since mcs-1.0
30549                 instead. Similarly for -g.
30550
30551         2005-12-04  Bruno Haible  <bruno@clisp.org>
30552
30553                 * build-aux/csharpcomp.sh.in: Suffix for resources is
30554                 .resources, not .resource.
30555
30556         2005-07-09  Bruno Haible  <bruno@clisp.org>
30557
30558                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30559                 add a .dll suffix.
30560                 Reported by Mark Junker <mjscod@gmx.de>.
30561
30562         2006-07-22  Bruno Haible  <bruno@clisp.org>
30563
30564                 * modules/gettext: Upgrade to gettext-0.15.
30565                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30566                 m4/visibility.m4.
30567                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30568
30569 2006-07-22  Bruno Haible  <bruno@clisp.org>
30570
30571         Merge from GNU gettext 0.15.
30572
30573         2006-03-25  Bruno Haible  <bruno@clisp.org>
30574
30575                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30576
30577         2006-07-21  Bruno Haible  <bruno@clisp.org>
30578
30579                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30580                 "1.1".
30581
30582         2006-05-09  Bruno Haible  <bruno@clisp.org>
30583
30584                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30585                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30586                 for the conftestver execution.
30587
30588         2006-05-01  Bruno Haible  <bruno@clisp.org>
30589
30590                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30591                 optional target-version argument. Verify that the compiler
30592                 groks source of the specified source-version, or add -source
30593                 option as necessary. Verify that the compiler produces
30594                 bytecode in the specified target-version, or add -target and
30595                 -source options as necessary. Make the result of the test
30596                 available as variable CONF_JAVAC. Also log error output in
30597                 config.log.
30598
30599         2006-03-11  Bruno Haible  <bruno@clisp.org>
30600
30601                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30602
30603         2006-05-09  Bruno Haible  <bruno@clisp.org>
30604
30605                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30606                 CLASSPATH_SEPARATOR to a semicolon.
30607
30608         2006-03-12  Bruno Haible  <bruno@clisp.org>
30609
30610                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
30611                 available as variable CONF_JAVA, for subsequent autoconf
30612                 tests. Also log error output in config.log.
30613
30614         2006-07-19  Bruno Haible  <bruno@clisp.org>
30615
30616                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
30617                 that getline works on glibc2 systems. Needed to avoid trouble
30618                 in relocatable.c.
30619                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
30620
30621         2005-12-04  Bruno Haible  <bruno@clisp.org>
30622
30623                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
30624                 launcher (untested).
30625
30626         2005-12-04  Bruno Haible  <bruno@clisp.org>
30627
30628                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
30629
30630         2006-07-22  Bruno Haible  <bruno@clisp.org>
30631
30632                 * gettext.m4: Update from GNU gettext-0.15.
30633                 * nls.m4: Likewise.
30634                 * po.m4: Likewise.
30635                 * inttypes-pri.m4: Likewise.
30636                 * inttypes-h.m4: Renamed from inttypes.m4.
30637                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
30638
30639 2006-07-22  Bruno Haible  <bruno@clisp.org>
30640
30641         Merge from GNU gettext 0.15.
30642
30643         2005-07-05  Bruno Haible  <bruno@clisp.org>
30644
30645                 * printf-args.c (printf_fetchargs): Work around broken
30646                 definition of wint_t on mingw.
30647
30648         2005-02-12  Bruno Haible  <bruno@clisp.org>
30649
30650                 * xallocsa.h: Add extern "C" for C++.
30651
30652         2006-05-17  Bruno Haible  <bruno@clisp.org>
30653
30654                 Cygwin portability.
30655                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
30656
30657         2006-04-30  Bruno Haible  <bruno@clisp.org>
30658
30659                 * progreloc.c: Include <mach-o/dyld.h> if available.
30660                 (find_executable): Use _NSGetExecutablePath when possible.
30661
30662         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30663
30664                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
30665                 function.
30666
30667         2005-12-29  Bruno Haible  <bruno@clisp.org>
30668
30669                 * progreloc.c (set_program_name_and_installdir): Fix
30670                 compilation error.
30671
30672         2005-12-04  Bruno Haible  <bruno@clisp.org>
30673
30674                 Cygwin portability.
30675                 * progreloc.c: Include <windows.h> also on Cygwin.
30676                 (find_executable): Add support for Cygwin.
30677                 (set_program_name_and_installdir): Handle also platforms with
30678                 nonempty EXEEXT.
30679
30680         2006-07-11  Bruno Haible  <bruno@clisp.org>
30681
30682                 * javacomp.c: Fix a comment.
30683                 Reported by Jim Meyering.
30684
30685         2006-04-30  Bruno Haible  <bruno@clisp.org>
30686
30687                 * javacomp.h (compile_java_class): Add source_version,
30688                 target_version arguments.
30689                 * javacomp.c: Rewritten to choose only a compiler that
30690                 respects the specified source_version and target_version.
30691
30692         2006-06-27  Bruno Haible  <bruno@clisp.org>
30693
30694                 Assume correct S_ISDIR macro.
30695                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
30696
30697         2006-07-22  Bruno Haible  <bruno@clisp.org>
30698
30699                 * javaversion.h: New file, from GNU gettext.
30700                 * javaversion.c: New file, from GNU gettext.
30701                 * javaversion.java: New file, from GNU gettext.
30702                 * javaversion.class: New file, from GNU gettext.
30703
30704         2006-05-17  Bruno Haible  <bruno@clisp.org>
30705
30706                 Cygwin portability.
30707                 * javaexec.c (execute_java_class): Test for jview program
30708                 also on Cygwin.
30709
30710         2006-04-09  Bruno Haible  <bruno@clisp.org>
30711
30712                 * fatal-signal.c: Don't include string.h.
30713                 (at_fatal_signal): Use a copying loop instead of memcpy.
30714
30715         2005-12-04  Bruno Haible  <bruno@clisp.org>
30716
30717                 * csharpexec.c: Add support for 'clix' launcher (untested).
30718                 (execute_csharp_using_sscli): New function.
30719                 (execute_csharp_program): Call it.
30720
30721         2006-06-21  Bruno Haible  <bruno@clisp.org>
30722
30723                 Avoid warnings from recent versions of mcs.
30724                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
30725                 -o, -L, -r any more. Use options documented since mcs-1.0
30726                 instead. Similarly for -g.
30727
30728         2005-07-09  Bruno Haible  <bruno@clisp.org>
30729
30730                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
30731                 add a .dll suffix.
30732                 Reported by Mark Junker <mjscod@gmx.de>.
30733
30734         2006-06-17  Bruno Haible  <bruno@clisp.org>
30735
30736                 * config.charset: Update for NetBSD 3.0.
30737
30738         2006-05-17  Bruno Haible  <bruno@clisp.org>
30739
30740                 Cygwin portability.
30741                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
30742
30743         2006-05-16  Bruno Haible  <bruno@clisp.org>
30744
30745                 * localcharset.c [CYGWIN]: Include <windows.h>.
30746                 (get_charset_aliases): For Cygwin, return the same CPxxx
30747                 aliases list as under WIN32.
30748                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
30749                 the environment variables. Fall back to GetACP().
30750
30751         2006-04-05  Bruno Haible  <bruno@clisp.org>
30752
30753                 * config.charset: Update Juan Manuel Guerrero's address.
30754
30755         2005-02-12  Bruno Haible  <bruno@clisp.org>
30756
30757                 * allocsa.h: Add extern "C" for C++.
30758
30759         2005-02-10  Bruno Haible  <bruno@clisp.org>
30760
30761                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
30762                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
30763
30764         2006-07-22  Bruno Haible  <bruno@clisp.org>
30765
30766                 * gettext.h: Update to GNU gettext-0.15.
30767
30768 2006-07-22  Bruno Haible  <bruno@clisp.org>
30769
30770         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
30771         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
30772         lib-prefix.m4, longdouble.m4, ssize_t.m4.
30773
30774 2006-07-21  Eric Blake  <ebb9@byu.net>
30775
30776         * modules/stdlib-safer: New file.
30777         * MODULES.html.sh (File stream based Input/Output): Add
30778         stdlib-safer.
30779
30780 2006-07-21  Eric Blake  <ebb9@byu.net>
30781
30782         * lib/stdlib-safer.h: New file from coreutils, required by
30783         stdlib--.h.
30784
30785 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
30786
30787         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
30788
30789 2006-07-20  Bruno Haible  <bruno@clisp.org>
30790
30791         * gnulib-tool: Recognize new option --assume-autoconf.
30792         (autoconf_minversion): New variable.
30793         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
30794
30795 2006-07-20  Bruno Haible  <bruno@clisp.org>
30796
30797         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
30798
30799 2006-07-19  Derek R. Price  <derek@ximbiot.com>
30800
30801         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
30802         Reindent and repaginate.
30803
30804 2006-07-19  Derek Price  <derek@ximbiot.com>
30805
30806         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
30807         Correct grammar.
30808
30809 2006-07-17  Bruno Haible  <bruno@clisp.org>
30810
30811         * modules/list: New file.
30812         * modules/array-list: New file.
30813         * modules/carray-list, modules/carray-list-tests: New files.
30814         * modules/linked-list, modules/linked-list-tests: New files.
30815         * modules/avltree-list, modules/avltree-list-tests: New files.
30816         * modules/rbtree-list, modules/rbtree-list-tests: New files.
30817         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
30818         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
30819         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
30820         * modules/oset: New file.
30821         * modules/array-oset: New file.
30822         * modules/avltree-oset, modules/avltree-oset-tests: New files.
30823         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
30824         * tests/test-carray_list.c: New file.
30825         * tests/test-linked_list.c: New file.
30826         * tests/test-avltree_list.c: New file.
30827         * tests/test-rbtree_list.c: New file.
30828         * tests/test-linkedhash_list.c: New file.
30829         * tests/test-avltreehash_list.c: New file.
30830         * tests/test-rbtreehash_list.c: New file.
30831         * tests/test-avltree_oset.c: New file.
30832         * tests/test-rbtree_oset.c: New file.
30833         * MODULES.html.sh (Container data structures): New section.
30834
30835 2006-07-17  Bruno Haible  <bruno@clisp.org>
30836
30837         * m4/gl_list.m4: New file.
30838
30839 2006-07-17  Bruno Haible  <bruno@clisp.org>
30840
30841         * lib/gl_list.h: New file.
30842         * lib/gl_list.c: New file.
30843         * lib/gl_array_list.h: New file.
30844         * lib/gl_array_list.c: New file.
30845         * lib/gl_carray_list.h: New file.
30846         * lib/gl_carray_list.c: New file.
30847         * lib/gl_linked_list.h: New file.
30848         * lib/gl_linked_list.c: New file.
30849         * lib/gl_anylinked_list1.h: New file.
30850         * lib/gl_anylinked_list2.h: New file.
30851         * lib/gl_avltree_list.h: New file.
30852         * lib/gl_avltree_list.c: New file.
30853         * lib/gl_anyavltree_list1.h: New file.
30854         * lib/gl_anyavltree_list2.h: New file.
30855         * lib/gl_rbtree_list.h: New file.
30856         * lib/gl_rbtree_list.c: New file.
30857         * lib/gl_anyrbtree_list1.h: New file.
30858         * lib/gl_anyrbtree_list2.h: New file.
30859         * lib/gl_anytree_list1.h: New file.
30860         * lib/gl_anytree_list2.h: New file.
30861         * lib/gl_linkedhash_list.h: New file.
30862         * lib/gl_linkedhash_list.c: New file.
30863         * lib/gl_anyhash_list1.h: New file.
30864         * lib/gl_anyhash_list2.h: New file.
30865         * lib/gl_avltreehash_list.h: New file.
30866         * lib/gl_avltreehash_list.c: New file.
30867         * lib/gl_rbtreehash_list.h: New file.
30868         * lib/gl_rbtreehash_list.c: New file.
30869         * lib/gl_anytreehash_list1.h: New file.
30870         * lib/gl_anytreehash_list2.h: New file.
30871
30872         * lib/gl_oset.h: New file.
30873         * lib/gl_oset.c: New file.
30874         * lib/gl_array_oset.h: New file.
30875         * lib/gl_array_oset.c: New file.
30876         * lib/gl_avltree_oset.h: New file.
30877         * lib/gl_avltree_oset.c: New file.
30878         * lib/gl_rbtree_oset.h: New file.
30879         * lib/gl_rbtree_oset.c: New file.
30880         * lib/gl_anytree_oset.h: New file.
30881
30882 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30883
30884         * m4/mkancesdirs.m4: New file.
30885         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
30886         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
30887         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
30888         it.
30889
30890 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30891
30892         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
30893         * lib/mkancesdirs.h: New files.
30894         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
30895         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
30896         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
30897         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
30898         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
30899         callers changed.  Revamp internals significantly, by not
30900         attempting to create directories that are temporarily more
30901         permissive than the final results.  Do not attempt to use
30902         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
30903         This removes some race conditions, fixes some bugs, and simplifies
30904         things.  Use new dirchownmod function to do owner and mode changes.
30905         * lib/mkdir-p.h: Likewise.
30906         * lib/modechange.c (octal_to_mode): New function.
30907         (struct mode_change): New member mentioned.
30908         (make_node_op_equals): New arg mentioned.  All callers changed.
30909         (mode_compile): Keep track of which mode bits the user has explicitly
30910         mentioned.
30911         (mode_adjust): New arg DIR, so that we implement the X op correctly.
30912         New arg PMODE_BITS, to keep track of which mode bits the user
30913         mentioned; it treats S_ISUID and S_ISGID speciall.
30914         All callers changed.
30915         * lib/modechange.h: Likewise.
30916
30917 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30918
30919         * MODULES.html.sh: Add mkancestors.
30920         * modules/mkancesdirs: New module.
30921         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
30922         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
30923         The chdir-safer and afs files are now orphans; I'll remove them
30924         unless someone speaks up.
30925         Add lib/dirchownmod.c, lib/dirchownmod.h.
30926         (Depends-on): Remove alloca, chown, save-cwd, dirname.
30927         Add lchown, mkancesdirs.
30928         (Maintainer): Add self.
30929
30930 2006-07-15  Karl Berry  <karl@gnu.org>
30931
30932         * gnulib-tool: help message wording/arrangement.
30933
30934 2006-07-14  Simon Josefsson  <jas@extundo.com>
30935
30936         * doc/gnulib.texi (Libtool and Windows): New section.
30937
30938 2006-07-12  Simon Josefsson  <jas@extundo.com>
30939
30940         * modules/gendocs (License): Fix license, approved by Karl.
30941
30942 2006-07-12  Eric Blake  <ebb9@byu.net>
30943
30944         * MODULES.html.sh: Add gendocs.
30945
30946 2006-07-11  Eric Blake  <ebb9@byu.net>
30947
30948         * modules/fdl: New module, to install doc/fdl.texi.
30949         * MODULES.html.sh: Add new section for documentation modules.
30950         * gnulib-tool: Avoid space-tab.
30951         (--doc-base): New option, to manage files from doc.
30952
30953 2006-07-11  Eric Blake  <ebb9@byu.net>
30954
30955         * m4/absolute-header.m4: Fix comments to match recent change.
30956
30957 2006-07-11  Eric Blake  <ebb9@byu.net>
30958
30959         * gnulib-tool: List --doc-base before --tests-base.
30960
30961 2006-07-11  Derek R. Price  <derek@ximbiot.com>
30962
30963         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
30964
30965 2006-07-11  Bruno Haible  <bruno@clisp.org>
30966
30967         * README: Mention where to put documentation.
30968
30969 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30970
30971         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
30972
30973 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
30974
30975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
30976         to stdint.m4.
30977
30978 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
30979
30980         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
30981         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
30982         "no/such/file/stdint.h" when there is no such file, so that
30983         the resulting C code can be parsed by dodgy compilers.
30984         Problems reported by Bob Proulx.
30985
30986 2006-07-10  Derek R. Price  <derek@ximbiot.com>
30987
30988         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
30989         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
30990         macros into the GNU _D_EXACT_NAMLEN.
30991         * lib/savedir.c:  Likewise.
30992         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
30993
30994 2006-07-10  Derek R. Price  <derek@ximbiot.com>
30995         and Paul Eggert  <eggert@cs.ucla.edu>
30996
30997         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
30998         * m4/savedir.m4:
30999         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31000         macros into the GNU _D_EXACT_NAMLEN.
31001
31002 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31003
31004         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31005         around the absolute name, to work around a problem with the HP-UX
31006         11.23 native C compiler, reported by Bob Proulx.
31007
31008 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31009
31010         * doc/maintain.texi, make-stds.texi: Sync from
31011         <http://savannah.gnu.org/projects/gnustandards>.
31012
31013 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31014
31015         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31016
31017 2006-07-09  Jim Meyering  <jim@meyering.net>
31018
31019         * m4/glob.m4: Remove a doubled word in a comment.
31020
31021 2006-07-09  Jim Meyering  <jim@meyering.net>
31022
31023         * lib/argp-pv.c: Remove a doubled word in a comment.
31024         * lib/check-version.c (check_version): Likewise.
31025         * lib/javacomp.c (compile_java_class): Likewise.
31026
31027 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31028
31029         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31030         for the benefit of people using Autoconf 2.60.  If you want to
31031         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31032         (or m4/onceonly.m4, if pre-2.57) manually.
31033
31034 2006-07-08  Jim Meyering  <jim@meyering.net>
31035
31036         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31037         comment.
31038         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31039         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31040         comment.
31041
31042 2006-07-08  Jim Meyering  <jim@meyering.net>
31043
31044         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31045
31046 2006-07-07  Simon Josefsson  <jas@extundo.com>
31047
31048         * tests/test-crc.c: Change expected crc value, the test vector
31049         were probably computed using the old broken crc.c?
31050
31051 2006-07-06  Simon Josefsson  <jas@extundo.com>
31052
31053         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31054         now the canonical place for the M4 file).
31055
31056         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31057         from the sys_socket dependency now.
31058
31059         * modules/inet_pton (Files): Ditto.
31060
31061         * modules/inet_ntop (Files): Ditto.
31062
31063 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31064
31065         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31066         not gl_PREREQ_GETUSERSHELL.
31067
31068 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31069
31070         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31071         with only one argument, for Autoconf 2.60.
31072         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31073         expand to nothing, so add a shell command to avoid syntax error.
31074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31075
31076 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31077
31078         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31079
31080 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31081
31082         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31083         no longer needed.  Check for isblank decl.
31084         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31085         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31086         of existence.
31087
31088 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31089
31090         * lib/getloadavg.c: Use __VMS, not VMS.
31091         * lib/getopt.c: Likewise.
31092         * lib/getpagesize.h: Likewise.
31093         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31094         and probably does not work.
31095
31096 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31097
31098         * lib/.cppi-disable: Add wcwidth.
31099         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31100         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31101         (ISGRAPH): Remove.  All uses changed to isgraph.
31102         (FOLD) [!defined _LIBC]: Remove special case.
31103         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31104         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31105         HAVE_ISBLANK.
31106         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31107         case.
31108
31109 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31110
31111         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31112         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31113         brackets.  Other minor changes to suppress some compiler
31114         warnings.
31115
31116 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31117         and Paul Eggert  <eggert@cs.ucla.edu>
31118
31119         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31120         of invoking obsolescent AC_HEADER_DIRENT macro.
31121         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31122         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31125         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31126         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31127         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31128         * m4/readdir.m4: Remove; no longer needed.
31129
31130 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31131         and Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31134         Don't worry about this obsolete case any more.
31135         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31136         directories.
31137         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31138         worry about this obsolete case any more.
31139         * lib/fts.c: Likewise.
31140         * lib/getcwd.c: Likewise.
31141         * lib/glob.h: Likewise.
31142         * lib/savedir.c: Likewise.
31143
31144 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31145
31146         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31147         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31148         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31149         needed.
31150         All uses removed.
31151         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31152         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31153         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31154         needed.
31155         * m4/getdate.m4 (gl_GETDATE): Likewise.
31156         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31157         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31158         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31159         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31160         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31162         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31163         needed.
31164
31165 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31166
31167         * lib/memcasecmp.c: Include <limits.h>.
31168         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31169         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31170         Don't assume isdigit succeeds only on '0' through '9'.
31171
31172 2006-07-05  Eric Blake  <ebb9@byu.net>
31173
31174         * modules/getaddrinfo (Depends-on): Add snprintf.
31175
31176 2006-07-05  Eric Blake  <ebb9@byu.net>
31177
31178         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31179         to avoid 'header present but could not be compiled' on cygwin.
31180
31181 2006-07-05  Eric Blake  <ebb9@byu.net>
31182
31183         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31184         missing from netdb.h.
31185         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31186
31187 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31188
31189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31190         no longer needed.
31191         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31192         * m4/getdate.m4 (gl_GETDATE): Likewise.
31193         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31194         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31195         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31196         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31197         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31198
31199 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31200
31201         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31202         All uses of is_space replaced by isspace.
31203         * lib/exit.h: Don't talk about STDC_HEADERS.
31204         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31205         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31206         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31207         replaced by isprint etc.
31208         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31209         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31210         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31211         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31212         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31213         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31214
31215 2006-07-05  Bruno Haible  <bruno@clisp.org>
31216
31217         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31218         the function exists, before testing against AIX.
31219         Reported by Martin Lambers <marlam@marlam.de>.
31220
31221 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31222
31223         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31224         From Mark D. Baushke.
31225
31226 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31227
31228         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31229         to the absolute name, not just one, to bypass Sun C 5.8's
31230         "warning: #include of /usr/include/... may be non-portable".
31231
31232 2006-07-04  Eric Blake  <ebb9@byu.net>
31233
31234         * modules/dirname-tests: New test module.
31235         * tests/test-dirname.c: New file, replacing dirname.c
31236         TEST_DIRNAME section that was recently deleted.
31237
31238 2006-07-04  Bruno Haible  <bruno@clisp.org>
31239
31240         Assume ANSI C header files and <ctype.h> functions.
31241         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31242         (mbsnwidth): Use isprint, iscntrl instead.
31243
31244 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31245
31246         Merge from coreutils.
31247         * MODULES.html.sh: Add xstrtold.
31248         * modules/xstrtold: New file.
31249         * modules/cycle-check (Files): Add lib/same-inode.h.
31250         * modules/dirname (Files): Add m4/double-slash-root.m4.
31251         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31252         * modules/mkdir-p (Files): Add lib/same-inode.h.
31253         * modules/same (Files): Add lib/same-inode.h.
31254
31255 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31256
31257         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31258         This is to keep the terminology clean; POSIX talks about
31259         "absolute pathnames", not "full pathnames", but the GNU
31260         Coding Standards say to use "path" for something else;
31261         so use "absolute" to keep both sides happy.
31262         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31263         Set gl_absolute_header, not gl_full_header_path.
31264         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31265         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31266         All uses changed.
31267
31268         Merge from coreutils.
31269
31270         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31271
31272         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31273         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31274         want to require the building of c-strtod.o.
31275         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31276         needs -lm directly.
31277         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31278
31279         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31280
31281         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31282         --as-needed option if available.  Problem reported by Albert Chin in
31283         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31284         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31285         cc merely issues a bunch of annoying warnings for --as-needed
31286         (this problem was reported by Bob Proulx).  Also, try linking with
31287         -lm to detect a bug in binutils 2.16 (this problem was reported
31288         by Ralf Wildenhues).
31289
31290         2006-06-18  Jim Meyering  <jim@meyering.net>
31291
31292         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31293         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31294         macro.
31295         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31296         also check for glibc-2.4's abort-inducing bug.
31297
31298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31299         Low-probability clean-up should be to use rmdir to get rid of
31300         the just-created directory, not unlink.
31301
31302         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31303         configure fail, and request a bug report to inform us about it.
31304         Add a comment that, barring reports to the contrary, in 2007 we'll
31305         assume ftruncate is universally available.
31306
31307         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31308
31309         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31310
31311         2006-03-12  Jim Meyering  <jim@meyering.net>
31312
31313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31314         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31315         * m4/same.m4 (gl_SAME): Likewise.
31316         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31317
31318         2006-03-11  Eric Blake  <ebb9@byu.net>
31319
31320         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31321         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31322         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31323         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31324
31325 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31326
31327         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31328         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31329         reported by Mark D. Baushke, one in
31330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31331
31332         Merge from coreutils.
31333
31334         * lib/.cppi-disable: Add stdint_.h.
31335         * lib/.cvsignore: Add stdint.h.
31336
31337         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31340         both double and long double versions.
31341         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31342         * lib/xstrtold.c: New file.
31343         * lib/xstrtod.h (xstrtold): New decl.
31344
31345         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31346
31347         * lib/filemode.c (setst): Remove.
31348         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31349         (arguably) clearer, and the generated code is a bit smaller on my
31350         Debian GNU/Linux stable x86 host.
31351
31352         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31353
31354         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31355         Assume that filemode.h includes sys/types.h and sys/stat.h.
31356         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31357         (ftypelet): Reorder to put common cases first, for efficiency.
31358         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31359         to do 'M'.
31360         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31361         of 10, for compatibility with FreeBSD.  All callers changed.
31362         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31363         types that can't be deduced solely from st_mode.  First arg is now a
31364         const pointer.
31365         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31366         (strmode): Renamed from mode_string.
31367         (filemodestring): New decl.
31368         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31369         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31370         needed.
31371         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31372
31373         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31374
31375         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31376         fsusage.h now does that.  Include fsusage.h first, to test interface.
31377         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31378         at most one method (the old code could have generated decls that
31379         didn't conform to C89, not that this was ever exercised).
31380         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31381
31382         2006-03-19  Jim Meyering  <jim@meyering.net>
31383
31384         Work even in a chroot where d_ino values for entries in "/"
31385         don't match the stat.st_ino values for the same names.
31386         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31387         number, iterate through all entries again, using lstat instead.
31388         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31389         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31390
31391         * lib/getcwd.c (__getcwd): Clarify a comment.
31392         Use memcpy in place of a call to strcpy.
31393
31394         2006-03-12  Jim Meyering  <jim@meyering.net>
31395
31396         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31397         matches that of the current directory (which we're about to chdir ".."
31398         out of), then save the dev-ino of the parent, instead.
31399
31400         * lib/same-inode.h (SAME_INODE): New file/macro.
31401         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31402         Include "same-inode.h", instead.
31403         * lib/same.c: Likewise.
31404         * lib/cycle-check.h: Include "same-inode.h".
31405         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31406         * lib/cycle-check.c (SAME_INODE): Remove definition.
31407         * lib/root-dev-ino.h: Include "same-inode.h".
31408
31409         2006-03-11  Eric Blake  <ebb9@byu.net>
31410
31411         * lib/same.c (same_name): s/base_name/last_component/
31412         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31413         * lib/filenamecat.c (file_name_concat): Likewise.
31414
31415         2006-03-11  Eric Blake  <ebb9@byu.net>,
31416                     Paul Eggert  <eggert@cs.ucla.edu>
31417
31418         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31419         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31420         drive prefix.
31421         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31422         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31423         (last_component): New method.
31424         * lib/dirname.c (dir_len): Determine when drive letters need a
31425         subsequent slash.  Preserve // when it is special.
31426         (dir_name): Don't append dot when drive letter is absolute.
31427         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31428         * lib/basename.c (base_name): New semantics - malloc the result.
31429         Preserve // when it is special.  Preserve relative files that look
31430         like drive letters.
31431         (base_len): Preserve // when it is special.
31432         (last_component): New method, similar to old base_name semantics.
31433         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31434         base_name.  Strip redundant slashes from ///.
31435
31436 2006-07-03  Jim Meyering  <jim@meyering.net>
31437
31438         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31439         macro is used before the first cycle_check call.
31440
31441 2006-07-03  Eric Blake  <ebb9@byu.net>
31442
31443         * modules/dirname (Depends-on): Add xstrndup.
31444
31445 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31446
31447         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31448         test cases, so that config.log is a bit easier to follow.
31449
31450 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31451
31452         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31453         both are 64 bits, since this seems to be the tradition, and this
31454         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31455         we ever run into a host that prefers long long to long in this
31456         case, we'll need another configure-time test.  Problem reported by
31457         Jim Meyering.
31458
31459 2006-07-02  Eric Blake  <ebb9@byu.net>
31460
31461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31462
31463 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31464
31465         * modules/inttypes (Depends-on): No longer depends on stdint.
31466         * modules/stdint (Description): Say more about assumptions.
31467         Say that the fast types might differ.  Say macros are used.
31468         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
31469         (Makefile.am): Revise list of substituted symbols to match
31470         new stdint.m4.
31471         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31472         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31473         * tests/test-stdint.c (verify_same_types)
31474         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31475         the code conforms to C99/C89.
31476         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31477         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31478
31479 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31480
31481         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31482         but fix a bug, by requiring at least 64 bits.
31483         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31484         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31485         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
31486         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31487
31488         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31489         changes.  Make 2.59 a prerequisite.  Check and substitute for
31490         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
31491         inttypes.h.  Do not use special include files; just use the
31492         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
31493         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
31494         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31495         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31496         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31497         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31498         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31499         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31500         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31501         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31502         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31503         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31504         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31505         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31506         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31507         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31508         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31509         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31510         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31511         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31512         WINT_MAX.  Check for C99 conformance more strictly, by detecting
31513         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
31514         not check for things that C99 does not require, e.g., int8_t.  If
31515         a test isn't needed unless <stdint.h> isn't working, and is
31516         unlikely to be needed for any other reason, then don't do it
31517         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
31518         size_t, since we assume C89 freestanding at least.  Do not check
31519         for sig_atomic_t, wchar_t, or wint_t, since the code now does
31520         the right thing even if the types are not defined.  Instead use:
31521         (gl_STDINT_TYPE_PROPERTIES): New macro.
31522         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
31523         testing whether <sys/types.h> clashes, as Autoconf does this for
31524         us now.  All uses removed.
31525         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31526         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31527         (gl_CHECK_TYPE_SAME):
31528         Remove; no longer needed.
31529         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31530         exists, since we'll return 0 anyway in that case.
31531         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31532
31533 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31534
31535         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31536         possible collision with system files.
31537         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31538         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31539         WCHAR_MIN and WCHAR_MAX in this case.
31540         (<stddef.h>): Do not include; no longer needed.
31541         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31542         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31543         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31544         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31545         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31546         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31547         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31548         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31549         !defined(__c99))]: Include in this case too, since it's harmless
31550         now.
31551         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31552         dangerous to do so.
31553         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31554         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31555         (_STDINT_MIN, _STDINT_MAX): New macros.
31556         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31557         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31558         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31559         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31560         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31561         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31562         macros, not typedefs; this simplifies things quite a bit.
31563         Use long int for all types narrower than int64_t.
31564         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31565         Define in terms of long long int or int64_t or long int,
31566         not int64_t or int32_t.  This saves some compile-time testing.
31567         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31568         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31569         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31570         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31571         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31572         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31573         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31574         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31575         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31576         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31577         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31578         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31579         undef any previous version and define our own version, for
31580         simplicity and consistency with the new macros for types.
31581         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31582         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31583         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31584         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
31585         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31586         @WINT_T_SUFFIX@ to keep things simple here.
31587         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31588         Simplify by assuming typical 8/16/32/64 host, since we're
31589         already doing that elsewhere anyway.
31590         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31591         and assume long long int is 64 bits if available.  This
31592         speeds up 'configure'.
31593
31594 2006-07-01  Eric Blake  <ebb9@byu.net>
31595
31596         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31597         Reported by Andreas Buening.
31598
31599 2006-07-01  Eric Blake  <ebb9@byu.net>
31600
31601         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31602
31603 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31604
31605         * lib/getaddrinfo.c: fixed typo
31606
31607 2006-06-29  Jim Meyering  <jim@meyering.net>
31608
31609         * modules/strftime (Maintainer): Add my name, since with the
31610         FPRINTFTIME changes strftime.c has forked from glibc.
31611
31612 2006-06-29  Eric Blake  <ebb9@byu.net>
31613
31614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
31615
31616 2006-06-29  Eric Blake  <ebb9@byu.net>
31617
31618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
31619
31620 2006-06-29  Eric Blake  <ebb9@byu.net>
31621
31622         * lib/stat_.h: New file.
31623
31624 2006-06-29  Eric Blake  <ebb9@byu.net>
31625
31626         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
31627         unused static function.
31628
31629 2006-06-29  Eric Blake  <ebb9@byu.net>
31630
31631         * doc/functions.texi (Function Portability): Document missing lstat
31632         on mingw.
31633
31634 2006-06-29  Eric Blake  <ebb9@byu.net>
31635
31636         * MODULES.html.sh: Add sys_stat.
31637         * modules/sys_stat: New module.
31638         * modules/mkstemp (Depends-on): Add sys_stat.
31639
31640 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31641
31642         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
31643
31644 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31645
31646         * m4/c-bs-a.m4: Removed.
31647
31648 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31649
31650         * lib/strftime.c: Assume strftime() exists.
31651
31652 2006-06-29  Derek Price  <derek@ximbiot.com>
31653
31654         * modules/c-bs-a: Removed - \a is C89.
31655         * MODULES.html.sh: Remove c-bs-a.
31656
31657 2006-06-29  Bruno Haible  <bruno@clisp.org>
31658
31659         * modules/wcwidth (License): Change to LGPL.
31660
31661 2006-06-28  Simon Josefsson  <jas@extundo.com>
31662
31663         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
31664         on _WIN32.
31665
31666         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
31667         getnameinfo.
31668
31669 2006-06-28  Simon Josefsson  <jas@extundo.com>
31670
31671         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
31672
31673 2006-06-28  Simon Josefsson  <jas@extundo.com>
31674
31675         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
31676         functions there.  It will succeed on Windows XP, but on Windows
31677         2000 and (presumably) earlier, it will fail, and use the internal
31678         re-implementation.
31679         (use_win32_p): New function.
31680         (getaddrinfo): Use strtoul on servname, to support numeric ports.
31681         Support AI_NUMERICSERV to disable getservbyname.
31682         (getnameinfo): New function, only supports
31683         NI_NUMERICHOST|NI_NUMERICSERV for now.
31684
31685         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
31686         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
31687         getnameinfo.
31688
31689 2006-06-28  Eric Blake  <ebb9@byu.net>
31690
31691         * modules/wcwidth: New file.
31692         * modules/mbchar (Depends-on): Add wcwidth.
31693         * modules/mbswidth (Depends-on): Add wcwidth.
31694         * MODULES.html.sh: Add wcwidth.
31695
31696 2006-06-28  Eric Blake  <ebb9@byu.net>
31697
31698         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
31699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
31700
31701 2006-06-28  Eric Blake  <ebb9@byu.net>
31702
31703         * lib/xvasprintf.h: Fix comments.
31704
31705 2006-06-28  Eric Blake  <ebb9@byu.net>
31706
31707         * lib/mbchar.h (wcwidth): Include wcwidth.h.
31708         * lib/mbswidth.c (wcwidth): Move from here...
31709         * lib/wcwidth.h: ...to this new file.
31710
31711 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31712
31713         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
31714
31715         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
31716         it's obsolete.
31717         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
31718
31719 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31720
31721         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
31722         Autoconf 2.60 says this stuff was obsolete.
31723
31724 2006-06-28  Bruno Haible  <bruno@clisp.org>
31725
31726         * modules/wcwidth (Files): Add m4/wchar_t.m4.
31727
31728 2006-06-28  Bruno Haible  <bruno@clisp.org>
31729
31730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
31731         gt_TYPE_WCHAR_T.
31732
31733 2006-06-28  Bruno Haible  <bruno@clisp.org>
31734
31735         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
31736         declaration for wcwidth.
31737         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
31738
31739 2006-06-28  Bruno Haible  <bruno@clisp.org>
31740
31741         * lib/mkdtemp.c [MINGW]: Include <io.h>.
31742         (mkdir): Define using _mkdir.
31743
31744 2006-06-28  Bruno Haible  <bruno@clisp.org>
31745
31746         * lib/getaddrinfo.h: Fix POSIX URL.
31747         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
31748         _WIN32.
31749         (use_win32_p): Make static.
31750         (getaddrinfo): Reject service name if it is empty or does not consist
31751         solely of decimal digits, or if its value is > 65535.
31752         (getnameinfo): Remove useless casts.
31753
31754 2006-06-27  Simon Josefsson  <jas@extundo.com>
31755
31756         * modules/sys_select: New file, suggested by Bruno Haible, Paul
31757         Eggert and Martin Lambers.
31758
31759 2006-06-27  Simon Josefsson  <jas@extundo.com>
31760
31761         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
31762         Eggert and Martin Lambers.
31763
31764 2006-06-27  Bruno Haible  <bruno@clisp.org>
31765
31766         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
31767         result to 0, not to empty.
31768         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
31769
31770 2006-06-27  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
31773
31774 2006-06-26  Simon Josefsson  <jas@extundo.com>
31775
31776         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
31777         present.
31778
31779 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
31780
31781         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
31782         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
31783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
31784
31785 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
31786
31787         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
31788
31789 2006-06-26  Bruno Haible  <bruno@clisp.org>
31790
31791         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
31792
31793 2006-06-26  Bruno Haible  <bruno@clisp.org>
31794
31795         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
31796
31797 2006-06-26  Bruno Haible  <bruno@clisp.org>
31798
31799         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
31800         SGI C compiler in pre-C99 mode.
31801         Suggested by Mark D. Baushke and Larry Jones.
31802
31803 2006-06-26  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
31806         WCHAR_MAX.
31807         Reported by Mark D. Baushke and Larry Jones.
31808
31809 2006-06-26  Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
31812         in pre-C99 mode.
31813         Suggested by Mark D. Baushke and Larry Jones.
31814
31815 2006-06-23  Simon Josefsson  <jas@extundo.com>
31816             Bruno Haible  <bruno@clisp.org>
31817
31818         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
31819         Emit mostlyclean-local rule.
31820         (func_emit_tests_Makefile_am): Likewise.
31821         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
31822
31823 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
31824
31825         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
31826
31827 2006-06-23  Bruno Haible  <bruno@clisp.org>
31828
31829         * tests/test-stdint.c: Update to match ISO C 99 Technical
31830         Corrigendum 1.
31831
31832 2006-06-23  Bruno Haible  <bruno@clisp.org>
31833
31834         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
31835
31836 2006-06-23  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/stdint_.h: Treat IRIX like OpenBSD.
31839
31840 2006-06-23  Bruno Haible  <bruno@clisp.org>
31841
31842         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
31843         ISO C 99 Technical Corrigendum 1.
31844
31845 2006-06-22  Simon Josefsson  <jas@extundo.com>
31846
31847         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
31848         MinGW.
31849
31850 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31851
31852         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
31853         needed.  Some compiler complained about some of them.  Problem reported
31854         by Larry Jones in
31855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
31856
31857 2006-06-21  Simon Josefsson  <jas@extundo.com>
31858
31859         * tests/test-getaddrinfo.c: New file.
31860
31861         * modules/getaddrinfo-tests: New file.
31862
31863         * MODULES.html.sh: Add inet_pton.
31864
31865         * modules/inet_pton: New file.
31866
31867 2006-06-21  Simon Josefsson  <jas@extundo.com>
31868
31869         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
31870         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
31871         of using the (limited) gnulib implementation on Windows XP.
31872
31873         * m4/inet_pton.m4: New file.
31874
31875 2006-06-21  Simon Josefsson  <jas@extundo.com>
31876
31877         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
31878         variable.
31879
31880         * lib/socket_.h: Don't define WINVER.
31881
31882         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
31883         slightly modified to work in gnulib.
31884
31885 2006-06-21  Simon Josefsson  <jas@extundo.com>
31886
31887         * doc/gnulib.texi (Windows sockets): Add.
31888
31889 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         * lib/read-file.c (fread_file): Start with buffer allocation of
31892         0 bytes rather than 1 byte; this simplifies the code.
31893         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
31894         code to free buffer and save/restore errno.
31895         (internal_read_file): Remove unused local.
31896
31897 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31898
31899         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
31900         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
31901         Problem reported by Denis Excoffier in
31902         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
31903
31904 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31905
31906         * modules/sys_socket, modules/socklen: Include sys/types since
31907         FreeBSD 4.x's sys/socket.h needs it.
31908
31909 2006-06-19  Simon Josefsson  <jas@extundo.com>
31910
31911         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
31912
31913 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
31916
31917 2006-06-19  Bruno Haible  <bruno@clisp.org>
31918
31919         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
31920         and FULL_PATH_INTTYPES_H in angle brackets.
31921         Reported by Mark D. Baushke <mdb@gnu.org>.
31922
31923 2006-06-17  Eric Blake  <ebb9@byu.net>
31924
31925         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
31926         errno.
31927
31928 2006-06-17  Bruno Haible  <bruno@clisp.org>
31929
31930         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
31931         <sys/inttypes.h>.
31932
31933 2006-06-17  Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
31936         whether errno is declared. Assume <errno.h> declares errno.
31937
31938 2006-06-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
31941
31942 2006-06-17  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
31945         problem on Solaris 2.5.1.
31946
31947 2006-06-16  Eric Blake  <ebb9@byu.net>
31948
31949         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
31950         * lib/unicodeio.c [!defined errno]: Likewise.
31951         * lib/strtol.c [!defined errno]: Likewise.
31952         * lib/strtod.c [!defined errno]: Likewise.
31953
31954 2006-06-15  Eric Blake  <ebb9@byu.net>
31955
31956         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
31957
31958 2006-06-15  Eric Blake  <ebb9@byu.net>
31959
31960         * config/srclist.txt (ssize_t.m4): Lose sync.
31961
31962 2006-06-15  Bruno Haible  <bruno@clisp.org>
31963
31964         * modules/stdint (Files): Include m4/full-header-path.m4,
31965         m4/size_max.m4, m4/wchar_t.m4.
31966         (Makefile.am): Many more substitutions.
31967         * modules/stdint-tests: New file.
31968         * tests/test-stdint.c: New file.
31969
31970 2006-06-15  Bruno Haible  <bruno@clisp.org>
31971
31972         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
31973         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
31974         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
31975         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
31976         gl_CHECK_TYPE_SAME): New macros.
31977
31978 2006-06-15  Bruno Haible  <bruno@clisp.org>
31979
31980         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
31981
31982 2006-06-15  Bruno Haible  <bruno@clisp.org>
31983
31984         * lib/stdint_.h: Rewritten to be fully auto-configured.
31985         Fixes bug on HP-UX/IA64.
31986
31987 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31988
31989         * lib/getdate.y (__attribute__): Don't define if already defined.
31990         Problem reported by Larry Jones.
31991         * lib/utimens.c (__attribute__): Likewise.
31992
31993 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
31994
31995         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
31996         reported by Andreas Schwab.
31997
31998 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31999             Bruno Haible  <bruno@clisp.org>
32000
32001         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32002         check for the declaration of strnlen and a run test that exposes the
32003         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32004         rpl_strndup.
32005
32006 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32007             Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32010
32011 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32012
32013         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32014         compile test, for Tru64 4.0D.
32015
32016 2006-05-28  Karl Berry  <karl@gnu.org>
32017
32018         * config/srclist.txt (printf-args.c): lose sync.
32019
32020 2006-05-26  Martin Lambers  <marlam@marlam.de>
32021
32022         * lib/getpass.c: Updates the test for the native W32 API, and adds
32023         missing includes, thus fixing compilation warnings.
32024
32025 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32026
32027         * lib/exclude.c (exclude_fnmatch): New function.
32028         (excluded_file_name): Call exclude_fnmatch.
32029         * lib/exclude.h (excluded_file_name): New prototype
32030
32031 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32032
32033         * lib/tempname.c (small_open, large_open): New macros.
32034         (__open, __open64) [!_LIBC]: Remove.
32035         (__gen_tempname): Use small_open and large_open instead of __open
32036         and __open64.  This fixes a portability bug on HP-UX 11.11i
32037         reported by Simon Wing-Tang in
32038         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32039
32040 2006-05-24  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32043         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32044         Reported by Thorsten Maerz <torte@netztorte.de> via
32045         Aaron Stone <aaron@serendipity.cx>.
32046
32047 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32048
32049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32050         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32051         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32052         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32053         not really conditional on the cache.
32054         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32055
32056 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32059         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32060         (my_usleep): Don't mishandle maximum value.
32061
32062 2006-05-19  Jim Meyering  <jim@meyering.net>
32063
32064         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32065
32066 2006-05-17  Bruno Haible  <bruno@clisp.org>
32067
32068         Cygwin portability.
32069         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32070
32071 2006-05-17  Bruno Haible  <bruno@clisp.org>
32072
32073         * lib/stdint_.h: Fix recognition of Cygwin.
32074
32075 2006-05-15  Bruno Haible  <bruno@clisp.org>
32076
32077         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32078         on libtool patch by Ralf Wildenhues.
32079
32080 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32083         test for C99 conformance; (bool) 0.5 is an integer constant
32084         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32085         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32086
32087 2006-05-11  Simon Josefsson  <jas@extundo.com>
32088
32089         * m4/xvasprintf.m4: Fix obvious typo.
32090
32091 2006-05-11  Jim Meyering  <jim@meyering.net>
32092
32093         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32094         James Lemley.
32095
32096 2006-05-10  Simon Josefsson  <jas@extundo.com>
32097
32098         * lib/md4.c: Typo fix, update copyright years.
32099         (K1, K2): Don't use L because it turn computations into 64-bit on
32100         64-bit platforms.
32101
32102 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32103
32104         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32105         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32106         unwanted sign propagation, e.g., on hosts with 64-bit int.
32107         There still are some problems with reeelly weird theoretical hosts
32108         (e.g., 33-bit int) but it's not worth worrying about now.
32109         * lib/sha1.c (rol): Likewise.
32110         (K1, K2, K3, K4): Remove unnecessary L suffix.
32111
32112 2006-05-10  Bruno Haible  <bruno@clisp.org>
32113
32114         * lib/des.c: Cast to avoid warnings.
32115
32116 2006-05-09  Bruno Haible  <bruno@clisp.org>
32117
32118         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32119         (Depends-on): Depend also on xsize, stdarg.
32120         (configure.ac): Add gl_XVASPRINTF.
32121
32122 2006-05-09  Bruno Haible  <bruno@clisp.org>
32123
32124         * m4/xvasprintf.m4: New file.
32125
32126 2006-05-09  Bruno Haible  <bruno@clisp.org>
32127
32128         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32129         (EOVERFLOW): Define fallback value.
32130         (xstrcat): New function.
32131         (xvasprintf): Recognize the special case of a string concatenation.
32132
32133 2006-05-08  Eric Blake  <ebb9@byu.net>
32134
32135         * gnulib-tool (func_version): Base copyright year on CVS date.
32136         (func_emit_copyright_notice): New function.
32137         (func_emit_lib_Makefile_am): Use it.
32138         (func_emit_tests_Makefile_am): Likewise.
32139         (func_import): Likewise.
32140
32141 2006-05-08  Bruno Haible  <bruno@clisp.org>
32142
32143         * modules/stdarg: New file.
32144         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32145
32146 2006-05-08  Bruno Haible  <bruno@clisp.org>
32147
32148         * m4/stdarg.m4: New file, from GNU gettext.
32149
32150 2006-05-08  Bruno Haible  <bruno@clisp.org>
32151
32152         * config/srclist.txt (build-aux/config.rpath): different from latest
32153         release.
32154
32155 2006-05-08  Bruno Haible  <bruno@clisp.org>
32156
32157         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32158
32159 2006-05-05  Jim Meyering  <jim@meyering.net>
32160
32161         * m4/warning.m4: New file, derived from bison's file by the same name.
32162
32163 2006-05-03  Bruno Haible  <bruno@clisp.org>
32164
32165         * lib/stdint_.h: Shorter URL.
32166         * lib/inttypes.h: Likewise.
32167
32168 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32169
32170         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32171
32172 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         * lib/verify.h: Document the internals better.  Most of this change
32175         was written by Bruno Haible.
32176
32177 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32178
32179         * doc/verify.texi: New file, partly based on a proposal by
32180         Bruno Haible.
32181
32182 2006-05-02  Bruno Haible  <bruno@clisp.org>
32183
32184         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32185         test from here...
32186         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32187
32188 2006-04-29  Bruno Haible  <bruno@clisp.org>
32189
32190         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32191         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32192
32193 2006-04-29  Bruno Haible  <bruno@clisp.org>
32194
32195         * gnulib-tool: Make --update option actually work.
32196
32197 2006-04-29  Bruno Haible  <bruno@clisp.org>
32198
32199         * doc/gcd.texi: New file.
32200         * doc/gnulib.texi: Include it.
32201
32202 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         * lib/getdate.y (get_date): When adding relative date, start with the
32205         initial time, not with the result of the first mktime call.
32206
32207 2006-04-25  Bruno Haible  <bruno@clisp.org>
32208
32209         * gnulib-tool (func_import): Output the include directives in three
32210         blocks, sorted separately.
32211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32212
32213 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32214
32215         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32216         to define main with arguments, for C++.  Reported by Eric Blake.
32217         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32218         Prefer 'int main ()' to 'int main (void)', for C++.
32219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32221         for 'main', for C99 and C++.
32222
32223 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32226         Don't assume that exit status -1 is valid.
32227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32228         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32229         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32230         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32231         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32232         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32233         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32234         functions can be used without declaring them, or that you can
32235         exit with status -1.
32236         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32237
32238 2006-04-24  Karl Berry  <karl@gnu.org>
32239
32240         * config/srclist.txt (longdouble.m4): sync lost.
32241
32242 2006-04-24  Eric Blake  <ebb9@byu.net>
32243
32244         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32245
32246 2006-04-24  Bruno Haible  <bruno@clisp.org>
32247
32248         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32249         poll() implementation in AIX.
32250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32251
32252 2006-04-24  Bruno Haible  <bruno@clisp.org>
32253
32254         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32255         assigned exactly once.
32256
32257 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32258             Bruno Haible  <bruno@clisp.org>
32259
32260         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32261         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32262         for AM_CPPFLAGS.
32263
32264 2006-04-23  Bruno Haible  <bruno@clisp.org>
32265
32266         * modules/copy-file: Depend on unistd.
32267         * modules/execute: Likewise.
32268         * modules/fatal-signal: Likewise.
32269         * modules/findprog: Likewise.
32270         * modules/mkdtemp : Likewise.
32271         * modules/pipe: Likewise.
32272         * modules/wait-process: Likewise.
32273
32274 2006-04-23  Bruno Haible  <bruno@clisp.org>
32275
32276         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32277         condition was already detected.
32278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32279
32280 2006-04-23  Bruno Haible  <bruno@clisp.org>
32281
32282         * lib/copy-file.c: Include <unistd.h> unconditionally.
32283         * lib/execute.c: Likewise.
32284         * lib/fatal-signal.c: Likewise.
32285         * lib/findprog.c: Likewise.
32286         * lib/mkdtemp.c: Likewise.
32287         * lib/pipe.h: Likewise.
32288         * lib/pipe.c: Likewise.
32289         * lib/wait-process.h: Likewise.
32290
32291 2006-04-23  Bruno Haible  <bruno@clisp.org>
32292
32293         * gnulib-tool (func_usage): Fix --import description. Document
32294         --update.
32295         (func_import): Create temporary file in a temporary directory, if
32296         --dry-run is specified. Silence errors from 'grep' when there are no
32297         m4 files in $m4dir.
32298         (func_create_testdir): Silence errors from 'grep' when there are no
32299         m4 files in $m4dir.
32300         Reported by Karl Berry <karl@freefriends.org>.
32301
32302 2006-04-20  Bruno Haible  <bruno@clisp.org>
32303
32304         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32305         one argument, so that the code will be portable to Autoconf 2.60.
32306         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32308         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32309
32310 2006-04-19  Derek Price  <derek@ximbiot.com>
32311             Eric Blake  <ebb9@byu.net>
32312
32313         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32314         rather than "/full/path.h".  Update comment to match.  Shorten &
32315         generalize m4_translit call via AS_TR_CPP.
32316
32317 2006-04-19  Derek Price  <derek@ximbiot.com>
32318             Eric Blake  <ebb9@byu.net>
32319
32320         * lib/inttypes.h: Correct grammar in comment.
32321
32322 2006-04-18  Derek Price  <derek@ximbiot.com>
32323             Paul Eggert  <eggert@cs.ucla.edu>
32324
32325         * modules/inttypes: New file.
32326         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32327
32328 2006-04-18  Derek Price  <derek@ximbiot.com>
32329             Paul Eggert  <eggert@cs.ucla.edu>
32330
32331         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32332         New files.
32333
32334 2006-04-18  Derek Price  <derek@ximbiot.com>
32335             Paul Eggert  <eggert@cs.ucla.edu>
32336
32337         * lib/inttypes.h: New file.
32338         * lib/strtoimax.c: Assume <inttypes.h>.
32339
32340 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32341
32342         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32343         isn't mounted.  Problem reported by Kir Kolyshkin.
32344
32345 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32346
32347         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32348         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32349         Derek R. Price.
32350         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32351         implementation.
32352
32353 2006-04-12  Eric Blake  <ebb9@byu.net>
32354
32355         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32356         is now done automatically by the corresponding Autoconf macro.
32357
32358 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32359
32360         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32361         time_r.h.
32362
32363 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32364
32365         Merge regex changes from libc, removing some of our
32366         POSIX-conformance changes that were rejected and redoing them in a
32367         less-intrusive way.
32368
32369         * lib/regcomp.c (re_compile_internal, init_dfa):
32370         Length arg is now size_t, not Idx.  All uses changed.
32371         (peek_token): Forward decl now says internal_function.
32372         (__re_error_msgid, __re_error_msgid_idx):
32373         Now static rather than extern with attribute_hidden.
32374         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32375         For some reason libc prefers K&R style defns for external functions.
32376         (regerror) [!defined _LIBC]: Likewise.
32377         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32378         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32379         (build_range_exp, build_collating_symbol):
32380         Use K&R-style defn.
32381         (re_compile_fastmap): Use '\0' to memset, not 0.
32382         (utf8_sb_map): Make the calculations more obvious.
32383         (init_dfa, parse_bracket_exp, build_charclass_op):
32384         Call calloc and cast result, as glibc does.
32385         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32386         (build_range_exp, build_collating_symbol):
32387         Now internal functions.
32388
32389         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32390
32391         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32392         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32393         Don't depend on VMS; depend on __VMS instead, for POSIX
32394         namespace cleanness.
32395         (regoff_t): Define to ssize_t, not long int.
32396
32397         Remove the REG_ macros named below.  Instead, make the old names
32398         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32399         __USE_GNU_REGEX.
32400         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32401         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32402         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32403         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32404         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32405         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32406         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32407         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32408         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32409         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32410         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32411         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32412         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32413         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32414         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32415         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32416         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32417         (REG_NREGS):
32418         Remove.  All uses replaced by the old RE_* names.
32419         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32420         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32421         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32422         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32423         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32424         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32425         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32426         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32427         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32428         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32429         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32430         Don't bother having these macros be independent of each others'
32431         values, since they no longer exist in the POSIX name space.
32432
32433         Rename the following member names back to their old names,
32434         unless !__USE_GNU_REGEX.  All uses changed back.
32435         (buffer): Renamed from re_buffer.
32436         (allocated): Renamed from re_allocated.
32437         (used): Renamed from re_used.
32438         (syntax): Renamed from re_syntax.
32439         (fastmap): Renamed from re_fastmap.
32440         (translate): Renamed from re_translate.
32441         (can_be_null): Renamed from re_can_be_null.
32442         (regs_allocated): Renamed from re_regs_allocated.
32443         (fastmap_accurate): Renamed from re_fastmap_accurate.
32444         (no_sub): Renamed from re_no_sub.
32445         (not_bol): Renamed from re_not_bol.
32446         (not_eol): Renamed from re_not_eol.
32447         (newline_anchor): Renamed from re_newline_anchor.
32448         (num_regs): Renamed from rm_num_regs.
32449         (start): Renamed from rm_start.
32450         (end): Renamed from rm_end.
32451
32452         (free_state): Move up a bit.
32453
32454         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32455         #define to be empty.
32456         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32457         when that is what is intended.
32458         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32459         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32460         (MAX): New macro.
32461         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32462         All uses changed back to re_malloc, etc.  It's now the caller's
32463         responsibility to check for overflow; all callers changed.
32464         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32465         (re_x2nrealloc): Remove.
32466         (free_state): Remove decl.
32467
32468         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32469         (re_set_registers, re_exec):
32470         Use K&R-style defn.
32471
32472         2006-01-31  Roland McGrath  <roland@redhat.com>
32473
32474         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32475         Reported by Mike Frysinger <vapier@gentoo.org>.
32476
32477         2006-01-15  Andreas Jaeger  <aj@suse.de>
32478
32479         [BZ #1950]
32480         * lib/regex_internal.c (re_string_reconstruct): Adjust for
32481         build_wcs_upper_buffer change.
32482         (build_wcs_upper_buffer): Change return type.
32483
32484         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
32485
32486         * lib/regex_internal.h: Include <stdint.h> if available.
32487
32488         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
32489
32490         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32491
32492         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32493
32494         * lib/regcomp.c: Adjust for changed secondary hash function.
32495
32496         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
32497
32498         * lib/regex.h: Pretty printing.
32499         Clean up namespace a bit.
32500
32501         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
32502
32503         * lib/regexec.c (update_cur_sifted_state, check_arrival,
32504         check_arrival_add_next_nodes): Avoid using uninitialized variable.
32505
32506         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32507                     Ulrich Drepper  <drepper@redhat.com>
32508
32509         [BZ #1302]
32510         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
32511         changed.
32512         (bitset_word_t): Renamed from bitset_word.  All uses changed.
32513
32514         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
32515
32516         [BZ #281]
32517         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32518         * lib/regcomp.c: Remove unnecessary uses of
32519         unsigned RE_TRANSLATE_TYPE.
32520         * lib/regex_internal.h: Likewise.
32521         * lib/regex_internal.c: Likewise.
32522         * lib/regexec.c: Likewise.
32523         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32524
32525         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
32526
32527         * lib/regexec.c (find_recover_state): Remove unnecessary
32528         initialization.
32529         (transit_state_bkref): Make DFA a const pointer.
32530         (get_subexp): Likewise.
32531         (check_arrival): Likewise.
32532         (update_cur_sifted_state): Likewise.
32533         (re_search_internal): Likewise.
32534         (prune_impossible_nodes): Likewise.
32535         (acquire_init_state_context): Likewise.
32536         (proceed_next_node): Likewise.
32537         (set_regs): Likewise.
32538         (free_fail_stack_return): Likewise.
32539         (check_arrival_expand_ecl): Mark DFA parameter as const.
32540         (check_arrival_expand_ecl_sub): Likewise.
32541         (check_subexp_limits): Likewise.
32542         (sub_epsilon_src_nodes):  Likewise.
32543         (add_epsilon_src_nodes):  Likewise.
32544         (merge_state_array): Likewise.
32545         (update_regs): Likewise.
32546         (build_trtable): Likewise.
32547         (sift_states_backward): Mark MCTX parameter as const.
32548         (build_sifted_states): Likewise.
32549         (update_cur_sifted_state): Likewise.
32550         (sift_states_mkref): Likewise.
32551         (check_arrival_expand_ecl): Mark eclosure as const.
32552         (check_dst_limits_calc_pos_1): Likewise.
32553         * lib/regex_internal.h (re_match_context_t): Make dfa a const
32554         pointer.
32555
32556         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
32557
32558         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32559         (transit_state_sb): Likewise.
32560         (transit_state_mb): Likewise.
32561         (sift_states_iter_mb): Likewise.
32562         (check_arrival_add_next_nodes): Likewise.
32563         (check_node_accept_bytes): Change first parameter to pointer-to-const.
32564         [_LIBC] (re_search_2_stub): Use mempcpy.
32565
32566         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32567         mbrtowc for very simple UTF-8 case.
32568
32569         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32570         a pointer-to-const.
32571         (re_acquire_state_context): Likewise.
32572         * lib/regex_internal.h: Adjust prototypes.
32573
32574         * lib/regex.c: Prevent using C++ compilers.
32575
32576         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32577         (re_acquire_state_context): Likewise.
32578
32579 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * modules/regex (Depends-on): Add ssize_t.
32582
32583 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32584
32585         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32586         translation table.
32587
32588 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32589
32590         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32591
32592 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
32593             Bruno Haible  <bruno@clisp.org>
32594
32595         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32596         <sys/types.h> and <inttypes.h>.
32597
32598 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32599
32600         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32601         `__error_t_defined', so argp.h will not typedef the former.
32602
32603 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32604
32605         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32606         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
32607         glibc names.  Even if glibc is changed to conform to POSIX, the
32608         traditional names will be available anyway, since regex depends on
32609         the extensions module.  Also, fix a longstanding typo in the
32610         implementation of Spencer ERE test #75 from grep 2.3.  Problems
32611         reported by Emanuele Giaquinta.  Also, change sense of cached
32612         variable, so that the message makes sense.
32613
32614 2006-03-24  Simon Josefsson  <jas@extundo.com>
32615
32616         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
32617         including some doc fixes.
32618         (base64_encode_alloc): Fix +1 bug on allocation failures.
32619
32620 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32621
32622         * lib/base64.c (base64_encode): Do not read past end of array with
32623         unsanitized input on systems with CHAR_BIT > 8.
32624
32625 2006-03-24  Eric Blake  <ebb9@byu.net>
32626
32627         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
32628
32629 2006-03-22  Karl Berry  <karl@gnu.org>
32630
32631         * config/srclist.txt (*setenv.[ch]): get from coreutils.
32632         * config/srclistvars.sh (COREUTILS): new var.
32633
32634 2006-03-17  Jim Meyering  <jim@meyering.net>
32635
32636         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
32637         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
32638
32639 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32640
32641         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
32642         no longer needs it.  Instead, check that regoff_t is as least
32643         as wide as ptrdiff_t.
32644
32645         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
32646         so that our regex.h stays compatible with the installed regex.
32647         This is helpful for installers who configure --without-included-regex.
32648         Problem reported by Emanuele Giaquinta.
32649
32650 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32651
32652         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
32653         Typedef to long int, not to off_, as POSIX will likely change
32654         in that direction.
32655
32656 2006-03-15  Eric Blake  <ebb9@byu.net>
32657
32658         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
32659
32660 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
32661
32662         * lib/argp-help.c (validate_uparams): Fix typo
32663         * lib/argp-parse.c (argp_default_options): Consistently begin help
32664         messages with a lowercase letter.
32665
32666 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
32667
32668         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
32669         overrun buffers and shouldn't be used (much as gets shouldn't be
32670         used).
32671         * lib/time_r.c (asctime_r, ctime_r): Likewise.
32672
32673 2006-03-08  Simon Josefsson  <jas@extundo.com>
32674
32675         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
32676         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32677
32678 2006-03-08  Simon Josefsson  <jas@extundo.com>
32679
32680         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
32681         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32682
32683 2006-03-08  Simon Josefsson  <jas@extundo.com>
32684
32685         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
32686         signal that configure disabled the device.
32687
32688 2006-03-08  Simon Josefsson  <jas@extundo.com>
32689
32690         * build-aux/maint.mk: Fix refresh-po, to handle no translated
32691         languages.
32692
32693 2006-03-07  Simon Josefsson  <jas@extundo.com>
32694
32695         * modules/getopt (Depends-on): Add unistd.
32696
32697         * modules/unistd: New file.
32698
32699 2006-03-07  Simon Josefsson  <jas@extundo.com>
32700
32701         * modules/gc-random: New file.
32702
32703 2006-03-07  Simon Josefsson  <jas@extundo.com>
32704
32705         * m4/unistd_h.m4: New file.
32706
32707 2006-03-07  Simon Josefsson  <jas@extundo.com>
32708
32709         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
32710         test to be side-effect free by storing the result in the cache
32711         variable gl_cv_lib_readline, and moving the assignment of
32712         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
32713         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32714
32715 2006-03-07  Simon Josefsson  <jas@extundo.com>
32716
32717         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
32718         error on missing devices (the functions will return an error).
32719
32720         * m4/gc.m4: Move random stuff to gc-random.m4
32721
32722 2006-03-07  Simon Josefsson  <jas@extundo.com>
32723
32724         * lib/unistd_.h: New file.
32725
32726 2006-03-07  Simon Josefsson  <jas@extundo.com>
32727
32728         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
32729
32730 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32731
32732         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
32733         Problem reported by Juan Manuel Guerrero.
32734
32735 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32736
32737         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
32738         the unistd module.
32739         * lib/getlogin_r.c: Likewise.
32740         * lib/getlogin_r.h: Likewise.
32741         * lib/glob.c: Likewise.
32742         * lib/pagealign_alloc.c: Likewise.
32743         * lib/unistd_.h: Remove; no longer needed.
32744
32745 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32746
32747         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32748         Add unistd.
32749         * modules/c-stack (Depends-on): Add unistd.
32750         * modules/getlogin_r: Likewise.
32751         * modules/glob: Likewise.
32752         * modules/pagealign_alloc: Likewise.
32753         * modules/unistd (Files): Remove lib/unistd_.h.
32754         (EXTRA_DIST): Remove.
32755         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
32756         need unistd_.h.
32757         (MOSTLYCLEANFILES): Remove unistd.h-t.
32758
32759 2006-03-03  Simon Josefsson  <jas@extundo.com>
32760
32761         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
32762
32763 2006-03-03  Simon Josefsson  <jas@extundo.com>
32764
32765         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
32766         libidn and bison.
32767
32768 2006-03-03  Simon Josefsson  <jas@extundo.com>
32769
32770         * build-aux/maint.mk: Add indent target.
32771
32772 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
32773
32774         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
32775         our replacement poll.h in any case, to avoid a differing
32776         declaration from a system header.  Seen on AIX.
32777
32778 2006-03-01  Simon Josefsson  <jas@extundo.com>
32779
32780         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
32781         <kasal@ucw.cz>.
32782
32783 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32784
32785         * modules/gettime (Depends-on): Add extensions module.
32786         * modules/nanosleep (Depends-on): Likewise.
32787         * modules/settime (Depends-on): Likewise.
32788
32789 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32790
32791         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
32792         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
32793         pedantically.
32794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32795         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
32796
32797         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
32798         not "==".  Reported by Ralf Wildenhues.
32799
32800 2006-03-01  Karl Berry  <karl@gnu.org>
32801
32802         * doc/Copyright/request-*: new files, synced from gnuorg.
32803
32804 2006-03-01  Karl Berry  <karl@gnu.org>
32805
32806         * config/srclist.txt (Copyright/*): new entries.
32807
32808 2006-02-28  Simon Josefsson  <jas@extundo.com>
32809
32810         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
32811
32812 2006-02-27  Simon Josefsson  <jas@extundo.com>
32813
32814         * lib/base64.h: Indent #define's.  From Jim Meyering
32815         <jim@meyering.net>.
32816
32817 2006-02-27  Jim Meyering  <jim@meyering.net>
32818
32819         Revert the change of 2006-02-24, so these files can continue
32820         to be sync'd from gettext.
32821         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
32822         of `config.h'.
32823
32824 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32825
32826         * modules/intprops: New file.
32827         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32828         Add intprops.
32829         * modules/getloadavg (Files): Remove lib/intprops.h.
32830         (Depends-on): Add intprops.
32831         * modules/human: Likewise.
32832         * modules/inttostr: Likewise.
32833         * modules/openat: Likewise.
32834         * modules/sig2str: Likewise.
32835         * modules/userspec: Likewise.
32836         * modules/utimecmp: Likewise.
32837         * modules/xnanosleep: Likewise.
32838         * modules/xstrtol: Likewise.
32839
32840 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
32841
32842         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
32843         * modules/lock-tests (TESTS): Use $(EXEEXT).
32844         * modules/tls-tests: Likewise.
32845         * modules/argp-tests: Likewise.
32846         (check_PROGRAMS): New var, replacing...
32847         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
32848
32849 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32850
32851         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
32852         `config.h'.
32853
32854 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
32855
32856         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
32857
32858 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32859
32860         Sync from coreutils.
32861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
32862         gl_CHDIR_SAFER.
32863
32864 2006-02-22  Jim Meyering  <jim@meyering.net>
32865
32866         Sync from coreutils.
32867         * m4/chdir-safer.m4: New file.
32868
32869 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32870
32871         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
32872         AT_FDCWD exceeds INT_MAX.
32873         * lib/openat.h (AT_FDCWD): Likewise.
32874
32875 2006-02-17  Eric Blake  <address@hidden>
32876
32877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
32878
32879 2006-02-16  Simon Josefsson  <jas@extundo.com>
32880
32881         * modules/getaddrinfo (Depends-on): Add sys_socket.
32882
32883 2006-02-15  Simon Josefsson  <jas@extundo.com>
32884
32885         * build-aux/maint.mk: Add dsyntax-check rule.
32886
32887 2006-02-15  Eric Blake  <ebb9@byu.net>
32888
32889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
32890         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
32891         'present but cannot compile' warnings on cygwin.
32892         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
32893         use ws2tcpip.h if sys/socket.h works.
32894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
32895         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
32896
32897 2006-02-14  Simon Josefsson  <jas@extundo.com>
32898
32899         * modules/maintainer-makefile (Files): Rename.
32900
32901         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
32902         and (the local) Makefile.cfg to maint-cfg.mk.
32903
32904         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
32905         to the latter.
32906
32907         * modules/maintainer-makefile: New module.
32908
32909         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
32910         severaly stripped to make it possible to build it up from scratch
32911         with reliable tests.
32912
32913         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
32914         fixes to permit overriding the default actions when configure and
32915         makefile are not available.
32916
32917 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32918
32919         Sync from coreutils.
32920         * modules/lstat (Depends-on): Don't depend on xalloc.
32921         (License): Change from GPL to LGPL, since this is now simply a
32922         replacement for a libc function.
32923
32924 2006-02-14  Jim Meyering  <jim@meyering.net>
32925
32926         Sync from coreutils.
32927
32928         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
32929         failure on deficient systems, and simplify gnulib lgpl dependencies.
32930         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
32931         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
32932
32933         * lib/xalloc-die.c: Remove unused definition of N_.
32934
32935 2006-02-14  Jim Meyering  <jim@meyering.net>
32936
32937         Sync from coreutils.
32938         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
32939         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
32940         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
32941         double-quote uses of that variable, to accommodate the rare case in
32942         which getmntent is available in none of the libraries checked.  This
32943         happens at least on FreeBSD 5.0.
32944
32945 2006-02-13  Simon Josefsson  <jas@extundo.com>
32946
32947         * gnulib-tool (Usage): Fix --import, from
32948         karl@freefriends.org (Karl Berry).
32949
32950 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
32951
32952         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
32953
32954 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
32955
32956         * lib/argp-namefrob.h: Restore changes accidentally lost during the
32957         "autoupdate" on 2005-12-12.
32958
32959 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32960
32961         * modules/closeout (Depends-on): Remove atexit.
32962
32963 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32964
32965         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
32966         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
32967
32968 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32969
32970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
32971         __EXTENSIONS__ if this causes compilation to fail.  Problem
32972         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
32973         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
32974
32975 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32976
32977         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
32978         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
32979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
32980         All uses changed.
32981
32982 2006-01-26  Simon Josefsson  <jas@extundo.com>
32983
32984         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
32985         prototype is visible on mingw32.
32986
32987         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
32988         for mingw32.
32989
32990         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
32991         mingw32).
32992
32993 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
32994
32995         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
32996         attempt to open for write; this always fails, at least on POSIX
32997         hosts.  This reinstates the 2006-01-09 change, which was
32998         inadvertently removed.
32999
33000 2006-01-26  Bruno Haible  <bruno@clisp.org>
33001
33002         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33003         Reported by Paul Eggert.
33004
33005 2006-01-26  Bruno Haible  <bruno@clisp.org>
33006             Paul Eggert  <eggert@cs.ucla.edu>
33007
33008         * lib/stdbool_.h (_Bool)
33009         [(! (defined __cplusplus || defined __BEOS__)
33010           && !defined __GNUC__
33011           && !(defined __HP_cc || defined __xlc__
33012                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33013                || defined __sgi))]:
33014         #define to signed char in these cases too; this simplifies
33015         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33016         etc., separately) and makes it more conservative.
33017
33018 2006-01-25  Simon Josefsson  <jas@extundo.com>
33019
33020         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33021         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33022         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33023
33024 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33025
33026         * lib/argp-namefrob.h: Bugfix. Remove stray #
33027
33028 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33029
33030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33031         so that we test the test.
33032         Check for yet another HP-UX cc bug involving *bool |= bool.
33033
33034 2006-01-25  Karl Berry  <karl@gnu.org>
33035
33036         * config/srclist.txt (vasnprintf.c): sync lost.
33037
33038 2006-01-25  Jim Meyering  <jim@meyering.net>
33039
33040         Sync from the stable (b5) branch of coreutils:
33041
33042         * lib/fts.c (fts_children): Don't let close() clobber errno from
33043         failed fchdir().
33044
33045         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33046         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33047         a dangling symlink.  That can also happen at least for ELOOP.
33048         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33049         FYI, this bug predates the inclusion of fts.c in coreutils.
33050
33051         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33052         in their own block, so pre-c99 compilers don't object.
33053
33054         Avoid the double-free (first in fts_read, second in fts_close) that
33055         would occur when an `active' directory is made inaccessible (e.g.,
33056         via chmod a-x) during a traversal.
33057         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33058         before returning.  Reproduce this failure by
33059         mkdir -p a/b; cd a; chmod a-x . b
33060         Reported by Stavros Passas.
33061
33062 2006-01-25  Jim Meyering  <jim@meyering.net>
33063
33064         * lib/fileblocks.c: Remove more useless parentheses.
33065         * lib/readutmp.h: Likewise.
33066
33067 2006-01-25  Bruno Haible  <bruno@clisp.org>
33068
33069         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33070         warnings.
33071         Reported by Paul Eggert.
33072
33073 2006-01-25  Bruno Haible  <bruno@clisp.org>
33074
33075         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33076         rid of a trap command. For Solaris sh.
33077         Reported by Mark D. Baushke <mdb@gnu.org>.
33078
33079 2006-01-24  Simon Josefsson  <jas@extundo.com>
33080
33081         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33082         Bruno.
33083
33084 2006-01-24  Karl Berry  <karl@gnu.org>
33085
33086         * config/srclist.txt (argp-namefrob.h): sync lost.
33087
33088 2006-01-24  Jim Meyering  <jim@meyering.net>
33089
33090         * modules/openat (Files): Add lib/intprops.h.
33091         From Mark D. Baushke.
33092
33093 2006-01-24  Jim Meyering  <jim@meyering.net>
33094
33095         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33096         Reported by Mark D. Baushke.
33097
33098 2006-01-24  Jim Meyering  <jim@meyering.net>
33099
33100         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33101
33102 2006-01-24  Bruno Haible  <bruno@clisp.org>
33103
33104         * modules/strnlen (Maintainer): Change from glibc to all.
33105
33106 2006-01-24  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33109         Patch by Paul Eggert.
33110
33111 2006-01-24  Bruno Haible  <bruno@clisp.org>
33112
33113         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33114         already has it.
33115         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33116         2005-11-26.
33117
33118         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33119         'signed char' to avoid problems with the built-in _Bool type.
33120         Reported by Paul Eggert on 2005-11-26.
33121
33122 2006-01-24  Bruno Haible  <bruno@clisp.org>
33123
33124         * gnulib-tool (func_import): Avoid constructing complicated sed
33125         expressions inside backquote.
33126         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33127
33128 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33129
33130         These changes imported from libc.
33131         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33132         test and two separate function calls.
33133         * lib/strndup.c (__strndup): Add libc_hidden_def.
33134
33135 2006-01-23  Simon Josefsson  <jas@extundo.com>
33136
33137         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33138         Remove the test_*_SOURCES variable: automake infers it by default.
33139         * modules/tls-tests: Likewise.
33140
33141 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33142
33143         Work around porting bugs reported by Dieter in
33144         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33145         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33146         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33147         Include "getopt.h" first, to check interface.
33148         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33149         !HAVE_DECL_GETENV.
33150         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33151         (__strndup): Revert to K&R-style function dfns, the glibc style.
33152         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33153         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33154         Include strnlen.h first, to get prototype properly.
33155         (strnlen): Renamed from __strnlen.
33156         Remove weak alias.
33157
33158 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33159
33160         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33161
33162 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33163
33164         * config/srclist.txt: Adjust to reflect glibc reorganization.
33165         This affects only comments.
33166
33167 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33168
33169          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33170          Reported by Bruce Korb <bkorb@gnu.org>.
33171
33172 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33173
33174         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33175         to pacify gcc -Wswitch-default.
33176
33177 2006-01-22  Bruno Haible  <bruno@clisp.org>
33178
33179         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33180         temporary buffer for sprintf, take into account the precision also
33181         for 'd', 'i', 'u', 'o', 'x', 'X'.
33182
33183 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33184
33185         * modules/argp-tests: New module
33186         * tests/test-argp.c: New file
33187         * tests/test-argp-2.sh: New file
33188
33189 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33190
33191         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33192         (__argp_base_name): Removed
33193         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33194         typo.
33195         (__argp_base_name): Provide macro definition or extern declaration
33196         depending on the configuration
33197
33198 2006-01-20  Simon Josefsson  <jas@extundo.com>
33199
33200         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33201
33202 2006-01-20  Simon Josefsson  <jas@extundo.com>
33203
33204         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33205
33206 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33207
33208         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33209         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33210         Suggested by Bruno Haible.
33211
33212 2006-01-20  Karl Berry  <karl@gnu.org>
33213
33214         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33215         until changes propagate, I guess.
33216
33217 2006-01-19  Simon Josefsson  <jas@extundo.com>
33218
33219         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33220
33221 2006-01-19  Simon Josefsson  <jas@extundo.com>
33222
33223         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33224
33225 2006-01-19  Simon Josefsson  <jas@extundo.com>
33226
33227         * gnulib-tool: Set check_PROGRAMS.
33228
33229         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33230         modules/des-tests, modules/gc-arcfour-tests,
33231         modules/gc-arctwo-tests, modules/gc-des-tests,
33232         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33233         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33234         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33235         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33236         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33237         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33238         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33239         test_*_SOURCES.
33240
33241 2006-01-18  Simon Josefsson  <jas@extundo.com>
33242
33243         * modules/socklen (Depends-on): Depend on sys_socket.
33244
33245 2006-01-18  Simon Josefsson  <jas@extundo.com>
33246
33247         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33248         modules/des-tests, modules/gc-arcfour-tests,
33249         modules/gc-arctwo-tests, modules/gc-des-tests,
33250         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33251         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33252         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33253         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33254         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33255         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33256         $(EXEEXT) to automake TESTS variable, for mingw32.
33257
33258 2006-01-17  Simon Josefsson  <jas@extundo.com>
33259
33260         * modules/socklen (Include): Need sys/socket.h.
33261
33262 2006-01-17  Bruno Haible  <bruno@clisp.org>
33263
33264         * modules/ssize_t (Include): Add <sys/types.h>.
33265
33266 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33267
33268         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33269         it's not portable and it doesn't work with cross-compiles.
33270         Problem reported by Bruno Haible.  Fix missing-$ typo in
33271         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33272         -zignore from being used with Sun's C compiler.
33273
33274 2006-01-12  Simon Josefsson  <jas@extundo.com>
33275
33276         * lib/base64.c: Fix warning, reported by Bruno Haible
33277         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33278
33279 2006-01-12  Bruno Haible  <bruno@clisp.org>
33280
33281         * modules/ldd: New file.
33282         * build-aux/ldd.sh.in: New file.
33283         * MODULES.html.sh (Support for building libraries and executables): Add
33284         ldd.
33285
33286 2006-01-12  Bruno Haible  <bruno@clisp.org>
33287
33288         * m4/ldd.m4: New file.
33289
33290 2006-01-12  Bruno Haible  <bruno@clisp.org>
33291
33292         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33293         endless loop while replacing $auxdir with build-aux.
33294
33295 2006-01-11  Simon Josefsson  <jas@extundo.com>
33296
33297         * lib/stdint_.h (SIZE_MAX): Add missing (.
33298
33299 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33300
33301         Sync from coreutils.
33302         * lib/md5.c: Fix commentary typos.
33303         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33304         * lib/md5.h (__attribute__): Remove; unused.
33305         * lib/sha1.c: Fix commentary to match md5 better.
33306         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33307         so that we don't need to worry about alignment.  All uses changed.
33308         This merges the 2005-10-28 md5 change into sha1.
33309
33310 2006-01-11  Jim Meyering  <jim@meyering.net>
33311
33312         Sync from coreutils.
33313         * lib/md5.c (OP): Fix spacing.
33314
33315 2006-01-11  Bruno Haible  <bruno@clisp.org>
33316
33317         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33318         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33319         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33320
33321 2006-01-11  Bruno Haible  <bruno@clisp.org>
33322
33323         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33324         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33325         the "early" section as well.
33326
33327 2006-01-11  Bruno Haible  <bruno@clisp.org>
33328
33329         Avoid "ar: no archive members specified" error on MacOS X.
33330         * gnulib-tool (func_modules_add_dummy): New function.
33331         (func_import, func_create_testdir): Invoke it.
33332
33333 2006-01-11  Bruno Haible  <bruno@clisp.org>
33334
33335         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33336         with $auxdir in AC_CONFIG_FILES statements.
33337
33338 2006-01-11  Bruno Haible  <bruno@clisp.org>
33339
33340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33341         Initialize also noinst_HEADERS to empty.
33342
33343 2006-01-11  Bruno Haible  <bruno@clisp.org>
33344
33345         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33346         variables.
33347         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33348         autoreconf.
33349
33350 2006-01-11  Bruno Haible  <bruno@clisp.org>
33351
33352         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33353         overridable by the user.
33354         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33355
33356 2006-01-10  Simon Josefsson  <jas@extundo.com>
33357
33358         * modules/sys_socket: New file.
33359
33360 2006-01-10  Simon Josefsson  <jas@extundo.com>
33361
33362         * m4/sys_socket_h.m4: New file.
33363
33364 2006-01-10  Simon Josefsson  <jas@extundo.com>
33365
33366         * lib/socket_.h: New file.
33367
33368 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33369
33370         * modules/readutmp (Maintainer): Add myself.
33371
33372 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33373
33374         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33375         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33376         People who are still concerned with buggy memcmp implementations
33377         can invoke gl_FUNC_MEMCMP themselves.
33378
33379 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33380
33381         * lib/regex_internal.h (BITSET_WORD_BITS):
33382         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33383         preprocessor mishandles large unsigned values as if they were signed.
33384         Problem reported by Claudio Fontana in
33385         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33386
33387 2006-01-10  Jim Meyering  <jim@meyering.net>
33388
33389         Avoid the double-free (first in fts_read, second in fts_close) that
33390         would occur when an `active' directory is made inaccessible (e.g.,
33391         via chmod a-x) during a traversal.
33392         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33393         before returning.  Reproduce this failure by
33394         mkdir -p a/b; cd a; chmod a-x . b
33395         Reported by Stavros Passas.
33396
33397         Sync from coreutils.
33398         * lib/sha1.c: Tweak grammar in a comment.
33399
33400 2006-01-10  Jim Meyering  <jim@meyering.net>
33401
33402         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33403         Patch by Joerg Sonnenberger.
33404
33405 2006-01-10  Bruno Haible  <bruno@clisp.org>
33406
33407         * modules/readutmp: Depend on module free.
33408         * modules/strtok_r: Depend on module restrict.
33409
33410 2006-01-10  Bruno Haible  <bruno@clisp.org>
33411
33412         * modules/gettext (configure.ac): Add an invocation of
33413         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33414
33415 2006-01-10  Bruno Haible  <bruno@clisp.org>
33416
33417         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33418         Reported by Werner Lemberg <wl@gnu.org>.
33419
33420 2006-01-10  Bruno Haible  <bruno@clisp.org>
33421
33422         * lib/localcharset.c: Update from GNU gettext.
33423
33424 2006-01-10  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/argp.h (__const): Remove macro. Use const instead.
33427         * lib/argp-fmtstream.h (__const): Likewise.
33428         * lib/glob_.h (__const): Remove macro.
33429         * lib/glob-libc.h: Use const instead of __const.
33430
33431 2006-01-10  Bruno Haible  <bruno@clisp.org>
33432
33433         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33434         variable.
33435         Needed to avoid an automake error regarding the 'gettext' module.
33436
33437 2006-01-09  Simon Josefsson  <jas@extundo.com>
33438
33439         * modules/inet_ntop (Depends-on): Add restrict.
33440
33441 2006-01-09  Simon Josefsson  <jas@extundo.com>
33442
33443         * modules/gc-rijndael-tests (License): Put under LGPL.
33444
33445         * modules/gc-des-tests (License): Likewise.
33446
33447         * modules/gc-arcfour-tests (License): Likewise.
33448
33449         * modules/gc-arctwo-tests (License): Likewise.
33450
33451         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33452
33453         * modules/gc-hmac-sha1-tests (Files): Likewise.
33454
33455         * modules/gc-hmac-md5-tests (License): Likewise.
33456
33457         * modules/gc-sha1-tests (License): Likewise.
33458
33459         * modules/gc-md5-tests (License): Likewise.
33460
33461         * modules/gc-md4-tests (License): Likewise.
33462
33463         * modules/gc-md2-tests (License): Likewise.
33464
33465         * modules/gc-tests (License): Likewise.
33466
33467         * modules/des-tests (License): Likewise.
33468
33469         * modules/md4-tests (License): Likewise.
33470
33471         * modules/md2-tests (License): Likewise.
33472
33473 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33474
33475         Sync from coreutils:
33476
33477         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33478         * modules/lib-ignore: New file.
33479         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33480         chdir-safer.m4, lchmod.m4.
33481         * modules/openat: Add mkdirat.c, openat-priv.h.
33482
33483 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33484
33485         Sync from coreutils.
33486         * m4/lib-ignore.m4: New file.
33487         * m4/lchmod.m4: New file.
33488
33489 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33490
33491         Sync from coreutils.
33492         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33493         for write access: POSIX says that must fail.
33494         * lib/fts.c (diropen): Likewise.
33495         * lib/save-cwd.c (save_cwd): Likewise.
33496         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33497         well, for minor improvements on hosts that lack O_DIRECTORY.
33498         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33499         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33500         Fall back on chown if open failed with EACCES.
33501
33502         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33503         Report an error at compile-time if only a 1-second nominal clock
33504         resolution is found.
33505
33506         * lib/lchmod.h: New file.
33507         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33508         (make_dir_parents): Use lchown rather than chown, and
33509         lchmod rather than chmod.
33510
33511         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33512         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
33513         "proc" reported by n0dalus.
33514
33515         * lib/mountlist.c: Include <limits.h>.
33516         (dev_from_mount_options)
33517         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33518         New function.  It no longer assumes "dev=" has the System V meaning
33519         on Linux (since it doesn't).  It also parses "dev=" more carefully.
33520         (read_file_system_list)
33521         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33522         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33523         dev= in that case.
33524
33525         * lib/posixtm.h (PDS_PRE_2000): New macro.
33526         * lib/posixtm.c (year): Arg is now syntax_bits rather than
33527         allow_century.  All usages changed.  Reject dates outside the range
33528         1969-1999 if PDS_PRE_2000 is used.
33529
33530 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33531
33532         Sync from coreutils.
33533         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33534         (Time of day items): Mention the possibility of leap seconds.
33535         Problem reported by Dr. David Alan Gilbert.
33536
33537 2006-01-09  Jim Meyering  <jim@meyering.net>
33538
33539         Sync from coreutils.
33540
33541         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33542
33543         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33544
33545         * lib/modechange.c (mode_compile): Reject an invalid mode string
33546         that starts with an octal digit.  From Andreas Gruenbacher.
33547
33548         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33549         and dup to open_safer and dup_safer, respectively.
33550         (openat_permissive): Fix typo in comment.
33551
33552         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33553         "gettext.h"; either no longer needed or are guaranteed by openat.h.
33554         (_): Remove; no longer needed.
33555         (openat): Renamed from rpl_openat; no need for rpl_openat
33556         since openat.h renames openat for us.
33557         Replace most of the body with a call to openat_permissive,
33558         to avoid duplicate code.
33559         Port to (probably hypothetical) environments were mode_t is
33560         wider than int.
33561         (openat_permissive): Require mode arg, so that we can check
33562         types better.  Put it just after flags.  Change cwd failure
33563         indicator from pointer-to-bool to pointer-to-errno-value.
33564         All callers changed.
33565         Invoke openat_save_fail and/or openat_restore_fail if
33566         cwd_errno is null, so that openat can call us.
33567         (openat_permissive, fdopendir, fstatat, unlinkat):
33568         Simplify errno handling to avoid some duplicate code,
33569         as it's OK to set errno on success.
33570         * lib/openat.h: Revamp code so that function macros depend on
33571         __OPENAT_PREFIX only, not also on AT_FDCWD.
33572         (openat_ro): Remove.  Caller changed to use openat_permissive.
33573         (openat_permissive): Now a macro, if not a function.
33574         (openat_restore_fail, openat_save_fail): Now always functions,
33575         since mkdirat needs them even if __OPENAT_PREFIX is defined.
33576
33577         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33578         and openat.c.
33579         * lib/mkdirat.c: Include openat-priv.h.
33580         Remove definitions of macros defined therein.
33581         * lib/openat.c: Likewise.
33582
33583         * lib/mkdirat.c (mkdirat): New file and function.
33584         * lib/openat.h (mkdirat): Declare.
33585
33586         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33587
33588         * lib/openat.h (openat_permissive): Declare.
33589         (openat_ro): Define.
33590
33591         * lib/openat.c (EXPECTED_ERRNO): New macro.
33592         (openat_permissive): New function -- used in remove.c rewrite.
33593         (all functions): Set errno just before returning, only if there
33594         was an actual failure.
33595         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33596
33597         Emulate openat-family functions using Linux's procfs, if possible.
33598         Idea and some code based on Ulrich Drepper's glibc changes.
33599
33600         * lib/openat.c: (BUILD_PROC_NAME): New macro.
33601         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33602         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33603         before falling back on save_cwd and restore_cwd.
33604         (fdopendir, fstatat, unlinkat): Likewise.
33605
33606         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33607         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33608
33609         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
33610         as second argument to va_arg.  Otherwise, some versions of gcc
33611         warn that `if this code is reached, the program will abort'.
33612
33613 2006-01-09  Jim Meyering  <jim@meyering.net>
33614
33615         Sync from coreutils.
33616         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
33617         Require openat-priv.h.
33618
33619 2006-01-09  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/strnlen (Include): Use strnlen.h.
33622
33623 2006-01-09  Bruno Haible  <bruno@clisp.org>
33624
33625         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
33626
33627 2006-01-09  Bruno Haible  <bruno@clisp.org>
33628
33629         * lib/sysexit_.h (EX_OK): New macro.
33630         Suggested by Martin Lambers <marlam@marlam.de>.
33631
33632 2006-01-09  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
33635         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
33636
33637 2006-01-09  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
33640         numbers.
33641
33642 2006-01-09  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
33645         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
33646         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
33647         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
33648
33649 2006-01-09  Bruno Haible  <bruno@clisp.org>
33650
33651         * build-aux/javacomp.sh.in: New file, moved from lib/.
33652         * modules/javacomp-script (Files): Update.
33653         (configure.ac): Add AC_CONFIG_FILES invocation.
33654         (EXTRA_DIST): Remove variable.
33655
33656         * build-aux/javaexec.sh.in: New file, moved from lib/.
33657         * modules/javaexec (Files): Update.
33658         (configure.ac): Add AC_CONFIG_FILES invocation.
33659         (EXTRA_DIST): Remove javaexec.sh.in.
33660
33661         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
33662         * modules/csharpcomp-script (Files): Update.
33663         (configure.ac): Add AC_CONFIG_FILES invocation.
33664         (EXTRA_DIST): Remove variable.
33665
33666         * build-aux/csharpexec.sh.in: New file, moved from lib/.
33667         * modules/csharpexec (Files): Update.
33668         (configure.ac): Add AC_CONFIG_FILES invocation.
33669         (EXTRA_DIST): Remove csharpexec.sh.in.
33670
33671 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33672
33673         Sync from coreutils.
33674
33675         Add POSIX ACL support
33676         * lib/acl.h (copy_acl, set_acl): Add declarations.
33677         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
33678         systems other than Linux.
33679         (chmod_or_fchmod): New function: use fchmod when possible,
33680         and chmod otherwise.
33681         (file_has_acl): Add a POSIX ACL implementation, with a
33682         Linux-specific subcase.
33683         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
33684         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
33685         acls are unsupported.
33686         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
33687         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
33688         are unsupported.
33689
33690 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33691
33692         Sync from coreutils.
33693         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
33694
33695 2006-01-07  Bruno Haible  <bruno@clisp.org>
33696
33697         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
33698         gl_EARLY.
33699
33700 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33701
33702         * lib/strftime.c (tzname): Don't declare if it is already #defined.
33703         Problem reported for Mingw by Mark Junker.
33704
33705 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33706
33707         * README: Gnulib normally doesn't generate a tarball.
33708
33709 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33710
33711         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
33712         long int, not int, for nanosecond counts, so that people who are
33713         used to POSIX struct timespec won't be surprised.  Reported by Jim
33714         Meyering.
33715
33716 2005-12-28  Bruno Haible  <bruno@clisp.org>
33717
33718         * build-aux/config.rpath: Update from GNU gettext.
33719
33720 2005-12-16  Jim Meyering  <jim@meyering.net>
33721
33722         * modules/fprintftime: New module.
33723         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
33724
33725 2005-12-16  Jim Meyering  <jim@meyering.net>
33726
33727         * m4/fprintftime.m4: New file.
33728
33729 2005-12-16  Jim Meyering  <jim@meyering.net>
33730
33731         * lib/fprintftime.c, lib/fprintftime.h: New files.
33732
33733 2005-12-15  Simon Josefsson  <jas@extundo.com>
33734
33735         * modules/socklen (configure.ac): Fix M4 macro name, to align with
33736         new m4/socklen.m4.
33737
33738 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33739
33740         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
33741         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
33742
33743 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33744
33745         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
33746         * lib/argp-help.c (fill_in_uparams): Check if the constructed
33747         struct uparams is valid. Fall back to the default values if it is
33748         not.
33749
33750 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33751
33752         * modules/argp (Files): Add argp-pin.c
33753         (Depends-on): dirname
33754         (lib_SOURCES): Add argp-pin.c
33755
33756 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33757
33758         * m4/argp.m4:  Check if program_invocation_name and
33759         program_invocation_short_name are declared and define appropriate
33760         macros if they are not.
33761
33762 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33763
33764         * lib/argp-help.c (__argp_base_name): New function
33765         (__argp_short_program_name): Rewrite using __argp_base_name
33766         * lib/argp-namefrob.h: Define program_invocation_name and
33767         program_invocation_short_name if requested
33768         (__argp_base_name): Add prototype
33769         * lib/argp-parse.c (argp_def): Use gettext wrappers
33770         (argp_default_parser): Use __argp_base_name
33771         * lib/argp-pin.c: New file. Defines program_invocation_name and
33772         program_invocation_short_name on systems that lack them.
33773
33774 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33775
33776         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
33777         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33778         porting problem reported by Georg Schwarz in
33779         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33780
33781 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33782
33783         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
33784         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33785         porting problem reported by Georg Schwarz in
33786         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33787
33788 2005-12-05  Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
33791         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
33792         Reported by Mark Junker <mjscod@gmx.de>.
33793
33794 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33795
33796         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
33797         Use implementation from Albert Chin, with some
33798         comments/corrections by Stepan Kasal and myself.
33799
33800 2005-12-02  Bruno Haible  <bruno@clisp.org>
33801
33802         * gnulib-tool (func_import): Accept GPLed build tool modules when
33803         --lgpl is given.
33804         * modules/csharpcomp-script: New file.
33805         * modules/csharpcomp: Depend on it.
33806         * modules/javacomp-script: New file.
33807         * modules/javacomp: Depend on it.
33808         Suggested by Simon Josefsson.
33809
33810 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
33811
33812         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
33813         statement, to work around an HP-UX 10.20 compiler bug reported by
33814         Peter O'Gorman.
33815
33816 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33817
33818         * modules/savedir (Depends-on): Add openat.
33819
33820 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33821
33822         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
33823         (uintmax_t) [defined uintmax_t]: Do not declare.
33824         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
33825         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
33826         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
33827         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
33828         sake of portability to weird hosts that C allows (though we don't
33829         know of any practical examples).
33830
33831         * lib/savedir.h (fdsavedir): New decl.
33832         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
33833         contains most of the former guts of savedir.
33834         (savedir): Use savedirstream.
33835         Include "openat.h".
33836
33837 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33838
33839         * modules/obstack (Files): Add m4/ulonglong.m4.
33840         Problem reported by Davide Angelocola.
33841
33842 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33843
33844         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
33845         coreutils no longer futzes with rounding modes.
33846
33847 2005-11-14  Jim Meyering  <jim@meyering.net>
33848
33849         * lib/mkstemp-safer.c: Include <config.h>, required for possible
33850         replacement of mkstemp.
33851
33852 2005-11-10  Simon Josefsson  <jas@extundo.com>
33853
33854         * lib/readline.c: Remove EOL.
33855
33856 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33857
33858         * modules/gethrxtime (Depends-on): Add gettime.
33859
33860 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33861
33862         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
33863         or gettimeofday; no longer needed.
33864
33865 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33866
33867         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
33868         time business.
33869         (gethrxtime) [! (HAVE_NANOUPTIME
33870         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
33871         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
33872         our own approximation.
33873
33874 2005-11-08  Eric Blake  <ebb9@byu.net>
33875
33876         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
33877
33878 2005-11-08  Eric Blake  <ebb9@byu.net>
33879
33880         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
33881
33882 2005-11-04  Bruno Haible  <bruno@clisp.org>
33883
33884         * gnulib-tool: Implement --update mode.
33885
33886 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33887
33888         Fix porting problem reported by Theodoros V. Kalamatianos.
33889         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
33890         Don't assume that futimes failing means we must fail.
33891
33892 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33893
33894         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
33895         variables to suggest the intended function of the PATH_MAX check.
33896
33897 2005-10-30  Kean Johnston  <jkj@sco.com>
33898
33899         Trivial changes to support SCO systems.
33900         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
33901         as PATH_MAX.
33902         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
33903         where __ptr is null when no I/O is pending.
33904
33905 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33906
33907         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
33908         leave errno alone.  Problem reported by Dmitry V. Levin.
33909
33910 2005-10-28  Simon Josefsson  <jas@extundo.com>
33911
33912         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
33913         Test more.
33914
33915         * tests/test-gc-md2.c, tests/test-md2.c: New files.
33916
33917         * modules/md2, modules/md2-tests: New files.
33918
33919 2005-10-28  Simon Josefsson  <jas@extundo.com>
33920
33921         * m4/inet_ntop.m4: More tests.
33922
33923         * m4/gc-md2.m4, md2.m4: New file.
33924
33925 2005-10-28  Simon Josefsson  <jas@extundo.com>
33926
33927         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
33928         "restrict" keywords, as per POSIX.  Protect the function
33929         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
33930         Don't use K&R prototypes.  Check the sprintf return values.
33931         Re-define EAFNOSUPPORT if not present.  Indent.
33932
33933         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
33934         suggested by Bruno Haible <bruno@clisp.org>.
33935
33936         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
33937
33938         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
33939
33940         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
33941         libgcrypt).
33942
33943         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
33944
33945         * lib/md2.h, lib/md2.c: New files.
33946
33947 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
33948
33949         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
33950         errno alone.  Problem reported by Frederic Jolliton.
33951
33952 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
33953
33954         * modules/verify (License): Change from GPL to LGPL.  This is a
33955         tiny module and there are apparently near-equivalents that are
33956         under the BSD license.
33957
33958 2005-10-24  Simon Josefsson  <jas@extundo.com>
33959
33960         * modules/sha1: Relicense to LGPL.
33961
33962 2005-10-24  Simon Josefsson  <jas@extundo.com>
33963
33964         * lib/md4.h: Shrink buffer size, now that we changed the type.
33965
33966 2005-10-23  Simon Josefsson  <jas@extundo.com>
33967
33968         * gnulib-tool (func_import): Fix --tests-base.
33969
33970 2005-10-22  Simon Josefsson  <jas@extundo.com>
33971
33972         * modules/arcfour (Depends-on): Need stdint.
33973
33974 2005-10-22  Simon Josefsson  <jas@extundo.com>
33975
33976         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
33977         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
33978
33979 2005-10-22  Simon Josefsson  <jas@extundo.com>
33980
33981         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
33982         suggested by Bruno Haible <bruno@clisp.org>.
33983
33984 2005-10-22  Simon Josefsson  <jas@extundo.com>
33985
33986         * lib/crc.h: Include stddef.h, for size_t.
33987
33988 2005-10-22  Simon Josefsson  <jas@extundo.com>
33989
33990         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
33991         arcfour_context struct (simplify test vector testing in GNU
33992         Shishi).
33993
33994 2005-10-21  Simon Josefsson  <jas@extundo.com>
33995
33996         * modules/des, modules/des-tests: New files.
33997
33998         * modules/gc-des, modules/gc-des-tests: New files.
33999
34000         * tests/test-des.c, tests/test-gc-des.c: New file.
34001
34002 2005-10-21  Simon Josefsson  <jas@extundo.com>
34003
34004         * modules/arctwo, modules/arctwo-tests: New files.
34005
34006         * tests/test-arctwo.c: New file.
34007
34008         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34009
34010         * tests/test-gc-arctwo.c: New file.
34011
34012 2005-10-21  Simon Josefsson  <jas@extundo.com>
34013
34014         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34015         Bruno Haible <bruno@clisp.org>.
34016
34017         * m4/gc-des.m4: New file.
34018
34019 2005-10-21  Simon Josefsson  <jas@extundo.com>
34020
34021         * m4/arctwo.m4: New file.
34022
34023         * m4/gc-arctwo.m4: New file.
34024
34025 2005-10-21  Simon Josefsson  <jas@extundo.com>
34026
34027         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34028         block.
34029
34030 2005-10-21  Simon Josefsson  <jas@extundo.com>
34031
34032         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34033         <bruno@clisp.org>.
34034
34035         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34036
34037         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34038         Bruno Haible <bruno@clisp.org>.
34039
34040         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34041         <bruno@clisp.org>.
34042
34043 2005-10-21  Simon Josefsson  <jas@extundo.com>
34044
34045         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34046
34047 2005-10-21  Simon Josefsson  <jas@extundo.com>
34048
34049         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34050
34051 2005-10-21  Simon Josefsson  <jas@extundo.com>
34052
34053         * lib/des.h, lib/des.c: New files.
34054
34055         * lib/gc-gnulib.c: Support DES.c
34056
34057 2005-10-21  Simon Josefsson  <jas@extundo.com>
34058
34059         * lib/arctwo.h, lib/arctwo.c: New files.
34060
34061         * lib/gc-gnulib.c: Support ARCTWO.
34062
34063 2005-10-21  Simon Josefsson  <jas@extundo.com>
34064
34065         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34066         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34067
34068 2005-10-21  Simon Josefsson  <jas@extundo.com>
34069
34070         * gnulib-tool (func_import, func_create_testdir): Define automake
34071         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34072         Makefile.am snippet),
34073         suggested by Bruno Haible <bruno@clisp.org>.
34074
34075         * modules/gc (Makefile.am): Use it.
34076
34077 2005-10-21  Bruno Haible  <bruno@clisp.org>
34078
34079         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34080         patch.
34081
34082 2005-10-19  Simon Josefsson  <jas@extundo.com>
34083
34084         * tests/test-gc-rijndael.c: New file.
34085
34086         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34087
34088 2005-10-19  Simon Josefsson  <jas@extundo.com>
34089
34090         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34091         interface too.
34092
34093 2005-10-19  Simon Josefsson  <jas@extundo.com>
34094
34095         * tests/test-gc-arcfour.c: New file.
34096
34097         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34098
34099 2005-10-19  Simon Josefsson  <jas@extundo.com>
34100
34101         * modules/gc-md4, modules/gc-md4-tests: New file.
34102
34103         * tests/test-gc-md4.c: New file.
34104
34105 2005-10-19  Simon Josefsson  <jas@extundo.com>
34106
34107         * m4/gc-md4.m4: New file.
34108
34109 2005-10-19  Simon Josefsson  <jas@extundo.com>
34110
34111         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34112         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34113         <kasal@ucw.cz>.
34114
34115 2005-10-19  Simon Josefsson  <jas@extundo.com>
34116
34117         * m4/gc-arcfour.m4: New file.
34118
34119         * m4/gc-rijndael.m4: New file.
34120
34121 2005-10-19  Simon Josefsson  <jas@extundo.com>
34122
34123         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34124
34125 2005-10-19  Simon Josefsson  <jas@extundo.com>
34126
34127         * lib/gc-gnulib.c: Support ARCFOUR.
34128
34129 2005-10-19  Simon Josefsson  <jas@extundo.com>
34130
34131         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34132         support.
34133
34134         * lib/gc.h: Add ECB enum type.
34135
34136         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34137
34138 2005-10-18  Simon Josefsson  <jas@extundo.com>
34139
34140         * tests/test-md5.c: New file.
34141
34142         * modules/md5-tests: New file.
34143
34144 2005-10-18  Simon Josefsson  <jas@extundo.com>
34145
34146         * tests/test-md4.c: New file.
34147
34148         * modules/md4, modules/md4-tests: New files.
34149
34150 2005-10-18  Simon Josefsson  <jas@extundo.com>
34151
34152         * m4/md4.m4: New file.
34153
34154 2005-10-18  Simon Josefsson  <jas@extundo.com>
34155
34156         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34157
34158 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34159
34160         * gnulib-tool (func_create_testdir): Omit the second check whether
34161         BUILT_SOURCES in nonempty.
34162
34163 2005-10-17  Simon Josefsson  <jas@extundo.com>
34164
34165         * tests/test-rijndael.c: New file.
34166
34167 2005-10-17  Simon Josefsson  <jas@extundo.com>
34168
34169         * modules/sha1: Depend on stdint instead of md5.
34170
34171         * modules/md5: Depend on stdint, remove uint32_t.
34172
34173 2005-10-17  Simon Josefsson  <jas@extundo.com>
34174
34175         * modules/gc-sha1-tests: New file.
34176
34177         * tests/test-gc-sha1.c: New file.
34178
34179 2005-10-17  Simon Josefsson  <jas@extundo.com>
34180
34181         * m4/md5.m4: Remove call to uint32_t.m4.
34182
34183 2005-10-17  Simon Josefsson  <jas@extundo.com>
34184
34185         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34186
34187         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34188         md5.h.
34189
34190         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34191
34192         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34193
34194 2005-10-17  Simon Josefsson  <jas@extundo.com>
34195
34196         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34197
34198 2005-10-17  Simon Josefsson  <jas@extundo.com>
34199
34200         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34201
34202 2005-10-17  Simon Josefsson  <jas@extundo.com>
34203
34204         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34205
34206         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34207
34208 2005-10-17  Bruno Haible  <bruno@clisp.org>
34209
34210         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34211         that it can also be used in a test.
34212
34213 2005-10-16  Bruno Haible  <bruno@clisp.org>
34214
34215         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34216         TESTS_ENVIRONMENT, so that individual tests can augment it.
34217
34218         * gnulib-tool (func_create_testdir): Use an intermediate target for
34219         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34220         macros, like $(ALLOCA_H), which cannot be passed through the command
34221         line.
34222
34223 2005-10-15  Simon Josefsson  <jas@extundo.com>
34224
34225         * modules/rijndael-tests: New file.
34226
34227         * modules/rijndael: New file.
34228
34229 2005-10-15  Simon Josefsson  <jas@extundo.com>
34230
34231         * m4/rijndael.m4: New file.
34232
34233 2005-10-15  Simon Josefsson  <jas@extundo.com>
34234
34235         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34236
34237         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34238
34239 2005-10-14  Simon Josefsson  <jas@extundo.com>
34240
34241         * tests/test-arcfour.c: New file.
34242
34243         * modules/arcfour, modules/arcfour-tests: New files.
34244
34245 2005-10-14  Simon Josefsson  <jas@extundo.com>
34246
34247         * m4/arcfour.m4: New file.
34248
34249 2005-10-14  Simon Josefsson  <jas@extundo.com>
34250
34251         * lib/arcfour.h, lib/arcfour.c: New files.
34252
34253 2005-10-14  Roland McGrath  <roland@redhat.com>
34254
34255         Import from libc.  [BZ #1331]
34256         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34257         macro argument.
34258         Reported by Matej Vela <vela@debian.org>.
34259
34260 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34261
34262         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34263         include <wchar.h>; no longer needed.
34264
34265 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34266
34267         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34268
34269 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34270         and  Ulrich Drepper  <drepper@redhat.com>
34271
34272         Import from libc.
34273         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34274         instead of inline stream orientation test and two separate
34275         function calls.  Pay no attention to USE_IN_LIBIO.
34276
34277 2005-10-13  Simon Josefsson  <jas@extundo.com>
34278
34279         * modules/gc-hmac-md5-tests: New file.
34280
34281         * tests/test-gc-hmac-sha1.c: New file.
34282
34283         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34284
34285         * modules/gc-hmac-md5-tests: New file.
34286
34287         * tests/test-gc-md5.c: New file.
34288
34289         * modules/gc-md5-tests: New file.
34290
34291 2005-10-13  Simon Josefsson  <jas@extundo.com>
34292
34293         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34294         Move memory allocation outside of loop.
34295
34296 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34297
34298         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34299         intermediate directory is in a read-only file system.  Problem
34300         reported by Eric Blake.
34301
34302 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34303
34304         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34305
34306 2005-10-12  Simon Josefsson  <jas@extundo.com>
34307
34308         * tests/test-hmac-sha1.c: New file.
34309
34310         * modules/hmac-sha1-tests: New file.
34311
34312         * modules/hmac-sha1: New file.
34313
34314 2005-10-12  Simon Josefsson  <jas@extundo.com>
34315
34316         * modules/gc-sha1: New file.
34317
34318 2005-10-12  Simon Josefsson  <jas@extundo.com>
34319
34320         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34321
34322         * tests/test-gc-pbkdf2-sha1.c: New file.
34323
34324 2005-10-12  Simon Josefsson  <jas@extundo.com>
34325
34326         * modules/gc-md5, modules/gc-hmac-md5: New files.
34327
34328         * modules/gc (Files): Remove md5, memxor and hmac files.
34329
34330 2005-10-12  Simon Josefsson  <jas@extundo.com>
34331
34332         * m4/gc-pbkdf2-sha1.m4: New file.
34333
34334         * m4/gc-hmac-sha1.m4: New file.
34335
34336         * m4/gc-sha1: New file.
34337
34338         * m4/hmac-sha1.m4: New file.
34339
34340 2005-10-12  Simon Josefsson  <jas@extundo.com>
34341
34342         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34343
34344         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34345
34346 2005-10-12  Simon Josefsson  <jas@extundo.com>
34347
34348         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34349         suggested by Bruno Haible <bruno@clisp.org>.
34350
34351 2005-10-12  Simon Josefsson  <jas@extundo.com>
34352
34353         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34354
34355 2005-10-12  Simon Josefsson  <jas@extundo.com>
34356
34357         * lib/gc-pbkdf2-sha1.c: New file.
34358
34359         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34360
34361 2005-10-12  Simon Josefsson  <jas@extundo.com>
34362
34363         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34364
34365         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34366
34367 2005-10-12  Simon Josefsson  <jas@extundo.com>
34368
34369         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34370         GC_USE_HMAC_MD5, respectively.
34371
34372         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34373         (gc_md5): Fix typo.
34374
34375         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34376
34377         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34378
34379         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34380
34381 2005-10-12  Bruno Haible  <bruno@clisp.org>
34382
34383         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34384         Reported by Stepan Kasal <kasal@ucw.cz>.
34385
34386 2005-10-11  Simon Josefsson  <jas@extundo.com>
34387
34388         * tests/test-crc.c: New file.
34389
34390         * modules/crc, modules/crc-tests: New files.
34391
34392 2005-10-11  Simon Josefsson  <jas@extundo.com>
34393
34394         * m4/crc.m4: New file.
34395
34396 2005-10-11  Simon Josefsson  <jas@extundo.com>
34397
34398         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34399
34400         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34401
34402         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34403
34404 2005-10-11  Simon Josefsson  <jas@extundo.com>
34405
34406         * lib/crc.h, lib/crc.c: New files.
34407
34408         * lib/gc.h (gc_hash_buffer): Add doc.
34409
34410 2005-10-11  Bruno Haible  <bruno@clisp.org>
34411
34412         * modules/c-strcasestr: New file.
34413         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34414
34415 2005-10-11  Bruno Haible  <bruno@clisp.org>
34416
34417         * modules/c-strcase: New file.
34418         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34419
34420 2005-10-11  Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/strcasecmp.c: Include limits.h.
34423         (strcasecmp): Avoid integer overflow on exotic platforms.
34424         * lib/strncasecmp.c: Include limits.h.
34425         (strncasecmp): Avoid integer overflow on exotic platforms.
34426         Reported by Paul Eggert.
34427
34428 2005-10-11  Bruno Haible  <bruno@clisp.org>
34429
34430         * lib/c-strcasestr.h: New file, from GNU gettext.
34431         * lib/c-strcasestr.c: New file, from GNU gettext.
34432
34433 2005-10-11  Bruno Haible  <bruno@clisp.org>
34434
34435         * lib/c-strcase.h: New file, from GNU gettext.
34436         * lib/c-strcasecmp.c: New file, from GNU gettext.
34437         * lib/c-strncasecmp.c: New file, from GNU gettext.
34438
34439 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34440
34441         * modules/mempcpy (License): GPL -> LGPL.
34442         * modules/strchrnul (License): Likewise.
34443         * modules/sysexits (License): Likewise.
34444
34445 2005-10-08  Simon Josefsson  <jas@extundo.com>
34446
34447         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34448
34449 2005-10-07  Simon Josefsson  <jas@extundo.com>
34450
34451         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34452
34453 2005-10-06  Simon Josefsson  <jas@extundo.com>
34454
34455         * tests/test-hmac-md5.c: New file.
34456
34457         * modules/hmac-md5-tests: New file.
34458
34459         * modules/hmac-md5: New file.
34460
34461 2005-10-06  Simon Josefsson  <jas@extundo.com>
34462
34463         * m4/hmac-md5.m4: New file.
34464
34465         * m4/memxor.m4: Require gl_C_RESTRICT.
34466
34467 2005-10-06  Simon Josefsson  <jas@extundo.com>
34468
34469         * lib/memxor.c (memxor): Avoid casts and warnings.
34470
34471 2005-10-06  Simon Josefsson  <jas@extundo.com>
34472
34473         * lib/hmac-md5.c: New file.
34474
34475         * lib/hmac.h: New file.
34476
34477 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34478
34479         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34480         promotes to int, not unsigned int, to catch the AIX 5.3
34481         compiler bug.
34482
34483 2005-10-05  Simon Josefsson  <jas@extundo.com>
34484
34485         * modules/memxor: New file.
34486
34487         * modules/iconv (Files): Move config.rpath to havelib, it is used
34488         there.
34489
34490         * modules/havelib (Files): Add config.rpath.
34491
34492 2005-10-05  Simon Josefsson  <jas@extundo.com>
34493
34494         * m4/memxor.m4: New file.
34495
34496 2005-10-05  Simon Josefsson  <jas@extundo.com>
34497
34498         * lib/memxor.c (memxor): Fix compiler error.
34499
34500         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34501         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34502
34503         * lib/memxor.h, lib/memxor.c: New files.
34504
34505         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34506         we assume all systems have it, suggested by Jim Meyering
34507         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
34508         any systems lack sys/socket.h; mingw32 is known to lack it, but we
34509         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
34510         same reasons.
34511
34512 2005-10-05  Simon Josefsson  <jas@extundo.com>
34513
34514         * config/srclist.txt: Add glibc bug 1423 for md5.h.
34515
34516 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
34517
34518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34519         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34520         needed, since the source code now assumes these .h files.
34521
34522 2005-10-05  Derek Price  <derek@ximbiot.com>
34523
34524         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34525
34526 2005-10-05  Bruno Haible  <bruno@clisp.org>
34527
34528         * modules/stdint (License): Change to LGPL.
34529
34530 2005-10-04  Simon Josefsson  <jas@extundo.com>
34531
34532         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34533         D. Baushke" <mdb@gnu.org>.
34534
34535 2005-10-04  Bruno Haible  <bruno@clisp.org>
34536
34537         * lib/verify.h (verify_true): Provide alternative definition for C++.
34538
34539 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
34540
34541         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
34542         (SSIZE_MAX): New macro, if not already defined.
34543         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34544         than 2 GiB.
34545
34546 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34547
34548         Sync from coreutils.
34549         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34550         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34551         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
34552         ULLONG_MAX doesn't work with 2.7.2.1.
34553
34554 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34555
34556         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34557         From Ben Pfaff.
34558
34559         * modules/exclude (Depends-on): Depend on verify.
34560         * modules/strtoimax (Depends-on): Likewise.
34561         * modules/utimecmp (Depends-on): Likewise.
34562
34563 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34564
34565         * lib/exclude.c: Include verify.h.
34566         (verify): Remove.  All callers changed to use verify.h's version.
34567         * lib/strtoimax.c: Likewise.
34568         * lib/utimecmp.c: Likewis.e
34569
34570         Sync from coreutils.
34571         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34572         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34573         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34574         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
34575         bother returning ENOSYS if settimeofday or stime fails; just let
34576         them return whatever errno they want to return.
34577         * lib/utimens.c: Include unistd.h, for dup2.
34578         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34579         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34580
34581 2005-10-02  Jim Meyering  <jim@meyering.net>
34582
34583         Sync from coreutils.
34584         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34585         from glibc-2.2.5 that fails for read-only files.
34586
34587 2005-10-02  Jim Meyering  <jim@meyering.net>
34588
34589         Sync from coreutils.
34590         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34591         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34592         `#if HAVE_CONFIG_H'.
34593         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34594         Remove AT_FDCWD test.
34595         Do not consume the fd unless successful.
34596         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34597         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34598         block, so that we don't even try to compile it if settimeofday is
34599         available.  This works around a compilation failure on OSF1 V5.1,
34600         due to stime requiring a `long int*' while tv_sec is `int'.
34601
34602 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
34603
34604         Sync from coreutils.
34605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34606         against `yes', rather than just testing for nonempty.
34607
34608 2005-10-01  Simon Josefsson  <jas@extundo.com>
34609
34610         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
34611         and Darwin.
34612
34613         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
34614         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
34615         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
34616         freeaddrinfo and gai_strerror are declared by the POSIX headers.
34617         Check if struct addrinfo is declared.
34618
34619 2005-10-01  Simon Josefsson  <jas@extundo.com>
34620
34621         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
34622         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
34623         AI_* and EAI_* definitions.  Protect function declarations.
34624
34625 2005-10-01  Jim Meyering  <jim@meyering.net>
34626
34627         Sync from coreutils.
34628
34629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
34630         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
34631         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
34632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34633         in the inet and nsl libraries.  Required on Solaris 5.7.
34634
34635 2005-10-01  Jim Meyering  <jim@meyering.net>
34636
34637         Sync from coreutils.
34638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34639         in the inet and nsl libraries.  Required on Solaris 5.7.
34640
34641 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
34642
34643         * lib/getdelim.c (getdelim): Remove unused variables.
34644
34645 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34646
34647         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
34648         so that the code works even with ancient cpp.  Portability problem
34649         with GCC 2.7.2.1 reported by Thomas M.Ott.
34650
34651 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34652
34653         * modules/regex (Depends-on): Add strcase.
34654
34655         * modules/gethostname (Licence): Change from GPL to LGPL, since
34656         gethostname.c is a trivial implementation of a standard library
34657         function.
34658         * modules/poll (License): Change from GPL to LGPL, since it's
34659         derived from LGPL code.
34660
34661 2005-09-27  Jim Meyering  <jim@meyering.net>
34662
34663         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
34664         HAVE_CONFIG_H.
34665
34666         * lib/intprops.h (signed_type_or_expr__): Define.
34667         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
34668         for unsigned types.
34669
34670 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34671
34672         * lib/verify.h (verify_expr): Remove, replacing with:
34673         (verify_true): New macro that returns true instead of void.
34674         (verify_type__): Remove.
34675         (verify): Use verify_true rather than verify_type__.
34676
34677 2005-09-26  Bruno Haible  <bruno@clisp.org>
34678
34679         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
34680         is necessary.
34681         (lib_SOURCES): Remove mbchar.c.
34682         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
34683         (Files): Add m4/mbrtowc.m4.
34684         * modules/mbiter: Likewise.
34685         * modules/mbuiter: Likewise.
34686
34687 2005-09-26  Bruno Haible  <bruno@clisp.org>
34688
34689         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
34690         compile mbchar.c if they are not both present.
34691         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
34692         * m4/mbiter.m4 (gl_MBITER): Likewise.
34693         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
34694         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
34695         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
34696
34697 2005-09-25  Jim Meyering  <jim@meyering.net>
34698
34699         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
34700         also uses socklen_t.
34701
34702 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34703
34704         * lib/utimens.c (ENOSYS): Define if not already defined.
34705         (futimens): Support having a null PATH if the file descriptor
34706         is nonnegative.
34707
34708         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
34709         Remove.
34710         (__attribute): Define to empty unless GCC 3.1 or later.
34711         This works around a core dump on OpenBSD 3.4, which has GCC
34712         2.95.3, which dumps core when given __attribute__(()).  It also
34713         simplifies other tests, since we really don't want to bother with
34714         worrying about which ancient version of GCC supported what.
34715         Original problem reported by Yoann Vandoorselaere, with part of
34716         the fix suggested by Derek Price.
34717
34718 2005-09-24  Jim Meyering  <jim@meyering.net>
34719
34720         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
34721         so we can once again use a positive bitfield width of 1 -- now we
34722         don't have to explain why we were using a bitfield width of 2.
34723
34724 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34725
34726         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
34727         and similarly for the other external symbols.  Problem reported
34728         by James Gallager.
34729
34730         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
34731         bug reported by Jim Meyering.
34732
34733         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
34734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
34735         not needed, since socklen is a prerequisite module.
34736
34737 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34738
34739         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
34740         Problem reported by Eric Blake.
34741         (getaddrinfo): Initialize se so that it's not garbage.
34742         Redo internal storage allocation so that it doesn't make unportable
34743         assumptions about alignment.
34744         Fix a memory leak.
34745
34746         * lib/utimens.c (futimens): Use futimesat if available.
34747         Prefer it to futimes since it doesn't have the futimes bug.
34748
34749         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
34750         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
34751         Instead, declare a function that returns a pointer to an array,
34752         and use verify_type__ to declare the size of the array.
34753         Problem and germ of a solution reported by Bruno Haible.
34754         (verify_type__): Use 2, not 1, for bitfield size, to avoid
34755         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
34756
34757 2005-09-23  Jim Meyering  <jim@meyering.net>
34758
34759         Sync from coreutils.
34760         Correct build failure (socklen_t not defined) on at least
34761         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
34762         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
34763
34764 2005-09-23  Jim Meyering  <jim@meyering.net>
34765
34766         * modules/getaddrinfo (Depends-on): Add socklen.
34767
34768 2005-09-23  Bruno Haible  <bruno@clisp.org>
34769
34770         * tests/test-verify.c: New file.
34771
34772 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34773
34774         Sync from coreutils.
34775
34776         * modules/argmatch (Depends-on): Add verify.
34777         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
34778         unistd-safer.
34779         * modules/save-cwd (Depends-on): Likewise.
34780
34781         * modules/openat (Files): Add lib/openat-die.c.
34782         (Depends-on): Remove error, exitfail.
34783         Add dirname.
34784
34785         * modules/verify: New file.
34786         * MODULES.html.sh (Diagnostics <assert.h>): New section,
34787         with "verify" module.
34788
34789 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34790
34791         Sync from coreutils.
34792
34793         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
34794         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
34795         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
34796         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
34797         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
34798         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
34799         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
34800         Don't bother checking for string.h, stdlib.h, unistd.h.
34801         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
34802         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
34803         module's job.
34804         * m4/jm-macros.m4 (gl_MACROS): Likewise.
34805         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
34806
34807         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
34808         (gl_GETDATE): Use it.
34809
34810         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
34811
34812 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34813
34814         Sync from coreutils.
34815
34816         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
34817         stat-time.h.
34818         * lib/argmatch.h: Include verify.h
34819         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
34820         (ARGMATCH_ASSERT): Remove; unused.
34821         * lib/canonicalize.c: Assume STDC_HEADERS.
34822         * lib/exclude.c: Include "strcase.h".
34823         * lib/regex_internal.h [!defined _LIBC]: Likewise.
34824         * lib/getusershell.c: Include stdio--.h rather than stdio.h
34825         and stdio-safer.h.
34826         (getusershell): Call fopen, not fopen_safer.
34827         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
34828         Do not include unistd-safer.h.
34829         (save_cwd): Don't call fd_safer; no longer needed
34830         now that we include fcntl--.h.
34831
34832         * lib/getdate.y (relative_time): New type.
34833         (RELATIVE_TIME_0): New constant.
34834         (parser_control): Use relative_time instead of doing it ourselves.
34835         (%union): Add new relative_time rel member.
34836         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
34837         Now typeless.
34838         (relunit, relunit_snumber): Now of type rel.
34839         (zone, rel, relunit, get_date): Adjust to above changes.
34840
34841         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
34842         Do not include unistd-safer.h.
34843         (getloadavg): Don't call fd_safer; no longer needed
34844         now that we include fcntl--.h.
34845
34846         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
34847         (make_dir_parents): Treat ENOSYS like EEXIST.
34848
34849         Improve quality of diagnostics on restore_cwd failure.
34850         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
34851         (make_dir_parents): Last arg is now int * (for errno), not bool *.
34852         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
34853         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
34854         each time through the loop.  Do not diagnose restore_cwd failure;
34855         that is the caller's job (and perhaps the caller does not care).
34856
34857         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
34858         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
34859         If the file already exists but is not a directory, don't bother
34860         to try to make its parents.
34861         Close potential file descriptor leak if we can't chdir("/") (!).
34862         Don't always return true if chdir($PWD) fails; return true only
34863         if the requested action was done successfully (except for the
34864         chdir($PWD)).
34865         Don't log final directory unless we actually made it.
34866         Refactor to avoid duplicate code to fix up permissions.
34867         Don't attempt to fix up parent permissions if chdir($PWD) fails.
34868
34869         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
34870         to make it a bit faster and (I hope) clearer.
34871         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
34872         Fix bug in formats like %2N.
34873
34874         * lib/verify.h: New file.
34875
34876 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34877
34878         Sync from coreutils.
34879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
34880
34881 2005-09-22  Jim Meyering  <jim@meyering.net>
34882
34883         Sync from coreutils.
34884
34885         * m4/lstat.m4 (gl_FUNC_LSTAT):
34886         Use AC_LIBSOURCES to require lstat.c and lstat.h.
34887         Remove obsolete comment.
34888         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
34889         * m4/xstrtod.m4: Likewise.
34890
34891         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
34892
34893 2005-09-22  Jim Meyering  <jim@meyering.net>
34894
34895         Sync from coreutils.
34896
34897         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
34898
34899         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
34900         the .tm_year member, since otherwise gcc-4.0 would now warn about
34901         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
34902
34903         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
34904         order to avoid an unsuppressible warning from gcc on 64-bit systems.
34905
34906         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
34907         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
34908         when run in a time zone for which daylight savings time is in effect
34909         for the starting date.
34910
34911         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
34912         stop us from restricting permissions of just-created absolute-named
34913         directories.
34914         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
34915         to restore initial working directory.
34916         * lib/mkdir-p.c (make_dir_parents): New parameter:
34917         different_working_dir, to tell caller if/when we change the working
34918         directory and are unable to return to the initial one.
34919         * lib/mkdir-p.h (make_dir_parents): Update prototype.
34920         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
34921         `return false'.  This fixes a bug introduced on 2004-07-30.
34922
34923         * lib/openat.c (fdopendir): Be sure to close the supplied
34924         file descriptor before returning.  This makes our replacement
34925         implementation a little closer to Solaris's, where fdopendir
34926         ties the file descriptor to the returned DIR* pointer.
34927         * lib/openat.c (unlinkat): New function.
34928         * lib/openat.h (unlinkat): Add prototype.
34929         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
34930         (openat_restore_fail): Rename from openat_restore_die.
34931         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
34932
34933         Provide an alternative to exiting immediately upon save_cwd or
34934         restore_cwd failure.  Now, an application can arrange e.g.,
34935         to perform a longjump in that case.
34936         * lib/openat.c: Include dirname.h.
34937         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
34938         (rpl_openat, fdopendir, fstatat): Call openat_save_die
34939         and openat_restore_die rather than calling error directly.
34940         Don't include "error.h" or "exitfail.h"; they're no longer needed.
34941
34942         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
34943         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
34944         define.
34945
34946         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
34947         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
34948                             int utc, int nanoseconds);
34949         Background:
34950         date should not have to allocate a megabyte of virtual memory to
34951         handle a format argument like +%1048575T.  When implemented with
34952         strftime, it must allocate such a buffer, use strftime to fill it
34953         in, print it, then free it.
34954         With fprintftime, it simply prints everything and exits.
34955         With no need for memory allocation, that's one fewer way to fail.
34956         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
34957         optional field width, not before, so we accept %9:z, not %:9z.
34958         (my_strftime): Be sure to use L_('x') for literals.
34959
34960         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
34961         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
34962         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
34963         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
34964         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
34965         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
34966         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
34967         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
34968         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
34969         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
34970         * lib/xgethostname.c, lib/xreadlink.c:
34971         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
34972
34973         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
34974         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
34975         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
34976         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
34977         and don't include <sys/file.h>).
34978
34979 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
34980
34981         Sync from coreutils.
34982
34983         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
34984         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
34985         [!LDAV_DONE]: Avoid unused variable warning.
34986
34987 2005-09-21  Bruno Haible  <bruno@clisp.org>
34988
34989         * lib/unicodeio.h (unicode_to_mb): New declaration.
34990
34991 2005-09-20  Derek Price  <derek@ximbiot.com>
34992
34993         * lib/getaddrinfo.c: Don't include <netdb.h> included from
34994         getaddrinfo.h.
34995
34996 2005-09-20  Bruno Haible  <bruno@clisp.org>
34997
34998         * gnulib-tool: Remove trailing slashes from the values specified for
34999         --source-base, --m4-base, --tests-base, --aux-dir.
35000         Suggested by Simon Josefsson <jas@extundo.com>.
35001
35002 2005-09-20  Bruno Haible  <bruno@clisp.org>
35003
35004         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35005         func_modules_to_filelist, func_import, func_create_testdir): Make all
35006         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35007         change when gnulib-tool is invoked in a different locale.
35008
35009 2005-09-19  Simon Josefsson  <jas@extundo.com>
35010
35011         * m4/socklen.m4: Fix typo.
35012
35013 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35014
35015         Use a consistent style for including <config.h>.
35016         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35017         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35018         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35019         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35020         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35021         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35022         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35023         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35024         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35025         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35026         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35027         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35028         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35029         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35030         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35031         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35032         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35033         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35034         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35035         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35036         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35037         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35038         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35039         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35040         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35041         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35042         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35043         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35044         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35045         lib/xstrtoumax.c, lib/yesno.c:
35046         Standardize inclusion of config.h.
35047         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35048         lib/inttostr.h:  Removed inclusion of config.h from header files.
35049         * lib/inttostr.c:  Adjusted in-tree users.
35050         * lib/timespec.h: Remove superfluous warning to include config.h.
35051         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35052         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35053         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35054         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35055         config.h with HAVE_CONFIG_H.
35056
35057 2005-09-19  Jim Meyering  <jim@meyering.net>
35058
35059         * modules/pathmax (License): Change to LGPL.
35060
35061 2005-09-19  Derek Price  <derek@ximbiot.com>
35062
35063         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35064
35065 2005-09-19  Bruno Haible  <bruno@clisp.org>
35066
35067         * gnulib-tool (import): Provide default for --tests-base.
35068
35069 2005-09-19  Bruno Haible  <bruno@clisp.org>
35070
35071         * doc/quote.texi: New file, extracted from gnulib.texi.
35072         * doc/ctime.texi: New file, extracted from gnulib.texi.
35073         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35074         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35075         * doc/gnulib.texi: Include them.
35076
35077 2005-09-18  Bruno Haible  <bruno@clisp.org>
35078
35079         Portability fix.
35080         * gnulib-tool (func_readlink): New function.
35081         (func_ln_if_changed): Use it.
35082
35083 2005-09-18  Bruno Haible  <bruno@clisp.org>
35084
35085         * gnulib-tool: Support --with-tests also with --import.
35086         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35087         (func_import): Use variables $testsbase and $inctests. Emit a
35088         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35089         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35090         SUBDIRS += $testsdir.
35091         (func_create_testdir): Update.
35092
35093 2005-09-18  Bruno Haible  <bruno@clisp.org>
35094
35095         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35096         instead of $dry_run.
35097         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35098         (func_ln_if_changed): Don't handle dry-run here.
35099         (func_import): In dry-run mode, detect more precisely which actions
35100         would be performed, and don't use "...ing" verbs.
35101
35102 2005-09-18  Bruno Haible  <bruno@clisp.org>
35103
35104         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35105         (func_import): Use join on two temporary files instead of three nested
35106         loops, in order to determine which files are new or old.
35107
35108 2005-09-18  Bruno Haible  <bruno@clisp.org>
35109
35110         * gnulib-tool (func_import): Comment out code that spits out the
35111         new files with --dry-run.
35112
35113 2005-09-18  Bruno Haible  <bruno@clisp.org>
35114
35115         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35116
35117 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35118
35119         * lib/stat-time.h: New file.
35120         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35121         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35122         in a different way.
35123         (timespec_cmp): New function.
35124         * lib/utimecmp.c: Include stat-time.h.
35125         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35126         members exist, not on the obsolescent ST_MTIM_NSEC.
35127         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35128
35129 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35130
35131         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35132
35133 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35134
35135         * MODULES.html.sh (File system functions): Add stat-time.
35136         * modules/stat-time: New file.
35137         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35138         is now done in a different way, by the stat-time module.
35139         * modules/utimecmp (Depends-on): Add stat-time.
35140
35141 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35142
35143         * m4/st_mtim.m4: Remove.  Superseded by...
35144         * m4/stat-time.m4: New file.
35145         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35146         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35147
35148 2005-09-15  Derek Price  <derek@ximbiot.com>
35149
35150         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35151
35152 2005-09-15  Derek Price  <derek@ximbiot.com>
35153
35154         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35155         * lib/regex_internal.c: Ditto, using this...
35156         (__GNUC_PREREQ): ...new macro.
35157         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35158         using...
35159         (__GNUC_PREREQ): ...this new macro.
35160
35161         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35162
35163 2005-09-15  Derek Price  <derek@ximbiot.com>
35164             Paul Eggert  <eggert@cs.ucla.edu>
35165
35166         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35167         changes, consolidating in...
35168         * lib/regex_internal.h: ...this file.
35169
35170 2005-09-13  Jim Meyering  <jim@meyering.net>
35171
35172         * lib/canon-host.c: Filter through gnu indent and reword comments
35173         slightly.
35174         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35175
35176 2005-09-13  Derek Price  <derek@ximbiot.com>
35177
35178         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35179         failure.
35180         Reported by Jim Meyering  <jim@meyering.net>.
35181
35182 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35183
35184         * lib/base64.c: Typo.
35185         (base64_encode): Put b64str in initialized data section.
35186
35187 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35188
35189         Merge glibc and coreutils changes into gnulib, plus a few
35190         extra fixes.
35191         * lib/md5.c: Use #error rather than a string.
35192         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35193         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35194         (__attribute__): Define to empty for non recent-GCC.
35195         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35196         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35197         Renamed from their non-__ counterparts, with new macros replacing
35198         them if not _LIBC.  Add __THROW attribute.
35199         (rol): Remove.
35200         (struct md5_ctx): Align buffer if using GCC.
35201         * lib/sha1.h (struct sha1_ctx): Likewise.
35202         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35203         The old name was backwards.
35204         (NOTSWAP): Remove; not used.
35205         (rol): New macro, moved here from md5.h.
35206         (sha1_process_block): Remove a FIXME that doesn't make sense.
35207
35208 2005-09-12  Derek Price  <derek@ximbiot.com>
35209
35210         Return usable errors from canon-host.
35211         * lib/canon-host.h: New file.
35212         * lib/canon-host.c (canon_host): Wrap...
35213         (canon_host_r): ...this new function, which now relies exclusively on
35214         getaddrinfo.
35215         (ch_strerror): New function.
35216         (last_cherror): New global.
35217         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35218         interface.
35219         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35220         void *.
35221         (freeaddrinfo): Free ai->ai_canonname when set.
35222
35223 2005-09-12  Derek Price  <derek@ximbiot.com>
35224
35225         Make canon-host require getaddrinfo.
35226         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35227         AC_LIBSOURCE canon-host.h.  Call...
35228         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35229         gl_GETADDRINFO.
35230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35231
35232 2005-09-12  Derek Price  <derek@ximbiot.com>
35233
35234         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35235         LGPL.
35236         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35237
35238 2005-09-12  Derek Price  <derek@ximbiot.com>
35239
35240         * lib/gai_strerror.c: Include config.h when available.  Include
35241         getaddrinfo.h before other headers to test interface.
35242         Reported by Larry Jones <lawrence.jones@ugs.com>.
35243
35244 2005-09-12  Derek Price  <derek@ximbiot.com>
35245             Paul Eggert  <eggert@cs.ucla.edu>
35246
35247         * modules/glob (Files): Add glob-libc.h.
35248
35249 2005-09-12  Derek Price  <derek@ximbiot.com>
35250             Paul Eggert  <eggert@cs.ucla.edu>
35251
35252         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35253         glob_.h, glob-libc.h.
35254         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35255
35256 2005-09-12  Derek Price  <derek@ximbiot.com>
35257             Paul Eggert  <eggert@cs.ucla.edu>
35258
35259         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35260         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35261         protecting things that should be done only in gnulib contexts.
35262         * lib/glob_.h: New file, containing only the glob things needed for
35263         gnulib.
35264         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35265         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35266         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35267         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35268         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35269         and to respect the namespace rules better.
35270
35271 2005-09-08  Simon Josefsson  <jas@extundo.com>
35272
35273         * modules/socklen: New file.
35274
35275 2005-09-08  Simon Josefsson  <jas@extundo.com>
35276
35277         * m4/socklen.m4: New file.
35278
35279 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35280
35281         * modules/utimens (Files): Add m4/utimbuf.m4, since
35282         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35283         Reported by Sergey Poznyakoff.
35284
35285 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35286
35287         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35288         definitions, since that's the preferred style in glibc.
35289         Fix a minor spacing issue, and update copyright notice to match
35290         glibc's.
35291
35292 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35293
35294         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35295
35296 2005-09-06  Simon Josefsson  <jas@extundo.com>
35297
35298         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35299         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35300
35301 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35302
35303         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35304         warning.
35305
35306 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35307
35308         * config/srclist.txt: Add glibc bug 1302.
35309
35310 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35311
35312         Change bitset word type from unsigned int to unsigned long int,
35313         as this has better performance on typical 64-bit hosts.
35314         Port bitset code to hosts with unusual word sizes.
35315         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35316         (build_collating_symbol):
35317         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35318         argument is a bitset.  This is merely a style issue, but it makes
35319         it clearer that an entire array is expected.
35320         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35321         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35322         Port to the case where bitset_word is not the same as unsigned int.
35323         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35324         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35325         Likewise.
35326         * lib/regexec.c (check_dst_limits_calc_pos_1,
35327         check_subexp_matching_top):
35328         (build_trtable, group_nodes_into_DFAstates):
35329         Likewise.
35330         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35331         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35332         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35333         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35334         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35335         * lib/regcomp.c (optimize_subexps, lower_subexp):
35336         Work even if bitset_word has holes in its bitwise representation.
35337         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35338         * lib/regexec.c (check_dst_limits_calc_pos_1,
35339         check_subexp_matching_top):
35340         Likewise.
35341         * lib/regex_internal.c (re_string_reconstruct):
35342         Don't assume UCHAR_MAX == 255.
35343         * lib/regex_internal.h (bitset_set_all): Likewise.
35344         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35345         All uses changed.
35346         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35347         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35348         All uses changed.
35349         (BITSET_WORD_MAX): New macro.
35350         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35351         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35352         (bitset_empty, bitset_copy):
35353         Prefer sizeof (bitset) to multiplying it out ourselves.
35354         (bitset_not_merge): Remove; unused.
35355         (bitset_contain): Return bool, not unsigned int with one bit on.
35356         All callers changed.
35357         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35358         alignment than re_node_set; do this by defining a new internal
35359         type struct dests_alloc and using it to allocate memory.
35360
35361 2005-09-05  Bruno Haible  <bruno@clisp.org>
35362
35363         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35364         links.
35365
35366 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35367
35368         * modules/size_max (Makefile.am): Add size_max.h
35369
35370 2005-09-04  Derek Price  <derek@ximbiot.com>
35371
35372         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35373
35374 2005-09-03  Simon Josefsson  <jas@extundo.com>
35375
35376         * gnulib-tool: Fix typo.
35377
35378 2005-09-03  Simon Josefsson  <jas@extundo.com>
35379
35380         * config/srclist.txt: Add glibc bug 1293.
35381
35382 2005-09-03  Derek Price  <derek@ximbiot.com>
35383
35384         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35385         From Larry Jones <lawrence.jones@ugs.com>.
35386
35387 2005-09-02  Simon Josefsson  <jas@extundo.com>
35388
35389         * modules/socklen: New file.
35390
35391 2005-09-02  Simon Josefsson  <jas@extundo.com>
35392
35393         * modules/havelib: New module.
35394
35395         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35396         Use havelib.
35397
35398 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35399
35400         Check for arithmetic overflow when calculating sizes, to prevent
35401         some buffer-overflow issues.  These patches are conservative, in the
35402         sense that when I couldn't determine whether an overflow was possible,
35403         I inserted a run-time check.
35404         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35405         macros.
35406         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35407         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35408         (re_xnrealloc, re_x2nrealloc): New inline functions.
35409         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35410         parse_bracket_exp):
35411         (build_equiv_class, build_charclass): Check for arithmetic overflow
35412         in size expression calculations.
35413         * lib/regex_internal.c (re_string_realloc_buffers):
35414         (build_wcs_upper_buffer, re_node_set_add_intersect):
35415         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35416         (re_dfa_add_node, register_state): Likewise.
35417         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35418         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35419         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35420         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35421
35422 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35423
35424         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35425         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35426
35427 2005-09-02  Bruno Haible  <bruno@clisp.org>
35428
35429         Support for lib vs. lib64 distinction on biarch platforms.
35430         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35431         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35433
35434 2005-09-02  Bruno Haible  <bruno@clisp.org>
35435
35436         * gnulib-tool (import): In the other first-use case, provide defaults
35437         as well.
35438
35439 2005-09-02  Bruno Haible  <bruno@clisp.org>
35440
35441         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35442         patches not yet found in the latest gettext release.
35443
35444 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35445
35446         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35447         to avoid a collision with bits/local_lim.h in glibc.
35448         All uses changed.  Problem reported by Dmitry V. Levin in
35449         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35450
35451         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35452         bugs in int versus size_t comparisons.
35453         (re_string_context_at): Fix bug where the code assumed that
35454         Idx is signed.
35455
35456         Use bool where appropriate.
35457         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35458         All callers changed.
35459         (calc_eclosure_iter): Likewise, for ROOT arg.
35460         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35461         (build_charclass_op): Likewise, for NON_MATCH arg.
35462         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35463         (re_string_construct_common): Likewise, for ICASE arg.
35464         * lib/regexec.c (re_search_2_stub, re_search_stub):
35465         Likewise, for RET_LEN arg.
35466         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35467         (set_regs): Likewise, for FL_BACKTRACK arg.
35468         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35469         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35470         (calc_eclosure_iter, parse_bracket_exp):
35471         Use bool for internal variables that are booleans.
35472         * lib/regexec.c (re_search_internal, check_matching,
35473         proceed_next_node):
35474         (set_regs, build_sifted_states, sift_states_bkref):
35475         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35476         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35477         (find_collation_sequence_value):
35478         Likewise.
35479         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35480         (re_node_set_compare):
35481         Return bool, not int. All callers changed.
35482         * lib/regexec.c (check_halt_node_context, check_dst_limits):
35483         (build_trtable, check_node_accept): Likewise.
35484         * lib/regex_internal.h: Include stdbool.h.
35485
35486         Fix bugs uncovered when converting to bool.
35487         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35488         failure instead of charging ahead blindly.
35489         * lib/regex_internal.c (register_state): Likewise.
35490         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35491         for freeing internal storage.
35492         (group_nodes_into_DFA_states): Use unsigned int, not int, for
35493         bitset pieces used as boolean, to avoid undefined behavior
35494         on hosts that do int overflow checking.
35495
35496 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         * config/srclist.txt: Add glibc bugs 1285-1287.
35499
35500 2005-09-01  Jim Meyering  <jim@meyering.net>
35501
35502         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35503         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35504         Require gl_STAT_MACROS, too.
35505
35506 2005-09-01  Bruno Haible  <bruno@clisp.org>
35507
35508         * gnulib-tool (import): In the first-use case, provide defaults.
35509
35510 2005-09-01  Bruno Haible  <bruno@clisp.org>
35511
35512         * gnulib-tool (func_import): Remove the .tmp files.
35513
35514 2005-09-01  Bruno Haible  <bruno@clisp.org>
35515
35516         * gnulib-tool (func_import): Fix handling of symbolic links.
35517
35518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35519
35520         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35521         old glibc regex code mishandles strings longer than 2**31 bytes.
35522         This patch fixes this when the regex code is used in gnulib
35523         (i.e., outside glibc).
35524
35525         This patch should not affect the use of the regex code inside
35526         glibc.  No doubt this problem also needs to be handled for glibc
35527         as well, but the result will be an incompatible change to the
35528         glibc ABI, and the old ABI will have to be supported too.  That
35529         can be the the subject for another patch.
35530
35531         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35532         governing whether the rest of this patch is active.  By default,
35533         the macro is disabled and the patch has no effect.
35534         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35535         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35536         (struct re_pattern_buffer, re_search, re_search_2, re_match):
35537         (re_match_2, re_set_registers): Use the new types.
35538         * lib/regex_internal.h (Idx, re_hashval_t): New types.
35539         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35540         New macros.
35541         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35542         (re_string_context_at, bin_tree_t, re_dfastate_t):
35543         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35544         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35545         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35546         (re_string_char_size_at, re_string_wchar_at):
35547         (re_string_elem_size_at):
35548         Use the new types and macros to port to 64-bit hosts.
35549         Use unsigned types for internal values, so that the code
35550         mostly works even for arrays larger than SSIZE_MAX.
35551         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35552         (search_duplicated_node, calc_eclosure_iter, fetch_number):
35553         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35554         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35555         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35556         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35557         (calc_inveclosure, parse_dup_op, build_range_exp):
35558         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35559         (fetch_number, create_token_tree, mark_opt_subexp):
35560         Likewise.
35561         * lib/regex_internal.c (re_string_construct_common,
35562         create_ci_newstate):
35563         (create_cd_newstate, re_string_allocate, re_string_construct):
35564         (re_string_realloc_buffers, build_wcs_upper_buffer):
35565         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35566         (re_string_reconstruct, re_string_peek_byte_case):
35567         (re_string_fetch_byte_case, re_string_context_at):
35568         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35569         (re_node_set_init_copy, re_node_set_add_intersect):
35570         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35571         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35572         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35573         (re_acquire_state, re_acquire_state_context, register_state):
35574         Likewise.
35575         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35576         search_cur_bkref_entry):
35577         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35578         (re_search_internal, re_search_2_stub, re_search_stub)
35579         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35580         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35581         (update_cur_sifted_state, check_dst_limits):
35582         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35583         (check_subexp_limits, sift_states_bkref, merge_state_array):
35584         (check_subexp_matching_top, get_subexp, get_subexp_sub):
35585         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35586         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35587         (expand_bkref_cache, check_node_accept_bytes):
35588         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35589         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35590         (acquire_init_state_context, check_halt_node_context):
35591         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35592         (sift_states_backward, clean_state_log_if_needed):
35593         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35594         (find_recover_state, transit_state_sb, transit_state_mb):
35595         (transit_state_bkref, build_trtable, match_ctx_clean):
35596         Likewise.
35597         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35598         to work around an assumption that REG_MISSING is negative.
35599
35600         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35601         (seek_collating_symbol_entry) [defined _LIBC]:
35602         (lookup_collation_sequence_value) [defined _LIBC]:
35603         (build_range_exp, build_collating_symbol) [defined _LIBC]:
35604         Use prototypes rather than old-style function definitions.
35605         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35606         (transit_state_sb) [0]:
35607         (find_collation_sequence_value) [defined _LIBC]: Likewise.
35608
35609         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
35610         rm_eo.
35611
35612         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
35613         (optimize_subexps, lower_subexp):
35614         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
35615         since the signed shift might overflow.  Use 1u<<31 instead.
35616         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35617         Likewise.
35618         * lib/regexec.c (check_dst_limits_calc_pos_1,
35619         check_subexp_matching_top): Likewise.
35620
35621         * lib/regcomp.c (optimize_subexps, lower_subexp):
35622         Use CHAR_BIT rather than 8, for clarity.
35623         * lib/regexec.c (check_dst_limits_calc_pos_1):
35624         (check_subexp_matching_top): Likewise.
35625         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
35626         have to worry about portability issues when shifting it left.
35627         Remove no-longer-needed test for table_size > 0.
35628         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
35629         in a word, as the resulting behavior is undefined.
35630         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
35631         in one case, a <= should have been an <, and in another case the
35632         whole test was missing.
35633         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
35634         the standard name CHAR_BIT.
35635         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
35636         this is not true on one's complement and signed-magnitude hosts.
35637
35638         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
35639         next_last_offset.
35640         (struct re_dfa_t): Remove unused member states_alloc.
35641         * lib/regcomp.c (init_dfa): Don't initialize unused members.
35642
35643 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35644
35645         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
35646         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
35647         and large-file glibc and in 32-bit large-file Solaris.
35648
35649 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35650
35651         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
35652         lengths fit in regoff_t; this isn't true if regoff_t is the same
35653         width as size_t.
35654         * lib/regex.c (re_search_internal): 5th arg is LAST_START
35655         (= START + RANGE) instead of RANGE.  This avoids overflow
35656         problems when regoff_t is the same width as size_t.
35657         All callers changed.
35658         (re_search_2_stub): Check for overflow when adding the
35659         sizes of the two strings.
35660         (re_search_stub): Check for overflow when adding START
35661         to RANGE; if it occurs, substitute the extreme value.
35662
35663 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35664
35665         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
35666
35667 2005-08-31  Jim Meyering  <jim@meyering.net>
35668
35669         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
35670         a pointer-to-const.
35671         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
35672         (register_state): Likewise.
35673         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
35674         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35675         (group_nodes_into_DFAstates): Likewise.
35676
35677 2005-08-31  Jim Meyering  <jim@meyering.net>
35678
35679         * check-module: Add a FIXME comment.
35680
35681 2005-08-31  Eric Blake  <ebb9@byu.net>
35682
35683         * modules/unistd-safer (Files): Add unistd--.h.
35684         * modules/stdio-safer (Files): Add stdio--.h.
35685
35686 2005-08-31  Derek Price  <derek@ximbiot.com>
35687
35688         * lib/getdelim.c (getdelim): Return EOF on EOF.
35689         Reported by Larry Jones <lawrence.jones@ugs.com>.
35690
35691 2005-08-31  Bruno Haible  <bruno@clisp.org>
35692
35693         Avoid unnecessary diffs in the generated lib/Makefile.am.
35694         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
35695         the generated files.
35696         (func_import): Don't set cmd.
35697
35698 2005-08-31  Bruno Haible  <bruno@clisp.org>
35699
35700         * lib/strstr.c: Include <stddef.h>, for NULL.
35701         * lib/strcasestr.c: Likewise.
35702         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35703
35704 2005-08-31  Bruno Haible  <bruno@clisp.org>
35705
35706         * gnulib-tool: New option --macro-prefix.
35707         (func_import): Use macro_prefix.
35708         (import): Handle option --macro-prefix.
35709
35710 2005-08-31  Bruno Haible  <bruno@clisp.org>
35711
35712         * gnulib-tool (import): Rename most ac_* variables to cached_*.
35713         Also use new variables cached_lgpl, cached_libtool.
35714
35715 2005-08-31  Bruno Haible  <bruno@clisp.org>
35716
35717         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
35718         always instantiating them.
35719
35720 2005-08-31  Bruno Haible  <bruno@clisp.org>
35721
35722         * gnulib-tool (func_import): Read the previous cached settings
35723         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
35724         earlier added by gnulib but are now dropped. Warn when a gnulib file
35725         overwrites a non-gnulib file.
35726
35727 2005-08-31  Bruno Haible  <bruno@clisp.org>
35728
35729         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
35730         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
35731         projects that don't keep autogenerated files in CVS. Put into
35732         actioncmd only the specified modules, not the transitive closure.
35733
35734 2005-08-31  Bruno Haible  <bruno@clisp.org>
35735
35736         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
35737         Create directories that shall be filled.
35738         (import): Don't look for gl_* macros in configure.ac. Recurse across
35739         all directories containing a gnulib-cache.m4 files, if meaningful.
35740
35741 2005-08-31  Bruno Haible  <bruno@clisp.org>
35742
35743         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
35744         (import): Set seen_libtool when we see gl_LIBTOOL.
35745
35746 2005-08-31  Bruno Haible  <bruno@clisp.org>
35747
35748         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
35749         declaration macro definitions from generated gnulib.m4.
35750
35751 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
35752
35753         * lib/iconvme.h: Add prototype for iconv_alloc.
35754
35755 2005-08-29  Simon Josefsson  <jas@extundo.com>
35756
35757         * lib/iconvme.c: Fix errno.
35758
35759 2005-08-29  Bruno Haible  <bruno@clisp.org>
35760
35761         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
35762         that it works when the directory contains spaces.
35763
35764 2005-08-29  Bruno Haible  <bruno@clisp.org>
35765
35766         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
35767
35768 2005-08-29  Bruno Haible  <bruno@clisp.org>
35769
35770         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
35771         Emit more advice.
35772
35773 2005-08-29  Bruno Haible  <bruno@clisp.org>
35774         and Stepan Kasal  <kasal@ucw.cz>
35775
35776         * check-module: If more parameters are given, check each of them
35777         separately; add more exceptions, as noted by Jim Meyering.
35778         (check_module): New procedure.
35779         (%exempt_header): Now contains all exceptions.
35780
35781 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
35782
35783         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
35784
35785 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35786
35787         * lib/iconvme.c: Split iconv_string into iconv_alloc.
35788
35789 2005-08-28  Bruno Haible  <bruno@clisp.org>
35790
35791         * m4/gnulib-tool.m4: New file.
35792
35793 2005-08-27  Jim Meyering  <jim@meyering.net>
35794
35795         * modules/unistd-safer (Files): Add pipe-safer.c.
35796         * modules/fcntl-safer (Files): Add creat-safer.c.
35797
35798 2005-08-27  Jim Meyering  <jim@meyering.net>
35799
35800         * m4/stdlib-safer.m4: New file.  From coreutils.
35801         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
35802         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
35803         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
35804         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
35805         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
35806
35807 2005-08-27  Jim Meyering  <jim@meyering.net>
35808
35809         * lib/fopen-safer.c: Merge minor changes from coreutils.
35810         * lib/dup-safer.c: Likewise.
35811         * lib/fd-safer.c: Likewise.
35812
35813         Merge from coreutils.
35814         * lib/stdio--.h: New file.
35815         * lib/stdlib--.h: New file.
35816         * lib/mkstemp-safer.c: New file.
35817
35818         GNU tar needs these.
35819         * lib/pipe-safer.c: New file.
35820         * lib/creat-safer.c: New file.
35821         * lib/fcntl--.h (creat): Define to creat_safer.
35822         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
35823         * lib/unistd--.h (pipe): Define to pipe_safer.
35824         * lib/unistd-safer.h: Declare pipe_safer.
35825
35826 2005-08-26  Simon Josefsson  <jas@extundo.com>
35827
35828         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
35829         Haible <bruno@clisp.org>.
35830
35831 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
35832
35833         * lib/regex_internal.h: Remove all references to
35834         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
35835         or better.
35836         (bitset_not, bitset_merge, bitset_not_merge):
35837         (bitset_mask, re_string_allocate, re_string_construct):
35838         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
35839         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
35840         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
35841         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
35842         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35843         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35844         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
35845         (re_acquire_state_context):
35846         Remove unnecessary forward decls.
35847         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
35848         Put __attribute at function definition,
35849         now that the function decl has been removed.
35850         * lib/regex_internal.c (re_string_peek_byte_case):
35851         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
35852         Likewise.
35853
35854 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
35855
35856         * m4/regex.m4: Add AC_PREREQ(2.50).
35857         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
35858
35859 2005-08-25  Simon Josefsson  <jas@extundo.com>
35860
35861         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
35862         __fsetlocking.
35863
35864 2005-08-25  Simon Josefsson  <jas@extundo.com>
35865
35866         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
35867         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
35868         GLIBC specific code.
35869
35870 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35871
35872         Make regex safe for g++.  This fixes one real bug (an "err"
35873         that should have been "*err").  g++ problem reported by
35874         Sam Steingold.
35875         * lib/regex_internal.h (re_calloc): New macro, consistent with
35876         re_malloc etc.  All callers of calloc changed to use re_calloc.
35877         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
35878         not int.  All callers changed.
35879         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
35880         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
35881         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
35882         (find_recover_state): Change "err" to "*err"; this fixes what
35883         appears to be a real bug.
35884         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
35885         versus int.
35886
35887 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35888
35889         * modules/regex (Depends-on): Add malloc, since the code
35890         assumes that !malloc(0) means failure.
35891
35892 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35893
35894         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
35895
35896         alloca modernization/simplification for regex.
35897         * lib/regex.c: Remove portability cruft for alloca.  This no longer
35898         needs to be at the start of the file, and can be moved into
35899         regex_internal.h and simplified.
35900         * lib/regex_internal.h: Include <alloca.h>.
35901         (__libc_use_alloca) [!defined _LIBC]: New macro.
35902         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
35903         now works outside glibc.
35904
35905 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35906
35907         * config/srclist.txt: Add glibc bugs 1241, 1245.
35908
35909 2005-08-25  Jim Meyering  <jim@meyering.net>
35910
35911         * lib/open-safer.c: Include <config.h>.
35912         Otherwise, we'd lose LARGEFILE support in any file using
35913         e.g. "fcntl--.h"
35914
35915 2005-08-25  Bruno Haible  <bruno@clisp.org>
35916
35917         * m4/minmax.m4: Require autoconf 2.52.
35918         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
35919         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
35920         alternatives of translit over the alphabet.
35921         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
35922
35923 2005-08-24  Simon Josefsson  <jas@extundo.com>
35924
35925         * tests/test-getpass.c: New file.
35926
35927 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35928
35929         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
35930         for GNU regex features.
35931
35932 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35933
35934         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
35935         * lib/regex.h (regerror): Likewise.
35936
35937         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
35938         requires this.  (The code never needed it.)
35939
35940         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
35941         All uses of recently-renamed identifiers changed to use the new,
35942         POSIX-compliant names.  The code will build and run just fine
35943         without these changes, but it's better to eat our own dog food
35944         and use the standard-conforming names.
35945
35946         * lib/regex.h: Fix a multitude of POSIX name space violations.
35947         These changes have an effect only for programs that define
35948         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
35949         do not change anything for programs compiled in the normal way.
35950         Also, there is no effect on the ABI.
35951
35952         (_REGEX_SOURCE): New macro.
35953         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
35954         defined and _GNU_SOURCE is not; this fixes a name space violation.
35955
35956         Rename the following macros to obey POSIX requirements.
35957         The old names are still visible as macros if _REGEX_SOURCE is defined.
35958         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
35959         RE_BACKSLASH_ESCAPE_IN_LISTS.
35960         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
35961         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
35962         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
35963         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
35964         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
35965         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
35966         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
35967         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
35968         (REG_INTERVALS): renamed from RE_INTERVALS.
35969         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
35970         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
35971         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
35972         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
35973         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
35974         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
35975         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
35976         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
35977         RE_UNMATCHED_RIGHT_PAREN_ORD.
35978         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
35979         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
35980         (REG_DEBUG): renamed from RE_DEBUG.
35981         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
35982         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
35983         unusual, since we can't clash with the POSIX REG_ICASE.
35984         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
35985         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
35986         (REG_NO_SUB): renamed from RE_NO_SUB.
35987         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
35988         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
35989         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
35990         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
35991         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
35992         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
35993         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
35994         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
35995         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
35996         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
35997         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
35998         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
35999         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36000         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36001         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36002         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36003         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36004         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36005         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36006         (REG_FIXED): Renamed from REGS_FIXED.
36007         (REG_NREGS): Renamed from RE_NREGS.
36008
36009         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36010         of other REG_* macros, since POSIX says the user is allowed to
36011         #undef these macros selectively.
36012
36013         (reg_errcode_t): Update comment stating what other tables need
36014         to be consistent.
36015
36016         Rename the following enum values to obey POSIX requirements.
36017         The old names are still visible as macros.
36018         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36019         is not defined, since GNU is supposed to be a superset of POSIX as
36020         much as possible, and since we want reg_errcode_t to be a signed
36021         type for implementation consistency.
36022         (_REG_NOERROR): Renamed from REG_NOERROR.
36023         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36024         (_REG_BADPAT): Renamed from REG_BADPAT.
36025         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36026         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36027         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36028         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36029         (_REG_EBRACK): Renamed from REG_EBRACK.
36030         (_REG_EPAREN): Renamed from REG_EPAREN.
36031         (_REG_EBRACE): Renamed from REG_EBRACE.
36032         (_REG_BADBR): Renamed from REG_BADBR.
36033         (_REG_ERANGE): Renamed from REG_ERANGE.
36034         (_REG_ESPACE): Renamed from REG_ESPACE.
36035         (_REG_BADRPT): Renamed from REG_BADRPT.
36036         (_REG_EEND): Renamed from REG_EEND.
36037         (_REG_ESIZE): Renamed from REG_ESIZE.
36038         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36039         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36040         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36041         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36042         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36043
36044         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36045         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36046         changed.  But support the old name if the new one is not defined
36047         and if _REGEX_SOURCE.
36048
36049         Change the following member names in struct re_pattern_buffer.
36050         The old names are still supported if !_REGEX_SOURCE.
36051         The new names are always supported, regardless of _REGEX_SOURCE.
36052         (re_buffer): Renamed from buffer.
36053         (re_allocated): Renamed from allocated.
36054         (re_used): Renamed from used.
36055         (re_syntax): Renamed from syntax.
36056         (re_fastmap): Renamed from fastmap.
36057         (re_translate): Renamed from translate.
36058         (re_can_be_null): Renamed from can_be_null.
36059         (re_regs_allocated): Renamed from regs_allocated.
36060         (re_fastmap_accurate): Renamed from fastmap_accurate.
36061         (re_no_sub): Renamed from no_sub.
36062         (re_not_bol): Renamed from not_bol.
36063         (re_not_eol): Renamed from not_eol.
36064         (re_newline_anchor): Renamed from newline_anchor.
36065
36066         Change the following member names in struct re_registers.
36067         The old names are still supported if !_REGEX_SOURCE.
36068         The new names are always supported, regardless of _REGEX_SOURCE.
36069         (rm_num_regs): Renamed from num_regs.
36070         (rm_start): Renamed from start.
36071         (rm_end): Renamed from end.
36072
36073         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36074         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36075         Prepend __ to parameter names.
36076
36077         Undo yesterday's changes.
36078
36079 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36080
36081         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36082         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36083         lib/regex.c.
36084
36085 2005-08-24  Jim Meyering  <jim@meyering.net>
36086
36087         Sync from coreutils.
36088         * m4/fcntl-safer.m4: New file.
36089
36090         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36091         and object files for this module.
36092
36093 2005-08-24  Jim Meyering  <jim@meyering.net>
36094
36095         Sync from coreutils.
36096         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36097
36098 2005-08-24  Jim Meyering  <jim@meyering.net>
36099
36100         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36101         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36102
36103 2005-08-24  Jim Meyering  <jim@meyering.net>
36104
36105         * modules/fcntl-safer: New module.
36106         * modules/fts (Depends-on): Add fcntl-safer.
36107         * MODULES.html.sh (File descriptor based Input/Output):
36108         Add fcntl-safer.
36109
36110 2005-08-24  Bruno Haible  <bruno@clisp.org>
36111
36112         Support for unit test modules.
36113         * modules/README: Mention tests modules.
36114         * modules/TEMPLATE-TESTS: New file.
36115         * gnulib-tool: New options --extract-tests-module, --with-tests and
36116         --tests-base (unused for the moment).
36117         (testsbase, inctests): New variables.
36118         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36119         (func_verify_module): Exclude TEMPLATE-TESTS.
36120         (func_verify_nontests_module, func_verify_tests_module): New functions.
36121         (func_get_dependencies): Add implicit dependency for tests modules.
36122         (func_get_tests_module): New function.
36123         (func_modules_transitive_closure): When --with-tests was specified,
36124         include the unit tests as well, unless explicitly avoided.
36125         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36126         (func_emit_tests_Makefile_am): New function.
36127         (func_create_testdir): When --with-tests was specified, emit a
36128         tests/ directory.
36129         * MODULES.html.sh (Future developments): Update.
36130
36131 2005-08-24  Bruno Haible  <bruno@clisp.org>
36132
36133         * modules/tls-tests: New file.
36134         * tests/test-tls.c: New file, from GNU gettext.
36135
36136 2005-08-24  Bruno Haible  <bruno@clisp.org>
36137
36138         * modules/lock-tests: New file.
36139         * tests/test-lock.c: New file, from GNU gettext.
36140
36141 2005-08-24  Bruno Haible  <bruno@clisp.org>
36142
36143         * lib/lock.h: Add multiple inclusion guard.
36144         * lib/tls.h: Add multiple inclusion guard.
36145
36146 2005-08-24  Bruno Haible  <bruno@clisp.org>
36147
36148         * gnulib-tool: Add support for the --aux-dir option to
36149         --create-testdir, --create-megatestdir, --test, --megatest.
36150         (func_create_testdir, func_create_megatestdir): Optionally emit a
36151         AC_CONFIG_AUX_DIR directive.
36152         (create-testdir, create-megatestdir, test, megatest): Provide a
36153         default value for $auxdir.
36154
36155 2005-08-24  Bruno Haible  <bruno@clisp.org>
36156
36157         * gnulib-tool (import): Use compound statement instead of subshell
36158         where possible.
36159
36160 2005-08-24  Bruno Haible  <bruno@clisp.org>
36161
36162         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36163
36164 2005-08-24  Bruno Haible  <bruno@clisp.org>
36165
36166         * gnulib-tool (func_version): Update.
36167
36168 2005-08-24  Bruno Haible  <bruno@clisp.org>
36169
36170         * gnulib-tool (func_import, func_create_testdir,
36171         func_create_megatestdir): Quote all autoconf macro arguments.
36172
36173 2005-08-24  Bruno Haible  <bruno@clisp.org>
36174
36175         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36176         option --force, because --force causes the aclocal.m4 of each
36177         subdirectory to be newer than the corresponding config.h.in.
36178
36179 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36180
36181         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36182         All contents moved to gl_REGEX.
36183         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36184         assume that it does.
36185
36186 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36187
36188         * lib/regex.h (REG_NOSYS)
36189         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36190         Define, since POSIX requires it as of 2001.
36191         (_REG_ENOSYS)
36192         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36193         New private symbol, used to keep the enum signed in all cases.
36194         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36195         Youngman in
36196         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36197
36198         * lib/regex_internal.c (re_string_skip_chars, register_state):
36199         (calc_state_hash):
36200         Remove forward decls; no longer needed now that we use prototypes.
36201         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36202         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36203         (clean_state_log_if_needed): Likewise.
36204
36205 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36206
36207         * config/srclist.txt: Add glibc bugs 1231-1233.
36208
36209 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36210
36211         Fix problems reported by Sam Steingold in
36212         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36213         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36214         assumed that reg_errcode_t is a signed type, which is not
36215         necessarily true if _XOPEN_SOURCE is not defined.
36216         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36217         since some compilers warn about it otherwise.
36218
36219 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36220
36221         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36222         (init_word_char, create_initial_state, duplicate_node_closure):
36223         (fetch_token, peek_token_bracket, build_range_exp):
36224         (build_collating_symbol): Remove forward decls; no longer needed
36225         now that we use prototypes.
36226
36227         * lib/regcomp.c:
36228         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36229         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36230         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36231         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36232         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36233         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36234         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36235         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36236         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36237         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36238         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36239         (build_charclass, build_charclass_op, fetch_number, create_tree):
36240         (create_token_tree, mark_opt_subexp, duplicate_tree):
36241         Use prototypes rather than old-style definitions.
36242
36243         * lib/regex_internal.c:
36244         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36245         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36246         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36247         (re_string_reconstruct, re_string_peek_byte_case):
36248         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36249         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36250         (re_node_set_init_copy, re_node_set_add_intersect):
36251         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36252         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36253         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36254         (re_acquire_state, re_acquire_state_context, register_state):
36255         (create_ci_newstate, create_cd_newstate, free_state):
36256         Likewise.
36257         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36258         re_search_2):
36259         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36260         (re_search_internal, prune_impossible_nodes):
36261         (acquire_init_state_context, check_matching, static):
36262         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36263         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36264         (update_regs, sift_states_backward, build_sifted_states):
36265         (clean_state_log_if_needed, merge_state_array):
36266         (update_cur_sifted_state, add_epsilon_src_nodes):
36267         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36268         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36269         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36270         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36271         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36272         (check_arrival, check_arrival_add_next_nodes):
36273         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36274         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36275         (check_node_accept_bytes, check_node_accept, extend_buffers):
36276         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36277         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36278         (sift_ctx_init):
36279         Likewise.
36280
36281         * lib/regex_internal.h:
36282         (re_string_allocate, re_string_construct, re_string_reconstruct):
36283         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36284         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36285         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36286         (re_string_context_at, re_string_peek_byte_case):
36287         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36288         is defined, since we now use prototypes always.
36289
36290         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36291         C89 or better.  All uses removed.
36292
36293 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36294
36295         * config/srclist.txt: Add glibc bugs 1220-1227.
36296
36297 2005-08-20  Jim Meyering  <jim@meyering.net>
36298
36299         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36300         of unused local, dfa.
36301
36302 2005-08-20  Bruno Haible  <bruno@clisp.org>
36303
36304         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36305
36306 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36307
36308         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36309         (re_node_set_insert_last, re_dfa_add_node):
36310         Rename local variables to avoid GCC shadowing warnings.
36311
36312 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36313
36314         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36315         [defined lint]: Suppress bogus uninitialized-variable warnings.
36316
36317         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36318         and let the caller return REG_ESPACE if out of space.  This
36319         removes an uninitialied-variable warning with GCC 4.0.1, and also
36320         avoids taking the address of a local variable.  All callers
36321         changed.
36322
36323 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36324
36325         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36326         $LIBCSRC/posix/regexec.c.
36327         Add glibc bug 1217 for regcomp.c.
36328
36329 2005-08-19  Jim Meyering  <jim@meyering.net>
36330
36331         * lib/regexec.c (proceed_next_node): Redo local variables to
36332         avoid GCC shadowing warnings.
36333
36334 2005-08-18  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/strstr.c (strstr): Fix return value in multibyte case.
36337         * lib/strcasestr.c (strcasestr): Likewise.
36338
36339 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36340
36341         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36342
36343 2005-08-17  Jim Meyering  <jim@meyering.net>
36344
36345         Make the %s format (seconds since the epoch) work for a negative
36346         number and when used with a zero-padded field width, e.g. %015s.
36347
36348         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36349         label so that it precedes the code to set `digits'.  Otherwise,
36350         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36351         print `00-22'.  Now, it prints `-0022', as it should.
36352
36353 2005-08-17  Bruno Haible  <bruno@clisp.org>
36354
36355         * modules/strstr (Files): Add m4/mbrtowc.m4.
36356         (Depends-on): Add mbuiter.
36357
36358 2005-08-17  Bruno Haible  <bruno@clisp.org>
36359
36360         * modules/strcasestr: New file.
36361         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36362         strcasestr.
36363
36364 2005-08-17  Bruno Haible  <bruno@clisp.org>
36365
36366         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36367
36368 2005-08-17  Bruno Haible  <bruno@clisp.org>
36369
36370         * modules/mbuiter: New file.
36371         * MODULES.html.sh (Extended multibyte and wide character utilities):
36372         Add mbuiter.
36373
36374 2005-08-17  Bruno Haible  <bruno@clisp.org>
36375
36376         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36377         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36378
36379 2005-08-17  Bruno Haible  <bruno@clisp.org>
36380
36381         * m4/strcasestr.m4: New file.
36382
36383 2005-08-17  Bruno Haible  <bruno@clisp.org>
36384
36385         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36386         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36387
36388 2005-08-17  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/strcasestr.h: New file.
36391         * lib/strcasestr.c: New file.
36392
36393 2005-08-17  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/strcasecmp.c: Use mbuiter.h.
36396
36397 2005-08-17  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/mbuiter.h: New file.
36400
36401 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36402
36403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36404         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36405         and gl_GETOPT are both invoked via different paths (as happens
36406         with GNU tar CVS because it uses both argp and getopt), the former
36407         wins.
36408
36409 2005-08-16  Bruno Haible  <bruno@clisp.org>
36410
36411         * modules/tls: New file.
36412         * MODULES.html.sh (Multithreading): Add tls.
36413
36414 2005-08-16  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/strnlen1: New file.
36417         * MODULES.html.sh (String handling): Add strnlen1.
36418
36419 2005-08-16  Bruno Haible  <bruno@clisp.org>
36420
36421         * modules/strcase (Files): Add m4/mbrtowc.m4.
36422         (Depends-on): Add strnlen1, mbchar.
36423
36424 2005-08-16  Bruno Haible  <bruno@clisp.org>
36425
36426         * modules/mbiter: New file.
36427         * MODULES.html.sh (Extended multibyte and wide character utilities):
36428         Add mbiter.
36429
36430 2005-08-16  Bruno Haible  <bruno@clisp.org>
36431
36432         * modules/mbfile: New file.
36433         * MODULES.html.sh (Extended multibyte and wide character utilities):
36434         Add mbfile.
36435
36436 2005-08-16  Bruno Haible  <bruno@clisp.org>
36437
36438         * modules/mbchar: New file.
36439         * MODULES.html.sh (Extended multibyte and wide character utilities):
36440         New section.
36441
36442 2005-08-16  Bruno Haible  <bruno@clisp.org>
36443
36444         * m4/tls.m4: New file, from GNU gettext.
36445
36446 2005-08-16  Bruno Haible  <bruno@clisp.org>
36447
36448         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36449         always.
36450         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36451
36452 2005-08-16  Bruno Haible  <bruno@clisp.org>
36453
36454         * m4/mbiter.m4: New file.
36455
36456 2005-08-16  Bruno Haible  <bruno@clisp.org>
36457
36458         * m4/mbfile.m4: New file.
36459
36460 2005-08-16  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/mbchar.m4: New file.
36463
36464 2005-08-16  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/tls.h: New file, from GNU gettext.
36467         * lib/tls.c: New file, from GNU gettext.
36468
36469 2005-08-16  Bruno Haible  <bruno@clisp.org>
36470
36471         * lib/strnlen1.h: New file.
36472         * lib/strnlen1.c: New file.
36473
36474 2005-08-16  Bruno Haible  <bruno@clisp.org>
36475
36476         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36477         (mbi_init): Update.
36478         (mbi_avail, mbi_advance): Let the iteration end before the terminating
36479         NUL byte, not after it.
36480
36481 2005-08-16  Bruno Haible  <bruno@clisp.org>
36482
36483         * lib/strcase.h (strcasecmp): Add note in comments.
36484         * lib/strncasecmp.c: Use code from strcasecmp.c.
36485         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36486         (strcasecmp): Work correctly in multibyte locales.
36487
36488 2005-08-16  Bruno Haible  <bruno@clisp.org>
36489
36490         * lib/mbiter.h: New file.
36491
36492 2005-08-16  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/mbfile.h: New file.
36495
36496 2005-08-16  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/mbchar.h: New file.
36499         * lib/mbchar.c: New file.
36500
36501 2005-08-16  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36504         the valid ones. Makes the comparison operations transitive:
36505         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36506         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36507
36508 2005-08-15  Simon Josefsson  <jas@extundo.com>
36509
36510         * modules/ssize_t (License): Change to 'unlimited'.
36511
36512         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36513
36514 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36515
36516         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36517         Add comments for each pending glibc patch.
36518
36519 2005-08-15  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/regex.h (__restrict_arr): Don't define to __restrict if
36522         __cplusplus is defined.
36523
36524 2005-08-14  Jim Meyering  <jim@meyering.net>
36525
36526         Sync from coreutils.
36527
36528         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36529         Use the hash-table-based cycle-detection code not just when
36530         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36531         Reported by James Youngman in
36532         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36533         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36534         FTS_TIGHT_CYCLE_CHECK.
36535         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36536         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36537         once again.
36538         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36539         * lib/fts.c (fd_safer): Remove decl.
36540         Include fcntl--.h rather than unistd-safer.h
36541         (fts_safe_changedir): Don't call fd_safer; no longer needed
36542         now that we include fcntl--.h.
36543
36544 2005-08-12  Simon Josefsson  <jas@extundo.com>
36545
36546         * modules/getndelim2: Use ssize_t module.
36547         * modules/getnline: Likewise.
36548         * modules/safe-read: Likewise.
36549         * modules/xreadlink: Likewise.
36550
36551         * modules/ssize_t: New file.
36552
36553 2005-08-12  Simon Josefsson  <jas@extundo.com>
36554
36555         * m4/readline.m4: Look for termcap, curses or ncurses if required.
36556
36557 2005-08-12  Simon Josefsson  <jas@extundo.com>
36558
36559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36560         ssize_t.
36561
36562 2005-08-12  Simon Josefsson  <jas@extundo.com>
36563
36564         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36565         readline, getdelim and check_version.
36566         (Support for systems lacking ISO C 99: Sizes of integer types):
36567         Add size_max.
36568
36569 2005-08-12  Bruno Haible  <bruno@clisp.org>
36570
36571         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36572
36573 2005-08-11  Simon Josefsson  <jas@extundo.com>
36574
36575         * modules/readline: New file.
36576
36577         * modules/strnlen (Files): Add strnlen.h.
36578
36579 2005-08-11  Simon Josefsson  <jas@extundo.com>
36580
36581         * m4/readline.m4: New file.
36582
36583 2005-08-11  Simon Josefsson  <jas@extundo.com>
36584
36585         * lib/readline.h, readline.c: New file.
36586
36587 2005-08-11  Simon Josefsson  <jas@extundo.com>
36588
36589         * doc/gnulib.texi (Initial import, Finishing touches): Mention
36590         gl_AVOID.
36591
36592 2005-08-11  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/strnlen.h (strnlen): Change parameter name to match comment.
36595
36596 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
36597
36598         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36599
36600 2005-08-10  Simon Josefsson  <jas@extundo.com>
36601
36602         * tests/test-iconvme.c: New file.
36603
36604 2005-08-10  Simon Josefsson  <jas@extundo.com>
36605
36606         * m4/strnlen.m4: New file.
36607
36608         * m4/strndup.m4: Don't check for strnlen declaration, done in
36609         strnlen.m4.
36610
36611 2005-08-10  Simon Josefsson  <jas@extundo.com>
36612
36613         * lib/strndup.c: Use strnlen.h.
36614
36615         * lib/strnlen.h: New file.
36616
36617 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36618
36619         * README: Typos.
36620
36621 2005-08-02  Simon Josefsson  <jas@extundo.com>
36622
36623         * modules/readline: New file.
36624
36625 2005-08-02  Simon Josefsson  <jas@extundo.com>
36626
36627         * modules/getdelim: New file.
36628
36629         * modules/getline: Rewrite, don't use getndelim2.
36630
36631 2005-08-02  Simon Josefsson  <jas@extundo.com>
36632
36633         * m4/getline.m4: Separate out getdelim stuff into separate module.
36634
36635         * m4/getdelim.m4: New file.
36636
36637 2005-08-02  Simon Josefsson  <jas@extundo.com>
36638
36639         * lib/getline.h, getline.c: Rewrite.
36640
36641         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
36642
36643 2005-07-31  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/lock.h (gl_lock_initializer): New macro.
36646         (gl_lock_define_initialized): Use it.
36647         (gl_rwlock_initializer): New macro.
36648         (gl_rwlock_define_initialized): Use it.
36649         (gl_recursive_lock_initializer): New macro.
36650         (gl_recursive_lock_define_initialized): Use it.
36651
36652 2005-07-30  Karl Berry  <karl@gnu.org>
36653
36654         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
36655         Report from Ben Pfaff, regarding getopt.
36656
36657 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
36658
36659         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
36660         normal way.
36661         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
36662         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
36663         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
36664         (gl_GETOPT): Use the new macros.  Most of the implementation
36665         is moved to the new macros.  This is for programs like Emacs
36666         that don't want all the functionality of gl_GETOPT.
36667
36668 2005-07-26  Bruno Haible  <bruno@clisp.org>
36669
36670         * m4/lock.m4: Update from GNU gettext.
36671
36672 2005-07-26  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/lock.h: Update from GNU gettext.
36675         * lib/lock.c: Update from GNU gettext.
36676
36677 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
36678
36679         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
36680         obsolescent AC_TRY_RUN.  Include the default includes files, for
36681         'exit'.
36682
36683 2005-07-24  Bruno Haible  <bruno@clisp.org>
36684
36685         * modules/visibility: New file.
36686         * MODULES.html.sh (Misc): Add visibility.
36687
36688 2005-07-24  Bruno Haible  <bruno@clisp.org>
36689
36690         * m4/visibility.m4: New file.
36691
36692 2005-07-24  Bruno Haible  <bruno@clisp.org>
36693
36694         * doc/visibility.texi: New file.
36695
36696 2005-07-22  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
36699         $(ALLOCA_H), redundant through BUILT_SOURCES.
36700         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
36701         redundant through BUILT_SOURCES.
36702         * modules/byteswap (Makefile.am): Remove explicit dependency on
36703         $(BYTESWAP_H), redundant through BUILT_SOURCES.
36704         * modules/fnmatch (Makefile.am): Remove explicit dependency on
36705         $(FNMATCH_H), redundant through BUILT_SOURCES.
36706         * modules/getopt (Makefile.am): Remove explicit dependency on
36707         $(GETOPT_H), redundant through BUILT_SOURCES.
36708         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
36709         redundant through BUILT_SOURCES.
36710         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
36711         redundant through BUILT_SOURCES.
36712         * modules/stdbool (Makefile.am): Remove explicit dependency on
36713         $(STDBOOL_H), redundant through BUILT_SOURCES.
36714         * modules/stdint (Makefile.am): Remove explicit dependency on
36715         $(STDINT_H), redundant through BUILT_SOURCES.
36716         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
36717         Remove explicit dependency on $(SYSEXITS_H).
36718         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
36719
36720 2005-07-18  Simon Josefsson  <jas@extundo.com>
36721
36722         * lib/check-version.c (check_version): Accept identical versions too.
36723
36724 2005-07-18  Bruno Haible  <bruno@clisp.org>
36725
36726         * modules/lock: New file.
36727         * MODULES.html.sh (Multithreading): New section.
36728
36729 2005-07-18  Bruno Haible  <bruno@clisp.org>
36730
36731         * m4/lock.m4: New file, from GNU gettext.
36732
36733 2005-07-18  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/lock.h: New file, from GNU gettext.
36736         * lib/lock.c: New file, from GNU gettext.
36737
36738 2005-07-18  Bruno Haible  <bruno@clisp.org>
36739
36740         * lib/lock.h (gl_once_t): New type.
36741         (gl_once_define, gl_once): New macros.
36742         * lib/lock.c (fresh_once): New variable.
36743         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
36744         functions.
36745
36746 2005-07-16  Simon Josefsson  <jas@extundo.com>
36747
36748         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
36749         workaround, suggested by Bruno.
36750
36751 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36752
36753         * modules/xalloc (Depends-on): Add xalloc-die.
36754         * modules/xvasprintf (Depends-on): Add xalloc-die.
36755
36756 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36757
36758         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
36759         with a minor change.
36760
36761 2005-07-15  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
36764         When using lib/poll.c, define poll as rpl_poll.
36765
36766 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
36767
36768         * modules/argp (Depends-on): Remove unlocked-io.
36769
36770 2005-07-14  Derek Price  <derek@ximbiot.com>
36771
36772         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
36773         for glob symlink bug.
36774
36775 2005-07-14  Bruno Haible  <bruno@clisp.org>
36776
36777         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
36778         Instead, test for *_unlocked function declarations directly.
36779
36780 2005-07-11  Simon Josefsson  <jas@extundo.com>
36781
36782         * modules/size_max: New file.
36783
36784         * modules/xsize: Depend on size_max module for size_max.m4.
36785
36786 2005-07-11  Simon Josefsson  <jas@extundo.com>
36787
36788         * lib/size_max.h: New file.
36789
36790 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36791
36792         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
36793         copyright symbol and the year.
36794         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
36795         (version_etc_va): Use parameterized copyright notice.
36796         Reword to conform to the current GNU coding standards.
36797
36798 2005-07-11  Karl Berry  <karl@gnu.org>
36799
36800         * doc/gnulib.texi (Quoting): new node.
36801         (Initial import): more info, from Patrice.
36802
36803 2005-07-11  Bruno Haible  <bruno@clisp.org>
36804
36805         * gnulib-tool (func_usage): Document option --avoid.
36806         (Command line options): Handle --avoid.
36807         (func_acceptable): New function.
36808         (func_modules_transitive_closure): Use it.
36809
36810 2005-07-11  Bruno Haible  <bruno@clisp.org>
36811
36812         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
36813         Reported by Jim Meyering.
36814
36815 2005-07-10  Bruno Haible  <bruno@clisp.org>
36816
36817         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
36818         Needed when size_t is smaller than 'unsigned int'.
36819         Reported by Paul Eggert.
36820
36821 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36822
36823         * modules/argp (Depends-on): Add unlocked-io
36824
36825 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36826
36827         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
36828         block of defines.
36829
36830 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
36831
36832         * config/srclist.txt: Comment out regcomp.c, since we have a porting
36833         fix now.
36834
36835 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
36836         and Paul Eggert  <eggert@cs.ucla.edu>
36837
36838         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
36839         in wint_t, not wchar_t.  Remove now-unnecessary cast.
36840
36841 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36842
36843         * modules/regex (Files): Add lib/regex_internal.c,
36844         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
36845         (Depends-on): Add extensions.
36846         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
36847
36848 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36849
36850         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
36851         pathconf.
36852         * m4/same.m4 (gl_SAME): Likewise.
36853         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
36854
36855         * m4/regex.m4: Adjust to new libc regex implementation.
36856         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
36857         all the .c and .h parts of (the new) regex.
36858         Quote the m4 stuff better.
36859         Check for RE_ICASE bug of old gnulib.
36860         Check for REG_STARTEND of recent libc.
36861         Rename local variables from jm_* to gl_*.
36862         Quote operand of "test -f".
36863         Say "recent enough" version of libc, not "version 2".
36864         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
36865         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
36866         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
36867         Remove check for btowc, isascii.
36868         Require AM_LANGINFO_CODESET.
36869
36870 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36871
36872         * lib/regex.c, regex.h: Sync from libc.
36873         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
36874         * lib/regexec.c:
36875         New files, synced from libc, except that regex_internal.h
36876         currently has a small porting fix.
36877
36878 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36879
36880         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
36881         regex_internal.c, regexec.c.
36882         Add regex_internal.h too, but as a comment, since the libc version
36883         is currently broken in gnulib mode.
36884
36885 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36886
36887         Support programs like Emacs that use gnulib but not gettext.
36888         * MODULES.html.sh (Internationalization functions): Add gettext-h.
36889         * modules/gettext-h: New file.
36890         * modules/gettext (Files): Remove lib/gettext.h.
36891         (Depends-on): Add gettext-h.
36892         (Makefile.am): Remove lib_SOURCES.
36893         * modules/argmatch, modules/c-stack, modules/closeout:
36894         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
36895         * modules/execute, modules/file-type, modules/getaddrinfo:
36896         * modules/getopt, modules/human, modules/javacomp:
36897         * modules/javaexec, modules/mkdir-p, modules/obstack:
36898         * modules/openat, modules/pagealign_alloc, modules/pipe:
36899         * modules/quotearg, modules/regex, modules/rpmatch:
36900         * modules/unicodeio, modules/userspec, modules/version-etc:
36901         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
36902         * modules/xsetenv:
36903         Depend on gettext-h, not gettext.
36904
36905 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36906
36907         * gnulib-tool (func_import): Add support for 'public domain' license.
36908         * modules/alloca, modules/atexit, modules/memmove:
36909         Now public domain, not GPL.
36910         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
36911         * modules/realloc, modules/strerror, modules/strtod:
36912         Now LGPL, not GPL.
36913
36914 2005-07-05  Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
36917         autoconf CVS. Needed for mingw.
36918
36919 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36920
36921         Remove the dependency of the strftime module on the tzset module.
36922         * modules/strftime (Depends-on): Remove dependency on tzset.
36923
36924 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36925
36926         Remove the dependency of the strftime module on the tzset module.
36927         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
36928         gl_FUNC_TZSET_CLOBBER.
36929
36930 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36931
36932         Remove the dependency of the strftime module on the tzset module.
36933         * lib/strftime.c (my_strftime)
36934         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
36935         Copy the input structure, to work around some of the bug with
36936         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
36937         Solaris releases, you should also use the tzset module, but we won't
36938         require it as a dependency any more since we don't want LGPLed code
36939         to depend on GPLed code.
36940
36941 2005-07-02  Jim Meyering  <jim@meyering.net>
36942
36943         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
36944         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
36945         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
36946         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
36947
36948 2005-07-02  Jim Meyering  <jim@meyering.net>
36949
36950         * lib/backupfile.c (backup_args): Change a `0' to NULL.
36951
36952 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
36953
36954         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
36955         declares only 'struct timespec;' (!).
36956
36957 2005-07-01  Jim Meyering  <jim@meyering.net>
36958
36959         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
36960         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
36961         * lib/save-cwd.c, tempname.c:
36962         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
36963         and don't include <sys/file.h>).
36964
36965 2005-06-29  Jim Meyering  <jim@meyering.net>
36966
36967         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
36968         type name.  Use the variable name instead.
36969         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
36970         Likewise.
36971
36972 2005-06-28  Simon Josefsson  <jas@extundo.com>
36973
36974         * modules/check-version (Files): Add check-version.m4.
36975
36976 2005-06-28  Simon Josefsson  <jas@extundo.com>
36977
36978         * m4/check-version.m4: New file, suggested by Jim Meyering
36979         <jim@meyering.net>.
36980
36981 2005-06-28  Simon Josefsson  <jas@extundo.com>
36982
36983         * lib/check-version.h, lib/check-version.c: New files.
36984
36985 2005-06-28  Simon Josefsson  <jas@extundo.com>
36986
36987         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
36988         collision with global variable.  Better indentation.  Don't
36989         increment buffer pointer beyond buffer end.  Based on comments
36990         from Paul Eggert <eggert@cs.ucla.edu>.
36991
36992         * lib/base64.h: Indent.
36993
36994 2005-06-28  Simon Josefsson  <jas@extundo.com>
36995
36996         * doc/gnulib.texi (Library version handling): New section.
36997
36998 2005-06-28  Jim Meyering  <jim@meyering.net>
36999
37000         * check-module (find_included_lib_files): Hard-code another
37001         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37002         but modules/fts-lgpl (correctly) does not list those files.
37003
37004         * modules/canonicalize (Files): Add lib/pathmax.h.
37005
37006 2005-06-25  Simon Josefsson  <jas@extundo.com>
37007
37008         * modules/check-version: New file.
37009
37010 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37011
37012         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37013         initializer of struct addrinfo, as an indication that we don't
37014         care how many members the structure has.
37015
37016 2005-06-24  Derek Price  <derek@ximbiot.com>
37017         and Bruno Haible  <bruno@clisp.org>
37018
37019         Remove stat module & update lstat.
37020         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37021         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37022         * m4/stat.m4: Remove this file.
37023
37024 2005-06-24  Derek Price  <derek@ximbiot.com>
37025         and Bruno Haible  <bruno@clisp.org>
37026
37027         Remove stat module & update lstat.
37028         * lib/stat.c: Remove this file...
37029         (slash_aware_lstat): ...moving this content and its support...
37030         * lib/lstat.c (rpl_lstat): ...into here.
37031         * lib/lstat.h: New file.
37032
37033 2005-06-24  Derek Price  <derek@ximbiot.com>
37034         and Bruno Haible  <bruno@clisp.org>
37035
37036         Remove stat module & update lstat.
37037         * config/srclist.txt (libc sources): Remove stat.
37038
37039 2005-06-24  Derek Price  <derek@ximbiot.com>
37040         and Bruno Haible  <bruno@clisp.org>
37041
37042         Remove stat module & update lstat.
37043         * MODULES.html.sh (stat): Remove.
37044         * MODULES.html: Regenerated.
37045         * modules/lstat (Description): Correct function name.
37046         (Files): Add "lstat.h".
37047         (Depends-on): Remove stat, add xalloc, stat-macros.
37048         * modules/stat: Remove this file.
37049         (Include): Add "lstat.h", remove <sys/stat.h>.
37050
37051 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37052
37053         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37054         (ranged_convert): Don't save conversion in a temporary struct.
37055         This causes a warning with GCC 4.0.0, and anyway in the typical
37056         case it's not worth the extra 100 bytes or so of code.
37057         (ranged_convert, __mktime_internal): When calling a function via a
37058         pointer P, use P () rather than (*P) (), as we now assume C89 or
37059         better.
37060
37061 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37062
37063         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37064         "who -r" failed to give output.  Problem reported by Tim Waugh.
37065
37066         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37067         (xcalloc): Use it to avoid needless tests.
37068         Problem reported by Jim Meyering.
37069
37070 2005-06-20  Derek Price  <derek@ximbiot.com>
37071
37072         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37073         unnecessary for Autoconfs > 2.59c.
37074
37075 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37076
37077         * lib/argp.h (__option_is_short): Check upper limit of
37078         __key. Isprint() requires its argument to have the value
37079         of an unsigned char or EOF.
37080
37081 2005-06-16  Jim Meyering  <jim@meyering.net>
37082
37083         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37084         when either N or S is zero.
37085
37086 2005-06-16  Derek Price  <derek@ximbiot.com>
37087
37088         * m4/bison.m4: Declare YACC & YFLAGS precious.
37089
37090 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37091
37092         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37093         multibyte string or pattern, fall back on unibyte matching.
37094         Problem reported by James Youngman.
37095
37096 2005-06-08  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/csharpcomp: New file.
37099         * MODULES.html.sh (C#): Add csharpcomp.
37100
37101 2005-06-08  Bruno Haible  <bruno@clisp.org>
37102
37103         * m4/csharpcomp.m4: New file, from GNU gettext.
37104
37105 2005-06-08  Bruno Haible  <bruno@clisp.org>
37106
37107         * lib/csharpcomp.h: New file, from GNU gettext.
37108         * lib/csharpcomp.c: New file, from GNU gettext.
37109         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37110
37111 2005-06-08  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37114         warning on mingw.
37115
37116 2005-06-07  Derek Price  <derek@ximbiot.com>
37117
37118         Sync from CVS.
37119         * lib/glob_.h: Indent nested #ifdef.
37120
37121 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37122
37123         Sync from coreutils.
37124         Use "file name" when talking about file names, instead of "filename"
37125         or "path", as per the GNU coding standards.
37126         * lib/mkdir-p.c: Renamed from makepath.c.
37127         (make_dir_parents): Renamed from make_path.  All callers changed.
37128         * lib/mkdir-p.h: Likewise.  All includers changed.
37129         * lib/filenamecat.c: Renamed from path-concat.c.
37130         (file_name_concat): Renamed from path_concat.  All callers changed.
37131         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37132         * lib/filenamecat.h: Likewise.  All includers changed.
37133         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37134         in comments or local variable names.
37135         * lib/basename.c: Likewise.
37136         * lib/canonicalize.c, canonicalize.h: Likewise.
37137         * lib/dirname.c, dirname.h: Likewise.
37138         * lib/euidaccess.c: Likewise.
37139         * lib/exclude.c: Likewise
37140         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37141         * lib/fsusage.c, fsuage.h: Likewise.
37142         * lib/fts.c, fts_.h: Likewise.
37143         * lib/getcwd.c: Likewise.
37144         * lib/getloadavg.c: Likewise.
37145         * lib/mkstemp.c: Likewise.
37146         * lib/mountlist.c, mountlist.h: Likewise.
37147         * lib/openat.c, openat.h: Likewise.
37148         * lib/readlink-stub.c: Likewise.
37149         * lib/readutmp.c, readutmp.h: Likewise.
37150         * lib/rename.c: Likewise.
37151         * lib/rmdir.c: Likewise.
37152         * lib/same.c: Likewise.
37153         * lib/savedir.c: Likewise.
37154         * lib/stripslash.c: Likewise.
37155         * lib/tempname.c: Likewise.
37156         * lib/xreadlink.c: Likewise.
37157         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37158         All uses changed.
37159         * lib/exclude.h: Likewise.
37160
37161         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37162         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37163         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37164         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37165         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37166         files have been getting away with it for years (MORE/BSD 4.3
37167         is extinct now).
37168         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37169         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37170
37171         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37172         Define to 256, not 255, as per modern POSIX.
37173
37174 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37175
37176         Sync from coreutils.
37177         Use "file name" when talking about file names, instead of "filename"
37178         or "path", as per the GNU coding standards.
37179         * MODULES.html.sh: mkdir-p renamed from makepath.
37180         filenamecat renamed from path-concat.
37181         * modules/filenamecat: Renamed from modules/path-concat.
37182         (Files): filenamecat.h and filenamecat.c renamed from
37183         path-concat.h and path-concat.c.
37184         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37185         (Include): filenamecat.h, not path-concat.h.
37186         * modules/mkdir-p: Renamed from modules/makepath.
37187         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37188         makepath.c.
37189         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37190         (Include): mkdir-p.h, not makepath.h.
37191
37192 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37193
37194         Sync from coreutils.
37195         * m4/mkdir-p.m4: Renamed from makepath.m4.
37196         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37197         Rename files from makepath.c to mkdir-p.c, and from
37198         makepath.h to mkdir-p.h.
37199         * m4/filenamecat.m4: Renamed from path-concat.m4.
37200         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37201         Rename files from path-concat.c to filenamecat.c,
37202         and from path-concat.h to filenamecat.h.
37203         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37204         "file name" in local variables or comments.
37205         * m4/rename.m4: Likewise.
37206
37207 2005-06-01  Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/csharpexec: New file.
37210         * MODULES.html.sh (C#): New section.
37211
37212 2005-06-01  Bruno Haible  <bruno@clisp.org>
37213
37214         * m4/csharp.m4: New file, from GNU gettext.
37215         * m4/csharpexec.m4: New file, from GNU gettext.
37216
37217 2005-06-01  Bruno Haible  <bruno@clisp.org>
37218
37219         * lib/csharpexec.h: New file, from GNU gettext.
37220         * lib/csharpexec.c: New file, from GNU gettext.
37221         * lib/csharpexec.sh.in: New file, from GNU gettext.
37222
37223 2005-05-31  Derek Price  <derek@ximbiot.com>
37224             Paul Eggert  <eggert@cs.ucla.edu>
37225
37226         Sync from cvs.
37227         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37228
37229 2005-05-31  Derek Price  <derek@ximbiot.com>
37230             Paul Eggert  <eggert@cs.ucla.edu>
37231
37232         Sync from cvs.
37233         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37234
37235 2005-05-29  Derek Price  <derek@ximbiot.com>
37236
37237         * config/srclist.txt (glob_.h, glob.c): Add these files.
37238
37239 2005-05-29  Derek Price  <derek@ximbiot.com>
37240
37241         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37242         * modules/glob: New file.
37243         * modules/getlogin_r: Add link to POSIX spec in description.
37244
37245 2005-05-29  Derek Price  <derek@ximbiot.com>
37246             Paul Eggert  <eggert@cs.ucla.edu>
37247
37248         * m4/glob.m4: New file.
37249
37250 2005-05-29  Derek Price  <derek@ximbiot.com>
37251             Paul Eggert  <eggert@cs.ucla.edu>
37252
37253         * lib/glob_.h, lib/glob.c: New files.
37254
37255 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37256
37257         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37258         * modules/fts-lgpl (Depends-on): Remove gettext.
37259
37260 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37261
37262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37263         and don't require gt_INTTYPES_PRI.
37264
37265 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37266
37267         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37268
37269         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37270         the configuration hassle isn't worth it.
37271         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37272         (LONGEST_MODIFIER, PRIuMAX): Remove.
37273
37274 2005-05-27  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37277
37278 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37279
37280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37281         _POSIX_PTHREAD_SEMANTICS for Solaris.
37282
37283 2005-05-25  Derek Price  <derek@ximbiot.com>
37284
37285         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37286
37287 2005-05-25  Derek Price  <derek@ximbiot.com>
37288             Paul Eggert  <eggert@cs.ucla.edu>
37289
37290         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37291         * lib/getlogin_r.c, getlogin_r.h: New files.
37292
37293 2005-05-25  Bruno Haible  <bruno@clisp.org>
37294             Derek Price  <derek@ximbiot.com>
37295
37296         * lib/getlogin_r.h: Simplify API documentation.
37297
37298 2005-05-23  Derek Price  <derek@ximbiot.com>
37299
37300         * modules/minmax (Files): Add m4/minmax.m4.
37301         (configure.ac): Add gl_MINMAX.
37302
37303 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37304
37305         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37306         so that unistd-safer.h (GPL'ed code) need not be included.
37307
37308 2005-05-22  Bruno Haible  <bruno@clisp.org>
37309
37310         * m4/minmax.m4: New file.
37311         Based on a patch by Derek Price <derek@ximbiot.com>.
37312
37313 2005-05-22  Bruno Haible  <bruno@clisp.org>
37314
37315         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37316         (INT64_MIN): Fix definition.
37317         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37318
37319         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37320         NEED_SIGNED_INT_TYPES.
37321
37322         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37323         HAVE_SYSTEM_INTTYPES.
37324
37325 2005-05-22  Bruno Haible  <bruno@clisp.org>
37326
37327         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37328         Also include <sys/param.h> if it defines MIN, MAX.
37329         Based on a patch by Derek Price <derek@ximbiot.com>.
37330
37331 2005-05-21  Jim Meyering  <jim@meyering.net>
37332
37333         * modules/fts (Files): Add m4/inttypes-pri.m4.
37334         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37335
37336 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37337
37338         New fts module.
37339         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37340         (setup_dir, free_dir): New functions.
37341         (enter_dir, leave_dir): Define trivial
37342         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37343         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37344         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37345         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37346         Move to fts-cycle.c.
37347         (fts_open): Use setup_dir.
37348         (fts_close): Use free_dir.
37349         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37350         This adds a label and some gotos, but the alternatives were messier.
37351         Check for memory allocation failure when entering a dir.
37352         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37353         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37354         (FTS): New member fts_cycle, that is a union that contains the
37355         old active_dir_ht and cycle_state.  All uses changed to mention
37356         fts_cycle.ht and fts_cycle.state.
37357         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37358         fts.c, with the following changes:
37359         (setup_dir, free_dir): New functions.
37360         (enter_dir): Now returns bool.  Return true if successful, false
37361         if memory exhausted.  All callers changed.
37362         Do not bother partly cleaning up on
37363         memory allocation failure; that is free_dir's job.
37364         However, free ad if hash_insert fails, to avoid memory leak.
37365         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37366         fts->fts_options to see which union member to use.
37367
37368 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37369
37370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37371         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37372
37373 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37374
37375         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37376
37377 2005-05-20  Jim Meyering  <jim@meyering.net>
37378
37379         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37380         Now a macro, to pacify GCC.
37381
37382 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37383
37384         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37385         of -1.
37386
37387 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37388
37389         * lib/chown.c (rpl_chown): Return -1 on failure.
37390
37391 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37392
37393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37394         Don't check for stddef.h.
37395         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37396         don't use its results.
37397         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37398         since we include them unconditionally.  Don't require
37399         AM_STDBOOL_H, since stdbool is a prerequisite.
37400         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37401         since we assume C89 or better.
37402         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37403         as we don't use their results.
37404         Don't check for fchdir, memmove, memset, strrchr, as we use
37405         them unconditionally.
37406         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37407         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37408
37409 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37410
37411         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37412         Include <stddef.h> unconditionally, since we assume C89 now.
37413         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37414         * lib/fts.c: Include fts_.h first, to check interface.
37415         Do not include intprops.h; no longer needed.
37416         Include cycle-check.h and hash.h, since fts_.h no longer does.
37417         Remove unnecessary casts of closedir to void.
37418         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37419         decide whether to decrement nlinks.
37420         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37421         (FTS): Use struct hash_table * instead of Hash_table, so that
37422         we no longer need to include hash.h here.
37423
37424 2005-05-18  Jim Meyering  <jim@meyering.net>
37425
37426         * modules/dirfd (License): Change to LGPL.  Most of the code
37427         is already in the public domain.
37428
37429 2005-05-18  Jim Meyering  <jim@meyering.net>
37430
37431         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37432         Reported by Yoann Vandoorselaere.
37433
37434 2005-05-17  Jim Meyering  <jim@meyering.net>
37435
37436         * m4/fts.m4: New file, from coreutils.
37437
37438 2005-05-17  Jim Meyering  <jim@meyering.net>
37439
37440         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37441
37442 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37443
37444         Sync from coreutils.
37445         * m4/unlinkdir.m4: New file.
37446
37447 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37448
37449         Sync from coreutils.
37450         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37451         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37452         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37453         White space changes only.
37454         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37455         special.
37456         * lib/yesno.c: Include getline.h, not ctype.h.
37457         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37458         Use getline to remove arbitrary restriction on response length.
37459
37460 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37461
37462         * config/srclist-update: Spell out "Street" in FSF postal
37463         mail address; this is the style the FSF seems to prefer.
37464
37465         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37466         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37467         this updates FSF postal mail address.
37468
37469         Sync from coreutils.
37470         * modules/unlinkdir: New file.
37471         * modules/yesno (Depends-on): Add getline.
37472         * MODULES.html.sh (File system functions): Add unlinkdir.
37473
37474 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37475
37476         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37477         lib/strsep.h:
37478         Change the initial comment to refer to GPL, not LGPL.
37479         gnulib-tool will change it to LGPL as needed.
37480
37481         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37482         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37483         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37484         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37485         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37486         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37487         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37488         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37489         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37490         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37491         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37492         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37493         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37494         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37495         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37496         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37497         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37498         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37499         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37500         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37501         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37502         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37503         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37504         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37505         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37506         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37507         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37508         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37509         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37510         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37511         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37512         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37513         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37514         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37515         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37516         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37517         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37518         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37519         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37520         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37521         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37522         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37523         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37524         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37525         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37526         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37527         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37528         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37529         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37530         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37531         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37532         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37533         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37534         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37535         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37536         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37537         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37538         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37539         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37540         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37541         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37542         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37543         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37544         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37545         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37546         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37547         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37548         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37549         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37550         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37551         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37552         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37553         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37554         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37555         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37556         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37557         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37558         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37559         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37560         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37561         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37562         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37563         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37564         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37565         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37566         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37567         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37568         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37569         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37570         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37571         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37572         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37573         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37574         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37575         lib/yesno.c, lib/yesno.h:
37576         Update FSF postal mail address.
37577
37578 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37579
37580         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37581         tests/test-memmem.c, tests/test-stpncpy.c:
37582         Update FSF postal mail address.
37583
37584 2005-05-13  Bruno Haible  <bruno@clisp.org>
37585
37586         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37587         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37588         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37589         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37590         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37591         Add support for 64-bit integers in the MSVC compiler.
37592
37593 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37594
37595         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37596
37597 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
37598
37599         * gnulib-tool (func_import): Sort and uniquify recommended includes.
37600
37601 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37602
37603         * doc/getdate.texi (General date syntax): Don't say that date
37604         date --iso-8601=ns generates acceptable dates; it doesn't yet.
37605         Problem reported by Nic Ferrier.
37606
37607 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37608
37609         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
37610         specified in ai_socktype. Fix invalid ai_protocol
37611         check. ai_protocol is usually set to 0 or depending on
37612         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
37613         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
37614         ai_socktype / ai_protocol in the returned addrinfo structure.
37615
37616 2005-05-10  Simon Josefsson  <jas@extundo.com>
37617
37618         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
37619         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37620
37621 2005-05-10  Karl Berry  <karl@gnu.org>
37622
37623         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
37624         (from http://www.gnu.org/licenses).
37625         * doc/COPYING.LIB: also rename to COPYING.LESSER.
37626         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
37627         fdl.texi suffices.
37628
37629 2005-05-10  Karl Berry  <karl@gnu.org>
37630
37631         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
37632         (COPYING.DOC): remove.
37633
37634         * config/srclist-update: new FSF address.
37635
37636 2005-05-10  Derek Price  <derek@ximbiot.com>
37637
37638         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
37639         possible.
37640
37641 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37642             Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/inet_ntop: New file.
37645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37646         inet_ntop.
37647
37648 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37649             Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/inet_ntop.m4: New file.
37652
37653 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37654             Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/inet_ntop.h: New file.
37657         * lib/inet_ntop.c: New file, from glibc with modifications.
37658
37659 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
37660
37661         * modules/time_r (License): Change to LGPL.
37662         * modules/extensions (License): Change to LGPL.  Actually,
37663         the license is more permissive than that, but currently gnulib-tool
37664         doesn't know how to handle more-permissive licenses.
37665
37666         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
37667         Problem reported by Dave Love.
37668
37669 2005-05-08  Jim Meyering  <jim@meyering.net>
37670
37671         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
37672         blank.
37673
37674 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37675
37676         * modules/argmatch (Depends-on): Add stdbool.
37677         * modules/backupfile (Depends-on): Likewise.
37678         * modules/chdir-long (Depends-on): Likewise.
37679         * modules/closeout (Depends-on): Likewise.
37680         * modules/cycle-check (Depends-on): Likewise.
37681         * modules/dirname (Depends-on): Likewise.
37682         * modules/fnmatch (Depends-on): Likewise.
37683         * modules/fsusage (Depends-on): Likewise.
37684         * modules/fwriteerror (Depends-on): Likewise.
37685         * modules/getcwd (Depends-on): Likewise.
37686         * modules/getloadavg (Depends-on): Likewise.
37687         * modules/hard-locale (Depends-on): Likewise.
37688         * modules/makepath (Depends-on): Likewise.
37689         * modules/mountlist (Depends-on): Likewise.
37690         * modules/nanosleep (Depends-on): Likewise.
37691         * modules/posixtm (Depends-on): Likewise.
37692         * modules/quotearg (Depends-on): Likewise.
37693         * modules/readtokens (Depends-on): Likewise.
37694         * modules/readtokens0 (Depends-on): Likewise.
37695         * modules/readutmp (Depends-on): Likewise.
37696         * modules/save-cwd (Depends-on): Likewise.
37697         * modules/strftime (Depends-on): Likewise.
37698         * modules/userspec (Depends-on): Likewise.
37699         * modules/utimecmp (Depends-on): Likewise.
37700         * modules/xgetcwd (Depends-on): Likewise.
37701         * modules/xnanosleep (Depends-on): Likewise.
37702         * modules/xstrtod (Depends-on): Likewise.
37703         * modules/yesno (Depends-on): Likewise.
37704
37705 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37706
37707         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
37708         needless checks.
37709
37710 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37711
37712         Merge from coreutils.  Among other things,
37713         add bulletproofing for cases where stdin, stdout, or stderr are closed.
37714         * lib/fd-safer.c: New file.
37715         * lib/fcntl-safer.h, open-safer.c: Remove.
37716         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
37717         * lib/dup-safer.c: Include unistd-safer.h first.
37718         Don't include errno.h.
37719         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
37720         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
37721         * lib/file-type.c: Rely on file-type.h change.
37722         * lib/getloadavg.c: Include unistd-safer.h.
37723         (getloadavg): Use safer open.
37724         * lib/getusershell.c: Include "stdio-safer.h".
37725         (getusershell): Use safer fopen.
37726         * lib/long-options.c (long_options): Use NULL rather than 0.
37727         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
37728         'free'.
37729         * lib/modechange.c: Likewise.
37730         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
37731         (MODE_DONE): New constant.
37732         (struct mode_change): Remove 'next' member.
37733         (make_node_op_equals): New function; like the old one of the
37734         same name, except it allocates an array.
37735         (mode_compile, mode_create_from_ref): Use it.
37736         (mode_compile): Allocate result as an array, not a linked list.
37737         Parse octal string ourself, so that we catch mistakes like "+0".
37738         (mode_adjust): Arg is an array, not a linked list.
37739         * lib/modechange.c: Include stat-macros.h, xalloc.h.
37740         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
37741         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
37742         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
37743         Remove.  This is now stat-macros.h's job.
37744         (talloc): Remove.  All callers replaced by xalloc, so that
37745         our invokers don't have to worry about reporting memory failures.
37746         (make_node_op_equals): Remove.
37747         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37748         New constants.
37749         (struct mode_change): Moved here from modechange.h.
37750         (mode_append_entry): Remove.
37751         (mode_compile): Remove MASKED_OPS arg, since it encouraged
37752         apps to have incorrect behavior.  Use simpler algorithm for head
37753         and tail.  Don't futz with umask; that's now the job of mode_adjust.
37754         Detect more invalid usages rather than having somewhat-random behavior.
37755         Don't insert an "a=" action, as that leads to incorrect behavior.
37756         (mode_compile, mode_create_from_ref): Return NULL on error instead
37757         of an enum, since now there's only one way to have an error.  All
37758         callers changed.
37759         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
37760         at the correct time.  Simplify calculation of "+u" and its ilk.
37761         Don't mishandle "+X".
37762         (mode_free): Remove "register" and localize decls.
37763         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37764         (struct mode_change): Move to modechange.c; callers don't
37765         need to see this stuff.
37766         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
37767         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
37768         (mode_change, mode_adjust): Reflect the new signatures noted above.
37769         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
37770         that might redefine system include files.
37771         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
37772         (my_usleep): Use NULL rather than (void *) 0.
37773         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
37774         Use siginterrupt to specify that system calls should be interrupted.
37775         (rpl_nanosleep): Move initialization of suspended closer to call of
37776         my_usleep.
37777         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
37778         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
37779         (desirable_utmp_entry): New function.
37780         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
37781         using x2nrealloc, to simplify logic.
37782         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
37783         size calculation.  Do not assume utmp file is a regular file.
37784         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
37785         (READ_UTMP_CHECK_PIDS): New constant.
37786         * lib/save-cwd.c: Include unistd-safer.h.
37787         (save_cwd): Use fd_safer.
37788         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
37789         [!_LIBC] Include "stat-macros.h" instead.
37790         * lib/unistd-safer.h (fd_safer): New decl.
37791
37792 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37793
37794         * modules/getloadavg (Depends-on): Add unistd-safer.
37795         * modules/getusershell (Depends-on): Add stdio-safer.
37796         * modules/lstat (Depends-on): Remove xalloc.
37797         * modules/mkstemp (Depends-on): Add stat-macros.
37798         * modules/modechange (Depends-on): Remove xstrtol.
37799         Add stat-macros, xalloc.
37800         * modules/save-cwd (Depends-on): Add unistd-safer.
37801         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
37802         * modules/unistd-safer (Files): Add lib/fd-safer.c
37803         (Makefile.am): Remove lib_SOURCES.
37804
37805         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
37806         Remove fcntl-safer; unistd-safer supersedes it.
37807
37808 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37809
37810         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
37811         AC_HEADER_STAT.
37812         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
37813         (gl_PREREQ_CHOWN): Remove.
37814         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
37815         it.  Don't require AC_HEADER_STAT.
37816         (gl_PREREQ_LSTAT): Remove.
37817         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
37818         Don't require AC_HEADER_STAT.
37819         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
37820         (gl_PREREQ_RMDIR): Remove.
37821         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
37822         mention stat-macros.h or AC_HEADER_STAT, since we'll make
37823         the stat-macros module a prerequisite.
37824         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
37825         * m4/filemode.m4 (gl_FILEMODE): Likewise.
37826         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
37827         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
37828         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
37829         variable names.
37830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
37831         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
37832         variable prefixes.
37833         * m4/fcntl-safer.m4: Remove.
37834         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
37835         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
37836         Invoke gl_PREREQ_FD_SAFER.
37837         (gl_PREREQ_FD_SAFER): New macro.
37838         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
37839         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
37840         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
37841         Remove duplicate call to AC_LIBOBJ(readutmp).
37842         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
37843
37844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
37845         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
37846
37847 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37848
37849         * MODULES.html.sh (Misc): Add byteswap.
37850
37851 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37852
37853         * modules/getcwd (Depends-on): Add extensions.
37854         * modules/openat (Depends-on): Likewise.
37855
37856 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37857
37858         * modules/byteswap: New file.
37859
37860 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37861
37862         * m4/byteswap.m4: New file.
37863
37864 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37865
37866         * lib/byteswap_.h: New file.
37867
37868 2005-04-25  Karl Berry  <karl@gnu.org>
37869
37870         * m4/gettext.m4: Update from GNU gettext 0.14.4.
37871
37872 2005-04-25  Albert Chin  <china@thewrittenword.com>
37873
37874         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
37875         Toolkit C bug.
37876
37877 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
37878
37879         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
37880         (func_ln_if_changed) Remove forcibly for no error message
37881         in case file does not exist.
37882
37883 2005-04-19  Simon Josefsson  <jas@extundo.com>
37884
37885         * gnulib-tool (Options): Make --symlink mean --symbolic.
37886
37887 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
37888
37889         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
37890
37891 2005-04-16  Simon Josefsson  <jas@extundo.com>
37892
37893         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
37894
37895 2005-04-15  Simon Josefsson  <jas@extundo.com>
37896
37897         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
37898
37899 2005-04-15  Simon Josefsson  <jas@extundo.com>
37900
37901         * gnulib-tool: Rename --symlink to --symbolic.
37902
37903 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
37904
37905         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
37906         symbolic links to files instead of copying/moving.  Add --aux-dir,
37907         specifying directory relative --dir where auxiliary build tools
37908         are placed.
37909
37910 2005-04-14  Bruno Haible  <bruno@clisp.org>
37911
37912         * modules/allocsa (License): Change to LGPL.
37913         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37914
37915 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
37916
37917         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
37918         that "UTC +1 second" continues to work.  Problem reported
37919         by Dmitry V. Levin.
37920         (relunit_snumber): New rule.
37921         (relunit): Use it.
37922
37923 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37924
37925         * lib/getdate.y (universal_time_zone_table): New constant.
37926         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
37927         universal_time_zone_table.
37928         (lookup_zone): Prefer universal_time_zone_table to
37929         local_time_zone_table, so that "GMT" time stamps are allowed in
37930         London during the summer.  Problem reported by Ian Abbott.
37931
37932 2005-04-12  Jim Meyering  <jim@meyering.net>
37933
37934         * lib/human.c (humblock): Set *options even when returning due to
37935         xstrtoumax conversion failure.  Thanks to a used-uninitialized
37936         warning from gcc-4.
37937
37938 2005-04-09  Jim Meyering  <jim@meyering.net>
37939
37940         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
37941         -Wuninitialized: initialize tm0.tm_year.
37942
37943 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
37944
37945         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
37946         count, since there's no maximum.  All uses changed.
37947         Add member dsts_seen.
37948         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
37949         not being INT_MAX.
37950         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
37951         Use pc_rels_seen to decide whther a date is absolute.
37952
37953         * lib/getdate.y (number): Don't overwrite year.
37954         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
37955         check.
37956
37957 2005-04-02  Simon Josefsson  <jas@extundo.com>
37958
37959         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
37960         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
37961
37962 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
37963
37964         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
37965         where no absolute path name can be longer than PATH_MAX.
37966
37967 2005-03-27  Jim Meyering  <jim@meyering.net>
37968
37969         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
37970
37971 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
37972
37973         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
37974         "one's complement" -> "ones' complement" in comment, as per Knuth.
37975         "value of type" -> "type or expression" in comment.
37976         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
37977
37978 2005-03-26  Jim Meyering  <jim@meyering.net>
37979
37980         Comment nits.
37981         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
37982         Correct typos: s/or/of/.
37983
37984 2005-03-26  Jim Meyering  <jim@meyering.net>
37985
37986         * modules/check-include-files: Move to ../ and rename to...
37987         * check-module: ...this.
37988
37989 2005-03-25  Jim Meyering  <jim@meyering.net>
37990
37991         * modules/xvasprintf (Files): Add xalloc.h.
37992
37993 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37994
37995         * modules/gettext (Files): config/config.rpath ->
37996         build-aux/config.rpath
37997         * modules/iconv (Files): Likewise.
37998         Problem reported by Oskar Liljeblad.
37999
38000 2005-03-23  Jim Meyering  <jim@meyering.net>
38001
38002         * modules/check-include-files: New script to check for
38003         missing dependencies, multiple includes, etc.
38004
38005         * modules/c-strtold (Depends-on): Add xalloc.
38006         * modules/c-strtod (Depends-on): Add xalloc.
38007         * modules/hash (Depends-on): Add xalloc.
38008         (Files): Remove lib/xalloc.h.
38009
38010         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38011         * modules/userspec (Files): Add lib/inttostr.h.
38012
38013 2005-03-23  Jim Meyering  <jim@meyering.net>
38014
38015         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38016
38017 2005-03-22  Jim Meyering  <jim@meyering.net>
38018
38019         * modules/stat-macros: New module.
38020         * modules/canonicalize, modules/euidaccess, modules/file-type,
38021         * modules/filemode, modules/lchown, modules/makepath,
38022         * modules/rmdir, modules/stat: Depend on new stat-macros module
38023         rather than listing lib/stat-macros.h manually.
38024         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38025
38026 2005-03-22  Jim Meyering  <jim@meyering.net>
38027
38028         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38029
38030 2005-03-22  Bruno Haible  <bruno@clisp.org>
38031
38032         * config/srclist.txt: Replace target directory 'config' with
38033         'build-aux'.
38034         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38035         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38036         ../build-aux/.
38037
38038 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38039
38040         * modules/chdir-long (Depends-on): Add mempcpy.
38041
38042         * modules/acl, modules/backupfile, modules/c-strtod,
38043         modules/c-strtold, modules/canon-host, modules/canonicalize,
38044         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38045         modules/exclude, modules/exitfail, modules/file-type,
38046         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38047         modules/getdate, modules/getline, modules/getpagesize,
38048         modules/getpass, modules/getugroups, modules/group-member,
38049         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38050         modules/inttostr, modules/long-options, modules/makepath,
38051         modules/md5, modules/memcasecmp, modules/memcoll,
38052         modules/modechange, modules/mountlist, modules/path-concat,
38053         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38054         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38055         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38056         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38057         modules/strftime, modules/strndup, modules/strverscmp,
38058         modules/timespec, modules/unlocked-io, modules/userspec,
38059         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38060         modules/yesno:
38061         Remove lib_SOURCES line from Makefile.am section, as this is now
38062         done automatically by the corresponding Autoconf macro.
38063
38064 2005-03-21  Jim Meyering  <jim@meyering.net>
38065
38066         Changes imported from coreutils.
38067
38068         * lib/cycle-check.c: Don't include xalloc.h.
38069
38070         * lib/path-concat.c: Don't include assert.h.
38071         (path_concat): Remove assertion that would have triggered
38072         for ABASE starting with more than one slash.
38073         Reported by Andreas Schwab.
38074
38075         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38076         properly when ABASE is an absolute file name.
38077         Correct the description of this function.
38078         Include <assert.h>.
38079         Add an assertion and a test driver.
38080         This fixes a bug introduced on 2004-07-02.
38081         Andreas Schwab reported the resulting failure of cp --parents:
38082         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38083
38084 2005-03-21  Jim Meyering  <jim@meyering.net>
38085
38086         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38088
38089 2005-03-21  Jim Meyering  <jim@meyering.net>
38090         and  Paul Eggert  <eggert@cs.ucla.edu>
38091
38092         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38093         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38094         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38095         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38096         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38097         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38098         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38099         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38100         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38101         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38102         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38103         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38104         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38105         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38106         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38107         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38108         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38109         for these modules.
38110
38111 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38112
38113         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38114         (which shouldn't happen), generate nothing instead of returning 0
38115         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38116
38117 2005-03-16  Bruno Haible  <bruno@clisp.org>
38118
38119         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38120         HAVE_LONGLONG_64BIT.
38121
38122 2005-03-16  Bruno Haible  <bruno@clisp.org>
38123
38124         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38125         HAVE_LONGLONG_64BIT.
38126
38127 2005-03-16  Bruno Haible  <bruno@clisp.org>
38128
38129         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38130         HAVE_LONGLONG_64BIT.
38131
38132 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38133
38134         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38135         reliably distinguish strftime failure from empty output on POSIX
38136         hosts.
38137
38138 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38139
38140         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38141         (iconv_string): Don't guess a size-zero buffer, as that might cause
38142         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38143         result would be 'too large', where 'too large' is (heuristically)
38144         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38145         overflow concerns.  This will prevent some unwanted malloc failures
38146         when the inputs are very large.
38147
38148 2005-03-15  Karl Berry  <karl@gnu.org>
38149
38150         * config/srclist.txt (config.rpath): from gettext.
38151         * config/config.rpath: update.
38152
38153 2005-03-15  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38156         to 'negate'.
38157
38158         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38159         variable.
38160
38161         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38162         results.
38163
38164 2005-03-14  Simon Josefsson  <jas@extundo.com>
38165
38166         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38167         <fx@gnu.org>.
38168
38169 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38170
38171         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38172         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38173         intprops.h.
38174         * lib/strtol.c: Likewise.
38175
38176 2005-03-14  Jim Meyering  <jim@meyering.net>
38177
38178         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38179         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38180         to be nonzero so that we (and caller) can detect the difference
38181         between a valid zero-length expansion and an error return, even
38182         when the underlying strftime fails before writing anything into
38183         that location.
38184
38185 2005-03-14  Bruno Haible  <bruno@clisp.org>
38186
38187         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38188         Update from GNU gettext 0.14.3.
38189
38190 2005-03-10  Jim Meyering  <jim@meyering.net>
38191
38192         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38193
38194 2005-03-10  Jim Meyering  <jim@meyering.net>
38195
38196         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38197         so that this module works on systems without fchdir.
38198
38199 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38200
38201         Factor int-properties macros into a single file, except for
38202         glibc-related files.
38203         * lib/intprops.h: New file.
38204         * lib/getloadavg.c: Include it instead of limits.h.
38205         (INT_STRLEN_BOUND): Remove.
38206         * lib/human.c: Include intprops.h.
38207         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38208         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38209         302/1000.
38210         * lib/inttostr.h: Include intprops.h instead of limits.h.
38211         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38212         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38213         for consistency with intprops.h.
38214         (time_t_is_integer, twos_complement_arithmetic): Use them.
38215         * lib/sig2str.h: Include <signal.h>, intprops.h.
38216         (INT_STRLEN_BOUND): Remove.
38217         * lib/strftime.c (TYPE_SIGNED): Remove.
38218         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38219         * lib/strtol.c: Adjust comments to match intprops.h.
38220         * lib/userspec.c: Include intprops.h.
38221         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38222         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38223         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38224         instead of rolling our own expressions.
38225         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38226
38227         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38228         instead of int.
38229         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38230         the right thing even if adding 1900 would overflow.  Similarly
38231         for tm_mon + 1 and tm_yday + 1.
38232         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38233         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38234         (DO_SIGNED_NUMBER): New macro.
38235         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38236
38237 2005-03-07  Bruno Haible  <bruno@clisp.org>
38238
38239         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38240
38241 2005-03-07  Bruno Haible  <bruno@clisp.org>
38242
38243         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38244
38245 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38246
38247         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38248         (func_import): Only replace files via --import when they have actually
38249         changed.
38250
38251 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38252
38253         * m4/mmap-anon.m4: New file.
38254         * m4/pagealign_alloc.m4: New file.
38255
38256 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38257             Bruno Haible  <bruno@clisp.org>
38258
38259         * modules/pagealign_alloc: New file.
38260         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38261
38262 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38263             Bruno Haible  <bruno@clisp.org>
38264
38265         * lib/pagealign_alloc.h: New file.
38266         * lib/pagealign_alloc.c: New file.
38267
38268 2005-03-03  Bruno Haible  <bruno@clisp.org>
38269
38270         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38271         Use an all-permissive copyright notice, recommended by RMS.
38272
38273 2005-03-02  Bruno Haible  <bruno@clisp.org>
38274
38275         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38276         of AIX, the replacement has to be done only after <string.h> is
38277         included, therefore not in config.h. stpncpy.h does the replacement,
38278         and stpncpy.c uses it.
38279
38280 2005-03-02  Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38283         stpncpy.c uses it.
38284
38285 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38286
38287         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38288         The workaround isn't strictly needed for POSIX conformance, and
38289         it's too much of a pain to configure and maintain.  We'll ask
38290         people to fix their kernels instead.
38291         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38292         (NANOSLEEP_BUG_WORKAROUND): Remove.
38293         (xnanosleep): Remove the workaround.
38294
38295 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38296
38297         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38298         Reported by Derek Price.
38299         (Include): Add "timespec.h".
38300
38301         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38302
38303 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38304
38305         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38306         to detect nanosleep bug.
38307
38308 2005-03-01  Bruno Haible  <bruno@clisp.org>
38309
38310         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38311
38312 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38313
38314         * modules/gethrxtime: New file.
38315         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38316         (Depends-on): Add gethrxtime.
38317         (configure.ac): Add gl_XNANOSLEEP.
38318         (Makefile.am): Remove lib_SOURCES line.
38319
38320 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38321
38322         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38323         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38324
38325 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38326
38327         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38328         * lib/timespec.h (gettime): Return void, since it always
38329         succeeds now.  All uses changed.
38330         * lib/gettime.c (gettime) Likewise.
38331         [HAVE_NANOTIME]: Prefer nanotime.
38332         Assume gettimeofday succeeds, as POSIX requires.
38333         Assime time () succeeds, since other code already does.
38334         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38335         (timespec_subtract): Remove.
38336         (NANOSLEEP_BUG_WORKAROUND): New constant.
38337         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38338         things considerably.  Use it only on GNU/Linux hosts, since the
38339         workaround shouldn't be needed elsewhere.
38340
38341 2005-02-24  Bruno Haible  <bruno@clisp.org>
38342
38343         * modules/gettext (Files): Add m4/glibc2.m4.
38344
38345 2005-02-24  Bruno Haible  <bruno@clisp.org>
38346
38347         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38348         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38349         * m4/progtest.m4:
38350         Update from GNU gettext 0.14.2.
38351         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38352
38353 2005-02-24  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38356         * lib/config.charset: Update from GNU gettext 0.14.2.
38357
38358 2005-02-24  Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/gettext.h: Update from GNU gettext 0.14.2.
38361
38362 2005-02-23  Simon Josefsson  <jas@extundo.com>
38363
38364         * m4/iconvme.m4: New file.
38365
38366 2005-02-23  Jim Meyering  <jim@meyering.net>
38367
38368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38369         change.
38370         Thanks to Bruno Haible for catching it.
38371
38372 2005-02-22  Simon Josefsson  <jas@extundo.com>
38373
38374         * modules/iconvme: New file.
38375
38376         * MODULES.html.sh: Add iconvme.
38377
38378 2005-02-22  Simon Josefsson  <jas@extundo.com>
38379
38380         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38381
38382 2005-02-22  Simon Josefsson  <jas@extundo.com>
38383
38384         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38385
38386 2005-02-22  Jim Meyering  <jim@meyering.net>
38387
38388         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38389         s/ifndef/ifdef/.
38390
38391 2005-02-20  Neil Conway  <neilc@samurai.com>
38392
38393         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38394         returned by OSX/Darwin if the specified buffer is not large
38395         enough for the hostname.
38396
38397 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38398
38399         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38400         pass it to _help, otherwise the latter coredumps trying to
38401         dereference state.root_argp.
38402
38403 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38404
38405         * modules/chdir-long (Depends-on): Add memrchr.
38406         * modules/memrchr (Files): Add lib/memrchr.h.
38407         (Include): "memrchr.h".
38408
38409 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38410
38411         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38412
38413 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38414
38415         * lib/memrchr.h: New file.
38416         * lib/chdir-long.c: Include it.
38417         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38418         Don't bother including stddef.h.
38419
38420 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38421
38422         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38423         inclusion.
38424         Include <sys/types.h>, for dev_t.
38425         (ME_DUMMY, ME_REMOTE): Move from here....
38426         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38427         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38428         Dmitry V. Levin.
38429         Include mountlist.h first, to test the interface.
38430
38431 2005-01-29  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/progname.c (program_name): Initialize.
38434         Needed when linking statically on MacOS X.
38435
38436 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38437
38438         Sync from coreutils.
38439         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38440         (Depends-on): Add c-strtod.
38441         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38442
38443 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38444
38445         Sync from coreutils.
38446         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38447
38448         Remove files that are specific to coreutils.
38449         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38450
38451 2005-01-28  Bruno Haible  <bruno@clisp.org>
38452
38453         * modules/javacomp: New file.
38454         * MODULES.html.sh (Java): Add javacomp.
38455
38456 2005-01-28  Bruno Haible  <bruno@clisp.org>
38457
38458         * m4/javacomp.m4: New file, from GNU gettext.
38459
38460 2005-01-28  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/javacomp.sh.in: New file, from GNU gettext.
38463         * lib/javacomp.h: New file, from GNU gettext.
38464         * lib/javacomp.c: New file, from GNU gettext.
38465
38466 2005-01-26  Simon Josefsson  <jas@extundo.com>
38467
38468         * lib/gai_strerror.c: Use GPL in header.
38469
38470 2005-01-26  Bruno Haible  <bruno@clisp.org>
38471
38472         * modules/javaexec: New file.
38473         * MODULES.html.sh (Java): Add javaexec.
38474
38475 2005-01-26  Bruno Haible  <bruno@clisp.org>
38476
38477         * m4/javaexec.m4: New file, from GNU gettext.
38478
38479 2005-01-26  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/javaexec.sh.in: New file, from GNU gettext.
38482         * lib/javaexec.h: New file, from GNU gettext.
38483         * lib/javaexec.c: New file, from GNU gettext.
38484
38485 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38486
38487         * modules/lchown (Depends-on): Remove lchown.h
38488
38489 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38490
38491         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38492         must be defined if the header file was not found, in order
38493         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38494
38495 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38496
38497         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38498         initializers for struct pentry_state.
38499         (__argp_error): Check return value of __asprintf
38500         (__argp_failure): Translate error message
38501
38502         * lib/argp-parse.c: Removed braces around the expansion of N_()
38503
38504 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38505
38506         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38507         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38508         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38509         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38510         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38511         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38512         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38513         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38514         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38515         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38516         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38517         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38518         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38519         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38520         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38521         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38522         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38523         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38524         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38525         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38526         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38527         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38528         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38529         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38530         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38531         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38532         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38533         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38534         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38535         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38536         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38537         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38538         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38539         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38540         xstrtol.m4, xstrtoumax.m4, yesno.m4:
38541         Use an all-permissive copyright notice, recommended by RMS.
38542
38543 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38544
38545         * modules/chdir-long (Depends-on): Remove mempcpy.
38546
38547 2005-01-21  Jim Meyering  <jim@meyering.net>
38548
38549         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38550         same value as for Solaris 9.
38551
38552         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38553         component length.  This included changing the parameter to be
38554         of type `char *' rather than `char const *'.
38555         * lib/chdir-long.h (chdir_long): Update prototype.
38556
38557         * lib/openat.c (fdopendir, fstatat): New functions.
38558         * lib/openat.h: Include headers required for use of DIR and struct
38559         stat.
38560         [AT_SYMLINK_NOFOLLOW]: Define.
38561         (fdopendir, fstatat): Add prototypes.
38562
38563 2005-01-21  Bruno Haible  <bruno@clisp.org>
38564
38565         * modules/classpath: New file.
38566         * MODULES.html.sh (Java): Add classpath.
38567
38568 2005-01-21  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/classpath.h: New file, from GNU gettext.
38571         * lib/classpath.c: New file, from GNU gettext.
38572
38573 2005-01-20  Simon Josefsson  <jas@extundo.com>
38574
38575         * modules/version-etc-fsf: New file.
38576
38577 2005-01-20  Simon Josefsson  <jas@extundo.com>
38578
38579         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38580         * lib/version-etc.c: Remove version_etc_copyright.
38581         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38582         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38583
38584 2005-01-20  Simon Josefsson  <jas@extundo.com>
38585
38586         * lib/base64.h (isbase64): Add.
38587
38588         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38589         using a unsigned prototype, don't inline.
38590         (base64_decode): Use it.
38591
38592 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38593
38594         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38595         it.
38596
38597 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38598
38599         * lib/save-cwd.c (save_cwd): Remove code to support the case
38600         where fchdir is missing or flaky.
38601
38602 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38603
38604         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38605
38606 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38607
38608         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
38609         AC_LIBSOURCES now does this.
38610         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
38611         with new ullong_max module.
38612
38613 2005-01-19  Bruno Haible  <bruno@clisp.org>
38614
38615         * modules/sh-quote: New file.
38616         * MODULES.html.sh (Executing programs): Add sh-quote.
38617
38618 2005-01-19  Bruno Haible  <bruno@clisp.org>
38619
38620         * lib/sh-quote.h: New file, from GNU gettext.
38621         * lib/sh-quote.c: New file, from GNU gettext.
38622
38623 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38624
38625         Merge from coreutils.
38626         * m4/ullong_max.m4: New file.
38627         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
38628         (gl_MACROS): Assume localeconv exists.
38629
38630 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38631
38632         Merge changes from coreutils, as described below in several
38633         changelogs dated today.
38634
38635         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
38636         (O_DIRECTORY): Remove; not needed here, since "." must be
38637         a directory.  All uses removed.
38638         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
38639         universal on Suns, and we also need to test for IRIX.
38640         Revamp code to use 'if' rather than '#if'.
38641         Avoid unnecessary comparison of cwd->desc to 0.
38642
38643         * lib/utimens.c (futimens): Robustify the previous patch, by checking
38644         for known valid error numbers rather than observed invalid ones.
38645
38646 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38647
38648         * modules/ullong_max: New file.
38649
38650         * modules/chdir-long, modules/openat: New files.
38651         * modules/save-cwd (Depends-on): Depend on chdir-long.
38652         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
38653
38654 2005-01-18  Jim Meyering  <jim@meyering.net>
38655
38656         Merge from coreutils.
38657         * m4/chdir-long.m4, m4/openat.m4: New files.
38658         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
38659         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
38660         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
38661         is sane and DOES follow symlinks.  Besides, testing 20 different
38662         systems found no broken chown implementations.
38663         Prompted by a change in rsync's copy of this macro.
38664         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
38665
38666         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
38667
38668         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
38669         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
38670         NULL-means-set-to-current-time semantics.
38671         Remove temporary file immediately, rather than waiting
38672         for configure's at-exit trap code to do it.
38673
38674 2005-01-18  Jim Meyering  <jim@meyering.net>
38675
38676         * lib/version-etc.c (version_etc_copyright): Update copyright date.
38677
38678         * lib/utimens.c (futimens): Account for the fact that futimes
38679         can also fail with errno == ENOSYS or errno == ENOENT.
38680         Patch from Dmitry V. Levin.
38681
38682         Change the name of the robust chdir function from chdir to chdir_long.
38683         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
38684         (restore_cwd): Use chdir_long, not chdir.
38685         * lib/chdir-long.c: Renamed from chdir.c.
38686         * lib/chdir-long.h: Renamed from chdir.h.
38687         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
38688         Hurd.
38689
38690 2005-01-18  Bruno Haible  <bruno@clisp.org>
38691
38692         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
38693         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
38694         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
38695         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
38696         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
38697         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
38698         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
38699         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
38700         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
38701         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
38702         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
38703         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
38704         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
38705         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
38706         Use an all-permissive copyright notice, recommended by RMS.
38707
38708 2005-01-18  Bob Proulx  <bob@proulx.com>
38709
38710         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
38711         simplify offsetof() macro construct to avoid compile failure with
38712         native HP-UX 11.0 ANSI C compiler.
38713
38714 2005-01-17  Bruno Haible  <bruno@clisp.org>
38715
38716         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
38717         redundant because stpncpy.m4 takes care of it.
38718
38719 2005-01-17  Bruno Haible  <bruno@clisp.org>
38720
38721         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
38722
38723 2005-01-17  Bruno Haible  <bruno@clisp.org>
38724
38725         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
38726         used.
38727
38728 2005-01-17  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/fwriteerror.h (fwriteerror): Change specification to include
38731         fclose.
38732         * lib/fwriteerror.c: Include <stdbool.h>.
38733         (fwriteerror): At the end, close the file stream. Record whether
38734         stdout was already closed.
38735
38736 2005-01-17  Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/execute.c (environ): Declare if needed.
38739         * lib/pipe.c (environ): Likewise.
38740         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
38741
38742 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38743
38744         * modules/argp: Depend on vsnprintf
38745
38746 2005-01-10  Jim Meyering  <jim@meyering.net>
38747
38748         * modules/closeout (Depends-on): Add atexit.
38749
38750 2005-01-06  Bruno Haible  <bruno@clisp.org>
38751
38752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
38753
38754 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38755
38756         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
38757         definitions to be after all include files, to avoid collisions.
38758         Problem reported by Bob Proulx.
38759
38760 2005-01-04  Jim Meyering  <jim@meyering.net>
38761
38762         Changes imported from coreutils.
38763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
38764         as the mkstemp template, use a temporary directory and an
38765         8.3-friendly template to avoid trouble on systems like DJGPP.
38766         Reported by Juan M. Guerrero via Stepan Kasal.
38767         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
38768         close. Remove the temporary directory right away, rather than waiting
38769         for configure's at-exit trap code to do it.
38770         Suggestion from Stepan Kasal.
38771
38772 2005-01-01  Simon Josefsson  <jas@extundo.com>
38773
38774         * gnulib-tool: Print #include directives when --import'ing.
38775
38776 2004-12-28  Simon Josefsson  <jas@extundo.com>
38777
38778         * tests/test-base64.c: Include required header files.  Remove
38779         unused variables.
38780
38781 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38782
38783         * modules/error (Depends-on): Remove gettext.
38784
38785 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38786
38787         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
38788         not needed.  This removes a dependency on the gettext module.
38789         [defined _LIBC]: Do not include <libintl.h>; not needed.
38790
38791 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38792
38793         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
38794         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
38795
38796 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38797
38798         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
38799         HAVE_DECL_STRTOLD.
38800
38801 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38802
38803         * modules/getdate (Depends-on): Remove alloca-opt.
38804
38805 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38806
38807         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
38808
38809 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38810
38811         * lib/argp-parse.c: Include <stddef.h>.
38812         (alignof, alignto): New macros.
38813         (parser_init): Don't assume that void * is aligned sufficiently
38814         for struct option.
38815
38816         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
38817         need to extend the stack.
38818         (YYINITDEPTH): New macro, so that the initial stack isn't overly
38819         large.
38820
38821 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38822
38823         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
38824
38825 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38826
38827         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
38828         (2004-10-24) change.  Apparently this was a false alarm.
38829
38830         * modules/getdate: Depend on alloca-opt, not alloca.
38831
38832 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38833
38834         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
38835         Remove now-obsolete comment about AIX.
38836         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
38837         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
38838         (YYMAXDEPTH): New macro.
38839
38840 2004-12-18  Simon Josefsson  <jas@extundo.com>
38841
38842         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
38843
38844 2004-12-18  Bruno Haible  <bruno@clisp.org>
38845
38846         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
38847
38848 2004-12-18  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/fatal-signal.c (fatal_signals): Make non-const.
38851         (init_fatal_signals): New function.
38852         (uninstall_handlers, install_handlers): Ignore signals that were set to
38853         SIG_IGN.
38854         (at_fatal_signal): Call init_fatal_signals.
38855         (init_fatal_signal_set): Likewise. Ignore signals that were set to
38856         SIG_IGN.
38857         Reported by Paul Eggert.
38858
38859 2004-12-18  Bruno Haible  <bruno@clisp.org>
38860
38861         * doc/alloca.texi: New file.
38862         * doc/alloca-opt.texi: New file.
38863
38864 2004-12-17  Jim Meyering  <jim@meyering.net>
38865
38866         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
38867         Otherwise, install-sh could exit with improper exit status when
38868         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
38869
38870 2004-12-16  Simon Josefsson  <jas@extundo.com>
38871
38872         * tests/test-base64.c: Add license.
38873
38874 2004-12-15  Stepan Kasal  <address@hidden>
38875
38876         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
38877
38878 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
38879
38880         * modules/getcwd (Files): Add m4/d-ino.m4.
38881         Suggested by Mark D. Baushke.
38882
38883 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
38884
38885         * lib/getdate.y (textint): New member "negative".
38886         (time_zone_hhmm): New function.
38887         Expect 14 shift-reduce conflicts, not 13.
38888         (o_colon_minutes): New rule.
38889         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
38890         (yylex): Set the "negative" member of signed numbers.
38891
38892 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
38893
38894         * doc/getdate.texi (Time of day items, Time zone items):
38895         Describe new formats +00:00, UTC+00:00.
38896
38897 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38898
38899         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
38900         spurious "-l"s.  Problem reported by Stepan Kasal.
38901
38902 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
38903
38904         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
38905         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
38906
38907 2004-12-04  Simon Josefsson  <jas@extundo.com>
38908
38909         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
38910         Vandoorselaere <yoann@prelude-ids.org>.
38911
38912 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
38913
38914         Changes imported from coreutils.
38915         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
38916         exist.
38917         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
38918
38919 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
38920
38921         Changes imported from coreutils.
38922         * lib/hard-locale.c: Assume <locale.h> exists.
38923         Include "strdup.h".
38924         (GLIBC_VERSION): New macro.
38925         (hard_locale): Assume setlocale exists.
38926         Rewrite to avoid #ifdef.
38927         Use strdup rather than malloc + strcpy.
38928         * lib/human.c: Assume <locale.h> exists.
38929         (human_readable): Assume localeconv exists.
38930
38931 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
38932
38933         * modules/hard-locale (Depends-on): Add strdup.
38934
38935 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38936
38937         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
38938         convert T2, not T.  (Imported from libc.)
38939
38940 2004-11-30  Simon Josefsson  <jas@extundo.com>
38941
38942         * modules/restrict (License): Change to LGPL.
38943
38944 2004-11-30  Simon Josefsson  <jas@extundo.com>
38945
38946         * m4/restrict.m4: Add copyright and copying conditions.
38947
38948 2004-11-30  Simon Josefsson  <jas@extundo.com>
38949
38950         * m4/base64.m4: New file.
38951
38952 2004-11-30  Simon Josefsson  <jas@extundo.com>
38953
38954         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
38955         base64.
38956
38957         * tests/test-base64.c: New file.
38958
38959         * modules/base64: New file.
38960
38961 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
38962
38963         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
38964         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
38965
38966         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
38967
38968 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
38969
38970         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
38971         (__getcwd.c): Don't restore errno; glibc doesn't.
38972         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
38973         first, falling back to our code only if its results look suspicious.
38974         Ensure that the resulting buffer is only as large as necessary.
38975
38976         * lib/readutmp.c: Include readutmp.h first.
38977         Include <errno.h>, since readutmp.h no longer does that.
38978         * lib/readutmp.h: Don't include <errno.h>,
38979         <sys/param.h>, <time.h>; not needed to establish interface.
38980         (errno): Remove decl.
38981         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
38982         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
38983         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
38984
38985 2004-11-28  Simon Josefsson  <jas@extundo.com>
38986
38987         * lib/base64.h, base64.c: New file.
38988
38989 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38990
38991         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
38992
38993 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38994
38995         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
38996         (Depends-on): Remove pathmax, same.  Add mempcpy.
38997         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
38998         (Makefile.am): Append getcwd.h to lib_SOURCES.
38999         (Include): Add getcwd.h.
39000         (Maintainer): Change from Jim Meyering to "all, glibc",
39001         since getdate now uses intended-for-glibc code.
39002         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39003         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39004
39005 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39006
39007         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39008         HP's ANSI C compiler.
39009         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39010         Declaring int functions causes warnings on some modern systems and
39011         shouldn't be needed to compile on ancient ones.
39012         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39013         defined.
39014
39015         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39016         with the following changes.
39017         (__set_errno): Parenthesize properly.
39018         Include <stdbool.h>.
39019         (MIN, MAX, MATCHING_INO): New macros.
39020         (__getcwd): Define with prototype, not K&R form.
39021         Use heuristics to allocate default buffer on stack if possible.
39022         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39023         behavior, and to avoid the PATH_MAX limit when computing
39024         ../../../../...
39025         Use MATCHING_INO to compare inode number to file.
39026         Check for arithmetic overflow in size calculations.
39027         Fix bug in reallocation of dot array that caused getcwd to fail
39028         on directories nested deeper than 75.
39029         Be more careful about saving errno on error.
39030         Do not use realloc; use only free+malloc, as this is a bit
39031         more flexible and avoids a needless copy operation.
39032         Do not inspect st_dev and st_ino for symbolic links; POSIX
39033         doesn't specify the latter.
39034         Check for closedir errors.
39035         Avoid needless casts.
39036         Use "#ifdef weak_alias" around weak_alias, to be like other
39037         glibc code.
39038         The following changes to getcwd.c have effect only when used in
39039         gnulib; they have no effect inside glibc proper.
39040         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39041         as alloca isn't used.
39042         (alloca, __alloca): Likewise.
39043         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39044         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39045         unconditionally, as gnulib assumes C89 or better.
39046         Do not include <sys/param.h>.
39047         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39048         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39049         better.
39050         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39051         Include <dirent.h> in a way that is compatible with modern Autoconf.
39052         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39053         New macros, if not already defined.
39054         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39055         Use "_LIBC", not "defined _LIBC", for consistency.
39056         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39057         a mempcpy module.
39058         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39059         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39060         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39061         credit only to Jim Meyering and adjust the copyright dates.
39062         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39063         <stdlib.h>, <unistd.h>, "pathmax.h".
39064         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39065         (INITIAL_BUFFER_SIZE): Remove.
39066         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39067
39068 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39069
39070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39071         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39072         Use the _ONCE methods, for efficiency.
39073         Check for fcntl.h.  In test program, include <errno.h>
39074         and <fcntl.h> if available.  Remove old K&R cruft from
39075         test program.  Check for common errors in GNU/Linux,
39076         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39077         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39078         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39079         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39080         name accordingly.
39081         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39082         accommodate new getcwd.c.
39083         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39084         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39085         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39086         that's all we need now.
39087
39088 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39089
39090         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39091         argp-parse.c depends on getopt internals, that means we should
39092         always use our getopt, to be on the safe side.
39093         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39094         order not to spoil the result of an eventual previous invocation
39095         of gl_GETOPT_SUBSTITUTE.
39096
39097 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39098
39099         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39100         redefinition warnings. To avoid them, include the defines
39101         in `#if !defined __need_getopt ... #endif'. The only place
39102         where __getopt_argv_const is used is in definitions
39103         of getopt_long and getopt_long_only below, which are as well
39104         protected by `#ifndef __need_getopt'.
39105         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39106         __need_getopt after including <stdio.h> and <unistd.h> These
39107         headers might have defined it.
39108
39109 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39110
39111         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39112
39113 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39114
39115         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39116         (futimens): New function, which uses futimes if available.
39117         (futimens, utimens): Support timespec==NULL, with same semantics
39118         as utime and utimens.
39119         * lib/utimens.h (futimens): New decl.
39120
39121 2004-11-23  Jim Meyering  <jim@meyering.net>
39122
39123         * lib/getopt_.h: Remove trailing blanks.
39124
39125 2004-11-23  Jim Meyering  <jim@meyering.net>
39126
39127         * lib/__fpending.c: Add comment.
39128
39129 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39130
39131         * modules/canonicalize (Depends-on): Add xreadlink.
39132         Problem reported by James Youngman.
39133
39134 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39135
39136         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39137         New macros.
39138         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39139         optopt): Use them instead of invoking ## directly; otherwise, the
39140         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39141
39142 2004-11-19  Bruno Haible  <bruno@clisp.org>
39143
39144         * lib/strtok_r.c: Move comments from here...
39145         * lib/strtok_r.h: ... to here.
39146
39147 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39148
39149         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39150         implementations that mishandle size_t overflow.
39151
39152 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39153
39154         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39155         might fail.  Problem reported by Yoann Vandoorselaere.
39156         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39157         implementations that mishandle size_t overflow.
39158
39159 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39160
39161         * modules/canon-host (Depends-on): Add strdup.
39162
39163 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39164
39165         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39166
39167 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39168
39169         * lib/canon-host.c: Include "strdup.h".
39170         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39171         Use strdup instead of malloc/strcpy to duplicate strings.
39172
39173         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39174         (human_space_before_unit): New constant.
39175         * lib/human.c (human_readable): Support it.
39176
39177         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39178         (xgetcwd): Set errno correctly when failing.
39179         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39180         the failure is actually due to a PATH_MAX problem.
39181
39182         Further getopt changes to make it more likely that glibc will
39183         buy the changes back.
39184         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39185         (getopt): Use it, so to preserve glibc semantic
39186         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39187         when compiling for libc.
39188         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39189         (getopt_long, getopt_long_only): Use it.
39190
39191         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39192         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39193         (getopt): Argv is now char * const *, as per standard.
39194         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39195         not char *__getopt_argv_const *.
39196         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39197         _getopt_long_only_r): Likewise.
39198         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39199         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39200         _getopt_long_r, _getopt_long_only_r): Likewise.
39201         * lib/getopt_.h (__getopt_argv_const): Remove.
39202         (getopt): Argv is now char * const *, as per standard.
39203
39204         * lib/getdate.y (tORDINAL): New token.
39205         (day, relunit): Allow it for relative times.
39206         (relative_time_table): Use tORDINAL for ordinals.
39207
39208 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39209
39210         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39211         Document that "second" isn't allowed as an ordinal number.
39212
39213 2004-11-16  Jim Meyering  <jim@meyering.net>
39214
39215         * modules/closeout (Depends-on): Add fpending.
39216
39217 2004-11-15  Jim Meyering  <jim@meyering.net>
39218
39219         * lib/closeout.c: Include "__fpending.h" once again.
39220         Include <stdbool.h>.
39221         (close_stdout): Don't fail just because stdout was closed initially,
39222         since some programs don't write to stdout in the normal course of
39223         operation (other than --version and --help), and we don't want this
39224         function to make e.g. `touch file >&-' fail.
39225         But do fail if it was closed and someone has tried to write to it.
39226         E.g., `printf foo >&-' must fail.
39227
39228 2004-11-13  Jim Meyering  <jim@meyering.net>
39229
39230         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39231
39232 2004-11-12  Simon Josefsson  <jas@extundo.com>
39233
39234         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39235         small doc fix is still pending.
39236
39237 2004-11-11  Simon Josefsson  <jas@extundo.com>
39238
39239         * modules/strtok_r: New file.
39240
39241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39242         strtok_r.
39243
39244 2004-11-11  Simon Josefsson  <jas@extundo.com>
39245
39246         * m4/strtok_r.m4: New file.
39247
39248         * m4/getopt.m4: Replace opterr.
39249
39250 2004-11-11  Simon Josefsson  <jas@extundo.com>
39251
39252         * lib/strtok_r.h, strtok_r.c: New file.
39253
39254 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39255
39256         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39257         of replacing opterr, getopt, etc.  This should handle the
39258         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39259
39260 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39261
39262         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39263         we can stop lying to compilers about the constness of argv when we
39264         are compiled outside glibc.
39265         (getopt, getopt_long, getopt_long_only): Use it.
39266         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39267         _getopt_internal, getopt): Likewise.
39268         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39269         _getopt_long_only_r): Likewise.
39270         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39271         _getopt_long_r, _getopt_long_only_r): Likewise.
39272
39273         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39274         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39275         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39276         the other external symbols.
39277         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39278         declaration, since the above renaming now works around collisions.
39279
39280 2004-11-11  Jim Meyering  <jim@meyering.net>
39281
39282         * lib/linebreak.c: Remove trailing blanks.
39283         * lib/alloca_.h: Likewise.
39284         * lib/acosl.c: Likewise.
39285         * lib/euidaccess.c: Likewise.
39286         * lib/allocsa.h: Likewise.
39287
39288 2004-11-10  Simon Josefsson  <jas@extundo.com>
39289
39290         * m4/getaddrinfo.m4: New file.
39291
39292 2004-11-10  Simon Josefsson  <jas@extundo.com>
39293
39294         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39295
39296 2004-11-10  Simon Josefsson  <jas@extundo.com>
39297
39298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39299         getaddrinfo.
39300
39301         * modules/getaddrinfo: New file.
39302
39303 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39304
39305         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39306
39307 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39308
39309         * lib/mktime.c (SHR): New macro, which is a portable
39310         substitute for >> that should work even on Crays.
39311         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39312         Problem reported by Mark D. Baushke in
39313         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39314         * lib/getdate.y (SHR): Likewise.
39315         (tm_diff): Use it.
39316         * lib/strftime.c (SHR): Likewise.
39317         (tm_diff): Use it.
39318         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39319         quote_these_too, so that right shifts are well defined.  All uses
39320         changed.
39321
39322 2004-11-10  Jim Meyering  <jim@meyering.net>
39323
39324         Ensure that no close failure goes unreported.
39325         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39326         return early when it seems there's nothing to flush.
39327         Don't include __fpending.h.
39328
39329 2004-11-10  Jim Meyering  <jim@meyering.net>
39330
39331         * modules/closeout (Depends-on): Remove fpending.
39332
39333 2004-11-10  Jim Meyering  <jim@meyering.net>
39334
39335         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39336
39337 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39338
39339         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39340         gl_FUNC_STRFTIME.
39341         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39342         and AC_REQUIRE when possible, to avoid duplicate checks.
39343         Check for <wchar.h>.
39344
39345 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39346
39347         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39348
39349 2004-11-09  Bruno Haible  <bruno@clisp.org>
39350
39351         * m4/sockpfaf.m4: New file.
39352
39353 2004-11-05  Bruno Haible  <bruno@clisp.org>
39354
39355         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39356         Reported by Mark D. Baushke <mdb@cvshome.org>.
39357
39358 2004-11-04  Bruno Haible  <bruno@clisp.org>
39359
39360         2004-09-11  Bruno Haible  <bruno@clisp.org>
39361                 * allocsa.valgrind: New file.
39362         2004-02-06  Bruno Haible  <bruno@clisp.org>
39363                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39364                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39365                 Reported by Christopher Seip <chris.seip@hp.com>.
39366
39367 2004-11-04  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39370         (Makefile.am): Distribute it.
39371
39372 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39373
39374         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39375         with errno == ERANGE if the buffer is too small.
39376         Problem reported by Mark D. Baushke.
39377
39378 2004-11-03  Albert Chin  <china@thewrittenword.com>
39379             Paul Eggert  <eggert@cs.ucla.edu>
39380
39381         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39382         equivalent, substitute $ac_type for equivalent type rather than
39383         blindly using uint32_t *always* which won't work if uint32_t is not
39384         available.  Define _UINT32_T to work around typedef of uint32_t if
39385         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39386         2.5.1.
39387
39388 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39389
39390         * m4/jm-macros.m4: Sync from coreutils.
39391         (gl_MACROS): Check for mbrlen, for pathchk.
39392         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39393
39394 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39395
39396         * lib/xreadlink.c (MAXSIZE): New macro.
39397         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39398         size does not exceed MAXSIZE.  Avoid cast.
39399         As suggested by Mark D. Baushke in
39400         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39401         if readlink fails with buffer size just under MAXSIZE, try again
39402         with MAXSIZE.
39403
39404 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39405
39406         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39407
39408 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39409         and  Paul Eggert  <eggert@cs.ucla.edu>
39410
39411         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39412         (get_date): Overparenthesize to avoid GCC warning.
39413
39414 2004-11-02  Bruno Haible  <bruno@clisp.org>
39415
39416         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39417         returns void.
39418
39419 2004-11-02  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39422         function returns void.
39423
39424 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39425
39426         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39427         fflush_unlocked, flockfile, funlockfile, funlockfile,
39428         fputs_unlocked, putc_unlocked.
39429
39430 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39431
39432         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39433         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39434         already declared.
39435
39436 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39437
39438         * modules/getdate (Files): Add doc/getdate.texi.
39439         (Depends-on): Add setenv, xalloc.
39440
39441 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/getdate.y: Add support for TZ="foo" within a date string.
39444         Fix some bugs near time_t boundaries.  Reject dates with
39445         out-of-range components, e.g., "Sept 31".
39446         Include <stdlib.h>, "setenv.h", "xalloc.h".
39447         (ISDIGIT_LOCALE): Remove; unused.
39448         Note that the TZ and time functions used here are not reentrant.
39449         (mktime_ok, get_tz): New functions.
39450         (TZBUFSIZE): New constant.
39451         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39452         This requires that we sometimes generate our own TZ="XXX..." setting.
39453
39454 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39455
39456         * doc/getdate.texi: New file, from coreutils with modifications for
39457         the new TZ parsing.
39458
39459 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39460
39461         * lib/mktime.c (not_equal_tm): Remove redundant check.
39462
39463 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39464
39465         * modules/regex (lib_SOURCES): Add regex.c.
39466         Reported by James Youngman in
39467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39468
39469 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39470
39471         * lib/getdate.y: Use Bison 1.875 features, and some minor
39472         code cleanups.  This change does not affect semantics.
39473         Don't include <stdlib.h>; no longer needed.
39474         Don't include unlocked-io.h; only the "#if TEST" code uses
39475         stdio, and performance isn't crucial there.
39476         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39477         Bison 1.875 features as described below.
39478         All uses of "PC." replaced by "pc->".
39479         (YYSTYPE): Add a forward declaration.
39480         (yylex, yyerror): Use full prototypes in forward decls.
39481         Use "%pure-parser" rather than obsolescent "%pure_parser".
39482         Use %parse-param and %lex-param instead of obsolescent
39483         YYPARSE_PARAM and YYLEX_PARAM.
39484         (meridian_table, month_and_day_table, time_units_table,
39485         relative_time_table, time_zone_table, military_table,
39486         lookup_zone, lookup_word, get_date):
39487         Use NULL instead of 0 where appropriate.
39488         (to_hour): Avoid abort (), to avoid a dependency on
39489         stdlib.h.
39490         (yyerror, yylex): Now accepts parser_control * arg.
39491         (main) [TEST]: Use '\0' rather than 0 for char.
39492
39493 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39494
39495         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39496
39497 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39498
39499         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39500         It's now the caller's responsibility to handle the case where
39501         !HAVE_GETPAGESIZE && !defined getpagesize.
39502
39503         * lib/mktime.c (leapyear): Arg is long int, not int.
39504
39505 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
39506
39507         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39508
39509 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39510
39511         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39512         missing.  Problem reported by James Youngman.
39513
39514 2004-10-16  Simon Josefsson  <jas@extundo.com>
39515
39516         * gnulib-tool: Fix comments.  Fix parse problem.
39517         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39518
39519 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
39520
39521         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39522         implementation of getopt_long.  Problem reported by Alexander Taler in:
39523         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39524
39525 2004-10-15  Bruno Haible  <bruno@clisp.org>
39526
39527         * gnulib-tool: Untabify. Initialize supplied_libname.
39528         (func_usage): More homogenous output.
39529         (func_modules_transitive_closure, func_modules_to_filelist,
39530         func_emit_lib_Makefile_am): New functions.
39531         (func_import): New function, extracted from big case statement. Use
39532         func_get_license, func_modules_transitive_closure,
39533         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39534         opt_lgpl. Don't use test -a, as it's not portable.
39535         (func_create_testdir): Use func_modules_transitive_closure,
39536         func_modules_to_filelist, func_emit_lib_Makefile_am.
39537
39538 2004-10-15  Bruno Haible  <bruno@clisp.org>
39539
39540         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39541
39542 2004-10-15  Bruno Haible  <bruno@clisp.org>
39543
39544         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39545         the portions belonging to each module.
39546         Suggested by Derek Robert Price <derek@ximbiot.com>.
39547
39548 2004-10-12  Simon Josefsson  <jas@extundo.com>
39549
39550         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39551         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39552         to real functions.
39553
39554 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39555
39556         * modules/vsnprintf: New file.
39557
39558 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39559
39560         * m4/vsnprintf.m4: New file.
39561
39562 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39563
39564         * lib/vsnprintf.h: New file.
39565         * lib/vsnprintf.c: New file.
39566
39567 2004-10-11  Bruno Haible  <bruno@clisp.org>
39568
39569         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39570         vsnprintf.
39571
39572 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39573
39574         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39575
39576 2004-10-07  Bruno Haible  <bruno@clisp.org>
39577
39578         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39579         fits into the provided buffer.
39580
39581 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39582
39583         * lib/diacrit.c, diacrit.h: Add GPL notice.
39584
39585         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39586         notice.
39587         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39588         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39589         This avoids a potential constant-folding bug.
39590
39591 2004-10-05  Bruno Haible  <bruno@clisp.org>
39592
39593         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39594         for the declaration of strsep.
39595
39596 2004-10-05  Bruno Haible  <bruno@clisp.org>
39597
39598         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39599
39600 2004-10-04  Simon Josefsson  <jas@extundo.com>
39601
39602         * modules/memmem: New file.
39603         * tests/test-memmem.c: New file.
39604         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39605
39606 2004-10-04  Simon Josefsson  <jas@extundo.com>
39607
39608         * m4/memmem.m4: New file.
39609
39610 2004-10-04  Simon Josefsson  <jas@extundo.com>
39611
39612         * lib/memmem.h: New file.
39613         * lib/memmem.c: New file, taken from glibc.
39614
39615 2004-10-04  Simon Josefsson  <jas@extundo.com>
39616
39617         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
39618         '#ifdef USE_UNLOCKED_IO'.
39619
39620 2004-10-04  Simon Josefsson  <jas@extundo.com>
39621
39622         * config/srclist.txt: Add memmem from glibc.
39623
39624 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39625
39626         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
39627
39628         * modules/argmatch, modules/argp, modules/closeout, modules/error,
39629         modules/exclude, modules/getdate, modules/getline,
39630         modules/getndelim2, modules/getpass, modules/getpass-gnu,
39631         modules/getusershell, modules/linebuffer, modules/md5,
39632         modules/mountlist, modules/posixtm, modules/readtokens,
39633         modules/readutmp, modules/regex, modules/sha1,
39634         modules/version-etc, modules/yesno:
39635         Remove dependency on unlocked-io.
39636
39637 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39638
39639         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
39640
39641         * m4/unlocked-io.m4: Add copyright notice.
39642         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
39643
39644 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39645
39646         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
39647         * lib/xmalloc.c (xmemdup): Likewise.
39648         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
39649         XFREE): Remove these long-obsolescent macros.
39650         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
39651         * lib/xstrdup.c: Remove.
39652
39653         * lib/regex.c (re_comp): Cast gettext return value to char *,
39654         Problem reported by Martin Neitzel via Mark D. Baushke.
39655
39656 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39657
39658         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
39659         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
39660         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
39661         regex.c, sha1.c, version-etc.c, yesno.c:
39662         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
39663         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
39664         the includer's responsibility.
39665
39666         Sync from coreutils.
39667
39668         * lib/modechange.c (mode_compile): Don't decrement a pointer that
39669         points to the start of a string, as the C Standard says the
39670         resulting behavior is undefined.
39671
39672         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
39673         simple -> simple_backups, numbered_existing ->
39674         numbered_existing_backups, numbered -> numbered_backups
39675         to avoid shadowing problems.  All uses changed.
39676         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
39677         * lib/backupfile.c (check_extension, numbered_backup):
39678         Rename locals to avoid shadowing 'basename'.
39679         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
39680         once.
39681
39682         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
39683         * lib/.cvsignore: Add getopt.h.
39684
39685 2004-10-04  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/README: New file.
39688         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
39689         not a module.
39690
39691 2004-10-02  Jim Meyering  <jim@meyering.net>
39692
39693         * lib/dirfd.h, getpagesize.h: Add copyright notice.
39694
39695 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39696
39697         * modules/strsep: New file.
39698
39699 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39700
39701         * m4/strsep.m4: New file.
39702
39703 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39704
39705         * lib/strsep.h: New file.
39706         * lib/strsep.c: New file.
39707
39708 2004-10-01  Simon Josefsson  <jas@extundo.com>
39709
39710         * lib/snprintf.c (snprintf): Handle size==0.
39711
39712 2004-10-01  Simon Josefsson  <jas@extundo.com>
39713             Bruno Haible  <bruno@clisp.org>
39714
39715         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
39716         (snprintf): Declare 'args'.
39717
39718 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
39719
39720         * lib/snprintf.c: Remove comments as to why each header is needed.
39721
39722 2004-10-01  Bruno Haible  <bruno@clisp.org>
39723
39724         * MODULES.html.sh: Add strsep.
39725
39726 2004-09-30  Simon Josefsson  <jas@extundo.com>
39727
39728         * modules/snprintf: New file.
39729
39730 2004-09-30  Simon Josefsson  <jas@extundo.com>
39731
39732         * m4/snprintf.m4: New file.
39733
39734 2004-09-30  Simon Josefsson  <jas@extundo.com>
39735
39736         * lib/snprintf.h, lib/snprintf.c: New files.
39737
39738 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39739
39740         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
39741         (hol_entry_help): Never translate an empty string.
39742         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
39743         * lib/argp.h (OPTION_NO_TRANS): New option.
39744
39745 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39746
39747         * modules/argp (Maintainer): Replace Simon Josefsson
39748         by Sergey Poznyakoff.
39749
39750 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39751
39752         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
39753         changes merged back into glibc.
39754
39755 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39756
39757         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
39758
39759 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39760
39761         * lib/xvasprintf.c: Include xalloc.h.
39762         (xvasprintf): Use xalloc_die, not xmalloc_die.
39763
39764 2004-09-29  Bruno Haible  <bruno@clisp.org>
39765
39766         * modules/alloca-opt: New file, derived from modules/alloca.
39767         * modules/allocsa: Depend on alloca-opt instead of alloca.
39768         * modules/setenv: Likewise.
39769         * modules/vasnprintf: Likewise.
39770         * MODULES.html.sh: Add alloca-opt.
39771
39772 2004-09-28  Simon Josefsson  <jas@extundo.com>
39773
39774         * gnulib-tool: New parameter --lgpl, to asseert that modules are
39775         LGPL, and to replace license template from GPL to LGPL.
39776
39777 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39778
39779         * modules/dummy: Change license to LGPL.
39780
39781 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39782
39783         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
39784
39785 2004-09-24  Simon Josefsson  <jas@extundo.com>
39786
39787         * modules/minmax (License): Change from GPL to LGPL.
39788
39789 2004-09-23  Simon Josefsson  <jas@extundo.com>
39790
39791         * gnulib-tool (--import): Typo.
39792
39793 2004-09-23  Simon Josefsson  <jas@extundo.com>
39794
39795         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
39796
39797 2004-09-22  Bruno Haible  <bruno@clisp.org>
39798
39799         * modules/*: Add 'License' field.
39800         * gnulib-tool: Accept --extract-license option.
39801         (func_get_license): New function.
39802
39803 2004-09-21  Bruno Haible  <bruno@clisp.org>
39804
39805         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39806         Reported by Simon Josefsson.
39807
39808 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39809
39810         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
39811         gl_AC_TYPE_LONG_LONG.
39812
39813 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
39816
39817 2004-09-18  Simon Josefsson  <jas@extundo.com>
39818         and  Paul Eggert  <eggert@cs.ucla.edu>
39819
39820         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
39821         calls with autoreconf.  Define GL_LIB.
39822
39823 2004-09-14  Karl Berry  <karl@gnu.org>
39824
39825         * config/srclist.txt: unsync setenv.c, sigh.
39826
39827 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
39830         Problem reported by Bruno Haible in:
39831         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
39832
39833 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39834
39835         * config/srclist.txt: Comment out argp-pvh.c.
39836
39837 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
39838
39839         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
39840         in case some system header has #define'd it.  Problem reported by
39841         Soeren D. Schulze in
39842         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
39843
39844 2004-09-09  Karl Berry  <karl@gnu.org>
39845
39846         * regex.[ch]: delete from the root.  These were supposed to be
39847                 synced with emacs cvs, but this has not happened for about
39848                 a year, and anyway nothing else uses emacs regex.[ch].
39849                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
39850                 lib/regex[.ch] is untouched.
39851
39852 2004-09-09  Bruno Haible  <bruno@clisp.org>
39853
39854         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
39855
39856 2004-09-09  Bruno Haible  <bruno@clisp.org>
39857
39858         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
39859         modifications.
39860         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
39861
39862 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
39863
39864         * modules/xvasprintf: New file.
39865         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
39866
39867 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
39868
39869         * lib/xvasprintf.h: New file.
39870         * lib/xvasprintf.c: New file.
39871         * lib/xasprintf.c: New file.
39872
39873 2004-09-08  Bruno Haible  <bruno@clisp.org>
39874
39875         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
39876
39877 2004-09-08  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
39880         length is > INT_MAX.
39881         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
39882         more.
39883
39884 2004-09-08  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/stdint_.h: New file, taken from GNU clisp.
39887
39888 2004-09-08  Bruno Haible  <bruno@clisp.org>
39889             Oskar Liljeblad  <oskar@osk.mine.nu>
39890
39891         * modules/stdint: New file.
39892         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
39893
39894 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39895
39896         Import from coreutils.
39897         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
39898         strings on unbounded length.  alloca's performance benefits aren't
39899         that important here.
39900         (V_STRDUP): Remove.
39901         (parse_with_separator): New function, with most of the internals
39902         of the old parse_user_spec.  Allow user to omit both user and group,
39903         for compatibility with FreeBSD.
39904         Clone only the user name, not the entire spec.
39905         Do not set *uid, *gid unless entirely successful.
39906         Avoid memory leak in some failing cases.
39907         Fix regression for USER.GROUP reported by Dmitry V. Levin in
39908         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
39909         (parse_user_spec): Rewrite to use parse_with_separator.
39910
39911 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39912
39913         * modules/userspec: Don't depend on alloca.
39914
39915 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39916
39917         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
39918
39919 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
39920
39921         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
39922         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
39923         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
39924
39925 2004-08-16  Simon Josefsson  <jas@extundo.com>
39926
39927         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
39928         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
39929         Add --dry-run for --import.
39930         Let user provided command line parameters override configure.ac
39931         settings.
39932
39933 2004-08-12  Simon Josefsson  <jas@extundo.com>
39934
39935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
39936         as discussed with Paul Eggert in threads rooted at
39937         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
39938         and
39939         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
39940         Before, the test was empty, and relied on ELIDE_CODE in source
39941         code.)
39942         (gl_PREREQ_GETOPT): New macro.
39943         (gl_GETOPT): Use them.
39944
39945 2004-08-12  Simon Josefsson  <jas@extundo.com>
39946
39947         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
39948         * lib/getopt_.h: Renamed from getopt.h.
39949
39950 2004-08-12  Simon Josefsson  <jas@extundo.com>
39951
39952         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
39953         Change default library name from libfoo to libgnu.
39954         Now, if you have a configure.ac that says:
39955                 gl_SOURCE_BASE(gl)
39956                 gl_M4_BASE(gl/m4)
39957                 gl_MODULES(error getopt etcetera)
39958                 gl_INIT
39959         you can import all you need by running:
39960                 ../gnulib/gnulib-tool --import
39961
39962         * modules/getopt (Files): Rename getopt.h to getopt_.h.
39963         (Makefile.am): Rewrite, use logic from argz.
39964         (Include): Use <getopt.h> instead of "getopt.h".
39965
39966 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39967
39968         * modules/argp (Files): Add m4/unlocked-io.m4.
39969         (Depends-on): Add extensions.
39970
39971 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39972
39973         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
39974         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
39975         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
39976         Check for program_invocation_name, program_invocation_short_name,
39977         flockfile, funlockfile, features.h, _getopt_long_only_r.
39978
39979 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39980
39981         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
39982         its complicated substitute.
39983         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
39984         and program_invocation_name.
39985         (__argp_basename) [!_LIBC]: Remove; the only use was
39986         replaced by its body.
39987         (__argp_short_program_name): Change condition from
39988         !defined __argp_short_program_name to
39989         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
39990         to match argp-namefrob.h.
39991         (__argp_failure): Don't assume strerror_r returns char *.
39992         * lib/argp-parse.c (N_): Define unconditionally.
39993         (argp_default_options): Fill out initializers with 0 to avoid
39994         gcc warnings.
39995
39996 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39997
39998         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
39999         getopt1.c.
40000
40001 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40002
40003         Merge from coreutils.
40004
40005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40006
40007         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40008         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40009
40010 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40011
40012         Merge from coreutils.
40013
40014         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40015         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40016         for Reliant Unix 5.43.
40017
40018         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40019         (union fooround): Use uintmax_t, not long int.
40020         The rest is a merge from libc:
40021         [defined _LIBC]: Include <shlib-compat.h>.
40022         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40023
40024         * lib/settime.c (settime): Recode to avoid warning with
40025         Sun Forte C 6U2.
40026
40027         * lib/strverscmp.c: Convert to UTF-8.
40028
40029 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40030
40031         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40032         m4/uintmax_t.m4.
40033
40034 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40035
40036         * modules/xalloc-die: New file.
40037         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40038
40039         * modules/md5 (Files): Add m4/uint32_t.m4.
40040         * modules/sha1: Renamed from modules/sha.
40041         (Files):
40042         Rename lib/sha.h to lib/sha1.h.
40043         Rename lib/sha.c to lib/sha1.c.
40044         Rename m4/sha.m4 to m4/sha1.m4.
40045         (lib_SOURCES): Likewise.
40046         (configure.ac): Rename gl_SHA to gl_SHA1.
40047         (Include): sha.h -> sha1.h.
40048
40049 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40050
40051         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40052         * m4/sha1.m4: Renamed from sha.m4.
40053         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40054
40055 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40056
40057         * lib/obstack.h (obstack_empty_p):
40058         Don't assume that chunk->contents is suitably aligned.
40059         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40060         Likewise. Problem reported by Benno in
40061         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40062
40063         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40064         readable.  This could be improved further but it'd take some work.
40065
40066 2004-08-08  Simon Josefsson  <jas@extundo.com>
40067
40068         * modules/xgethostname (Depends-on): Remove exit and error (not
40069         used).
40070
40071         * modules/getpass-gnu: Add getpass.h.
40072         (Depends-on): Add stdbool.
40073         * modules/getpass: Add getpass.h.
40074
40075 2004-08-08  Simon Josefsson  <jas@extundo.com>
40076
40077         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40078         Check getpass declaration.
40079
40080 2004-08-08  Simon Josefsson  <jas@extundo.com>
40081
40082         * lib/xgethostname.c: Don't include error.h (not used).
40083
40084         * lib/getpass.h: Add.
40085         * lib/getpass.c: Include getpass.h first.
40086
40087 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40088
40089         * lib/xalloc-die.c: New file.
40090         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40091         All uses removed.
40092         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40093         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40094         xalloc-die.c.
40095         (_, N_, xalloc_die): Move to xalloc-die.c.
40096         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40097         so that we needn't mess with xalloc_msg_memory_exhausted.
40098
40099         * lib/sha1.h: Renamed from sha.h.
40100         (SHA1_H): Renamed from _SHA_H.
40101         (sha1_ctx): Renamed from sha_ctx.
40102         (sha1_init_ctx): Renamed from sha_init_ctx.
40103         (sha1_process_block): Renamed from sha_process_block.
40104         (sha1_process_bytes): Renamed from sha_process_bytes.
40105         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40106         (sha1_read_ctx): Renamed from sha_read_ctx.
40107         (sha1_stream): Renamed from sha_stream.
40108         (sha1_buffer): Renamed from sha_buffer.
40109         * lib/sha1.c: Likewise; renamed from sha.c.
40110         Do not include <sys/types.h>.
40111         Include <stddef.h> rather than <stdlib.h>.
40112
40113 2004-08-08  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40116         FILESYSTEM_PREFIX_LEN.
40117         * lib/progreloc.c: Likewise.
40118         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40119
40120 2004-08-06  Simon Josefsson  <jas@extundo.com>
40121
40122         * modules/progname (Depends-on): Don't depend on stdbool.
40123
40124 2004-08-06  Simon Josefsson  <jas@extundo.com>
40125
40126         * modules/getsubopt: New file.
40127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40128         getsubopt.
40129
40130 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40131
40132         More merge from coreutils.
40133
40134         * m4/utimens.m4, m4/utimecmp.m4: New files.
40135         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40136         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40137         prereq.m4, sha.m4: Import changes from coreutils.
40138
40139 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40140
40141         More merge from coreutils.
40142         * modules/raise, modules/readtokens0, modules/utimens:
40143         * modules/utimecmp, module/xnanosleep: New files.
40144         * modules/strftime: Add lib/strftime.h.
40145         Change include from <time.h> to "strftime.h".
40146         * modules/yesno: Add lib/yesno.h.
40147         * modules/backupfile: Remove lib/addext.c.
40148         * modules/euidaccess: Add stat-macros.h.
40149         * modules/canonicalize, modules/euidaccess,
40150         modules/filemode, modules/lchown, modules/makepath,
40151         modules/rmdir, modules/stat: Likewise.
40152
40153 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40154
40155         Merge from tar.
40156         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40157         SIZE_MAX is a valid preprocessor constant.
40158         (__argp_basename): Change from "#ifndef _LIBC"
40159         to "#ifndef __argp_short_program_name", so that
40160         we don't compile these functions for tar.
40161
40162         More merges from coreutils.
40163         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40164         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40165         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40166         * lib/addext.c: Remove; no longer needed.
40167         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40168         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40169         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40170         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40171         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40172         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40173         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40174         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40175         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40176         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40177         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40178         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40179         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40180         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40181         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40182         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40183         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40184         Import changes from coreutils.
40185
40186 2004-08-05  Simon Josefsson  <jas@extundo.com>
40187
40188         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40189
40190 2004-08-05  Simon Josefsson  <jas@extundo.com>
40191
40192         * m4/getsubopt.m4: New file.
40193
40194 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40195
40196         Merge from coreutils.
40197
40198         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40199         * m4/getcwd-path-max.m4: New files.
40200
40201         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40202         FILESYSTEM_PREFIX_LEN ->
40203         FILE_SYSTEM_PREFIX_LEN.
40204         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40205         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40206         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40207         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40208
40209         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40210         prerequisite modules now handle the DOS stuff.
40211         Don't check for unistd.h.
40212
40213 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40214
40215         Merge from coreutils.
40216
40217         * lib/.gdb-history: Remove; this doesn't belong here.
40218
40219         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40220         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40221         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40222         * lib/getcwd.c: New files.
40223
40224         * lib/dirname.h: Include <stdbool.h>.
40225         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40226         for consistency with POSIX terminology.  All uses changed.
40227         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40228         (strip_trailing_slashes): Use bool for booleans.
40229         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40230
40231         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40232         sometimes returns a positive errno value even when it succeeds.
40233         (print_errno_message) [!LIBC]: Fall back on strerror if
40234         __strerror_r fails.
40235
40236         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40237         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40238         (longest_relative_suffix): New function.
40239         (path_concat): Use it.  Assume first argument is not NULL.
40240         Port to DOS.  Omit redundant separators.
40241         Report an error instead of returning NULL.
40242         Use mempcpy instead of memcpy.
40243         (xpath_concat): Remove: not declared or used.
40244
40245         * lib/same.h: Include <stdbool.h>
40246         (same_name): Return bool, not int.
40247         * lib/same.c (same_name): Likewise.
40248         (errno): Don't declare; we assume C89 or better now.
40249
40250         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40251         if not already defined.
40252
40253         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40254         * lib/dup-safer.c (errno): Likewise.
40255
40256 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40257
40258         Merge from coreutils.
40259         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40260         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40261         * modules/path-concat: Don't depend on strdup.
40262
40263 2004-08-03  Simon Josefsson  <jas@extundo.com>
40264
40265         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40266         * lib/progname.h: Don't include stdbool.h.
40267
40268 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40271         * MODULES.html.sh (func_all_modules): Remove fatal.
40272
40273 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40274
40275         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40276
40277 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40278
40279         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40280         working.
40281
40282 2004-08-02  Simon Josefsson  <jas@extundo.com>
40283
40284         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40285         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40286         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40287
40288 2004-08-01  Simon Josefsson  <jas@extundo.com>
40289
40290         * lib/xgetdomainname.c: Include stdlib.h, for free().
40291
40292 2004-07-19  Bruno Haible  <bruno@clisp.org>
40293
40294         * MODULES.html.sh (func_all_modules): Add dummy.
40295
40296 2004-07-16  Simon Josefsson  <jas@extundo.com>
40297
40298         * modules/dummy: New file.
40299
40300 2004-07-16  Simon Josefsson  <jas@extundo.com>
40301
40302         * lib/dummy.c: New file.
40303
40304 2004-07-16  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/backupfile.h: Add extern "C" for C++.
40307         * lib/closeout.h: Likewise.
40308         * lib/copy-file.h: Likewise.
40309         * lib/findprog.h: Likewise.
40310         * lib/full-write.h: Likewise.
40311         * lib/pathname.h: Likewise.
40312         * lib/progname.h: Likewise.
40313         * lib/stpcpy.h: Likewise.
40314         * lib/stpncpy.h: Likewise.
40315         * lib/strcase.h: Likewise.
40316         * lib/strstr.h: Likewise.
40317         * lib/xalloc.h: Likewise.
40318
40319         * lib/mbswidth.h: Add extern "C" for C++.
40320         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40321
40322 2004-07-13  Robert Millan  <robertmh@gnu.org>
40323
40324         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40325
40326 2004-07-09  Simon Josefsson  <jas@extundo.com>
40327
40328         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40329         failed without this.)
40330
40331 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40332
40333         * modules/chown (Files): Add lib/fchown-stub.c, since
40334         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40335
40336 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40337
40338         * lib/fchown-stub.c: New file.
40339
40340 2004-06-24  Jim Meyering  <jim@meyering.net>
40341
40342         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40343
40344 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40345
40346         * modules/argz: Omit "#include".
40347
40348         * MODULES.html.sh (func_all_modules): Add calloc, to match
40349         2004-06-01 addition of calloc module.
40350
40351 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40352
40353         * m4/argz.m4: New file, which is autoupdated from libtool.
40354
40355 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40356
40357         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40358         libtool.
40359
40360 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40361
40362         * config/srclist-update: Don't insist on "USA." before the
40363         close-comment, as libtool omits the period and puts the */ on a
40364         separate line.
40365         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40366         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40367
40368 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40369
40370         * modules/argz: New file.
40371         * MODULES.html.sh (func_all_modules): Add argz.
40372
40373 2004-06-12  Jim Meyering  <jim@meyering.net>
40374         and  Paul Eggert  <eggert@cs.ucla.edu>
40375
40376         * modules/hash (Files): Add lib/xalloc.h.
40377         * modules/pipe (Depends-on): Add wait-process.
40378         * modules/stat (Depends-on): Add xalloc.
40379         * modules/userspec (Files): Add lib/userspec.h.
40380         * modules/xstrto
40381
40382         Upgrade from gettext-0.13.
40383         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40384         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40385         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40386
40387 2004-06-10  Jim Meyering  <jim@meyering.net>
40388
40389         * lib/calloc.c: New file.
40390
40391 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40392
40393         * lib/getdate.y (yylex): Allow space between sign and number.
40394         Problem reported by Dan Jacobson.
40395
40396 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40397
40398         Merge from coreutils CVS.
40399
40400         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40401         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40402         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40403         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40404         xstrtol.m4: Fix copyright date and/or serial number.
40405
40406         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40407         See if we need an fchown replacement.
40408         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40409         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40410         and use the replacement function if we detect either defect.
40411
40412         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40413         gl_UTIMECMP.
40414
40415 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40416         and  Jim Meyering  <jim@meyering.net>
40417
40418         Merge from coreutils CVS.
40419
40420         * lib/stat-macros.h: New file, with contents from file-type.h
40421         and coreutils' system.h.
40422         * lib/file-type.c: Include "stat-macros.h".
40423         * lib/file-type.h (file_type): Move all macro definitions to new file,
40424         stat-macros.h.
40425
40426         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40427         Wrap old code with this conditional.
40428         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40429         function that does not dereference symlinks.
40430         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40431
40432         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40433         dependency problems.
40434         (xreadlink): Accept new arg SIZE, for efficiency.
40435         All decls and uses changed.
40436         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40437
40438         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40439         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40440
40441         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40442         sysexits.h.
40443
40444 2004-06-01  Jim Meyering  <jim@meyering.net>
40445
40446         * m4/calloc.m4: New file.
40447
40448 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40449
40450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40451         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40452         Also, fix a typo in a diagnostic.
40453
40454 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40455
40456         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40457         or AC_FUNC_REALLOC.
40458
40459 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40460
40461         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40462         macros to be defined.
40463         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40464         the allocator returns NULL because the requested size is zero.
40465
40466 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40469         var.  Add comment explaining why libc still defines it.  This
40470         merges the following patch from glibc:
40471         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40472
40473 2004-05-20  Andreas Schwab  <schwab@suse.de>
40474
40475         * m4/free.m4: Replace free if it not known to work, not the other
40476         way round.
40477
40478 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40479
40480         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
40481         present in glibc since revision 1.1 of this file.
40482         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40483         obstack_alignment_mask, obstack_alloc, obstack_base,
40484         obstack_blank, obstack_blank_fast, obstack_chunk_size,
40485         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40486         obstack_grow0, obstack_init, obstack_int_grow,
40487         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40488         obstack_next_free, obstack_object_size, obstack_ptr_grow,
40489         obstack_ptr_grow_fast, obstack_room): Remove declarations of
40490         nonexistent functions.
40491
40492 2004-05-18  Karl Berry  <karl@gnu.org>
40493
40494         * config/srclist.txt: break link for vasnprintf.c.
40495
40496 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40497
40498         Port obstack to the AS/400, where pointers are 16 bytes wide and
40499         you cannot cast an integer to a valid pointer.  This patch is
40500         currently waiting to be integrated into glibc; see
40501         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40502
40503         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40504         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40505         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40506         (struct obstack): temp member is now a union of a pointer and
40507         an integer, instead of an integer.  All integer uses changed.
40508         This does not affect the physical layout of struct obstack,
40509         except on hosts (like the AS/400) where the size or alignment of
40510         void * is greater than that of ptrdiff_t.
40511         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40512         __STDC__)]: Store temporary in pointer member of union, not
40513         integer member.
40514         * lib/obstack.c: Include <stddef.h>, for offsetof.
40515         (struct fooalign): Remove; it doesn't need a name.
40516         (union fooround): Change double to long double, and add void *.
40517         (DEFAULT_ALIGNMENT): Use offsetof to compute.
40518         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40519         not a macro.  Hence the values are always int; so remove all
40520         casts-to-int in uses.
40521
40522 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40523
40524         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40525         we can get this patch merged into glibc.
40526
40527 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40528             Paul Eggert  <eggert@cs.ucla.edu>
40529
40530         * m4/argp: Depend on alloca.
40531
40532 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40533             Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40536         freecoding.
40537
40538 2004-05-17  Bruno Haible  <bruno@clisp.org>
40539
40540         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40541         precision that consists of a '.' followed by an empty digit string.
40542         Patch by Tor Lillqvist <tml@iki.fi>.
40543
40544 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40545
40546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40547         for backward compatibility with older code.  We need our own
40548         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
40549         it under some other name, and our alloca.h will define it.
40550
40551 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40552             Derek Price  <derek@ximbiot.com>
40553
40554         * lib/alloca.c: Include <alloca.h>, to get our interface.
40555         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40556         include <alloca.h> first.  Use C89 prototype for alloca; this
40557         requires including <stddef.h> for size_t.  Use extern "C" if C++.
40558         Use #elif for simplicity, since we can assume C89 now.
40559         Don't try to source the system alloca.h since it will not be found
40560         and to prevent recursively including its replacement.
40561         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40562         * lib/regex.c: Likewise.
40563
40564 2004-05-16  Derek Price  <derek@ximbiot.com>
40565             Paul Eggert  <eggert@cs.ucla.edu>
40566
40567         getline cleanup.  This changes the getndelim2 API: both order of
40568         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40569         no delimiter).
40570
40571         * lib/getline.c: Don't include stddef.h or stdio.h, since our
40572         interface does that.
40573         (getline): Always use getdelim, so that we don't have two
40574         copies of this code.
40575         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40576         if available.
40577         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40578         (GETNDELIM2_MAXIMUM): New macro.
40579         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
40580         instead of the old practice of delim2==0.  All callers changed.
40581         Return -1 on overflow, instead of returning junk.
40582         Do not set *linesize unless allocation succeeds.
40583         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40584         that we include sys/types.h.
40585         * lib/getnline.h: Likewise.
40586         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40587         (getndelim2): Reorder arguments.
40588         * lib/getnline.c (getnline, getndelim):
40589         Don't discard the NMAX argument.
40590         (getnline): Invoke getndelim, to avoid code duplication.
40591         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40592         of (size_t) -1 by callers of the getnline family.
40593
40594 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40595
40596         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40597         Check for gettimeofday.
40598         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40599         Check for settimeofday, stime.
40600
40601 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40602
40603         * lib/nanosleep.c (suspended): Change its type from int to
40604         sig_atomic_t volatile.
40605         (first_call): Make it private to rpl_nanosleep, and have it
40606         be zero initially as that's a bit faster.
40607         (my_usleep): Round up fractional times instead of truncating them,
40608         as this is the usual meaning for 'sleep'.
40609
40610         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
40611         doesn't work.
40612         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
40613         (ENOSYS): Define if not defined.
40614         (settime): Fall back on stime if it exists and settimeofday fails.
40615         But don't bother with fallbacks if a method fails with errno == EPERM.
40616
40617 2004-05-11  Jim Meyering  <jim@meyering.net>
40618
40619         Prior to this change, the save_cwd caller required read access to the
40620         current directory on most systems (ones with the fchdir function).
40621
40622         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
40623         fails, try write-only, and finally, resort to using xgetcwd.
40624
40625 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40626
40627         * lib/obstack.c, obstack.h: Import changes from libc.
40628
40629 2004-04-28  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
40632         also implicitly appends .exe to executables.
40633         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
40634         accepts Windows pathnames.
40635         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40636         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40637         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40638         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40639         Reported by Derek Robert Price <derek@ximbiot.com>.
40640
40641 2004-04-21  Karl Berry  <karl@gnu.org>
40642
40643         * config/srclist.txt (localcharset.c): break sync.
40644
40645 2004-04-20  Paul Eggert  <eggert@twinsun.com>
40646
40647         * m4/host-os.m4: Add a copyright notice.
40648
40649 2004-04-20  Jim Meyering  <jim@meyering.net>
40650
40651         Change UTILS_ to gl_ in AC_DEFINE'd names.
40652         Change utils_- and jm_-prefixed variables, too.
40653         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
40654         UTILS_FUNC_MKDIR_TRAILING_SLASH.
40655         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
40656
40657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
40658         Don't emit trailing blanks.
40659         Also rename jm_-prefixed variables to have gl_ prefix.
40660
40661         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
40662         Also rename jm_-prefixed variables to have gl_ prefix.
40663
40664         * m4/jm-macros.m4: Reflect the renamings.
40665         * m4/prereq.m4: Likewise.
40666
40667 2004-04-20  Jim Meyering  <jim@meyering.net>
40668
40669         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
40670         memory.
40671
40672 2004-04-20  Jim Meyering  <jim@meyering.net>
40673             Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
40676         memory when realloc fails.
40677
40678 2004-04-19  Jim Meyering  <jim@meyering.net>
40679
40680         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
40681         now that readutmp.c may call `free (0)'.
40682
40683 2004-04-19  Bruno Haible  <bruno@clisp.org>
40684
40685         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
40686         * m4/inttypes_h.m4: Likewise.
40687         * m4/stdint_h.m4: Likewise.
40688         * m4/intmax_t.m4: Likewise.
40689         * m4/uintmax_t.m4: Likewise.
40690
40691 2004-04-18  Jim Meyering  <jim@meyering.net>
40692
40693         * m4/prereq.m4: Don't forbid jm_ prefix.
40694
40695         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
40696         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
40697         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
40698         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
40699         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
40700         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
40701         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
40702         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
40703         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
40704         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
40705         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
40706         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
40707         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
40708         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
40709         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
40710         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
40711         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
40712         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
40713         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
40714
40715 2004-04-18  Jim Meyering  <jim@meyering.net>
40716
40717         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
40718         failure, don't leak memory and do call END_UTMP_ENT.
40719
40720 2004-04-16  Jim Meyering  <jim@meyering.net>
40721
40722         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
40723         coreutils' stat program.
40724         (gl_PREREQ): Don't require jm_PREREQ_STAT.
40725
40726 2004-04-11  Paul Eggert  <eggert@twinsun.com>
40727
40728         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
40729         C89.
40730         (CHAR_BIT): Remove, since we assume C89.
40731         Include <stdint.h> if available, as per current Autoconf CVS advice.
40732
40733 2004-03-31  Jim Meyering  <jim@meyering.net>
40734
40735         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
40736         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
40737         * m4/xalloc.m4: Likewise.
40738
40739 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40740
40741         Merge from coreutils.
40742
40743         * m4/inttostr.m4: New file.
40744         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
40745         Require AM_STDBOOL_H and gl_TIMESPEC instead.
40746         Require gl_CLOCK_TIME.
40747         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
40748
40749 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40750
40751         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
40752         not bool, to be more consistent with Unix conventions.
40753         Suggested by Bruno Haible.
40754
40755         Merge from coreutils.
40756
40757         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
40758         * lib/umaxtostr.c: New files.
40759
40760         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
40761         the usual <time.h> dance.
40762         (get_date): Change signature to support fractional time stamps.
40763         All callers changed.
40764         * lib/getdate.y: Include "getdate.h" first, as we can now
40765         assume C89 and don't need to worry about 'const'.
40766         Similarly, include "unlocked-io.h" near start, not in middle.
40767         Include <limits.h>.
40768         (textint.value): Use long int rather than int.
40769         (textint.digits): Use size_t rather than int.
40770         (BILLION, LOG10_BILLION): New constants.
40771         (parser_control): New member rel_ns.  Members day_ordinal,
40772         time_zone, month, day, hour, minutes, rel_year, rel_month,
40773         rel_day, rel_hour, rel_minutes, rel_seconds
40774         are now long int, not int.  Member seconds is now struct timespec,
40775         not int.  New member timespec_seen.  Members dates_seen, days_seen,
40776         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
40777         not int.
40778         (%union.intval): Now long int, not int.
40779         New member timespec.
40780         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
40781         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
40782         (spec): Now is a timespec or an item list.
40783         (timespec, items): New nonterminals.
40784         (time, rel, relunit, number, get_date):
40785         Add support for fractional seconds.
40786         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
40787         (gmtime, localtime, mktime): Remove decls; not needed with C89.
40788         (to_hour): First arg is now long int, not int.
40789         (to_year): Returns long int, not int.
40790         Don't treat year -70 like 70.
40791         (tm_diff): Returns long int, not int.
40792         (lookup_word): Use bool instead of int when appropriate.
40793         (yylex): Use size_t for count, not int.
40794         Detect overflow when parsing large integer constants.
40795         Add support for fractions.
40796         (get_date): Make pointers 'const' if possible.
40797         Use more-portable code to detect integer overflow.
40798         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
40799         Don't use ctime; it's not reliable if the year has >4 digits.
40800
40801         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
40802         This is for compatibility with BSD.
40803
40804         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
40805         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
40806         From coreutils' system.h.
40807
40808         * lib/userspec.c: Don't include "posixver.h".
40809         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
40810         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
40811         compatible extension.  Simplify code by removing a boolean int
40812         that was always nonzero if a string was nonnull.
40813
40814 2004-03-30  Jim Meyering  <jim@meyering.net>
40815
40816         Merge from coreutils.
40817
40818         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
40819         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
40820         on some systems one must include <grp.h> before it.
40821         Reported by Christian Krackowizer.
40822
40823 2004-03-30  Jim Meyering  <jim@meyering.net>
40824
40825         Merge from coreutils.
40826
40827         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
40828
40829         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
40830         an empty input stream.
40831
40832         * lib/readtokens.c: Include <stdbool.h>.
40833         (readtoken): Use `size_t' rather than int/long.
40834         All callers adjusted.
40835         Use `bool' rather than `int' where appropriate.
40836         Use memset rather than an explicit loop.
40837         Use x2nrealloc rather than xrealloc.
40838         Allow the use of `\0' as a delimiter.
40839         (readtokens): Likewise.
40840         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
40841
40842 2004-03-30  Jim Meyering  <jim@meyering.net>
40843
40844         * m4/realloc.m4: Remove file, since now it does no more than
40845         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
40846         the `configure.ac' section of module/realloc.
40847         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
40848
40849 2004-03-30  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
40852         nonnull.
40853
40854 2004-03-29  Paul Eggert  <eggert@twinsun.com>
40855
40856         Merge changes to getloadavg.c from coreutils and Emacs.
40857
40858         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
40859         Define to an expression, not to the empty string.
40860         Include cloexec.h and xalloc.h.
40861         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
40862         Use set_cloexec_flag rather than rolling our own.
40863         * lib/cloexec.c, lib/cloexec.h: New files.
40864
40865 2004-03-29  Paul Eggert  <eggert@twinsun.com>
40866
40867         * m4/cloexec.m4: New file.
40868
40869 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40870
40871         * lib/getopt.h: Sync with libc CVS.
40872
40873 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40874             Bruno Haible  <bruno@clisp.org>
40875
40876         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
40877         mbswidth.
40878
40879 2004-03-18  Paul Eggert  <eggert@twinsun.com>
40880             Bruno Haible  <bruno@clisp.org>
40881
40882         * lib/mbswidth.h: Include <wchar.h> only if
40883         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
40884         <wchar.h>.
40885         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
40886
40887 2004-03-09  Paul Eggert  <eggert@twinsun.com>
40888
40889         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
40890         Sync with libc CVS.
40891         * lib/getopt_int.h: New file, also synced from libc.
40892
40893 2004-03-09  Paul Eggert  <eggert@twinsun.com>
40894
40895         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
40896         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
40897         Bring back getopt.c, getopt.h, getopt1.c.
40898
40899 2004-03-07  Paul Eggert  <eggert@twinsun.com>
40900
40901         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
40902         All uses changed.  Check for sa_sigaction member; this fixes
40903         a bug first reported by Jason Andrade in
40904         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
40905
40906 2004-03-07  Paul Eggert  <eggert@twinsun.com>
40907
40908         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
40909         '#if' expressions.  Unlike the code it replaces, it does not
40910         depend on (defined _SC_PAGESIZE).  However, it does depend on
40911         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
40912         first reported by Jason Andrade in
40913         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
40914
40915 2004-02-25  Simon Josefsson  <jas@extundo.com>
40916
40917         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
40918
40919 2004-02-25  Simon Josefsson  <jas@extundo.com>
40920
40921         * lib/strdup.h: New file.
40922         * lib/strdup.c: Include it.
40923         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
40924         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
40925
40926 2004-02-23  Karl Berry  <karl@gnu.org>
40927
40928         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
40929         (from fencepost.gnu.org:/gd/gnuorg).
40930
40931 2004-02-23  Karl Berry  <karl@gnu.org>
40932
40933         * config/srclistvars.sh (GNUORG) [karl]: redefine.
40934         * config/srclist.txt: add maintain/standards documents.
40935
40936 2004-02-18  Bruno Haible  <bruno@clisp.org>
40937
40938         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
40939         Reported by Derek Robert Price <derek@ximbiot.com>.
40940
40941 2004-02-16  Karl Berry  <karl@gnu.org>
40942
40943         * config/mkinstalldirs, install-sh: update from automake.
40944
40945 2004-02-06  Karl Berry  <karl@gnu.org>
40946
40947         * m4/po.m4: update from gettext 0.14.1.
40948
40949 2004-02-06  Karl Berry  <karl@gnu.org>
40950
40951         * lib/config.charset: update from gettext 0.14.1.
40952
40953 2004-02-05  Paul Eggert  <eggert@twinsun.com>
40954
40955         Add comments and code, prompted by suggestions from Bruno Haible
40956         for sh-quote.
40957         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
40958         describing the enum quoting_style values.
40959         * lib/quotearg.c (quotearg_alloc): New function.
40960         (quotearg_buffer_restyled): Treat lone { and } as special.
40961         Treat = as special.  Work around bug with older shells
40962         that "see" a '\' that is really the 2nd byte of a multibyte char.
40963         Quote empty string with shell_quoting_style.
40964
40965 2004-02-03  Bruno Haible  <bruno@clisp.org>
40966
40967         * m4/pipe.m4: New file, from GNU gettext.
40968
40969 2004-02-03  Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/pipe.h: New file, from GNU gettext.
40972         * lib/pipe.c: New file, from GNU gettext.
40973
40974 2004-01-27  Bruno Haible  <bruno@clisp.org>
40975
40976         * m4/execute.m4: New file, from GNU gettext.
40977
40978 2004-01-27  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/execute.h: New file, from GNU gettext.
40981         * lib/execute.c: New file, from GNU gettext.
40982         * lib/w32spawn.h: New file, from GNU gettext.
40983
40984 2004-01-24  Paul Eggert  <eggert@twinsun.com>
40985
40986         Merge from diffutils.
40987
40988         * lib/file-type.c (file_type): Add typed memory objects.
40989         * lib/file-type.h (S_TYPEISTMO): New macro.
40990
40991         * lib/c-stack.h (c_stack_action): Remove argv argument.
40992         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
40993         (die): Don't calculate message unless segv_action returns.
40994         (get_stack_location, min_address_from_argv, max_address_from_argv,
40995         volatile stack_base, volatile_stack_size): Remove.
40996         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
40997         that every segmentation violation is a stack overflow.  (Ouch!)
40998         See Debian bug 136249 (still outstanding) for more info about why
40999         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41000
41001 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41002
41003         Exit-status fix from coreutils.
41004
41005         Use exit_failure consistently in place of EXIT_FAILURE,
41006         so that program exit statuses are consistent on failure.
41007
41008         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41009         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41010         * lib/argmatch.h: Comment fix to match the above.
41011         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41012         Now a macro referring to exit_failure, instead of a separate
41013         variable.  Include "exitfail.h" to get it.
41014         * lib/xstrtol.h: Include "exitfail.h".
41015         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41016
41017         * lib/long-options.c (parse_long_options): Use prototype
41018         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41019         for clarity.
41020
41021 2004-01-21  Jim Meyering  <jim@meyering.net>
41022
41023         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41024         so as not to conflict with a different-sized __mktime_internal
41025         function in GNU libc.
41026         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41027         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41028
41029 2004-01-20  Karl Berry  <karl@gnu.org>
41030
41031         * config/config.guess: update from config.
41032
41033         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41034
41035 2004-01-20  Bruno Haible  <bruno@clisp.org>
41036
41037         Safer stack allocation.
41038         * lib/setenv.c: Include allocsa.h.
41039         (alloca): Remove fallback definition.
41040         (freea): Remove macro.
41041         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41042         instead of freea.
41043
41044 2004-01-20  Bruno Haible  <bruno@clisp.org>
41045
41046         * m4/eealloc.m4: New file, from GNU gettext.
41047
41048 2004-01-20  Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/allocsa.m4: New file, from GNU gettext.
41051
41052 2004-01-20  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/xallocsa.h: New file, from GNU gettext.
41055         * lib/xallocsa.c: New file, from GNU gettext.
41056
41057 2004-01-20  Bruno Haible  <bruno@clisp.org>
41058
41059         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41060
41061 2004-01-20  Bruno Haible  <bruno@clisp.org>
41062
41063         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41064         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41065         specially.
41066
41067 2004-01-20  Bruno Haible  <bruno@clisp.org>
41068
41069         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41070         patch.
41071
41072 2004-01-20  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41075
41076 2004-01-20  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/eealloc.h: New file.
41079
41080 2004-01-20  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/binary-io.h: Avoid warnings on Cygwin.
41083
41084 2004-01-20  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/allocsa.h: New file, from GNU gettext.
41087         * lib/allocsa.c: New file, from GNU gettext.
41088
41089 2004-01-18  Karl Berry  <karl@gnu.org>
41090
41091         * doc/gpl.texi, doc/lgpl.texi: new files.
41092
41093 2004-01-18  Karl Berry  <karl@gnu.org>
41094
41095         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41096         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41097
41098 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41099
41100         Merge from coreutils.
41101
41102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41103         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41104         (gl_DEFAULT_POSIX2_VERSION): Move
41105         the documentation from 'configure' into 'config.hin',
41106         so that 'configure --help' isn't burdened by it and
41107         we don't have to worry about its formatting there.
41108         Reword the documentation so that it's more succinct
41109         and can be run together into a single paragraph.
41110         * m4/same.m4 (gl_SAME): Check for pathconf.
41111
41112 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41113
41114         Merge from coreutils.
41115
41116         * lib/posixver.c: Include posixver.h.
41117
41118         * lib/same.c: Include <stdbool.h>, <limits.h>.
41119         (_POSIX_NAME_MAX): Define if not defined.
41120         (MIN): New macro.
41121         (same_name): If file names are silently truncated, report
41122         that the file names are the same if they are the same after
41123         the silent truncation.
41124
41125         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41126         conversion function.
41127         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41128         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41129         longer needed.
41130
41131 2004-01-15  Jim Meyering  <jim@meyering.net>
41132
41133         Merge from coreutils.
41134
41135         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41136         if no library is required.
41137         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41138         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41139         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41140         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41141         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41142         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41143         value, $ac_cv_search_crypt, if it's "none required".
41144         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41145         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41146         not gl_FUNC_GETLOADAVG.
41147         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41148         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41149
41150 2004-01-15  Jim Meyering  <jim@meyering.net>
41151
41152         Merge from coreutils.
41153
41154         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41155         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41156         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41157
41158         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41159         optional configure-time default.
41160
41161         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41162
41163         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41164
41165 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41166
41167         Merge from coreutils.
41168
41169         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41170         value, $ac_cv_search_nanosleep, if it's "none required".
41171
41172 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41173
41174         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41175         with like-named macro in fnmatch.c.
41176         (EXT): Use an internal constant instead.
41177
41178         Merge fnmatch patches from glibc.
41179         * lib/fnmatch.c (mbsinit): Remove define.
41180         Add libc_hidden_ver (__fnmatch, fnmatch).
41181         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41182         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41183
41184 2004-01-14  Karl Berry  <karl@gnu.org>
41185
41186         * config/install-sh: update from automake.
41187
41188 2004-01-13  Karl Berry  <karl@gnu.org>
41189
41190         * config/install-sh: update from automake.
41191
41192 2004-01-09  Karl Berry  <karl@gnu.org>
41193
41194         * config/install-sh: update from automake.
41195
41196 2004-01-05  Karl Berry  <karl@gnu.org>
41197
41198         * config/config.{sub,guess}: update from config.
41199
41200 2003-12-31  Karl Berry  <karl@gnu.org>
41201
41202         * config/depcomp: update from automake.
41203
41204 2003-12-14  Karl Berry  <karl@gnu.org>
41205
41206         * lib/config.charset: update from gettext-runtime.
41207
41208 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41209
41210         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41211         Bug reported by Alfred M. Szmidt.
41212
41213 2003-12-03  Bruno Haible  <bruno@clisp.org>
41214
41215         * m4/gettext.m4: Upgrade from gettext-0.13.
41216         * m4/po.m4: Upgrade from gettext-0.13.
41217         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41218         * m4/intmax.m4: New file, from gettext-0.13.
41219         * m4/printf-posix.m4: New file, from gettext-0.13.
41220
41221 2003-11-29  Karl Berry  <karl@gnu.org>
41222
41223         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41224
41225 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41226             Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/printf-parse.h: Don't include sys/types.h.
41229         (ARG_NONE): New macro.
41230         (char_directive): Change type of *arg_index fields to size_t.
41231         * lib/printf-parse.c: Don't include sys/types.h.
41232         (SSIZE_MAX): Remove macro.
41233         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41234         Remove unnecessary overflow check.
41235         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41236         fields.
41237
41238 2003-11-25  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41241
41242 2003-11-25  Bruno Haible  <bruno@clisp.org>
41243
41244         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41245         gt_TYPE_SSIZE_T.
41246
41247 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41248
41249         * modules/alloca: Remove dependency on xalloc.
41250
41251 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41252
41253         * lib/alloca.c: Remove dependency on xalloc module.
41254         (xalloc_die): Remove.
41255         (memory_full) [!defined emacs]: New macro.
41256         [!defined emacs]: Don't include xalloc.h.
41257         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41258         address arithmetic overflows.  Change datatypes a bit to avoid
41259         unnecessary casts.
41260
41261 2003-11-22  Jim Meyering  <jim@meyering.net>
41262
41263         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41264         s/size/size_t/.
41265
41266 2003-11-21  Karl Berry  <karl@gnu.org>
41267
41268         * config/config.{sub,guess}: update from config.
41269
41270 2003-11-18  Karl Berry  <karl@gnu.org>
41271
41272         * config/config.{sub,guess}: update from config.
41273
41274         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41275
41276 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41277
41278         * README: Mention that S+T cannot overflow if S is the size of
41279         an existing object and T is sufficiently small.
41280
41281 2003-11-17  Jim Meyering  <jim@meyering.net>
41282
41283         On systems without utime and without a utimes function capable of
41284         dealing with a NULL struct utimbuf* argument, this utime replacement
41285         could -- in unusual circumstances -- leak a file descriptor.
41286         * lib/utime.c: Include <unistd.h> and <errno.h>.
41287         (utime_null): Be sure to close `fd' and to preserve errno.
41288         Reported by Geoff Collyer via Arnold Robbins.
41289
41290 2003-11-17  Bruno Haible  <bruno@clisp.org>
41291
41292         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41293         (Depends-on): Add xsize.
41294
41295 2003-11-17  Bruno Haible  <bruno@clisp.org>
41296
41297         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41298
41299 2003-11-17  Bruno Haible  <bruno@clisp.org>
41300
41301         * lib/vasnprintf.c (alloca): Remove fallback definition.
41302         (freea): Remove definition.
41303         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41304         Reported by Paul Eggert.
41305
41306 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41307             Bruno Haible  <bruno@clisp.org>
41308
41309         Protect against address arithmetic overflow.
41310         * lib/printf-args.h: Include stddef.h.
41311         (arguments): Change type of field 'count' to size_t.
41312         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41313         'unsigned int' where appropriate.
41314         * lib/printf-parse.h: Include sys/types.h.
41315         (char_directive): Change type of *arg_index fields to ssize_t.
41316         (char_directives): Change type of fields 'count', max_*_length to
41317         size_t.
41318         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41319         (SSIZE_MAX): Define fallback value.
41320         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41321         instead of 'int' where appropriate. Check a_allocated, d_allocated
41322         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41323         * lib/vasnprintf.c: Include xsize.h.
41324         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41325         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41326         overflow. Avoid wraparound when converting a width or precision from
41327         decimal to binary.
41328
41329 2003-11-16  Bruno Haible  <bruno@clisp.org>
41330
41331         Update from GNU gettext.
41332         * lib/printf-parse.c: Generalize to it can be compiled for wide
41333         strings.
41334         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41335         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41336         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41337         SNPRINTF): New macros.
41338         Don't include <alloca.h> if the file is used inside libintl.
41339         (local_wcslen): New function, for Solaris 2.5.1.
41340         (VASNPRINTF): Use it instead of wcslen.
41341
41342 2003-11-16  Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/xsize.h (xmax): New function.
41345         (xsum, xsum3, xsum4): Declare as "pure" functions.
41346
41347 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41348
41349         * modules/xalloc (Files): Undo latest change, since xalloc.h
41350         no longer needs SIZE_MAX or PTRDIFF_MAX.
41351
41352 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41353
41354         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41355         gl_PTRDIFF_MAX.
41356
41357 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41358
41359         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41360         "return", to pacify some unknown compiler.  Problem reported
41361         by Joerg Schilling.
41362
41363 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41364
41365         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41366         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41367         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41368         heuristic is just as accurate as far as we know, and it removes a
41369         dependency on size_max.m4 and ptrdiff_max.m4.
41370
41371 2003-11-11  Bruno Haible  <bruno@clisp.org>
41372
41373         * modules/xsize (Files): Add m4/size_max.m4.
41374         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41375
41376 2003-11-11  Bruno Haible  <bruno@clisp.org>
41377
41378         * m4/size_max.m4: New file.
41379         * m4/ptrdiff_max.m4: New file.
41380         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41381         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41382         (gl_XALLOC): Invoke it.
41383
41384 2003-11-11  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41387         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41388         defined.
41389
41390 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41391
41392         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41393         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41394         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41395         From Bruno Haible.
41396         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41397         not (size_t) -1, since it's defined here.
41398
41399 2003-11-09  Karl Berry  <karl@gnu.org>
41400
41401         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41402
41403 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41404
41405         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41406         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41407         Reject sizes of exactly SIZE_MAX bytes.
41408         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41409         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41410
41411 2003-11-05  Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41414         SIZE_MAX defined in <limits.h> on Solaris.
41415
41416 2003-11-04  Jim Meyering  <jim@meyering.net>
41417
41418         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41419         variable names, rather than @VAR@.
41420         * modules/poll: Likewise.
41421
41422 2003-11-04  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/xsize: New file.
41425         * modules/linebreak: Depend on xsize.
41426         * MODULES.html.sh (func_all_modules): Add xsize.
41427
41428 2003-11-04  Bruno Haible  <bruno@clisp.org>
41429
41430         * m4/xsize.m4: New file.
41431
41432 2003-11-04  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/xsize.h: New file.
41435         * lib/linebreak.c: Include xsize.h.
41436         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41437         argument for overflow.
41438         Suggested by Paul Eggert.
41439
41440 2003-11-03  Karl Berry  <karl@gnu.org>
41441
41442         * config/config.{guess,sub}: update from config.
41443
41444 2003-11-03  Jim Meyering  <jim@meyering.net>
41445
41446         * modules/userspec (lib_SOURCES): Add userspec.h.
41447         (Include): Add "userspec.h".
41448         Improve description.
41449
41450 2003-11-03  Jim Meyering  <jim@meyering.net>
41451
41452         * lib/userspec.c: Include "userspec.h".
41453         * lib/userspec.h: New file.
41454
41455 2003-11-03  Bruno Haible  <bruno@clisp.org>
41456
41457         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41458
41459 2003-11-03  Bruno Haible  <bruno@clisp.org>
41460
41461         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41462         available, to avoid (extremely rare) race condition.
41463         Suggested by Paul Eggert.
41464
41465 2003-11-02  Karl Berry  <karl@gnu.org>
41466
41467         * config/srclist.txt (vasprintf.c): sync broken, sigh.
41468
41469 2003-10-31  Paul Eggert  <eggert@twinsun.com>
41470
41471         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41472         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41473         (read_filesystem_list): Set and use me_type_malloced.
41474         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41475         whatever the type happens to be), for brevity and consistency.
41476         Check for size calculation overflow on Alphas running OSF/1.
41477
41478 2003-10-31  Jim Meyering  <jim@meyering.net>
41479
41480         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41481
41482         * lib/linebuffer.c: Include <string.h> for declaration of memset.
41483
41484 2003-10-30  Paul Eggert  <eggert@twinsun.com>
41485             Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41488         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41489
41490 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41493         netbsd*-gnu*.  Suggested by Robert Millan.
41494
41495 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41496
41497         * modules/group-member: Depend on stdbool.
41498
41499 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41500
41501         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41502
41503 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41504
41505         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
41506         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
41507         after the 'gnu' in these cases.  This fixes some bugs in the
41508         previous change, and is based on suggestions by Robert Millan.
41509
41510 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41511
41512         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41513         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
41514         no longer needed.
41515         * lib/quotearg.c (quotearg_n_options): Use it.
41516         * lib/group-member.c: Include <stdbool.h>.
41517         (free_group_info): Arg is now const *; don't free arg.
41518         (get_group_info): Now returns bool and accepts struct group_info *,
41519         rather than returning a malloc'ed struct group_info *.
41520         All uses changed.  Check for overflow in internal size calculation.
41521
41522         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41523         rather than xmalloc/xrealloc.
41524         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41525         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
41526         conformance bug: the old code used a pointer after freeing the
41527         storage that it addressed.
41528         * lib/hash.c (hash_initialize): Simplify the code by using
41529         xalloc_oversized rather than doing it by hand.
41530         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41531         the buffer preserved.  Use free and xmalloc instead.
41532         * lib/quotearg.c (quotearg_n_options): Likewise.
41533         Use a simpler test for size overflow.  Don't use xalloc_oversized
41534         because unsigned int might be wider than size_t (!); this suggests
41535         that we should switch from unsigned int to size_t for slot numbers.
41536
41537 2003-10-28  Paul Eggert  <eggert@twinsun.com>
41538
41539         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41540         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
41541         NetBSD kernels.  Requested by Richard Stallman.
41542
41543 2003-10-27  Paul Eggert  <eggert@twinsun.com>
41544
41545         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41546         to allocate the returned structure.  Do not allocate a subarray,
41547         as x2nrealloc will do that.
41548         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41549         instead of xnrealloc.
41550         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41551
41552 2003-10-27  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/stdbool_.h: Better support for BeOS.
41555
41556 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41557
41558         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41559         now uses inline.
41560
41561 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41562
41563         * lib/xalloc.h (xalloc_oversized): New static inline function, for
41564         callers that want to do their own size-overflow checking.  Include
41565         <stdbool.h>, since xalloc_oversized returns bool.
41566         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
41567         to use xalloc_oversized.
41568
41569         Add two functions x2realloc, x2nrealloc, for programs that grow
41570         arrays dynamically by doubling their sizes.
41571         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41572         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41573         New functions.
41574
41575         Port to C99 semantics for 'inline' of external functions.
41576         Bug reported by Bruno Haible.
41577         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41578         with the old contents of xnmalloc.
41579         (xnmalloc, xmalloc): Use it.
41580         (xnrealloc_inline): New static inline function,
41581         with the old contents of xnrealloc.
41582         (xnrealloc, xrealloc): Use it.
41583
41584         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41585         that.
41586
41587 2003-10-26  Karl Berry  <karl@gnu.org>
41588
41589         * config/srclist.txt (COPYING.DOC): no longer available from
41590         /gd/gnuorg; don't know where the ultimate source is.
41591
41592 2003-10-25  Paul Eggert  <eggert@twinsun.com>
41593
41594         Fix several address-calculation bugs in the hash modules,
41595         plus some minor code cleanup.
41596
41597         * lib/hash.h: Include <stdbool.h>, for bool.
41598         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41599         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41600         hash_get_n_entries, hash_get_max_bucket_length,
41601         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41602         hash_rehash): Use size_t rather than unsigned.
41603         * lib/hash.c (struct hash_table, hash_get_n_buckets,
41604         hash_get_n_buckets_used, hash_get_n_entries,
41605         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41606         hash_get_entries, hash_do_for_each, hash_string, is_prime,
41607         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41608         Likewise.
41609         (SIZE_MAX): Define if not defined.
41610         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
41611         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
41612         hash_print):
41613         Use const * when possible.
41614         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
41615         (check_tuning): Fix bug: if tuning parameters were very close to
41616         0 or 1, rounding errors could have caused subscript violations.
41617         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
41618         (hash_initialize): Add 'fail:' label
41619         to free table and return NULL, and use it to simplify code.
41620         Use calloc rather than clearing the storage ourself.
41621         (hash_initialize, hash_rehash): Check for arithmetic overflow in
41622         buffer size calculations.
41623         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
41624         Include <stddef.h>, for size_t.
41625         * lib/hash-pjw.c (hash_pjw): Likewise.
41626         Switch to method described by Bruno Haible.
41627         Include <limits.h>, for CHAR_BIT.
41628         (SIZE_BITS): New macro.
41629
41630 2003-10-23  Paul Eggert  <eggert@twinsun.com>
41631
41632         * m4/getline.m4 (AM_FUNC_GETLINE):
41633         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
41634         hosts.  Problem reported by Derek Robert Price in
41635         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
41636         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
41637         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
41638
41639 2003-10-21  Paul Eggert  <eggert@twinsun.com>
41640
41641         * lib/getndelim2.c (getndelim2): When size calculation overflows,
41642         ceiling the allocation at NMAX bytes rather than silently
41643         discarding input bytes before NMAX is reached.  This makes
41644         a difference only if NMAX exceeds SIZE_MAX / 2.
41645
41646         * lib/obstack.c: Merge from glibc.
41647         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
41648         Add libc_hidden_def (_obstack_newchunk).
41649         (_obstack_free) [! defined _LIBC]: Remove.
41650         [defined _LIBC]: Make a strong alias from obstack_free, rather than
41651         a clone of the function body.
41652         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
41653         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
41654
41655         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
41656         glibc.
41657         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
41658         arg to memcpy.
41659
41660         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
41661         (obstack_ptr_grow_fast, obstack_int_grow_fast):
41662         Don't use lvalue casts, as GCC plans to remove support for them
41663         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
41664         was also present in the non-GCC version, indicating that this
41665         code had always been buggy and had never been widely used.
41666         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
41667         Use the fast variant of each macro, rather than copying the
41668         definiens of the fast variant; that way, we'll be more likely to
41669         catch future bugs in the fast variants.
41670
41671 2003-10-20  Bruno Haible  <bruno@clisp.org>
41672
41673         * modules/wait-process: New file.
41674         * MODULES.html.sh (func_all_modules): Add wait-process.
41675
41676 2003-10-20  Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/wait-process.m4: New file.
41679
41680 2003-10-20  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/wait-process.h: New file, from GNU gettext.
41683         * lib/wait-process.c: New file, from GNU gettext.
41684
41685 2003-10-19  Jim Meyering  <jim@meyering.net>
41686
41687         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
41688         HPUX 10.20.
41689
41690 2003-10-18  Karl Berry  <karl@gnu.org>
41691
41692         * config/config.guess: update from config.
41693
41694 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41695
41696         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
41697         (getgroups): First arg is int, not size_t.
41698         Don't let 'free' mangle errno.
41699
41700 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41701
41702         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
41703
41704 2003-10-16  Karl Berry  <karl@gnu.org>
41705
41706         * config/config.{guess,sub}: update from config.
41707
41708 2003-10-16  Jim Meyering  <jim@meyering.net>
41709
41710         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
41711         memcpy.
41712
41713 2003-10-15  Paul Eggert  <eggert@twinsun.com>
41714
41715         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
41716         (SIZE_MAX): Remove.
41717         (new_exclude, add_exclude_file): Initial size no longer needs to
41718         be a power of 2.
41719         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
41720         our own address arithmetic overflow checking.
41721
41722         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
41723         (fnmatch): Do not alloca more than 2000 wide characters;
41724         instead, use malloc for large buffers.
41725         Check for address arithmetic overflow, and return -1
41726         with errno set to ENOMEM in that case.
41727         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
41728         (NEW_PATTERN): Do not alloca more than 8000 bytes;
41729         instead, return -1.  Check for address arithmetic overflow.
41730
41731 2003-10-14  Paul Eggert  <eggert@twinsun.com>
41732
41733         Handle invalid suffixes and overflow independently, so that
41734         callers can treat them independently as needed.  Fix some bugs in
41735         suffix handling, e.g., "100k@" was not diagnosed as an invalid
41736         suffix for a human-readable blocksize.  The major caller-visible
41737         change is the addition of a new
41738         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
41739         that both overflow and suffix chars were found.
41740
41741         * lib/human.c (humblock): Don't check separately for invalid suffix
41742         char; that is xstrtoumax's job (now that its bug is fixed).
41743         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
41744         INTMAX_MAX]: New macros.
41745         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
41746         TYPE_MAXIMUM): New macros.
41747         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
41748         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
41749         if overflow occurs, as it's what __strtol does and it's more useful
41750         in practice.
41751         (__xstrtol): If __strtol reports some error other than ERANGE,
41752         reflect it to the caller as LONGINT_INVALID.  If it reports
41753         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
41754         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
41755         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
41756         value.
41757         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
41758         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
41759         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
41760         [defined UINTMAX_MAX]: New macros.
41761
41762 2003-10-14  Bruno Haible  <bruno@clisp.org>
41763
41764         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
41765
41766 2003-10-14  Bruno Haible  <bruno@clisp.org>
41767
41768         * m4/sig_atomic_t: New file, from GNU gettext.
41769         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
41770
41771 2003-10-14  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
41774         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
41775         Also use volatile where needed.
41776
41777 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41778
41779         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
41780         Change maintainer from Bruno Haible to 'all'.
41781
41782 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41783
41784         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
41785
41786 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41787
41788         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
41789         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
41790         and define in terms of the other primitives.
41791         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
41792         (SIZE_MAX): Define if not already defined.
41793         (array_size_overflow): New function.
41794         (xalloc_die): Abort instead of exiting if 'error' returns.
41795         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
41796         (xmalloc, xrealloc): Use them.
41797         (xcalloc): Check for address arithmetic overflow.
41798         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
41799         a bit faster than strcpy.
41800
41801 2003-10-10  Simon Josefsson  <jas@extundo.com>
41802
41803         * modules/argp (Depends-on): Add restrict and strcase.
41804
41805 2003-10-10  Simon Josefsson  <jas@extundo.com>
41806
41807         * m4/argp.m4: Add AC_C_INLINE.
41808
41809 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41810
41811         Merge getpass from libc, plus a few fixes.
41812
41813         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
41814         Include <stdbool.h>.
41815         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
41816         __fsetlocking to empty.
41817         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
41818         do include <bits/libc-lock.h>.
41819         Do not include <fcntl.h>; not needed.
41820         [_LIBC]: Include <wchar.h>.
41821         (NOTCANCEL_MODE): New macro.
41822         (flockfile, funlockfile) [_LIBC]: New macros.
41823         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
41824         [!_LIBC]: New macros.
41825         (call_fclose): New function.
41826         (getpass): Use it.  Save tty stream separately; this simplifies the
41827         code and makes it more reliable if stdin happens to equal stdout.
41828         Invoke __fsetlocking on tty.
41829         Handle thread cancellation if needed.
41830         Namespace cleanup (use __tcgetattr, __getline).
41831         Use bool for Booleans.
41832         [USE_IN_LIBIO]: Handle wide streams.
41833         [!_LIBC]: Unconditionally do the fseek, since we don't know what
41834         stream might go where.
41835
41836         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
41837         doesn't have to include <stdio.h> before us.
41838         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
41839         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
41840         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
41841         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
41842         if not declared, so that we can use getpass.c code from libc without
41843         rewriting it.
41844         (flockfile, ftrylockfile, funlockfile): New macros.
41845
41846 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41847
41848         * modules/getpass: Depend on stdbool.
41849
41850 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41851
41852         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
41853
41854 2003-10-07  Karl Berry  <karl@gnu.org>
41855
41856         * config/config.{guess,sub}: update from config.
41857
41858 2003-10-06  Jim Meyering  <jim@meyering.net>
41859             Bruno Haible  <bruno@clisp.org>
41860
41861         This lets translators provide better translations for the
41862         "Written by ..." part of --version output.
41863         * lib/version-etc.h: Include stdarg.h.
41864         (version_etc_copyright): Declare as readonly.
41865         (version_etc): Make this function variadic with a NULL-terminated list
41866         of author name strings.
41867         (version_etc_va): New declaration.
41868         * lib/version-etc.c: Include stdarg.h, stdlib.h.
41869         (version_etc_copyright): Declare as readonly.
41870         (version_etc_va): New function. Provide a different translatable string
41871         for each possible number of authors < 10. Abbreviate when there are 10
41872         authors or more.
41873         (version_etc): Make this function variadic. Call version_etc_va.
41874         Suggestion from Gary V. Vaughan.
41875
41876         * lib/long-options.h (parse_long_options): Change prototype: the
41877         authors string is moved to the end and becomes variadic.
41878         * lib/long-options.c: Include stdarg.h.
41879         (parse_long_options): Make this function variadic, too.
41880         Call version_etc_va, not version_etc.
41881
41882 2003-10-06  Bruno Haible  <bruno@clisp.org>
41883
41884         * modules/version-etc-2: Remove file.
41885         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
41886
41887 2003-10-06  Bruno Haible  <bruno@clisp.org>
41888
41889         * modules/fatal-signal: New file.
41890         * MODULES.html.sh (func_all_modules): Add fatal-signal.
41891
41892 2003-10-06  Bruno Haible  <bruno@clisp.org>
41893
41894         * m4/fatal-signal.m4: New file.
41895         * m4/signalblocking.m4: New file, from GNU gettext.
41896
41897 2003-10-06  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/version-etc-2.h: Remove file.
41900         * lib/version-etc-2.c: Remove file.
41901
41902 2003-10-06  Bruno Haible  <bruno@clisp.org>
41903
41904         * lib/fatal-signal.h: New file, from GNU gettext.
41905         * lib/fatal-signal.c: New file, from GNU gettext.
41906
41907 2003-10-05  Paul Eggert  <eggert@twinsun.com>
41908
41909         * README: Rework advice for preventing empty .o files.
41910         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
41911         not <sys/types.h>.
41912
41913 2003-10-04  Karl Berry  <karl@gnu.org>
41914
41915         * lib/argp*: update from libc.
41916
41917 2003-10-04  Karl Berry  <karl@gnu.org>
41918
41919         * config/config.{guess,sub}: update from config.
41920
41921 2003-10-02  Bruno Haible  <bruno@clisp.org>
41922
41923         * modules/lchown (Include): Add lchown.h.
41924         * modules/time_r (Include): Use "..." syntax.
41925         * modules/xgetdomainname (Include): Add xgetdomainname.h.
41926
41927 2003-10-01  Simon Josefsson  <jas@extundo.com>
41928
41929         * MODULES.html.sh (func_all_modules): Move gethostname from section
41930         'based on' to section 'lacking' POSIX:2001.
41931
41932 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
41933
41934         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
41935         to output mode on the same stream.
41936
41937 2003-09-29  Paul Eggert  <eggert@twinsun.com>
41938
41939         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
41940         Fix arg typo in previous patch.
41941
41942 2003-09-28  Jim Meyering  <jim@meyering.net>
41943
41944         * lib/error.c: Correct cpp indentation.
41945
41946 2003-09-27  Paul Eggert  <eggert@twinsun.com>
41947
41948         * modules/free: New file.
41949
41950 2003-09-27  Paul Eggert  <eggert@twinsun.com>
41951
41952         * m4/free.m4: New file.
41953
41954 2003-09-27  Paul Eggert  <eggert@twinsun.com>
41955
41956         * lib/minmax.h (MIN, MAX)
41957         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
41958         Omit the special code that used __typeof__, since we worry that
41959         it could be more trouble than it's worth.  See:
41960         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
41961         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
41962
41963         * lib/free.c: New file.
41964
41965 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
41966
41967         Trivial fixes to Makefile.am parts of module listings.
41968         * modules/strstr: Append strstr.h to lib_SOURCES.
41969         * modules/strcase: Likewise, for strcase.h.
41970
41971 2003-09-27  Karl Berry  <karl@gnu.org>
41972
41973         * config/mkinstalldirs: update from automake.
41974
41975 2003-09-26  Paul Eggert  <eggert@twinsun.com>
41976
41977         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
41978         (error_tail): Do not loop, reallocating temporary buffer, since
41979         the output cannot contain more wide characters than the input
41980         contains bytes, the size must be big enough already.  This avoids
41981         one potential size overflow calculation.  Check for size overflow
41982         when calculating temporary buffer size.  Free temporary buffer
41983         when done, if it was allocated with malloc; this plugs a memory
41984         leak.  Remove casts from void * to pointers, that are no longer
41985         needed now that we're assuming C89 or better.
41986
41987         Merge error changes from glibc.
41988
41989         * lib/error.c, error.h: Update copyright notice header to match glibc.
41990         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
41991         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
41992         Disable cancellation while printing error.
41993         * lib/error.h: Prepend __ to parameter names.
41994
41995 2003-09-26  Jim Meyering  <jim@meyering.net>
41996
41997         * lib/error.c (error_tail): Move some declarations
41998         into inner scope where the local variables are used.
41999
42000 2003-09-26  Bruno Haible  <bruno@clisp.org>
42001
42002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42003         stpncpy().
42004         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42005
42006 2003-09-26  Bruno Haible  <bruno@clisp.org>
42007
42008         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42009         (stpncpy): Define as alias for gnu_stpncpy.
42010         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42011
42012 2003-09-25  Simon Josefsson  <jas@extundo.com>
42013
42014         * lib/xgetdomainname.h: New file.
42015         * lib/xgetdomainname.c: New file.
42016
42017 2003-09-25  Simon Josefsson  <jas@extundo.com>
42018             Bruno Haible  <bruno@clisp.org>
42019
42020         * modules/getdomainname: New file.
42021         * modules/xgetdomainname: New file.
42022         * MODULES.html.sh (func_all_modules): Add getdomainname,
42023         xgetdomainname.
42024
42025 2003-09-25  Simon Josefsson  <jas@extundo.com>
42026             Bruno Haible  <bruno@clisp.org>
42027
42028         * m4/getdomainname.m4: New file.
42029
42030 2003-09-25  Simon Josefsson  <jas@extundo.com>
42031             Bruno Haible  <bruno@clisp.org>
42032
42033         * lib/getdomainname.h: New file.
42034         * lib/getdomainname.c: New file.
42035
42036 2003-09-25  Karl Berry  <karl@gnu.org>
42037
42038         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42039
42040 2003-09-25  Karl Berry  <karl@gnu.org>
42041
42042         * config/install-sh: update from automake.
42043
42044 2003-09-25  Bruno Haible  <bruno@clisp.org>
42045
42046         * modules/version-etc-2: New file, from modules/version-etc with
42047         modifications.
42048         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42049
42050 2003-09-25  Bruno Haible  <bruno@clisp.org>
42051
42052         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42053         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42054
42055 2003-09-24  Simon Josefsson  <jas@extundo.com>
42056
42057         * modules/xgethostname: Add xgethostname.h.
42058
42059 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42060
42061         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42062         the buffer associated with the argument.  Bug reported by
42063         Simon Josefsson.
42064
42065 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42066
42067         * README: Document assumptions that 'int' is at least 32 bits
42068         wide, that integer arithmetic is 2's complement without overflow,
42069         that there are no holes in integer values, that adding sizes of
42070         two nonoverlapping objects can't overflow, and that all-bits-zero
42071         yields scalar zero.  Fix spelling and capitalization typos.
42072
42073 2003-09-19  Karl Berry  <karl@gnu.org>
42074
42075         * lib/argp.h: update from libc.
42076
42077 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42078
42079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42080         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42081         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42082
42083 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42084
42085         * gnulib-tool: Use "test -h", not "test -L", for portability
42086         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42087         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42088         (sed_extract_prog): Issue s commands one-by-one, rather than
42089         using \| in one s command.
42090
42091 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42092
42093         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42094         input error, instead of returning NULL the next time we are called
42095         (and therefore losing track of errno).
42096
42097 2003-09-16  Bruno Haible  <bruno@clisp.org>
42098
42099         * gnulib-tool (func_create_testdir): Warn about duplicated
42100         dependencies.
42101
42102 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42103
42104         * modules/argmatch, modules/fatal, modules/obstack,
42105         modules/xalloc, modules/xgethostname: Sort dependencies by
42106         importance, not alphabetically.
42107
42108 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42109
42110         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42111         fails, so that the caller gets the proper errno.
42112
42113         * lib/readutmp.c (read_utmp): Likewise.
42114         Check for fstat error.  Close stream and free storage
42115         when failing.
42116
42117 2003-09-14  Karl Berry  <karl@gnu.org>
42118
42119         * config/srclist.txt (strdup.c): disable for c89 changes.
42120
42121 2003-09-14  Jim Meyering  <jim@meyering.net>
42122
42123         * lib/getloadavg.c: Correct cpp indentation.
42124         * lib/strdup.c: Likewise.
42125         * lib/vasnprintf.c: Likewise.
42126
42127 2003-09-14  Bruno Haible  <bruno@clisp.org>
42128
42129         * modules/fwriteerror: New file.
42130         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42131
42132 2003-09-14  Bruno Haible  <bruno@clisp.org>
42133
42134         * lib/fwriteerror.h: New file.
42135         * lib/fwriteerror.c: New file.
42136
42137 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42138
42139         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42140         modules/xgethostname, modules/xalloc: Depend on exit.
42141
42142 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42143
42144         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42145
42146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42147         and AC_MINIX, too, so that their extensions are available.
42148
42149         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42150         This macro has been superseded by gl_BACKUPFILE.
42151
42152         More patches to assume C89 or better.
42153
42154         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42155
42156         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42157         unconditionally.
42158         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42159         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42160         Include <string.h>, <stdlib.h> unconditionally.
42161         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42162         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42163         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42164         headers or for string.h.
42165         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42166         or strtoul.
42167
42168         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42169         headers.
42170         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42171         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42172         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42173         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42175         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42176         memcpy, memset.
42177         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42178         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42179         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42180         strtol.
42181         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42182         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42183         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42184         strtoul.
42185
42186 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42187
42188         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42189         * lib/obstack.c [!defined _LIBC]: Likewise.
42190         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42191         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42192         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42193
42194         More changes to assume C89 or better.
42195
42196         * lib/error.c (error_tail): Assume vprintf.
42197
42198         * lib/argmatch.c (getenv): Remove decl.
42199         * lib/progreloc.c (get_full_program_name): Define via prototype.
42200         * lib/setenv.c (clearenv): Likewise.
42201         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42202         needed.
42203         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42204         (malloc, memcpy): Remove decls.
42205         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42206         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42207         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42208         (memcpy): Remove macro.
42209         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42210         (__P): Remove.  All uses removed.
42211         (PTR): Remove.  All uses changed to void *.
42212         (CHAR_BIT, NULL): Remove.
42213         (spaces, zeros, memset_space, memset_zero)
42214         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42215         Remove.
42216         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42217         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42218         Define with prototype.
42219         Remove now-unnecessary prototype decl.
42220         (extra_args_spec): Assume ANSI C.  All uses changed.
42221         (extra_args_spec_iso): Remove.
42222         (my_strftime, emacs_strftimeu): Define via prototype.
42223         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42224         unconditionally.
42225         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42226         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42227         (strtoul, strtol): Remove decls.
42228         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42229         LONG_MAX): Remove.
42230         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42231         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42232         (LOCALE_PARAM_PROTO): New macro.
42233         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42234         (INTERNAL (strtol), strtol): Define with a prototype.
42235         (PARAMS): Remove.  All uses removed.
42236         * lib/tempname.c: Include <string.h> unconditionally.
42237         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42238         * lib/xgethostname.c (main): Define with a prototype.
42239         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42240         Include <stdlib.h> unconditionally.
42241         (calloc, malloc, realloc, free): Remove decls.
42242         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42243         Include <stdlib.h> unconditionally.  Sort include file names.
42244         (strtod): Remove.
42245         (xstrtod): Define with a prototype.
42246         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42247         (strtol, strtoul): Remove decls.
42248
42249 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42250
42251         More patches to assume C89 or better.
42252         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42253         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42254         string.h, memchr, STDC_HEADERS.
42255
42256 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42257
42258         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42259         Include <stdlib.h>, <string.h> unconditionally.
42260         Remove now-unnecessary cast to char *.
42261         * lib/strnlen.c: Include <string.h> unconditionally.
42262         * lib/yesno.c (yesno): Define with a prototype.
42263
42264 2003-09-11  Bruno Haible  <bruno@clisp.org>
42265
42266         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42267
42268 2003-09-10  Jim Meyering  <jim@meyering.net>
42269
42270         * lib/error.c: Correct indentation of cpp directives.
42271
42272 2003-09-10  Bruno Haible  <bruno@clisp.org>
42273
42274         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42275         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42276         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42277         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42278         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42279         <stdlib.h> and <string.h> checks.
42280         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42281         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42282
42283 2003-09-10  Bruno Haible  <bruno@clisp.org>
42284
42285         * lib/strcspn.c: Include <string.h> unconditionally.
42286         * lib/strpbrk.c: Include <string.h> unconditionally.
42287         * lib/strstr.c: Include <string.h> unconditionally.
42288         * lib/unicodeio.c: Include <string.h> unconditionally.
42289         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42290         * lib/unsetenv.c: Likewise.
42291         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42292         * lib/yesno.c: Include <stdlib.h> unconditionally.
42293         (rpmatch): Add prototype.
42294
42295 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42296
42297         More patches to assume C89 or better.
42298         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42299         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42300         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42301         or for string.h.
42302         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42303         stdlib.h.
42304         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42305         C headers.
42306         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42307         string.h.
42308         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42309         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42310         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42311         or for string.h.
42312         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42313         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42314         C headers.
42315         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42316         memcpy.
42317         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42318         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42319         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42320         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42321         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42322         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42323         string.h, free.
42324         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42325         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42326         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42327         C headers, or for string.h.
42328         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42329         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42330         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42331         headers, memory.h, stdlib.h, string.h, strings.h.
42332         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42333         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42334         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42335         strchr.
42336         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42337         headers, memory.h, string.h.
42338         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42339         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42340         free.
42341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42342         headers.
42343         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42344         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42345         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42346         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42347         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42348
42349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42350
42351         More K&R removal.
42352
42353         * lib/acosl.c (main): Use a prototype.
42354         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42355         tanl.c: Likewise.
42356
42357         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42358
42359         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42360         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42361         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42362         with a prototype.
42363         * lib/getopt.c (const): Remove macro.
42364         Include <string.h> unconditionally.
42365         (my_index): Remove; all uses changed to strchr.
42366         (strlen): Remove decl.
42367         (exchange): Remove forward decl; no longer needed.
42368         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42369         Define with prototype.
42370         * lib/getopt1.c (const): Remove macro.
42371         (getopt_long, getopt_long_only, main): Define with prototype.
42372
42373         * lib/getugroups.c: Include <string.h> unconditionally.
42374
42375         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42376         (getusershell, setusershell, endusershell, readname, main):
42377         Define with prototypes.
42378
42379         * lib/group-member.c: Include group-member.h first.
42380         Include <stdlib.h> unconditionally.
42381
42382         * lib/hard-locale.c: Include hard-locale.h first.
42383         Include <stdlib.h>, <string.h> unconditionally.
42384
42385         * lib/hash.c (free, malloc): Remove decls.
42386         Include <stdlib.h> unconditionally.
42387
42388         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42389         (getenv): Do not declare.
42390
42391         * lib/idcache.c: Include <string.h> unconditionally.
42392
42393         * lib/long-options.c: Include long-options.h first, to test interface.
42394         Include <stdlib.h> unconditionally.
42395
42396         * lib/makepath.c: Include makepath.h first, to test interface.
42397         Include <stdlib.h> and <string.h> unconditionally.
42398
42399         * lib/linebuffer.c: Include <stdlib.h>.
42400         (free): Remove decl.
42401
42402         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42403         stddef.h. rpl_malloc returns void *, not char *.
42404         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42405         prototype.
42406
42407         * lib/md5.h: Include <limits.h> unconditionally.
42408         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42409         (__P): Remove; all uses removed.
42410         * lib/md5.c: Include "md5.h" first.
42411         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42412         md5_buffer, md5_process_bytes, md5_process_block):
42413         Define with prototypes.
42414         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42415         * lib/sha.c: Include "sha.h" first.
42416         Include <stdlib.h>, <string.h> unconditionally.
42417
42418         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42419         * lib/memcmp.c (__ptr_t): Likewise.
42420         * lib/memrchr.c (__ptr_t): Likewise.
42421         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42422         Include <string.h> unconditionally.
42423         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42424         * lib/memchr.c: Include <stdlib.h> unconditionally.
42425         * lib/memchr.c (LONG_MAX): Remove.
42426         * lib/memrchr.c (LONG_MAX): Likewise.
42427         * lib/memchr.c (__memchr): Define via a prototype.
42428         * lib/memrchr.c (__memrchr): Likewise.
42429         * lib/memcmp.c (__P): Remove, and remove all uses.
42430         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42431         Remove forward decls; no longer needed.
42432         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42433         Use types required by C89 in prototype.
42434
42435         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42436         * lib/savedir.c: Likewise.
42437         * lib/mkdir.c (free): Remove decl.
42438         * lib/rmdir.c (rmdir): Define with a prototype.
42439         * lib/savedir.c: Include savedir.h first, to test interface.
42440
42441         * lib/mktime.c (STDC_HEADERS): Remove.
42442         Include <stdlib.h>, <string.h> unconditionally.
42443
42444         * lib/modechange.c: Include <stdlib.h> unconditionally.
42445         (malloc): Remove decl.
42446
42447         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42448         (free): Remove decl.
42449
42450         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42451         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42452         (This type really should be intptr_t, but that's a C99ism.)
42453         (_obstack_memcpy): Remove: all uses changed to memcpy.
42454         Include <string.h> unconditionally.
42455         (struct obstack): Assume __STDC__ for types of members
42456         chunkfun, freefun, extra_arg.
42457         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42458         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42459         obstack_begin, obstack_specify_allocation,
42460         obstack_specify_allocation_with_arg, obstack_chunkfun,
42461         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42462         Remove unprototyped decls and the macros that use them.
42463         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42464         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42465         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42466         (defined __STDC__ && __STDC__)]:
42467         Remove nonprototyped code.
42468         Include <stdlib.h> unconditionally.
42469         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42470         _obstack_allocated_p, _obstack_free, obstack_free,
42471         _obstack_memory_used, print_and_abort):
42472         Define using prototypes.
42473         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42474         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42475         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42476         obstack_next_free, obstack_object_size, obstack_room) [0]:
42477         Remove unused, unprototyped code.
42478
42479         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42480
42481         * lib/physmem.c (physmem_total, physmem_available, main): Define
42482         with prototypes.
42483
42484         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42485         (main): Define with a prototype.
42486
42487         * lib/posixver.c (getenv): Remove decl.
42488
42489         * lib/putenv.c (malloc): Returns void *, not char *.
42490         Include <string.h> unconditionally.
42491         (strchr, memcpy, NULL): Do not define.
42492
42493         * lib/readtokens.c: Include readtokens.h first, to test interface.
42494         Include <stdlib.h>, <string.h> unconditionally.
42495         (init_tokenbuffer): Define with a prototype.
42496
42497         * lib/regex.c (PARAMS): Remove.  All uses removed.
42498         All uses of _RE_ARGS removed, too.
42499         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42500         unconditionally.
42501         (bzero): Assume memset exists.
42502         (memcmp, memcpy, NULL): Remove.
42503         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42504         char, or assignments to local vars of type signed char.
42505         (init_syntax_once, PREFIX(extract_number_and_incr),
42506         PREFIX(print_partial_compiled_pattern),
42507         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42508         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42509         PREFIX(regex_grow_registers), PREFIX(regex_compile),
42510         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42511         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42512         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42513         wcs_compile_range, byte_compile_range, truncate_wchar,
42514         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42515         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42516         count_mbs_length, wcs_re_match_2_internal,
42517         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42518         PREFIX(alt_match_null_string_p),
42519         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42520         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42521         regfree, PREFIX(extract_number)): Define with prototype.  Remove
42522         now-unnecessary declaration, if any.
42523         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42524         regcomp, regexec):
42525         Remove now-unnecessary casts among pointer types.
42526         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
42527
42528         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42529         (free): Remove decl.
42530
42531         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42532
42533         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42534         (free): Remove decl.
42535
42536         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42537         * lib/xgetcwd.c: Likewise.
42538
42539         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42540         (free): Remove decl.
42541
42542         * lib/strchrnul.c (strchrnul): Define with a prototype.
42543         Fix bug: c_in was not converted to char before searching.
42544
42545         The following changes are not K&R related:
42546
42547         * lib/group-member.h: Include <sys/types.h>, so that this file is
42548         self-contained.
42549         * lib/makepath.h: Likewise.
42550
42551         * lib/getusershell.c (readname, default_index, line_size, readname):
42552         Use size_t, not int, for sizes.
42553         (readname): If the size overflows, report an error instead of
42554         looping forever.
42555
42556 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42557
42558         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42559         libc.
42560
42561 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42562
42563         * README: New section: portability guidelines.
42564
42565 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42566
42567         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42568         C89 spec.
42569
42570 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42571
42572         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42573
42574 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42575
42576         Assume C89 or better; remove K&R cruft.
42577         A few of these changes were first proposed by Derek Robert Price
42578         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42579
42580         * lib/addext.c: Include <string.h> unconditionally.
42581         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42582         Don't declare getenv or malloc.
42583
42584         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42585         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42586         (NULL): Remove.
42587         (find_stack_direction, alloca): Use prototypes.
42588
42589         * lib/atexit.c (atexit): Define using a prototype.
42590
42591         * lib/basename.c, dirname.c, stripslash.c:
42592         Include <string.h> unconditionally.
42593
42594         * lib/bcopy.c: Include <stddef.h>.
42595         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42596
42597         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42598
42599         * lib/error.h (error, error_at_line, error_print_progname)
42600         [! (defined (__STDC__) && __STDC__)]: Remove decls.
42601         * lib/error.c: Include error.h first, to check interface.
42602         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42603         (VA_START): Remove; all uses changeed to va_start.
42604         (exit, strerror): Remove decls.
42605         (error_print_progname): Prototype uncondionally.
42606         Don't include <errno.h>; no longer needed.
42607         (private_strerror): Remove.
42608         (error_tail): Always define.
42609         (error, error_at_line): Assume C89 or better; always use prototypes.
42610         * lib/fatal.c: Include "fatal.h" first, to test interface.
42611         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42612         (VA_START): Remove; all uses changed to va_start.
42613         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
42614         this case.
42615         (exit): Remove decl.
42616         (fatal): Prototype unconditionally.  Assume va_start works.
42617         Abort at end, to pacify gcc.
42618
42619         * lib/euidaccess.c (main): Define with a prototype.
42620
42621         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
42622
42623         * lib/exitfail.c: Include <stdlib.h> unconditionally.
42624
42625         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
42626         prototypes.
42627         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
42628         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
42629         (getenv): Remove decl.
42630         (fnmatch): Define using a prototype.
42631         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
42632         (FCT): Define using a prototype.
42633
42634         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
42635
42636         * lib/gethostname.c: Include <stddef.h>.
42637         (gethostname): Define with prototype.  Length is size_t, not int.
42638
42639 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42640
42641         Assume C89 or better; remove K&R cruft.
42642         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
42643         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
42644         string.h, getenv, malloc.
42645         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
42646         headers.
42647         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
42648         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
42649         do not check for strerror.
42650         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
42651         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
42652         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
42653         do not check for doprnt or vprintf.
42654         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
42655         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
42656
42657 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42658
42659         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
42660         getversion.c should have been removed then, but was accidentally
42661         preserved.
42662
42663         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
42664         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
42665
42666 2003-09-08  Karl Berry  <karl@gnu.org>
42667
42668         * config/config.sub, config.guess, srclistvars.sh: update from savannah
42669                 config, forget about prep.
42670
42671         * config/depcomp, missing: update from automake.
42672
42673 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42674
42675         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
42676         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42677
42678 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42679
42680         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
42681         copy_tm_result.  Bug reported by Simon Josefsson in
42682         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42683
42684 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42685
42686         * m4/time_r.m4: New file.
42687         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
42688         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
42689         is. Check for timegm declaration.
42690         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
42691         Do not check for gmtime_r.
42692         Replace mktime if __mktime_internal does not exist and if mktime
42693         hasn't been replaced already.
42694
42695 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42696
42697         * lib/time_r.c, lib/time_r.h: New files.
42698
42699         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
42700         __localtime_r.
42701         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
42702         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
42703
42704         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
42705         __gmtime_r.
42706         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
42707         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
42708         Include <time_r.h>.
42709
42710         * lib/timegm.c: Switch to glibc implementation, with the following
42711         changes:
42712         [defined HAVE_CONFIG_H]: Include <config.h>.
42713         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
42714         (__mktime_internal) [!defined _LIBC]: New decl.
42715         (__gmtime_r) [!defined _LIBC]: New macro and function.
42716         (timegm): Use a prototype, since gnulib assumes C89.
42717         Do not bother declaring tmp to be const, as it's not really usefu.
42718         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
42719         (timegm): Declare only if HAVE_DECL_TIMEGM.
42720
42721 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42722
42723         * MODULES.html.sh (func_all_modules): Add time_r.
42724         * modules/time_r: New file.
42725         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
42726         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
42727
42728 2003-09-03  Paul Eggert  <eggert@twinsun.com>
42729
42730         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
42731         Bug reported by Lute Kamstra in
42732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
42733
42734         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
42735         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
42736         course with correspondingly smaller numbers for tomorrow and
42737         yesterday.  From Tadayoshi Funaba.  Originally installed into
42738         sh-utils on 1999-08-07, but the patch got lost (I guess during the
42739         coreutils merge?).
42740
42741 2003-08-31  Simon Josefsson  <jas@extundo.com>
42742
42743         * modules/timegm: New file.
42744         * MODULES.html.sh (func_all_modules): Add timegm.
42745
42746 2003-08-31  Simon Josefsson  <jas@extundo.com>
42747
42748         * m4/timegm.m4: New file.
42749
42750 2003-08-31  Simon Josefsson  <jas@extundo.com>
42751
42752         * lib/timegm.h: New file.
42753         * lib/timegm.c: New file.  Based on
42754         wget-1.8.2/src/http.c:mktime_from_utc.
42755
42756 2003-08-31  Karl Berry  <karl@gnu.org>
42757
42758         * lib/argp.h: update from libc.
42759
42760 2003-08-28  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
42763         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
42764         followed by '#define fnmatch fnmatch_posix' gives an error.
42765
42766 2003-08-28  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
42769         warning on QNX, which defines O_BINARY to 000000.
42770
42771 2003-08-27  Jim Meyering  <jim@meyering.net>
42772
42773         * m4/mkstemp.m4: Require that the system mkstemp be able to create
42774         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
42775         would fail after 32.  Reported by Danny Levinson.  Details here:
42776         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
42777
42778 2003-08-24  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
42781         MSVC7 <stdio.h> is included later.
42782
42783 2003-08-22  Simon Josefsson  <jas@extundo.com>
42784
42785         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
42786
42787 2003-08-20  Karl Berry  <karl@gnu.org>
42788
42789         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
42790
42791 2003-08-20  Bruno Haible  <bruno@clisp.org>
42792
42793         * modules/progname: New file.
42794         * MODULES.html.sh (func_all_modules): Add progname.
42795
42796 2003-08-20  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/progname.h: New file, from GNU gettext.
42799         * lib/progname.c: New file, from GNU gettext.
42800         * lib/progreloc.c: New file, from GNU gettext.
42801
42802 2003-08-19  Jim Meyering  <jim@meyering.net>
42803
42804         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
42805         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
42806
42807 2003-08-19  Bruno Haible  <bruno@clisp.org>
42808
42809         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
42810         more.
42811
42812 2003-08-19  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/xstrdup.c: Assume <string.h> exists.
42815
42816 2003-08-18  Paul Eggert  <eggert@twinsun.com>
42817
42818         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
42819         in makefile rules.
42820
42821 2003-08-18  Jim Meyering  <jim@meyering.net>
42822
42823         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
42824         * m4/lib-ld.m4: Likewise.
42825
42826 2003-08-18  Jim Meyering  <jim@meyering.net>
42827
42828         * lib/setenv.h: Indent nested cpp directive.
42829         * lib/vasnprintf.c: Remove trailing blanks.
42830
42831 2003-08-17  Simon Josefsson  <jas@extundo.com>
42832
42833         * modules/xstrndup: New file.
42834         * MODULES.html.sh (func_all_modules): Add xstrndup.
42835
42836 2003-08-17  Simon Josefsson  <jas@extundo.com>
42837
42838         * modules/argp: Fix autoconf macro name. Add more dependencies.
42839
42840 2003-08-17  Simon Josefsson  <jas@extundo.com>
42841
42842         * m4/xstrndup.m4: New file.
42843
42844 2003-08-17  Simon Josefsson  <jas@extundo.com>
42845
42846         * m4/argp.m4: New file.
42847
42848 2003-08-17  Simon Josefsson  <jas@extundo.com>
42849             Bruno Haible  <bruno@clisp.org>
42850
42851         * lib/xstrndup.h: New file.
42852         * lib/xstrndup.c: New file.
42853
42854 2003-08-17  Bruno Haible  <bruno@clisp.org>
42855
42856         * modules/strndup (Files, Include): Add lib/strndup.h.
42857
42858 2003-08-17  Bruno Haible  <bruno@clisp.org>
42859
42860         * modules/euidaccess (Files): Add lib/euidaccess.h.
42861
42862 2003-08-17  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/strndup.h: New file.
42865
42866 2003-08-17  Bruno Haible  <bruno@clisp.org>
42867
42868         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
42869         like AC_GNU_SOURCE.
42870         * modules/extensions (configure.ac): Comment out the invocation of
42871         gl_USE_SYSTEM_EXTENSIONS.
42872
42873 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42874
42875         Merges from coreutils, etc.
42876         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
42877         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
42878         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
42879         fixing a typo.
42880         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
42881         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
42882
42883 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42884
42885         Document merge from coreutils.
42886         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
42887         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
42888         * modules/utime: Add m4/utimes-null.m4.
42889
42890 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42891
42892         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
42893         space, undoing this 2003-08-12 change:
42894         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
42895
42896 2003-08-16  Paul Eggert  <eggert@twinsun.com>
42897
42898         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
42899         strtoul.c from libc, undoing this 2003-08-12 change:
42900         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
42901
42902 2003-08-16  Jim Meyering  <jim@meyering.net>
42903
42904         Merges from coreutils.
42905         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
42906         prefix.  Adjust cache variables similarly.  Create 500 rather than
42907         just 300 files, to exercise bug on Darwin6.5, too.
42908         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
42909         $missing_dir.
42910         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
42911         AM_SYS_POSIX_TERMIOS.
42912         Reported by mkc@mathdogs.com.
42913         Also change use of $am_cv_sys_posix_termios
42914         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
42915         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
42916         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
42917         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
42918         in /proc/mounts until it finds one with matching device number.  This
42919         is unnecessary when the FILE argument *is* a mount point.  No stat call
42920         is necessary in that case.  So, disable the statvfs-testing code on
42921         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
42922         as RedHat bug# 84846.
42923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
42924         to 1MB, so as not to render systems with no stack size limit (e.g.,
42925         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
42926         Include <unistd.h>.  On some systems,
42927         it is required for the definition of _SC_PAGESIZE.
42928
42929 2003-08-16  Jim Meyering  <jim@meyering.net>
42930
42931         Merge from coreutils.
42932         * lib/xstrtoimax.c: #else #if -> #elif.
42933         * lib/xstrtoumax.c: Likewise.
42934
42935 2003-08-16  Jim Meyering  <jim@meyering.net>
42936
42937         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
42938         * m4/utimes.m4: Removed.
42939         * m4/utimes-null.m4: Renamed from utimes.m4.
42940
42941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
42942         to 1MB, so as not to render systems with no stack size limit (e.g.,
42943         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
42944         Include <unistd.h>.  On some systems,
42945         it is required for the definition of _SC_PAGESIZE.
42946
42947 2003-08-16  Jim Meyering  <jim@meyering.net>
42948         and Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         Merges from coreutils, etc.
42951
42952         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
42953         using the latest version from cvs.  This avoids problems with #line
42954         directives using a vendor (Sun) compiler.
42955         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
42956         Don't set GETGROUPS_LIB here; now it's
42957         done via getgroups.m4's wrapper function.
42958         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
42959         rather than just in sh-util/configure.in, so that the
42960         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
42961         same.
42962         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
42963         AC_FUNC_GETLOADAVG where to find getloadavg.c.
42964         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
42965         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
42966         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
42967         Remove code that is now done by the newly-required macros.
42968         Append $(EXEEXT) to DF_PROG.
42969         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
42970         Do not invoke or require the following here,
42971         since prereq.m4 or some gnulib .m4 now does this for us:
42972         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
42973         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
42974         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
42975         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
42976         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
42977         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
42978         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
42979         AC_FUNC_OBSTACK.
42980         Do not replace the following functions, as this is now the job
42981         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
42982         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
42983         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
42984         atexit getpass, strdup, getpagesize.
42985         Replace 'raise'.
42986         Do not check for the following functions, as this is now the job
42987         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
42988         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
42989         setregid.
42990         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
42991         Check for sys/sysctl.h.
42992         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
42993         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
42994         of checking for ssize_t ourselves.
42995
42996         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
42997         Require every macro that gnulib/modules/* suggests for us.
42998         (jm_PREREQ_ADDEXT): New macro.
42999         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43000         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43001
43002         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43003         (gl_PHYSMEM): Use it.
43004         Also check for `table' function.
43005         Check for new headers and functions.
43006         Add check for sys/sysmp.h.
43007         With suggestions from Kaveh Ghazi.
43008         Ignore headers that are present but cannot be compiled.  This
43009         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43010         C 5.4.
43011
43012 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43013
43014         Document merge from coreutils.
43015         * modules/userspec: Depend on posixver.
43016         * modules/strftime: Depend on tzset.
43017
43018 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43019
43020         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43021         rather than tab, after '#' in shell-script copyright notices.
43022         Suggested by Bruno Haible.
43023
43024 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43025
43026         * config/srclist-update: Use three spaces, rather than tab, after '#'
43027         in shell-script copyright notices.  Suggested by Bruno Haible.
43028         Remove unnecessary parenthesization in regular expression.
43029
43030 2003-08-15  Jim Meyering  <jim@meyering.net>
43031
43032         Merge from coreutils.
43033         * lib/xgethostname.c: Include <stdlib.h>.
43034         (xghostname): Don't exit for anything other than memory-related
43035         failure; just return NULL.
43036         * lib/userspec.c: Include "posixver.h".
43037         (parse_user_spec): Accept `.' as a separator only
43038         in pre-POSIX-200112 mode.
43039         * lib/strtoimax.c: Use #elif rather than #else #if.
43040         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43041         Remove function, now that we can rely on a working tzset function.
43042         [!_LIBC]: Ensure that the required autoconf test has been run.
43043         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43044         Use underlying_strftime for %r.
43045         * lib/sha.c: Merge in some clean-up and optimization changes from
43046         glibc.
43047         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43048         Ensure that it is a multiple of 64.
43049         Rearrange loop exit tests so as to avoid performing an
43050         additional fread after encountering an error or EOF.
43051         * lib/realloc.c: Update copyright date.
43052
43053 2003-08-15  Jim Meyering  <jim@meyering.net>
43054         and Paul Eggert  <eggert@twinsun.com>
43055
43056         Merge from coreutils.
43057         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43058         member but strut utmpx does not.  Needed for AIX 4.3.3.
43059         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43060
43061 2003-08-15  Jim Meyering  <jim@meyering.net>
43062         and Paul Eggert  <eggert@cs.ucla.edu>
43063
43064         Merges from coreutils, etc.
43065         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43066         Require gl_FUNC_TZSET_CLOBBER.
43067         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43068         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43069         members.
43070
43071 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43072
43073         Help the merge from coreutils.
43074         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43075         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43076         * m4/tzset.m4: Use it too.
43077
43078 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43079
43080         * modules/tzset: New file.
43081
43082 2003-08-14  Jim Meyering  <jim@meyering.net>
43083
43084         Merges from coreutils.
43085         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43086         variable names, rather than @FNMATCH_H@.
43087         * modules/alloca: Likewise for $(ALLOCA_H).
43088
43089         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43090         the three copies of the literal target, `fnmatch.h'.
43091         * modules/alloca (alloca.h): Likewise.
43092
43093 2003-08-14  Jim Meyering  <jim@meyering.net>
43094
43095         Merge from coreutils.
43096         * m4/tzset.m4: New file.
43097         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43098         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43099         otherwise, AIX 5.1 systems would end up using the latter.
43100         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43101         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43102         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43103         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43104
43105 2003-08-14  Jim Meyering  <jim@meyering.net>
43106
43107         Merge from coreutils.
43108         * lib/obstack.h: Whitespace changes.
43109         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43110         and xcalloc return values.
43111         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43112         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43113         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43114         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43115         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43116         error from mntctl.
43117         Use mntctl's return value to drive the entry-processing loop, since
43118         we can't rely on the value of the vmt_length member in the last
43119         entry.  On some systems doing so could result in exhausting
43120         virtual memory.  Based in part on a patch from Mike Jetzer.
43121
43122 2003-08-14  Jim Meyering  <jim@meyering.net>
43123         and Paul Eggert  <eggert@twinsun.com>
43124
43125         Merges from coreutils, plus other fixes.
43126         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43127         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43128         for credits and details.  Thanks to Kaveh Ghazi for helping
43129         to keep these files in sync.
43130         (ARRAY_SIZE): Define it.
43131         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43132         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43133         (memcasecmp): Don't assume size_t fits in unsigned int.
43134         Remove casts and duplicate code.
43135         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43136         (memcpy): Remove definition.
43137         Merge in some clean-up and optimization changes from glibc.
43138         [BLOCKSIZE]: Move definition to top of file.
43139         Ensure that it is a multiple of 64.
43140         Rearrange loop exit tests so as to avoid performing an
43141         additional fread after encountering an error or EOF.
43142         * lib/md5.h (md5_uintptr): Define.
43143         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43144         return to the initial working directory.  Preserve errno
43145         for caller.
43146         * lib/idcache.c: Include "xalloc.h".
43147         (xmalloc, xrealloc): Remove decls.
43148         (getuser): Remove casts no longer required in C89.
43149         * lib/human.c: Include stdio.h, for sprintf.
43150         * lib/group-member.c: Include "xalloc.h".
43151         (xmalloc, xrealloc): Remove decls.
43152         (get_group_info): Remove casts no longer required in C89.
43153         * lib/getusershell.c (readname): Remove casts no longer required in
43154         C89.
43155         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43156         * lib/getline.c: Whitespace fix, from coreutils.
43157
43158 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43159
43160         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43161         Check for isascii.
43162
43163         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43164         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43165         Undo previous (whitespace-only) change.
43166
43167 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43168
43169         * lib/exclude.c: Include <ctype.h>
43170         (IN_CTYPE_DOMAIN): New macro.
43171         (is_space): New fn.
43172         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43173         and empty lines.
43174
43175         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43176         Undo previous (whitespace-only) change.
43177
43178 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43179
43180         * config/srclist-update: Change update back to the old behavior,
43181         leaving whitespace alone.  Use one 'sed' command rather than a
43182         pipeline.
43183         (fixlicense): Now a variable, not a function.
43184         (remove_trailing_blanks): Remove.
43185         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43186         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43187         Undo previous (whitespace-only) change.
43188
43189 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43190
43191         Merge from coreutils.
43192         * modules/euidaccess: Add lib_SOURCES, include for new
43193         file euidaccess.h
43194
43195 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43196
43197         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43198         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43199         Normalize leading white space and remove trailing white space.
43200
43201         Merge from coreutils
43202         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43203
43204         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43205         0.12.1.  These files are now being upgraded automatically by
43206         ../config/srclist-update.
43207
43208 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43209
43210         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43211         Normalize leading white space and remove trailing white space.
43212         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43213         notice, as per ../config/srclist-update.
43214
43215         Merge from coreutils.
43216         * lib/euidaccess.h: New file.
43217         * lib/euidaccess.c: Include it.
43218         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43219         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43220         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43221
43222 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43223
43224         * config/srclist-update: Add copyright notice.
43225         (remove_id_lines, remove_trailing_blanks): New constants.
43226         (fixfile): Use them to normalize spacing a bit in copied files.
43227         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43228         Normalize leading white space and remove trailing white space.
43229
43230         * config/texinfo.tex: Sync with texinfo.
43231
43232         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43233         strtoul.c from libc, to merge coreutils whitespace changes.
43234
43235         * config/srclist.txt: Get the following m4 files from gettext:
43236         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43237         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43238         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43239         wint_t.m4.
43240
43241 2003-08-12  Karl Berry  <karl@gnu.org>
43242
43243         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43244         been made.
43245
43246 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43247
43248         * modules/gnu-source, m4/gnu-source.m4:
43249         Remove; we're assuming Autoconf 2.54 or later now.
43250         Suggested by Bruno Haible.
43251         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43252
43253 2003-08-11  Bruno Haible  <bruno@clisp.org>
43254
43255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43256
43257 2003-08-11  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43260         (vasnprintf): Use it instead of wcslen.
43261
43262 2003-08-11  Bruno Haible  <bruno@clisp.org>
43263
43264         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43265         value to ensure that _Bool promotes to int. Use #define for _Bool when
43266         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43267
43268 2003-08-10  Karl Berry  <karl@gnu.org>
43269
43270         * lib/regex.h: update from libc (whitespace fix).
43271
43272 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43273
43274         Merge some files from coreutils.  These changes were
43275         originally made by Jim Meyering.
43276         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43277         many older Unixes require this.
43278         * lib/alloca.c (alloca): Remove cast to argument of free;
43279         no longer needed in C89.
43280         * lib/alloca_.h, regex.h: Fix white space to match
43281         what GNU indent does.
43282
43283 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43284
43285         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43286         apparently Emacs's Unicode mode got confused before my 2003-08-05
43287         checkin.
43288
43289 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43290
43291         * m4/extensions.m4: New file.
43292         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43293         Require gl_USE_SYSTEM_EXTENSIONS.
43294         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43295         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43296
43297 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43298
43299         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43300         * modules/extensions, modules/gnu-source: New files.
43301         * modules/timespec, modules/unlocked-io: Depend on extensions.
43302
43303 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43304
43305         * modules/restrict: New file.
43306         * MODULES.html.sh (func_all_modules): Add restrict.
43307         * modules/regex: Depend on restrict.
43308
43309 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43310
43311         * m4/restrict.m4: New file.
43312         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43313
43314 2003-08-07  Bruno Haible  <bruno@clisp.org>
43315
43316         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43317         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43318
43319 2003-08-07  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43322         makes the module 'getndelim2' compatible with the module 'getline'.
43323
43324 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43325
43326         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43327         byte with "\201" to avoid glitches when editing that source file
43328         with multi-gnome-terminal.
43329
43330 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43331
43332         * lib/bumpalloc.h: Remove.
43333
43334 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43335
43336         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43337         * modules/bumpalloc: Remove.
43338
43339 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43340
43341         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43342         GNU coding style.
43343
43344         Merge from coreutils.
43345         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43346         1. From glibc.
43347         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43348         from Karl Berry, implemented by Jim Meyering.
43349         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43350         from Dmitry V. Levin.
43351         Remove anachronistic cast of xrealloc.
43352         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43353         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43354         type. Otherwise, it wouldn't compile with at least /bin/cc on
43355         ymp-cray-unicos9.0.2.X.
43356         Combine two mostly-identical uses of alloca into one.
43357         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43358
43359 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43360
43361         [From Emacs.]
43362
43363         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43364         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43365         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43366         obsolete NLIST_NAME_UNION.
43367         [__GNU__]: Undef BSD and FSCALE.
43368         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43369
43370 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43371
43372         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43373         an enum type, so that it's guaranteed to promote to int.  See:
43374         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43375
43376 2003-08-03  Karl Berry  <karl@gnu.org>
43377
43378         * config/depcomp: update from automake.
43379
43380 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43381
43382         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43383         (strerror): Don't assume that a printable int fits in 14 bytes.
43384
43385 2003-07-31  Bruno Haible  <bruno@clisp.org>
43386
43387         * modules/getpass-gnu: New file.
43388         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43389
43390 2003-07-31  Bruno Haible  <bruno@clisp.org>
43391
43392         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43393
43394 2003-07-24  Karl Berry  <karl@gnu.org>
43395
43396         * config/missing: update from automake.
43397
43398 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43399             Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43402         * lib/getline.c (getline, getdelim): Likewise.
43403         Remove _GNU_SOURCE define; now it's defined in config.h through
43404         m4/getline.m4.
43405
43406 2003-07-23  Karl Berry  <karl@gnu.org>
43407
43408         * config/config.sub: update from prep.
43409
43410 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43411
43412         * modules/xalloc (Depends-on): Add exitfail.
43413         * modules/xmemcoll: Likewise.
43414
43415 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43416
43417         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43418         over-parenthesization in macros.
43419
43420         Sync with coreutils.
43421
43422         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43423         required by C99.
43424
43425         Use `exit_failure' for xalloc and xmemcoll instead of their own
43426         private exit-failure variables.
43427         * lib/xalloc.h (xalloc_exit_failure): Remove.
43428         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43429         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43430         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43431         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43432         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43433
43434 2003-07-20  Jim Meyering  <jim@meyering.net>
43435
43436         * modules/closeout (Depends-on): Add exitfail.
43437         Suggestion from Bruno Haible.
43438
43439 2003-07-19  Karl Berry  <karl@gnu.org>
43440
43441         * config/config.sub: update from prep.
43442
43443 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43444
43445         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43446         Remove.
43447         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43448         to test that it can stand by itself.  Include "exitfail.h".
43449         Clients should set exit_failure instead.
43450         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43451
43452 2003-07-18  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/getndelim2: New file.
43455         * modules/getline: Share files with module getndelim2.
43456         * modules/getnline: Depend on getndelim2 instead of sharing files with
43457         it. Add getnline.c to lib_SOURCES.
43458         * MODULES.html.sh (func_all_modules): Add getndelim2.
43459
43460 2003-07-18  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/getndelim2.m4: New file.
43463         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43464         invoke gl_PREREQ_GETNDELIM2.
43465         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43466         gl_PREREQ_GETNDELIM2.
43467         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43468         gl_GETNDELIM2.
43469
43470 2003-07-18  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/getndelim2.h: New file.
43473         * lib/getndelim2.c: Make into a module of its own. Include config.h,
43474         getndelim2.h.
43475         (getndelim2): Make non-static. Change return type to ssize_t.
43476         * lib/getline.h: Change argument names.
43477         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43478         * lib/getnline.c: Include getndelim2.h.
43479
43480 2003-07-18  Andreas Schwab  <schwab@suse.de>
43481
43482         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43483
43484 2003-07-17  Karl Berry  <karl@gnu.org>
43485
43486         * config/config.sub: update from prep.
43487
43488 2003-07-17  Bruno Haible  <bruno@clisp.org>
43489
43490         * modules/getnline: New file.
43491         * modules/getline: Add lib/getndelim2.c to source file list.
43492         * MODULES.html.sh (func_all_modules): Add getnline.
43493
43494 2003-07-17  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/getnline.m4: New file.
43497
43498 2003-07-17  Bruno Haible  <bruno@clisp.org>
43499
43500         * m4/Makefile.am.in: Remove file.
43501         * m4/Makefile.am: Remove file.
43502         * m4/Makefile.in: Remove file.
43503
43504 2003-07-17  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/getnline.h: New file.
43507         * lib/getnline.c: New file.
43508         * lib/getndelim2.c: New file, extracted from getline.c.
43509         (getndelim2): Renamed from getdelim2, with added nmax argument.
43510         * lib/getline.c: Include getndelim2.c.
43511         (getdelim2): Moved out to getndelim2.c.
43512         (getline, getdelim): Update.
43513
43514 2003-07-17  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/Makefile.am: Remove file.
43517         * lib/Makefile.in: Remove file.
43518
43519 2003-07-17  Bruno Haible  <bruno@clisp.org>
43520
43521         * configure.in: Remove file.
43522         * Makefile.in: Remove file.
43523
43524 2003-07-17  Bruno Haible  <bruno@clisp.org>
43525
43526         * MODULES.html.sh: Put the </BODY> right before </HTML>.
43527
43528 2003-07-16  Karl Berry  <karl@gnu.org>
43529
43530         * config/srclist-update: was running fixlicense twice, which caused
43531                 texinfo.tex to be nullified for some reason.  Simplify,
43532                 $gplsrc is no longer needed as far as I can see?
43533
43534 2003-07-16  Jim Meyering  <jim@meyering.net>
43535
43536         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
43537
43538 2003-07-15  Paul Eggert  <eggert@twinsun.com>
43539
43540         * config/srclist.txt: Get the following files from gettext-runtime/intl
43541         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43542         ref-del.sin.  From Bruno Haible.
43543         * config/srclist-update (fixfile): Change grep pattern again, since the
43544         previous fix didn't work (there was another trailing $).  Use
43545         '[$]' to escape the $s.
43546
43547 2003-07-15  Karl Berry  <karl@gnu.org>
43548
43549         * lib/vasnprintf.c: update from gettext.
43550
43551 2003-07-15  Karl Berry  <karl@gnu.org>
43552
43553         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43554         gets expanded when surrounded by '$'.
43555
43556 2003-07-15  Jim Meyering  <jim@meyering.net>
43557
43558         * modules/save-cwd: Don't depend on error.  From Derek Price.
43559
43560 2003-07-15  Jim Meyering  <jim@meyering.net>
43561
43562         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43563
43564 2003-07-14  Simon Josefsson  <jas@extundo.com>
43565
43566         * modules/mempcpy: New file.
43567         * MODULES.html.sh (func_all_modules): Add mempcpy.
43568
43569 2003-07-14  Simon Josefsson  <jas@extundo.com>
43570
43571         * m4/mempcpy.m4: New file.
43572
43573 2003-07-14  Simon Josefsson  <jas@extundo.com>
43574
43575         * lib/mempcpy.h: New file.
43576         * lib/mempcpy.c: New file.
43577
43578 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43579
43580         * modules/getdate, modules/posixtm: Depend on mktime.
43581
43582 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43583
43584         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43585         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43586         unicodeio.c, unicodeio.h, unlocked-io.h:
43587         Switch from LGPL to GPL.
43588
43589 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43590
43591         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43592         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43593         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43594         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43595         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
43596         updated automatically by ../config/srclist-update.  This changes
43597         their license from LPGL to GPL.
43598
43599 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43600
43601         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
43602         assumed to refer to the root of the most recent stable gettext version.
43603         * config/srclistvars.sh: Add defaults for eggert.
43604         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43605         Match "This program" as well as "The program".  This is needed
43606         for gettext.
43607
43608 2003-07-14  Jim Meyering  <jim@meyering.net>
43609
43610         Don't emit diagnostics.  Let callers do that.
43611         * lib/save-cwd.c: Don't include "error.h".
43612         (save_cwd): Don't call error.  Ensure that errno is valid
43613         when returning nonzero.
43614
43615         * lib/save-cwd.h (restore_cwd): Update prototype.
43616         * lib/save-cwd.c (restore_cwd): Remove two parameters.
43617         Simplify.  Don't call error upon failure.  Let callers do that.
43618         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
43619         when auditing is enabled.  But don't bother updating the #if.
43620
43621 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
43622
43623         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
43624         it breaks C++ compilation.
43625         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
43626
43627 2003-07-10  Simon Josefsson  <jas@extundo.com>
43628
43629         * modules/strchrnul (Makefile.am): Add strchrnul.h.
43630
43631 2003-07-10  Jim Meyering  <jim@meyering.net>
43632
43633         * m4/clock_time.m4: Remove trailing blank.
43634         * m4/intmax_t.m4: Likewise.
43635
43636 2003-07-10  Jim Meyering  <jim@meyering.net>
43637
43638         * lib/vasnprintf.c: Remove trailing blanks.
43639         Make cpp indentation consistent.
43640
43641 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43642
43643         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
43644         posixver.c, strftime.c, strnlen.c, strverscmp.c:
43645         Switch from LGPL to GPL.
43646
43647 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43648
43649         * config/srclist.txt: Sort sublists.  Add
43650         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
43651         that differ from gnulib for one reason or another; we'd like this list
43652         to be smaller but for now let's document what we have.
43653
43654 2003-07-08  Paul Eggert  <eggert@twinsun.com>
43655
43656         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
43657         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
43658         and sweeter "eval x=$x".
43659         * config/srclist.txt: Get lib/argp* from glibc.
43660
43661 2003-07-07  Paul Eggert  <eggert@twinsun.com>
43662
43663         * lib/mktime.c: Fix some boundary cases and remove need for floating
43664         point.
43665
43666         Issue a compile-time diagnostic if time_t is floating point, or if
43667         two's complement arithmetic is not in effect, or if arithmetic
43668         right shift does not propagate the sign.  These assumptions were
43669         all in the original code but they weren't checked.
43670
43671         (TIME_T_MIDPOINT, verify): New macros.
43672         (__isleap): Remove; it has integer overflow problems.
43673         (leapyear): New function, without those problems.
43674         (ydhms_tm_diff): Remove; splitting into two parts.
43675         (ydhms_diff): New function, containing the arithmetic part of
43676         the old ydhms_tm_diff function.  Issue a compile-time
43677         diagnostic if we are not using C99 integer division.
43678         Avoid casts when possible.
43679         (guess_time_tm): New function, containing the checking part of
43680         the old ydhms_tm_diff function.  Return the new value, rather than
43681         the difference between it and the old.  Accept a new argument T
43682         so that *T specifies the old value.  Check for overflow in the result.
43683
43684         (__mktime_internal): Use a time_t offset, not a long int offset.
43685         This undoes the 2003-06-04 change, which is no longer needed now
43686         that we have better overflow checking.
43687         (localtime_offset): Likewise.
43688
43689         (__mktime_internal): Avoid harmful overflow on hosts where time_t
43690         and long are 64-bit but int is only 32-bit.
43691         (ydhms_diff): Use long int to store year1 and yday1.
43692         Issue a compile-time diagnostic if long int is not wide enough.
43693
43694         (__mktime_internal): Use long int to store adjusted year and yday.
43695         Use plain C rather than preprocessor commands, if that doesn't
43696         affect efficiency.
43697         Check for overflow (and try to repair) after each probe
43698         rather than checking only at the very end.  This avoids some bugs
43699         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
43700         does not equal GMT offset at maximum time).
43701         Use integer to check for overflow rather than floating point; this
43702         is more portable to non-IEEE hosts, and is a tad faster.
43703         When we detect that we are oscillating between two values,
43704         don't check whether tm_isdst has the requested value, since
43705         we already know the answer.  When tm_isdst has the wrong value,
43706         use a different heuristic to find the right one, based on the
43707         extreme values actually observed in practice in tz2003a,
43708         rather than the (overly optimistic) "previous 3 calendar quarters".
43709
43710         (not_equal_tm, print_tm, check_result): Use "const T" rather than
43711         "T const" to accommodate glibc style.
43712         (check_result): Use less-confusing report format.  "long" -> "long int.
43713         (main): Likewise.
43714         Don't loop if the iteration overflows time_t.
43715         Allow a negative step in the iteration.
43716
43717 2003-07-06  Karl Berry  <karl@gnu.org>
43718
43719         * config/depcomp: update from automake.
43720         * config/config.sub: update from prep.
43721
43722 2003-07-03  Karl Berry  <karl@gnu.org>
43723
43724         * config/config.guess: update from prep.
43725
43726 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43727
43728         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
43729         xreadlink.c now includes it unconditionally.
43730
43731 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43732
43733         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
43734         having it depend on HAVE_SYS_TYPES_H.
43735
43736 2003-07-01  Bruno Haible  <bruno@clisp.org>
43737
43738         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
43739         <sys/types.h> should be sufficient.
43740         Reported by Paul Eggert.
43741
43742 2003-06-26  Karl Berry  <karl@gnu.org>
43743
43744         * config/depcomp: update from automake.
43745
43746 2003-06-26  Bruno Haible  <bruno@clisp.org>
43747
43748         * modules/human: Depend on module stdbool.
43749
43750 2003-06-25  Bruno Haible  <bruno@clisp.org>
43751
43752         * modules/readlink: New file.
43753         * modules/xreadlink: Depend on it.
43754         * MODULES.html.sh (func_all_modules): Add readlink.
43755
43756 2003-06-25  Bruno Haible  <bruno@clisp.org>
43757
43758         * m4/readlink.m4: New file.
43759
43760 2003-06-25  Bruno Haible  <bruno@clisp.org>
43761
43762         * lib/readlink.c: New file.
43763
43764 2003-06-22  Karl Berry  <karl@gnu.org>
43765
43766         * config/srclist.txt: update mkinstalldirs from automake.
43767         * config/mkinstalldirs: update.
43768
43769 2003-06-22  Bruno Haible  <bruno@clisp.org>
43770
43771         Portability to mingw32.
43772         * m4/ssize_t.m4: New file, from GNU gettext.
43773         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
43774         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
43775
43776 2003-06-22  Bruno Haible  <bruno@clisp.org>
43777
43778         * modules/safe-read: Add m4/ssize_t.m4.
43779         * modules/xreadlink: Add m4/ssize_t.m4.
43780
43781 2003-06-20  Bruno Haible  <bruno@clisp.org>
43782
43783         Assume C89, so PARAMS isn't needed.
43784         * lib/unicodeio.h (PARAMS): Remove.
43785         * lib/unicodeio.c: Don't use PARAMS.
43786
43787 2003-06-18  Karl Berry  <karl@gnu.org>
43788
43789         * config/config.{guess,sub}: update from prep.
43790
43791 2003-06-18  Jim Meyering  <jim@meyering.net>
43792
43793         Merge changes from coreutils.
43794         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
43795         Remove explicit declarations of xmalloc and realloc.
43796         Include xalloc.h.
43797         (read_utmp): Remove anachronistic cast of xmalloc.
43798
43799 2003-06-17  Paul Eggert  <eggert@twinsun.com>
43800
43801         Assume C89, so PARAMS isn't needed.
43802         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
43803         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
43804         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
43805         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
43806         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
43807         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
43808         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
43809         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
43810         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
43811         lib/xstrtod.h, lib/xstrtol.h: Likewise.
43812         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
43813         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
43814         no longer needed. Anyway, config.h should always be included before any
43815         other file.
43816
43817 2003-06-11  Simon Josefsson  <jas@extundo.com>
43818
43819         * modules/sysexits: New file.
43820         * MODULES.html.sh (func_all_modules): Add sysexits.
43821
43822 2003-06-11  Simon Josefsson  <jas@extundo.com>
43823
43824         * lib/sysexit_.h: New file.
43825
43826 2003-06-11  Derek Price  <derek@ximbiot.com>
43827
43828         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
43829         necessary.
43830
43831 2003-06-11  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/sysexits.m4: New file.
43834
43835 2003-06-10  Simon Josefsson  <jas@extundo.com>
43836
43837         * lib/argp.h: New file, from glibc.
43838         * lib/argp-ba.c: New file, from glibc.
43839         * lib/argp-eexst.c: New file, from glibc.
43840         * lib/argp-fmtstream.c: New file, from glibc.
43841         * lib/argp-fmtstream.h: New file, from glibc.
43842         * lib/argp-fs-xinl.c: New file, from glibc.
43843         * lib/argp-help.c: New file, from glibc.
43844         * lib/argp-namefrob.h: New file, from glibc.
43845         * lib/argp-parse.c: New file, from glibc.
43846         * lib/argp-pv.c: New file, from glibc.
43847         * lib/argp-pvh.c: New file, from glibc.
43848         * lib/argp-xinl.c: New file, from glibc.
43849
43850 2003-06-10  Simon Josefsson  <jas@extundo.com>
43851
43852         * modules/strchrnul: New file.
43853
43854 2003-06-10  Simon Josefsson  <jas@extundo.com>
43855
43856         * modules/argp: New file.
43857
43858 2003-06-10  Simon Josefsson  <jas@extundo.com>
43859
43860         * m4/strchrnul.m4: New file.
43861
43862 2003-06-10  Simon Josefsson  <jas@extundo.com>
43863
43864         * lib/strchrnul.h: New file.
43865         * lib/strchrnul.c: New file.
43866
43867 2003-06-10  Bruno Haible  <bruno@clisp.org>
43868
43869         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
43870
43871 2003-06-07  Karl Berry  <karl@gnu.org>
43872
43873         * config/config.{guess,sub}: update from prep.
43874
43875 2003-06-07  Jim Meyering  <jim@meyering.net>
43876
43877         * modules/strtod: Use $(...) notation, not @...@ for
43878         AC_REPLACE'd variables.
43879         * modules/localcharset: Likewise.
43880
43881 2003-06-07  Jim Meyering  <jim@meyering.net>
43882
43883         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
43884         in place of my name in the copyright comment.
43885         Remove definition and uses of __P.
43886
43887         From coreutils.
43888         * lib/stat.c: Don't declare xmalloc explicitly.
43889         Instead, include "xalloc.h".
43890         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
43891         xrealloc, and xcalloc return values.
43892         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
43893         Improve comment.
43894         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
43895
43896 2003-06-07  Bruno Haible  <bruno@clisp.org>
43897
43898         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
43899         avoid AC_CONFIG_LINKS.
43900         * modules/fnmatch (Makefile.am): Use explicit creation rule for
43901         fnmatch.h, to avoid AC_CONFIG_LINKS.
43902         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
43903
43904 2003-06-07  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
43907         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
43908         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
43909         directory.
43910         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
43911         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
43912         directory.
43913
43914 2003-06-06  Jim Meyering  <jim@meyering.net>
43915
43916         Merge from coreutils.
43917         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
43918         Consolidate declarations and initializations of *_base* locals.
43919
43920         Merge from coreutils.
43921         This avoids a core dump on systems without GNU putenv,
43922         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
43923         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
43924         (unsetenv): New static function, from GNU libc.
43925         (rpl_putenv): Use it.
43926
43927         * lib/modechange.c: Remove trailing blanks.
43928
43929         Merge from coreutils.
43930         * lib/fsusage.c: Remove declaration of statfs.
43931         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
43932
43933         * lib/posixtm.c: Include <stdbool.h> unconditionally.
43934
43935 2003-06-06  Jim Meyering  <jim@meyering.net>
43936
43937         * lib/stdbool_.h: Renamed from stdbool.h.in.
43938
43939 2003-06-06  Jim Meyering  <jim@meyering.net>
43940             Bruno Haible  <bruno@clisp.org>
43941
43942         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
43943         Adjust Makefile.am snippet not to redirect directly to target.
43944         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
43945
43946 2003-06-05  Paul Eggert  <eggert@twinsun.com>
43947
43948         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
43949         mismatch, look in future quarters as well as past.  This fixes a
43950         bug when processing fall-backwards gaps immediately after a long
43951         period of daylight-saving time.
43952
43953         * lib/mktime.c: Assume freestanding C89 or better.
43954         (HAVE_LIMITS_H): Remove.  Assume it's 1.
43955         (__P): Remove; not used.
43956         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
43957         (mktime, not_equal_tm, print_tm, check_result,
43958         main): Use prototypes.  Use const * where appropriate.
43959         (main): Fix typo in testing code that uncovered by above changes.
43960         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
43961
43962 2003-06-04  Paul Eggert  <eggert@twinsun.com>
43963
43964         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
43965         locale.h, localeconv.  This merges changes from coreutils.
43966
43967         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
43968         It can be removed after the next Autoconf is released.
43969         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
43970         needed.
43971
43972 2003-06-04  Paul Eggert  <eggert@twinsun.com>
43973
43974         * lib/mktime.c: Fix Debian bug 177940
43975         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
43976         (localtime_offset): Now long int, not time_t, because we want it
43977         to be guaranteed to be signed.  All uses changed.
43978         (__mktime_internal): If overflow would occur when adding offset,
43979         don't add it.
43980
43981         Merge 'human' changes from coreutils.  Rewrite to support
43982         locale-specific notations like thousands separators.
43983         * lib/human.c: Simplify authorship notice.
43984         Include human.h immediately after config.h.
43985         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
43986         <limits.h>: Do not include, since human.h does.
43987         (SIZE_MAX, UINTMAX_MAX): New macros.
43988         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
43989         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
43990         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
43991         (power_letter): Renamed from suffixes.
43992         (generate_suffix_backwards): Remove.
43993         (adjust_value): Now takes int style (because of human.h changes)
43994         and long double value (for greater precision on some platforms).
43995         (group_number): New function.
43996         (human_readable): Use it.  Use integer options, not enum.
43997         Put the options before the sizes in the arg list.
43998         Support all the new options.
43999         The old human_readable function has been removed;
44000         use inttostr.h instead.
44001         (human_readable, default_block_size, humblock):
44002         Use uintmax_t, not int, for block sizes.
44003         (human_readable_inexact, block_size_types): Remove.
44004         (block_size_opts): New constant.
44005         (human_options): Renamed from human_block_size, with new signature
44006         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44007         * lib/human.h: Add copyright and authorship notice.
44008         Include <limits.h> and <stdbool.h> unconditionally.
44009         (PARAMS): Remove.  All uses removed.
44010         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44011         (enum human_inexact_style): Remove tag; now a nameless enum.
44012         (human_floor, human_ceiling, human_round_to_even): Now have
44013         values 2, 0, 1 rather than -1, 1, 0.
44014         (human_group_digits, human_suppress_point_zero, human_autoscale,
44015         human_base_1024, human_SI, human_B): New constants.
44016         (human_readable_inexact, human_block_size): Remove.
44017         (human_readable): Size args are now uintmax_t, not int.
44018         (human_options): New decl.
44019
44020         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44021         unnecessary now that we assume C89 or better.  This change
44022         imported from coreutils.
44023
44024         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44025         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44026         in the 2003-05-30 sync from glibc.
44027
44028         .h files should stand alone, but we shouldn't include <sys/types.h>
44029         if we can get away with just <stddef.h>.
44030
44031         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44032         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44033         rather than <sys/types.h>, as we merely need size_t.
44034         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44035         to get size_t.
44036         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44037         Include <stdio.h>, to get FILE.
44038         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44039         memcasecmp.h has included <stddef.h> and all we need is size_t.
44040         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44041         our interface, instead of including <sys/types.h>
44042
44043 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44044
44045         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44046         now, as glibc mktime is buggy on non-glibc systems.
44047
44048 2003-06-03  Karl Berry  <karl@gnu.org>
44049
44050         * config/config.sub: update from prep.
44051
44052 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44053
44054         [from coreutils]
44055         Fix some minor time-related bugs with POSIX time arguments.
44056         Some valid time stamps were being rejected (notably -1, and
44057         time stamps before 1900 on 64-bit hosts).  And some invalid
44058         time stamps were being accepted, e.g. September 31.
44059
44060         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44061         that we can return (time_t) -1 successfully.
44062         * lib/posixtm.c: Likewise.
44063         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44064         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44065         (t): Remove static var.
44066         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44067         of static var.  All uses changed.
44068         (year): Do not reject years before 1900; they can occur with
44069         64-bit time_t.
44070         (posix_time_parse): Do not check for out-of-range components;
44071         that is now the caller's responsibility, since our checks were
44072         only approximations.
44073         (posixtime): Use mktime to check for out-of-range components,
44074         since it knows them exactly.
44075         If mktime returns (time_t) -1, check whether an error actually occurred
44076         by invoking localtime on -1.
44077         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44078         posixtime failures better.
44079         Improve the test data (in comments only).
44080
44081 2003-06-02  Karl Berry  <karl@gnu.org>
44082
44083         * config/mkinstalldirs (version): new variable.
44084         (--version): new option.
44085         (usage): improve message.
44086
44087 2003-05-30  Karl Berry  <karl@gnu.org>
44088
44089         * lib/mktime.c: update from libc.
44090
44091 2003-05-30  Bruno Haible  <bruno@clisp.org>
44092
44093         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44094         * config/config.rpath: Upgrade to gettext-0.12.1.
44095
44096 2003-05-30  Bruno Haible  <bruno@clisp.org>
44097
44098         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44099         * m4/nls.m4: New file, from gettext-0.12.1.
44100         * m4/po.m4: New file, from gettext-0.12.1.
44101         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44102
44103 2003-05-30  Bruno Haible  <bruno@clisp.org>
44104
44105         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44106         * lib/localcharset.h: Likewise.
44107         * lib/localcharset.c: Likewise.
44108
44109 2003-05-29  Karl Berry  <karl@gnu.org>
44110
44111         * config/config.rpath: update from gettext.
44112
44113 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44114
44115         Assume the headers required for C89 freestanding compilers.
44116         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44117         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44118         * m4/human.m4 (gl_HUMAN): Likewise.
44119         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44120         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44121         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44122         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44124         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44125
44126 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44127
44128         Assume the headers required for C89 freestanding compilers.
44129         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44130         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44131         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44132         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44133         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44134         define, since <limits.h> is guaranteed to do that.
44135         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44136         * lib/exclude.c: Include <stdbool.h> unconditionally.
44137         * lib/tempname.c: Include <stddef.h> unconditionally.
44138         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44139         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44140         <stddef.h> does that.
44141         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44142         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44143         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44144         needed.
44145         * lib/xstrtol.c: Likewise.
44146         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44147         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44148
44149         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44150         warnings on some platforms.
44151
44152         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44153         arbitrarily.
44154
44155 2003-05-26  Jim Meyering  <jim@meyering.net>
44156
44157         Merge in a change from coreutils:
44158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44159         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44160         that condition, rather than `-1' which is slightly misleading.
44161         Change the name of the cache variable to have the gl_ prefix.
44162         Prompted by a patch from Richard Dawe for DJGPP.
44163
44164 2003-05-24  Karl Berry  <karl@gnu.org>
44165
44166         * config/config.guess: update from prep.
44167
44168 2003-05-22  Karl Berry  <karl@gnu.org>
44169
44170         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44171
44172 2003-05-20  Karl Berry  <karl@gnu.org>
44173
44174         * config/config.guess: update from prep.
44175
44176 2003-05-18  Karl Berry  <karl@gnu.org>
44177
44178         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44179         might actually be set by the user.
44180
44181         * config/depcomp, install-sh, mdate-sh: update from automake.
44182
44183 2003-05-17  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44186         invalid expansion for AC_EGREP_CPP.
44187         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44188         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44189         Suggested by Akim Demaille <akim@epita.fr> in
44190         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44191
44192 2003-05-12  Jim Meyering  <jim@meyering.net>
44193
44194         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44195         the space-padded-by-default conversion specifiers, %e, %k, %l.
44196
44197 2003-05-12  Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44200         the string is longer than 4 KB.
44201
44202 2003-05-11  Karl Berry  <karl@gnu.org>
44203
44204         * config/config.{guess,sub}: update from prep.
44205
44206 2003-05-09  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/error: Add m4/strerror_r.m4 to file list.
44209
44210 2003-05-03  Bruno Haible  <bruno@clisp.org>
44211
44212         Upgrade to Unicode-4.0.
44213         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44214         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44215         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44216         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44217         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44218         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44219         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44220         Change width of U+E0100..U+E01EF from 1 to 0.
44221
44222 2003-04-25  Jim Meyering  <jim@meyering.net>
44223
44224         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44225         of type size_t, not int.
44226
44227 2003-04-25  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/copy-file.c: Include <stddef.h>, for size_t.
44230
44231 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44232
44233         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44234         code which expansion is under static control.  Patch imported from
44235         Akim Demaille's patch to Bison; see
44236         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44237
44238 2003-04-14  Bruno Haible  <bruno@clisp.org>
44239
44240         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44241
44242 2003-04-11  Jim Meyering  <jim@meyering.net>
44243
44244         Merge changes from Coreutils.
44245
44246         2003-03-22  Jim Meyering  <jim@meyering.net>
44247
44248         * lib/strftime.c (widen): Cast alloca return value to proper type.
44249
44250         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44251
44252         From GNU libc.
44253         * lib/strftime.c (my_strftime): Handle very large width
44254         specifications for numeric values correctly.  Improve checks for
44255         overflow.
44256
44257         2003-01-19  Jim Meyering  <jim@meyering.net>
44258
44259         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44260         definitions.
44261         (nl_get_alt_digit) [! defined my_strftime]: Define.
44262         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44263         _nl_get_alt_digit and _nl_get_walt_digit.
44264
44265         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44266         libc. These changes have no effect outside of _LIBC.
44267
44268 2003-04-10  Bruno Haible  <bruno@clisp.org>
44269
44270         * modules/findprog: New file.
44271         * MODULES.html.sh (func_all_modules): Add it.
44272
44273 2003-04-10  Bruno Haible  <bruno@clisp.org>
44274
44275         * m4/findprog.m4: New file.
44276         * m4/eaccess.m4: New file.
44277
44278 2003-04-10  Bruno Haible  <bruno@clisp.org>
44279
44280         * lib/findprog.h: New file, from GNU gettext.
44281         * lib/findprog.c: New file, from GNU gettext.
44282
44283 2003-04-05  Jim Meyering  <jim@meyering.net>
44284
44285         Merge changes from Coreutils.
44286
44287         * lib/exclude.h (PARAMS): Remove definition and uses.
44288         * lib/exclude.c: Remove uses of `PARAMS'.
44289
44290         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44291         Add test-cases for DOS filenames. Declare program_name.
44292         (main): Set up program_name.  Patch by Rich Dawe.
44293
44294         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44295         error from mntctl.
44296         Use mntctl's return value to drive the entry-processing loop, since
44297         we can't rely on the value of the vmt_length member in the last
44298         entry.  On some systems doing so could result in exhausting
44299         virtual memory.  Based in part on a patch from Mike Jetzer.
44300
44301 2003-04-04  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/linebreak: New file.
44304         * MODULES.html.sh (func_all_modules): Add it.
44305
44306 2003-04-04  Bruno Haible  <bruno@clisp.org>
44307
44308         * m4/linebreak.m4: New file.
44309
44310 2003-04-04  Bruno Haible  <bruno@clisp.org>
44311
44312         * lib/linebreak.h: New file, from GNU gettext.
44313         * lib/linebreak.c: New file, from GNU gettext with slight
44314         modifications.
44315         * lib/lbrkprop.h: New file, from GNU gettext.
44316
44317 2003-04-03  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/utf8-ucs4: New file.
44320         * modules/utf16-ucs4: New file.
44321         * modules/ucs4-utf8: New file.
44322         * modules/ucs4-utf16: New file.
44323         * MODULES.html.sh (func_all_modules): Add them.
44324
44325 2003-04-03  Bruno Haible  <bruno@clisp.org>
44326
44327         * m4/utf-ucs4.m4: New file.
44328         * m4/ucs4-utf.m4: New file.
44329
44330 2003-04-03  Bruno Haible  <bruno@clisp.org>
44331
44332         * lib/utf8-ucs4.h: New file, from GNU gettext.
44333         * lib/utf16-ucs4.h: New file, from GNU gettext.
44334         * lib/ucs4-utf8.h: New file, from GNU gettext.
44335         * lib/ucs4-utf16.h: New file, from GNU gettext.
44336
44337 2003-04-02  Bruno Haible  <bruno@clisp.org>
44338
44339         * modules/binary-io: New file.
44340         * MODULES.html.sh (func_all_modules): Add it.
44341
44342 2003-04-02  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/binary-io.h: New file, from GNU gettext.
44345
44346 2003-04-01  Bruno Haible  <bruno@clisp.org>
44347
44348         * modules/pathname: New file.
44349         * MODULES.html.sh (func_all_modules): Add it.
44350
44351 2003-04-01  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/pathname.h: New file, from GNU gettext.
44354         * lib/concatpath.c: New file, from GNU gettext.
44355
44356 2003-03-30  Bruno Haible  <bruno@clisp.org>
44357
44358         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44359
44360 2003-03-30  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44363         function chown() doesn't exist.
44364
44365 2003-03-28  Bruno Haible  <bruno@clisp.org>
44366
44367         * modules/copy-file: New file.
44368         * MODULES.html.sh (func_all_modules): Add it.
44369
44370 2003-03-28  Bruno Haible  <bruno@clisp.org>
44371
44372         * m4/copy-file.m4: New file.
44373
44374 2003-03-28  Bruno Haible  <bruno@clisp.org>
44375
44376         * lib/copy-file.h: New file, from GNU gettext.
44377         * lib/copy-file.c: New file, from GNU gettext.
44378
44379 2003-03-18  Jim Meyering  <jim@meyering.net>
44380
44381         * lib/quote.c (quote_n): Fix typo in comment.
44382
44383 2003-03-18  Bruno Haible  <bruno@clisp.org>
44384
44385         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44386         checking.
44387         * m4/onceonly_2_57.m4: Likewise.
44388
44389 2003-03-17  Bruno Haible  <bruno@clisp.org>
44390
44391         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44392         (m4_quote): Remove macro.
44393         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44394
44395 2003-03-14  Jim Meyering  <jim@meyering.net>
44396
44397         Merge changes from Coreutils.
44398         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44399         to be const, in order to avoid warnings.
44400         (obstack_room): Likewise.
44401         (obstack_empty_p): Likewise.
44402
44403 2003-03-14  Bruno Haible  <bruno@clisp.org>
44404
44405         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44406         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44407
44408 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44409
44410         Merge changes from Bison.
44411         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44412         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44413         when compiling Bison 1.875's `bitset bset = obstack_alloc
44414         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44415         * lib/hash.c: Include <stdbool.h> unconditionally.
44416
44417 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44418
44419         * m4/onceonly.m4 (m4_quote): New macro.
44420         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44421         Quote AC_FOREACH variable-expansions properly.
44422
44423 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44424
44425         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44426
44427 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44428
44429         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44430         Reported by Bruce Becker; see:
44431         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44432
44433 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44434             Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44437         Reported by John Hughes, see
44438         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44439
44440 2003-02-20  Bruno Haible  <bruno@clisp.org>
44441
44442         * MODULES.html.sh (func_all_modules): Add poll.
44443
44444 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44445
44446         * modules/poll: New file.
44447
44448 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44449
44450         * lib/poll_.h: New file.
44451         * lib/poll.c: New file.
44452
44453 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44454
44455         * m4/poll.m4: New file.
44456
44457 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44458
44459         * modules/mathl: New file.
44460
44461 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44462
44463         * lib/mathl.h: New file.
44464         * lib/acosl.c: New file.
44465         * lib/asinl.c: New file.
44466         * lib/atanl.c: New file.
44467         * lib/ceill.c: New file.
44468         * lib/cosl.c: New file.
44469         * lib/expl.c: New file.
44470         * lib/floorl.c: New file.
44471         * lib/frexpl.c: New file.
44472         * lib/ldexpl.c: New file.
44473         * lib/logl.c: New file.
44474         * lib/sincosl.c: New file.
44475         * lib/sinl.c: New file.
44476         * lib/sqrtl.c: New file.
44477         * lib/tanl.c: New file.
44478         * lib/trigl.c: New file.
44479         * lib/trigl.h: New file.
44480
44481 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44482
44483         * m4/mathl.m4: New file.
44484
44485 2003-02-18  Bruno Haible  <bruno@clisp.org>
44486
44487         * MODULES.html.sh (func_all_modules): Add mathl.
44488
44489 2003-02-17  Bruno Haible  <bruno@clisp.org>
44490
44491         * modules/mkdtemp: New module.
44492         * MODULES.html.sh (func_all_modules): Add it.
44493
44494 2003-02-17  Bruno Haible  <bruno@clisp.org>
44495
44496         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44497
44498 2003-02-17  Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/mkdtemp.h: New file, from GNU gettext.
44501         * lib/mkdtemp.c: New file, from GNU gettext.
44502
44503 2003-02-02  Jim Meyering  <jim@meyering.net>
44504
44505         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44506         e.g. glibc-2.2.93.
44507
44508 2003-01-31  Bruno Haible  <bruno@clisp.org>
44509
44510         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44511         'rpl_rename'.
44512         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44513         'rpl_strnlen'.
44514         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44515         'rpl_strtod'.
44516         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44517         'rpl_utime'.
44518
44519 2003-01-31  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/rename.c: #undef rename before defining rpl_rename.
44522         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44523
44524 2003-01-30  Bruno Haible  <bruno@clisp.org>
44525
44526         * modules/vasnprintf, modules/vasprintf: New modules.
44527         * MODULES.html.sh (func_all_modules): Add them.
44528
44529 2003-01-30  Bruno Haible  <bruno@clisp.org>
44530
44531         * m4/signed.m4: New file, from GNU gettext.
44532         * m4/longdouble.m4: New file, from GNU gettext.
44533         * m4/wchar_t.m4: New file, from GNU gettext.
44534         * m4/wint_t.m4: New file, from GNU gettext.
44535         * m4/vasnprintf.m4: New file.
44536         * m4/vasprintf.m4: New file.
44537
44538 2003-01-30  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/printf-args.h: New file, from GNU gettext.
44541         * lib/printf-args.c: New file, from GNU gettext.
44542         * lib/printf-parse.h: New file, from GNU gettext.
44543         * lib/printf-parse.c: New file, from GNU gettext.
44544         * lib/vasnprintf.h: New file, from GNU gettext.
44545         * lib/vasnprintf.c: New file, from GNU gettext.
44546         * lib/asnprintf.c: New file, from GNU gettext.
44547         * lib/vasprintf.h: New file, from GNU gettext with modifications.
44548         * lib/vasprintf.c: New file, from GNU gettext.
44549         * lib/asprintf.c: New file, from GNU gettext.
44550
44551 2003-01-29  Bruno Haible  <bruno@clisp.org>
44552
44553         * modules/stpncpy: New module.
44554         * MODULES.html.sh (func_all_modules): Add it.
44555
44556 2003-01-29  Bruno Haible  <bruno@clisp.org>
44557
44558         * m4/stpncpy.m4: New file.
44559
44560 2003-01-29  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/stpncpy.h: New file, from GNU gettext with modifications.
44563         * lib/stpncpy.c: New file, from GNU gettext with modifications.
44564
44565 2003-01-28  Bruno Haible  <bruno@clisp.org>
44566
44567         * modules/c-ctype: New module.
44568         * MODULES.html.sh (func_all_modules): Add it.
44569
44570 2003-01-28  Bruno Haible  <bruno@clisp.org>
44571
44572         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44573         Paul Eggert.
44574         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44575         Paul Eggert.
44576
44577 2003-01-27  Bruno Haible  <bruno@clisp.org>
44578
44579         * modules/xsetenv: New module.
44580         * MODULES.html.sh (func_all_modules): Add it.
44581
44582 2003-01-27  Bruno Haible  <bruno@clisp.org>
44583
44584         * lib/xsetenv.h: New file, from GNU gettext.
44585         * lib/xsetenv.c: New file, from GNU gettext.
44586
44587 2003-01-23  Jim Meyering  <jim@meyering.net>
44588
44589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44590         from working on systems without dirfd (at least Irix and OSF1/Tru64).
44591
44592 2003-01-23  Bruno Haible  <bruno@clisp.org>
44593
44594         * modules/minmax: New module.
44595         * MODULES.html.sh (func_all_modules): Add it.
44596
44597 2003-01-23  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44600         Eggert.
44601
44602 2003-01-22  Bruno Haible  <bruno@clisp.org>
44603
44604         * modules/exit: New module.
44605         * MODULES.html.sh (func_all_modules): Add it.
44606
44607 2003-01-22  Bruno Haible  <bruno@clisp.org>
44608
44609         * lib/exit.h: New file, from GNU gettext.
44610
44611 2003-01-19  Bruno Haible  <bruno@clisp.org>
44612
44613         * gnulib-tool: Recognize option --extract-maintainer.
44614         (func_get_maintainer): New function.
44615         * modules/*: Add Maintainer entry.
44616
44617 2003-01-16  Jim Meyering  <jim@meyering.net>
44618
44619         * m4/regex.m4: The `regex' struct is both input and output.
44620         Initialize it before each use.  Patch by Tim Waugh.
44621
44622 2003-01-16  Bruno Haible  <bruno@clisp.org>
44623
44624         * MODULES.html.sh: Add a table of contents. Add the module name as
44625         leftmost column. Add hyperlinks.
44626
44627 2003-01-15  Bruno Haible  <bruno@clisp.org>
44628
44629         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
44630
44631 2003-01-15  Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
44634         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
44635         suffix.
44636
44637 2003-01-15  Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
44640
44641 2003-01-15  Bruno Haible  <bruno@clisp.org>
44642
44643         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
44644         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
44645
44646 2003-01-14  Jim Meyering  <jim@meyering.net>
44647
44648         * lib/same.c (same_name): Tweak a comment.
44649
44650 2003-01-14  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
44653         when a string comparison is sufficient.
44654
44655 2003-01-14  Bruno Haible  <bruno@clisp.org>
44656
44657         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
44658         'unsigned int'.
44659
44660 2003-01-14  Bruno Haible  <bruno@clisp.org>
44661
44662         * lib/hash-pjw.c: Add comment about low quality of this function.
44663
44664 2003-01-13  Bruno Haible  <bruno@clisp.org>
44665
44666         * modules/stpcpy: Distribute lib/stpcpy.h.
44667         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
44668
44669 2003-01-13  Bruno Haible  <bruno@clisp.org>
44670
44671         * modules/*: Add a description.
44672         * modules/strpbrk: Fix Makefile.am snippet.
44673         * modules/strtoimax: Fix dependencies.
44674         * modules/strtoumax: Likewise.
44675
44676 2003-01-13  Bruno Haible  <bruno@clisp.org>
44677
44678         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
44679         * modules/alloca (Makefile.am): All object files depend on alloca.h.
44680         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
44681
44682 2003-01-13  Bruno Haible  <bruno@clisp.org>
44683
44684         * gnulib-tool (func_create_testdir): Store config/* files in the main
44685         directory.
44686         * config.rpath: Move to ...
44687         * config/config.rpath: ... here.
44688         * modules/gettext: Contains config/config.rpath, not config.rpath.
44689         * modules/iconv: Likewise.
44690
44691 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44692
44693         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44694         to avoid collisions with libcurses and libreadline.
44695
44696         * m4/getstr.m4: Remove.
44697         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
44698
44699 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44700
44701         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44702         to avoid collisions with libcurses and libreadline.
44703
44704         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
44705         * lib/getstr.h, getstr.c: Remove.
44706         * lib/getline.c: Include "getline.h", to check interface.
44707         Move body of old getstr.c here: this defines MIN_CHUNK and
44708         declares getdelim2, which is renamed from getstr.
44709         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
44710
44711         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
44712         All uses changed.
44713         * lib/linebuffer.h: Likewise.
44714         (readline): Remove backward-compatibility macro.
44715
44716 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44717
44718         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44719         to avoid collisions with libcurses and libreadline.
44720         * getstr: Remove.
44721         * MODULES.html.sh: Remove getstr.
44722         * modules/getline: Depend on unlocked-io, not getstr.
44723
44724 2003-01-12  Jim Meyering  <jim@meyering.net>
44725
44726         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
44727
44728 2003-01-10  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/alloca: Change Makefile.am requirements. Simplify Include
44731         requirements. Add lib/alloca_.h to file list.
44732
44733 2003-01-10  Bruno Haible  <bruno@clisp.org>
44734
44735         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
44736
44737 2003-01-10  Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/alloca_.h: New file.
44740         * lib/getdate.y: Unconditionally include alloca.h.
44741         * lib/makepath.c: Likewise.
44742         * lib/setenv.c: Likewise.
44743         * lib/userspec.c: Likewise.
44744
44745 2003-01-09  Karl Berry  <karl@gnu.org>
44746
44747         * MODULES.html.sh: include `dirname $0` in PATH, to find
44748         gnulib-tool.
44749
44750 2003-01-09  Bruno Haible  <bruno@clisp.org>
44751
44752         * modules/stdbool: Change configure.ac, Makefile.am requirements.
44753         Simplify Include requirements. Add lib/stdbool.h.in to file list.
44754
44755 2003-01-09  Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
44758
44759 2003-01-09  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/stdbool.h.in: New file.
44762
44763 2003-01-09  Bruno Haible  <bruno@clisp.org>
44764
44765         * gnulib-tool (func_all_modules): Ignore files ending in ~.
44766         * MODULES.html.sh: Likewise.
44767
44768 2003-01-08  Jim Meyering  <jim@meyering.net>
44769
44770         * lib/full-write.c: Undefine and define-away `const' after inclusion
44771         of errno.h, not before.  Suggestion from Bruno Haible.
44772
44773 2003-01-08  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/full-read: Depend on full-write.
44776
44777 2003-01-08  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/safe-read.c: Include specification header first, to ensure its
44780         selfcontainedness.
44781         * lib/full-write.c: Likewise.
44782
44783 2003-01-07  Jim Meyering  <jim@meyering.net>
44784
44785         * lib/full-write.c: Rework so that it may serve to define full_read,
44786         too.
44787         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
44788
44789 2003-01-07  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/strtoimax.c: Include <stdint.h> as an alternative to
44792         <inttypes.h>.
44793         * lib/xstrtol.h: Likewise.
44794         * lib/xstrtoimax.c: Likewise.
44795         * lib/xstrtoumax.c: Likewise.
44796         * lib/human.h: Likewise.
44797
44798         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
44799         on systems that have <inttypes.h> but not <stdint.h>.
44800
44801 2003-01-07  Bruno Haible  <bruno@clisp.org>
44802
44803         * MODULES.html.sh: Add copyright notice.
44804         (missed_files): Omit CVS directory entries.
44805         (func_module): Make it work with sed-3.02.
44806         * MODULES.txt: Remove file.
44807
44808 2003-01-06  Jim Meyering  <jim@meyering.net>
44809
44810         * lib/version-etc.c: Update year in translatable copyright string.
44811
44812 2003-01-03  Karl Berry  <karl@gnu.org>
44813
44814         * config/config.{guess,sub}: update from prep.
44815
44816 2003-01-02  Karl Berry  <karl@gnu.org>
44817
44818         * doc/COPYING.DOC: belatedly updated to 1.2.
44819
44820 2003-01-01  Karl Berry  <karl@gnu.org>
44821
44822         * gnulib-tool (func_verify_module): report module name $module in
44823         error message, not $1.
44824         * gnulib-tool (create-testdir): don't complain if destdir couldn't
44825         be created, only if it doesn't exist.
44826         * gnulib-tool (last_checkin_date): don't expand the $Date here.
44827
44828 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44829
44830         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
44831
44832 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44833
44834         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
44835         memcmp if strcoll doesn't work.
44836
44837 2002-12-31  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/utime.c (utime_null): No need to call ftruncate if the file was
44840         nonempty.
44841
44842 2002-12-31  Bruno Haible  <bruno@clisp.org>
44843
44844         * lib/memcoll.c (STRCOLL): New macro.
44845         (memcoll): Use it.
44846
44847 2002-12-31  Bruno Haible  <bruno@clisp.org>
44848
44849         * lib/localcharset.h: New file.
44850         * lib/localcharset.c: Include it.
44851         * lib/unicodeio.c: Likewise.
44852
44853 2002-12-31  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
44856         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
44857
44858 2002-12-31  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/getline.h: Include <stddef.h>, for size_t.
44861
44862         * lib/unicodeio.h: Include <stddef.h>, for size_t.
44863         * lib/unicodeio.c: Don't include <stddef.h>.
44864
44865 2002-12-31  Bruno Haible  <bruno@clisp.org>
44866
44867         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
44868         HAVE_TM_ZONE.
44869
44870 2002-12-24  Karl Berry  <karl@gnu.org>
44871
44872         * config/config.guess: update from prep.
44873
44874 2002-12-24  Bruno Haible  <bruno@clisp.org>
44875
44876         General infrasructure.
44877         * m4/README: Rewritten.
44878         * m4/onceonly.m4: New file.
44879         * m4/onceonly_2_57.m4: New file.
44880
44881         Module atexit.
44882         * m4/atexit.m4: New file.
44883
44884         Module strtod.
44885         * m4/strtod.m4: New file.
44886
44887         Module strtol.
44888         * m4/strtol.m4: New file.
44889
44890         Module strtoul.
44891         * m4/strtoul.m4: New file.
44892
44893         Module memchr.
44894         * m4/memchr.m4: New file.
44895
44896         Module memcmp.
44897         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
44898         (jm_FUNC_MEMCMP): Invoke it.
44899
44900         Module memcpy.
44901         * m4/memcpy.m4: New file.
44902
44903         Module memmove.
44904         * m4/memmove.m4: New file.
44905
44906         Module memset.
44907         * m4/memset.m4: New file.
44908
44909         Module strcspn.
44910         * m4/strcspn.m4: New file.
44911
44912         Module strpbrk.
44913         * m4/strpbrk.m4: New file.
44914
44915         Module strstr.
44916         * m4/strstr.m4: New file.
44917
44918         Module strerror.
44919         * m4/strerror.m4: New file.
44920
44921         Module mktime.
44922         * m4/mktime.m4: Renamed from jm-mktime.m4.
44923         (gl_PREREQ_MKTIME): New macro.
44924         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
44925
44926         Module malloc.
44927         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
44928         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
44929         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
44930
44931         Module realloc.
44932         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
44933         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
44934         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
44935
44936         Module strftime.
44937         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
44938         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
44939         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
44940         gl_TM_GMTOFF.
44941         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
44942
44943         Module xalloc.
44944         * m4/xalloc.m4: New file.
44945
44946         Module alloca.
44947         * m4/alloca.m4: New file.
44948
44949         Module putenv.
44950         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
44951         (jm_FUNC_PUTENV): Invoke it.
44952
44953         Module setenv.
44954         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
44955         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
44956         when invoked twice.
44957         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
44958         gt_FUNC_SETENV.
44959
44960         Module memrchr.
44961         * m4/memrchr.m4: New file.
44962
44963         Module stpcpy.
44964         * m4/stpcpy.m4: New file.
44965
44966         Module strcase.
44967         * m4/strcase.m4: New file.
44968
44969         Module strdup.
44970         * m4/strdup.m4: New file.
44971
44972         Module strnlen.
44973         * m4/strnlen.m4: New file.
44974
44975         Module strndup.
44976         * m4/strndup.m4: New file.
44977
44978         Module xstrtod.
44979         * m4/xstrtod.m4: New file.
44980
44981         Module xstrtol.
44982         * m4/xstrtol.m4: New file.
44983
44984         Module getdate.
44985         * m4/getdate.m4: New file.
44986
44987         Module unlocked-io.
44988         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
44989         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
44990         * m4/jm-glibc-io.m4n: Remove file.
44991
44992         Module long-options.
44993         * m4/long-options.m4: New file.
44994
44995         Module md5.
44996         * m4/md5.m4: New file.
44997
44998         Module sha.
44999         * m4/sha.m4: New file.
45000
45001         Module getstr.
45002         * m4/getstr.m4: New file.
45003
45004         Module getline.
45005         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45006         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45007         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45008         simply getline. Infoke gl_PREREQ_GETLINE.
45009
45010         Module obstack.
45011         * m4/obstack.m4: New file.
45012
45013         Module hash.
45014         * m4/hash.m4: New file.
45015
45016         Module readtokens.
45017         * m4/readtokens.m4: New file.
45018
45019         Module strverscmp.
45020         * m4/strverscmp.m4: New file.
45021
45022         Module stdbool.
45023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45024         OSF/1.
45025
45026         Module strtoll.
45027         * m4/strtoll.m4: New file.
45028
45029         Module strtoull.
45030         * m4/strtoull.m4: New file.
45031
45032         Module strtoimax.
45033         * m4/strtoimax.m4: New file.
45034
45035         Module strtoumax.
45036         * m4/strtoumax.m4: New file.
45037
45038         Module xstrtoimax.
45039         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45040         jm_AC_PREREQ_XSTRTOIMAX.
45041         Moved the strtol prerequisites to strtol.m4.
45042         Moved the strtoll prerequisites to strtoll.m4.
45043         Moved the strtoimax prerequisites to strtoimax.m4.
45044
45045         Module xstrtoumax.
45046         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45047         jm_AC_PREREQ_XSTRTOUMAX.
45048         Moved the strtoul prerequisites to strtoul.m4.
45049         Moved the strtoull prerequisites to strtoull.m4.
45050         Moved the strtoumax prerequisites to strtoumax.m4.
45051
45052         Module chown.
45053         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45054         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45055
45056         Module dup2.
45057         * m4/dup2.m4: New file.
45058
45059         Module ftruncate.
45060         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45061         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45062
45063         Module getgroups.
45064         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45065         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45066
45067         Module gettimeofday.
45068         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45069         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45070         gl_PREREQ_GETTIMEOFDAY.
45071
45072         Module mkdir.
45073         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45074         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45075
45076         Module mkstemp.
45077         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45078         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45079         jm_AC_TYPE_UINTMAX_T.
45080         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45081
45082         Module stat.
45083         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45084         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45085
45086         Module lstat.
45087         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45088         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45089
45090         Module timespec.
45091         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45092         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45093         * m4/st_mtim.m4: Indentation.
45094
45095         Module nanosleep.
45096         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45097         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45098         gl_PREREQ_NANOSLEEP.
45099
45100         Module regex.
45101         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45102         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45103         (gl_REGEX): New macro.
45104
45105         Module rename.
45106         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45107         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45108
45109         Module rmdir.
45110         * m4/rmdir.m4: New file.
45111
45112         Module utime.
45113         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45114         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45115         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45116
45117         Module dirname.
45118         * m4/dirname.m4: New file.
45119
45120         Module getopt.
45121         * m4/getopt.m4: New file.
45122
45123         Module unistd-safer.
45124         * m4/unistd-safer.m4: New file.
45125
45126         Module fnmatch.
45127         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45128         declaration.
45129         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45130         (gl_FUNC_FNMATCH_POSIX): New macro.
45131         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45132         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45133         simply fnmatch.
45134
45135         Module exclude.
45136         * m4/exclude.m4: New file.
45137
45138         Module human.
45139         * m4/human.m4: New file.
45140
45141         Module acl.
45142         * m4/acl.m4: Nop.
45143
45144         Module backupfile.
45145         * m4/backupfile.m4: New file.
45146         * m4/d-ino.m4: Indentation.
45147
45148         Module fsusage.
45149         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45150         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45151         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45152
45153         Module dirfd.
45154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45155         requirements.
45156
45157         Module euidaccess.
45158         * m4/euidaccess.m4: New file.
45159
45160         Module file-type.
45161         * m4/file-type.m4: New file.
45162
45163         Module fileblocks.
45164         * m4/fileblocks.m4: New file.
45165
45166         Module filemode.
45167         * m4/filemode.m4: New file.
45168
45169         Module isdir.
45170         * m4/isdir.m4: New file.
45171
45172         Module lchown.
45173         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45174         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45175
45176         Module makepath.
45177         * m4/makepath.m4: New file.
45178
45179         Module modechange.
45180         * m4/modechange.m4: New file.
45181
45182         Module mountlist.
45183         * m4/mountlist.m4: New file.
45184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45185         Indentation.
45186
45187         Module path-concat.
45188         * m4/path-concat.m4: New file.
45189
45190         Module pathmax.
45191         * m4/pathmax.m4: New file.
45192
45193         Module same.
45194         * m4/same.m4: New file.
45195
45196         Module save-cwd.
45197         * m4/save-cwd.m4: New file.
45198
45199         Module savedir.
45200         * m4/savedir.m4: New file.
45201
45202         Module xgetcwd.
45203         * m4/xgetcwd.m4: New file.
45204         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45205
45206         Module xreadlink.
45207         * m4/xreadlink.m4: New file.
45208
45209         Module safe-read.
45210         * m4/safe-read.m4: New file.
45211
45212         Module safe-write.
45213         * m4/safe-write.m4: New file.
45214
45215         Module closeout.
45216         * m4/closeout.m4: New file.
45217
45218         Module stdio-safer.
45219         * m4/stdio-safer.m4: New file.
45220
45221         Module getpass.
45222         * m4/getpass.m4: New file.
45223
45224         Module getugroups.
45225         * m4/getugroups.m4: New file.
45226
45227         Module group-member.
45228         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45229         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45230
45231         Module idcache.
45232         * m4/idcache.m4: New file.
45233
45234         Module userspec.
45235         * m4/userspec.m4: New file.
45236
45237         Module gettime.
45238         * m4/clock_time.m4: New file.
45239         * m4/gettime.m4: New file.
45240
45241         Module settime.
45242         * m4/settime.m4: New file.
45243
45244         Module posixtm.
45245         * m4/posixtm.m4: New file.
45246
45247         Module gethostname.
45248         * m4/gethostname.m4: New file.
45249
45250         Module canon-host.
45251         * m4/canon-host.m4: New file.
45252
45253         Module gettext.
45254         * m4/codeset.m4: New file, from gettext-0.11.5.
45255         * m4/gettext.m4: New file, from gettext-0.11.5.
45256         * m4/glibc21.m4: New file, from gettext-0.11.5.
45257         * m4/iconv.m4: New file, from gettext-0.11.5.
45258         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45259         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45260         * m4/inttypes.m4: New file, from gettext-0.11.5.
45261         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45262         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45263         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45264         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45265         * m4/lib-link.m4: New file, from gettext-0.11.5.
45266         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45267         * m4/progtest.m4: New file, from gettext-0.11.5.
45268         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45269         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45270         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45271
45272         Module localcharset.
45273         * m4/localcharset.m4: New file.
45274
45275         Module hard-locale.
45276         * m4/hard-locale.m4: New file.
45277
45278         Module mbswidth.
45279         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45280         onceonly macros.
45281         * m4/mbrtowc.m4: Add comment.
45282
45283         Module memcasecmp.
45284         * m4/memcasecmp.m4: New file.
45285
45286         Module memcoll.
45287         * m4/memcoll.m4: New file.
45288
45289         Module unicodeio.
45290         * m4/unicodeio.m4: New file.
45291
45292         Module rpmatch.
45293         * m4/rpmatch.m4: New file.
45294
45295         Module yesno.
45296         * m4/yesno.m4: New file.
45297
45298         Module exitfail.
45299         * m4/exitfail.m4: New file.
45300
45301         Module c-stack.
45302         * m4/c-stack.m4 (gl_C_STACK): New macro.
45303         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45304
45305         Module error.
45306         * m4/error.m4 (gl_ERROR): New macro.
45307         (jm_PREREQ_ERROR): Use onceonly macros.
45308
45309         Module fatal.
45310         * m4/fatal.m4: New file.
45311
45312         Module getloadavg.
45313         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45314         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45315
45316         Module getpagesize.
45317         * m4/getpagesize.m4: New file.
45318
45319         Module getusershell.
45320         * m4/getusershell.m4: New file.
45321
45322         Module physmem.
45323         * m4/physmem.m4: New file.
45324
45325         Module posixver.
45326         * m4/posixver.m4: New file.
45327
45328         Module quotearg.
45329         * m4/quotearg.m4: New file.
45330
45331         Module quote.
45332         * m4/quote.m4: New file.
45333
45334         Module readutmp.
45335         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45336
45337         Module sig2str.
45338         * m4/sig2str.m4: New file.
45339
45340         Other.
45341         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45342         ulonglong.m4.
45343         * m4/intmax_t.m4: New file.
45344         * m4/d-type.m4: Indentation.
45345         * m4/jm-macros.m4: Update.
45346         * m4/prereq.m4 (jm_PREREQ): Update.
45347         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45348         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45349         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45350         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45351         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45352         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45353         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45354         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45355         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45356         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45357         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45358         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45359         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45360         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45361         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45362         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45363         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45364         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45365         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45366
45367 2002-12-24  Bruno Haible  <bruno@clisp.org>
45368
45369         * MODULES.txt: Update according to m4/ changes.
45370
45371         Module gettext.
45372         * config.rpath: New file, from gettext-0.11.5.
45373
45374         * modules/*: New module descriptions.
45375         * gnulib-tool: New file.
45376         * MODULES.html.sh: New file.
45377
45378 2002-12-21  Karl Berry  <karl@gnu.org>
45379
45380         * doc/fdl.texi: update to version 1.2.
45381
45382 2002-12-19  Karl Berry  <karl@gnu.org>
45383
45384         * config/config.guess: update from prep.
45385
45386 2002-12-18  Bruno Haible  <bruno@clisp.org>
45387
45388         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45389         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45390
45391 2002-12-17  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45394         stdlib.h, string.h.
45395
45396 2002-12-17  Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/canon-host.c (strdup): Remove unused declaration.
45399
45400         * lib/fsusage.c: Include full_read.h.
45401         (get_fs_usage): Use full_read instead of safe_read.
45402
45403         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45404
45405 2002-12-12  Karl Berry  <karl@gnu.org>
45406
45407         * config/config.guess: update from prep.
45408
45409 2002-12-11  Bruno Haible  <bruno@clisp.org>
45410
45411         * m4/setenv.m4: New file, from gettext-0.11.5.
45412
45413 2002-12-11  Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45416         not unsetenv().
45417         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45418         modifications:
45419
45420         2002-12-11  Bruno Haible  <bruno@clisp.org>
45421
45422                 * setenv.c (alloca): Fall back to malloc.
45423                 (freea): New macro.
45424                 (setenv): Use freea() to free memory allocated with alloca().
45425
45426         2002-11-13  Bruno Haible  <bruno@clisp.org>
45427
45428                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45429                 function declarations.
45430                 * unsetenv.c (unsetenv): Likewise.
45431
45432         2002-03-04  Bruno Haible  <bruno@clisp.org>
45433
45434                 Portability to AIX 4.3.3.
45435                 * unsetenv.c: New file, extracted from setenv.c.
45436                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45437
45438         2001-12-20  Bruno Haible  <bruno@clisp.org>
45439
45440                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45441                 use malloc instead. For SunOS 4.
45442
45443         2001-12-11  Bruno Haible  <bruno@clisp.org>
45444
45445                 * setenv.c: Declare alloca.
45446                 (compar_fn_t): New typedef.
45447                 (KNOWN_VALUE, STORE_VALUE): Use it.
45448
45449         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45450         setenv.h.
45451
45452 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45453
45454         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45455         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45456         Choose values that are less likely to collide with system fnmatch
45457         options.
45458         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45459         defined (e.g., a pure POSIX system).
45460         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45461         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45462
45463 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45464
45465         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45466         a pain in practice to deal with generated m4 files.  This change
45467         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45468
45469         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45470         and jm-glibc-io.m4, as they are no longer a special case.
45471         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45472         kludge and the auto-generation stuff.  Check only whether the
45473         functions are declared, not whether they exist, since older hosts
45474         that don't declare the functions can't use the optimization anyway.
45475
45476 2002-12-06  Jim Meyering  <jim@meyering.net>
45477
45478         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45479
45480         Merge in changes from libc's misc/error.c, in preparation
45481         for the merge of gnulib's changes back into libc.
45482
45483         * lib/error.c (_): Define only if not already defined.
45484         Move definition to follow all #include directives.
45485         Include unlocked-io.h only if !_LIBC.
45486         [_LIBC]: Include <libio/libioP.h>.
45487         [USE_IN_LIBIO]: Include <libio/iolibio.h>
45488         (fflush): Tweak definition to use INTUSE.
45489         (putc): Define.
45490
45491 2002-12-05  Paul Eggert  <eggert@twinsun.com>
45492
45493         * lib/alloca.c [defined emacs]: Include "lisp.h".
45494         (xalloc_die) [defined emacs]: New macro.
45495         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45496         [! defined emacs]: Include <xalloc.h>.
45497         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45498         (pointer): Typedef to POINTER_TYPE *.
45499         (malloc): Remove decl; we now always use xmalloc.
45500         (alloca): Use old-style definition, since Emacs needs this.
45501         Check for arithmetic overflow when computing combined size.
45502
45503 2002-12-04  Paul Eggert  <eggert@twinsun.com>
45504
45505         Do not generate unlocked-io.h automatically, since it's easier to
45506         maintain it by hand.
45507
45508         * lib/unlocked-io.h: New file, from GNU diffutils,
45509         but with proper copyright notice and attribution.
45510         * lib/gen-uio: Remove.
45511         * lib/Makefile.am: Add copyright notice.
45512         (libfetish_a_SOURCES): Add unlocked-io.h.
45513         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45514         (DISTCLEANFILES, io_functions): Remove macros.
45515         (EXTRA_DIST): Remove gen_uio.
45516         (unlocked-io.h): Remove rule.
45517
45518 2002-12-04  Jim Meyering  <jim@meyering.net>
45519
45520         Reflect the fact that stat.c and lstat.c are no longer generated.
45521         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45522         (DISTCLEANFILES): Likewise.
45523         (EXTRA_DIST): Likewise.
45524         (all_local): Don't depend on stat.c or lstat.c.
45525         (stat.c, lstat.c): Remove rules.
45526         (EXTRA_DIST): Remove xstat.in.
45527
45528         * lib/xstat.in: Remove file.  Contents moved into stat.c.
45529         * lib/stat.c: New file.  Contents mostly from xstat.in.
45530         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45531         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45532
45533         * lib/safe-read.c: Rework so that it may serve to define safe_write,
45534         too.
45535         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45536
45537 2002-12-03  Jim Meyering  <jim@meyering.net>
45538
45539         * lib/safe-read.c, safe-write.c: Change variable names and comments,
45540         but not semantics, to minimize the differences between these two files.
45541         (safe_read): Change comment to mention SAFE_READ_ERROR.
45542
45543         * lib/safe-read.c (IS_EINTR): Define.
45544         (safe_read): Use IS_EINTR in place of in-function cpp directives.
45545
45546 2002-12-02  Jim Meyering  <jim@meyering.net>
45547
45548         * lib/safe-read.c (EINTR): Define.
45549         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45550         (INT_MAX): Provide fallback.
45551         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45552
45553         * lib/safe-read.h (SAFE_READ_ERROR): Define.
45554
45555 2002-12-02  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45558         Define, taken from safe-read.c.
45559         (INT_MAX): Provide fallback.
45560         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45561         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45562
45563         * lib/safe-read.c (EINTR): Remove definition.
45564         (safe_read): Don't use EINTR if it is absent.
45565
45566 2002-12-01  Jim Meyering  <jim@meyering.net>
45567
45568         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45569         zero.
45570         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45571
45572 2002-11-27  Paul Eggert  <eggert@twinsun.com>
45573
45574         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45575         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45576         with `if (! (value < limit)) abort ();', for readability.
45577
45578 2002-11-26  Karl Berry  <karl@gnu.org>
45579
45580         * lib/strdup.c: copy from libc again, with jim's ok.
45581         * lib/.cppi-disable: re-add strdup.c
45582
45583 2002-11-25  Karl Berry  <karl@gnu.org>
45584
45585         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45586         instead of "strtol.c".
45587
45588 2002-11-25  Karl Berry  <karl@gnu.org>
45589
45590         * config/install-sh: update from automake for variable quoting, $0 in
45591         error msgs, etc.
45592
45593         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45594         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45595         entry.
45596
45597 2002-11-25  Jim Meyering  <jim@meyering.net>
45598
45599         * lib/mktime.c: Sync from libc, now that it has the latest fix.
45600
45601 2002-11-24  Karl Berry  <karl@gnu.org>
45602
45603         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45604         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45605
45606 2002-11-24  Jim Meyering  <jim@meyering.net>
45607
45608         Update from coreutils:
45609
45610         * lib/mktime.c: Merge in changes from libc.
45611
45612         Avoid a link-time failure on some Linux systems.
45613         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
45614         (otherwise).
45615         (__mon_yday): Declare with the STATIC attribute.
45616         (__mktime_internal): Likewise.
45617         Based on a report from Greg Schafer.
45618
45619 2002-11-23  Jim Meyering  <jim@meyering.net>
45620
45621         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
45622         Use `unsigned', not `int', as type of index.
45623
45624         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
45625
45626         * lib/fsusage.c: Remove unneeded parentheses around operands of
45627         `defined'.
45628
45629 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45630
45631         * lib/quotearg.h: Allow multiple inclusion by surrounding with
45632         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
45633         so that we can be included first.
45634         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
45635         * lib/quotearg.c: Include quotearg.h immediately after config.h.
45636         No need to include stddef.h or sys/types.h any more.
45637         Surround local include files with "", not "<>".
45638         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
45639         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
45640         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
45641         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
45642         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
45643         (ISPRINT): Remove; no longer needed now that we assume C89.
45644
45645         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
45646         Preserve errno.
45647
45648         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
45649         quotearg_char): Use SIZE_MAX rather than
45650         (size_t) -1 when we are talking about "infinity".
45651
45652         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
45653
45654 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45655
45656         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
45657         hint that one should use `if (! x) abort ();' rather than `assert
45658         (x);', and anyway it's one less thing to worry about configuring.
45659         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
45660         hash_rehash, hash_insert): Use abort rather than assert.
45661
45662 2002-11-22  Bruno Haible  <bruno@clisp.org>
45663
45664         * lib/safe-read.h: Assume C89. Add comments.
45665         (safe_read): Change return type to size_t.
45666         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
45667         byte counts > SSIZE_MAX correctly.
45668         * lib/safe-write.h: New file.
45669         * lib/safe-write.c: New file.
45670         * lib/full-read.h: New file.
45671         * lib/full-read.c: New file.
45672         * lib/full-write.h: Assume C89. Add comments.
45673         * lib/full-write.c: Include safe-write.h.
45674         (full_write): Rewritten to use safe_write.
45675         Suggested by Jim Meyering and Paul Eggert.
45676
45677 2002-11-21  Jim Meyering  <jim@meyering.net>
45678
45679         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
45680
45681         Merge in changes from the coreutils.
45682
45683         2002-09-25  Paul Eggert  <eggert@twinsun.com>
45684         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
45685         <stdint.h>.
45686         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
45687         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
45688         int.  Work more efficiently if X is the same width as uintmax_t.
45689         Do not compare X to -1, to avoid bogus compiler warning.
45690         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
45691         Don't assume that f_frsize and f_bsize are the same type.
45692
45693         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
45694         warning on FreeBSD.
45695
45696         * lib/makepath.c (make_path): Restore umask *before* creating the final
45697         component.
45698         (make_path): Minor reformatting.
45699
45700         * lib/xmalloc.c: Adjust to work with new autoconf macros,
45701         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
45702         HAVE_MALLOC/HAVE_REALLOC.
45703
45704         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
45705         dummy ones.  At least on GNU/Linux systems, `auto' means something
45706         else.
45707         From Michael Stone.
45708
45709 2002-11-21  Bruno Haible  <bruno@clisp.org>
45710
45711         Remove case insensitive option matching.
45712         * lib/argmatch.h (argcasematch): Remove declaration.
45713         (ARGCASEMATCH): Remove macro.
45714         (__xargmatch_internal): Remove case_sensitive argument.
45715         (XARGMATCH): Update.
45716         (XARGCASEMATCH): Remove macro.
45717         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
45718         case_sensitive argument.
45719         (argcasematch): Remove function.
45720         (__xargmatch_internal): Remove case_sensitive argument.
45721         (main): Use XARGMATCH instead of XARGCASEMATCH.
45722
45723         * lib/xmalloc.c: Change compile-time error message. Add comment about
45724         required autoconf version.
45725
45726 2002-11-20  Paul Eggert  <eggert@twinsun.com>
45727
45728         Merge argmatch cleanups from Bison.  Assume C89.
45729
45730         * lib/argmatch.c: Include config.h here, not in argmatch.h.
45731         Include stdlib.h, for EXIT_FAILURE.
45732         Always include <string.h>, since we assume C89.
45733         (EXIT_FAILURE): Remove pre-C89 bug workaround.
45734         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
45735         Include <stddef.h> instead, since it's all we need for size_t.
45736         (PARAMS): Remove.  All uses removed.
45737         (ARRAY_CARDINALITY): Do not bother to #undef.
45738         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
45739         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45740         Remove unnecessary parentheses.
45741         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45742         Insert necessary parentheses.
45743         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
45744         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
45745
45746 2002-11-19  Bruno Haible  <bruno@clisp.org>
45747
45748         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
45749         * lib/mbswidth.h: Include <stddef.h>, for size_t.
45750
45751         * lib/mbswidth.h (PARAMS): Remove macro.
45752         (mbswidth, mbsnwidth): Use ANSI C function declarations.
45753         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
45754
45755         * lib/gcd.h (PARAMS): Remove macro.
45756         (gcd): Use ANSI C function declarations.
45757         * lib/gcd.c (gcd): Likewise.
45758
45759 2002-11-15  Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/strcspn.c: Include <stddef.h>.
45762         (strcspn): Use ANSI C function declaration. Change return type to
45763         size_t. Use NULL.
45764         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
45765         (strpbrk): Use NULL.
45766         * lib/strpbrk.h (PARAMS): Remove macro.
45767         (strpbrk): Use ANSI C function declaration.
45768         * lib/strstr.c: Don't include <sys/types.h>.
45769         * lib/strstr.h (PARAMS): Remove macro.
45770         (strstr): Use ANSI C function declarations.
45771
45772 2002-11-14  Karl Berry  <karl@gnu.org>
45773
45774         * config/mkinstalldirs: `do' on separate line, instead of
45775         `for var; do'.
45776
45777 2002-11-06  Bruno Haible  <bruno@clisp.org>
45778
45779         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
45780         * lib/gcd.c (gcd): Likewise.
45781
45782 2002-11-05  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/gcd.h: New file, from gettext-0.11.5.
45785         * lib/gcd.c: New file, from gettext-0.11.5.
45786
45787 2002-11-05  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45790         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45791         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45792         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45793
45794         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
45795         <libintl.h>.
45796         * lib/makepath.c: Include gettext.h instead of <locale.h> and
45797         <libintl.h>.
45798
45799         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
45800         * lib/human.c: Include gettext.h instead of <libintl.h>.
45801         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
45802         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
45803         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
45804         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
45805         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
45806         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
45807         (textdomain): Remove definition.
45808         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
45809
45810         * lib/long-options.c: Remove include of <libintl.h> and definition of
45811         _.
45812         * lib/same.c: Remove include of <libintl.h> and definition of _.
45813
45814 2002-11-04  Owen Taylor  <otaylor@redhat.com>
45815
45816         * lib/config.charset: A few additions for Solaris.
45817
45818 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45819
45820         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
45821         * lib/localcharset.c (locale_charset): Declare as extern "C".
45822
45823 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45824
45825         * lib/config.charset: msdos in uk_UA uses CP1125.
45826
45827 2002-11-04  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
45830         * lib/strcase.h: New file, from GNU gettext-0.11.5.
45831         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
45832         * lib/strstr.h: New file, from GNU gettext-0.11.5.
45833         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
45834
45835 2002-11-04  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/localcharset.c (locale_charset): Don't return an empty string.
45838
45839 2002-11-04  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
45842         aliases.
45843
45844 2002-11-04  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/config.charset: Update for newest glibc. Add canonical names
45847         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
45848
45849 2002-11-04  Bruno Haible  <bruno@clisp.org>
45850
45851         * lib/config.charset: Add support for NetBSD.
45852
45853 2002-11-04  Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
45856
45857 2002-11-01  Bruno Haible  <bruno@clisp.org>
45858
45859         * configure.in: Add AC_CONFIG_AUX_DIR call.
45860         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
45861         test/Makefile.
45862         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
45863
45864 2002-09-28  Karl Berry  <karl@gnu.org>
45865
45866         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
45867         installed automake until the next release, since changes have been
45868         made.
45869
45870 2002-09-25  Karl Berry  <karl@gnu.org>
45871
45872         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
45873         * lib/getopt*: copy from libc/posix.
45874         * lib/gettext.h: copy from gettext.
45875         * lib/.cppi-disable: add strdup.c, gettext.h.
45876
45877 2002-09-25  Karl Berry  <karl@gnu.org>
45878
45879         * config/srclist.txt: enable gettext.h check.
45880         * config/config.{guess,sub}: update from prep.
45881         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
45882                 from automake 1.6.3.
45883         See srclist*.
45884
45885 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
45886
45887         * regex.c (PATFETCH): Remove the translating fetch.
45888         (PATFETCH_RAW): Rename to PATFETCH.
45889         (set_image_of_range): New fun.
45890         (SET_RANGE_TABLE_WORK_AREA): Use it.
45891         (regex_compile): Don't translate the pattern chars so eagerly.
45892         Only do it when inserting an `exactn' bytecode or when handling
45893         a char-range.
45894         (mutually_exclusive_p): Avoid empty statement.
45895
45896 2002-07-06  Jim Meyering  <meyering@lucent.com>
45897
45898         * m4/README: Don't mention Makefile.am.in.
45899         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
45900
45901 2002-07-01  Jim Meyering  <meyering@lucent.com>
45902
45903         * lib/c-stack.c: Include sys/time.h.
45904         From Volker Borchert.
45905
45906 2002-06-26  Paul Eggert  <eggert@twinsun.com>
45907
45908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
45909
45910 2002-06-26  Paul Eggert  <eggert@twinsun.com>
45911
45912         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
45913         New macro.  Use it uniformly instead of
45914         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
45915         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
45916         reported by Vin Shelton.
45917
45918 2002-06-22  Paul Eggert  <eggert@twinsun.com>
45919
45920         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
45921         Do not assume SA_SIGINFO behavior.
45922         Bug reported by Jim Meyering on NetBSD 1.5.2.
45923
45924 2002-06-22  Jim Meyering  <meyering@lucent.com>
45925
45926         * m4/c-stack.m4: New file, from diffutils-2.8.2.
45927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
45928
45929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
45930         now that configure.ac uses AC_GNU_SOURCE.
45931         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
45932         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
45933
45934         Update to latest tools.  Suggestions from Paul Eggert.
45935         * m4/stdbool.m4: New file, from diffutils-2.8.2.
45936         * m4/gnu-source.m4: Update from diffutils-2.8.2.
45937         * m4/fnmatch.m4: Likewise.
45938         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
45939         to AC_HEADER_STDBOOL
45940
45941 2002-06-22  Jim Meyering  <meyering@lucent.com>
45942
45943         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
45944         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
45945
45946 2002-06-22  Jim Meyering  <meyering@lucent.com>
45947
45948         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
45949
45950         * lib/exitfail.c, exitfail.h: Likewise.
45951         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
45952
45953         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
45954         of fnmatch.h.
45955         (EXTRA_DIST): Add fnmatch_loop.c.
45956         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
45957
45958         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
45959         * lib/fnmatch.c: Update from diffutils-2.8.2.
45960         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
45961         * lib/fnmatch.h: Remove file.
45962
45963 2002-06-21  Jim Meyering  <meyering@lucent.com>
45964
45965         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
45966         * m4/mbrtowc.m4: Likewise.
45967
45968         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
45969         * m4/mbswidth.m4: Reflect name change:
45970         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
45971         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
45972
45973         * m4/lib-link.m4: Update from gettext-0.11.2.
45974         * m4/gettext.m4: Likewise.
45975
45976         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
45977         From Alfred M. Szmidt.
45978
45979 2002-06-18  Paul Eggert  <eggert@twinsun.com>
45980
45981         * lib/file-type.h: Report an error if neither S_ISREG nor
45982         S_IFREG is defined, instead of using a test specific to glibc
45983         2.2.  This should be safe, since POSIX requires S_ISREG and
45984         Unix Version 7 had S_IFREG.  We don't need to check for
45985         <sys/types.h> since we don't use any symbols that it defines.
45986
45987 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
45988
45989         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
45990         $@-t, so that each temporary file name is unique and valid in the first
45991         8 characters, for operation under DOS.
45992
45993 2002-06-15  Paul Eggert  <eggert@twinsun.com>
45994
45995         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
45996
45997 2002-06-15  Jim Meyering  <meyering@lucent.com>
45998
45999         Work even with DJGPP 2.03, which lacks support for symlinks.
46000         From Richard Dawe.
46001         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46002         is defined.
46003         * lib/lchown.c (S_ISLNK): Likewise.
46004
46005 2002-06-15  Jim Meyering  <meyering@lucent.com>
46006
46007         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46008         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46009         have been included before this file.
46010
46011 2002-06-14  Jim Meyering  <meyering@lucent.com>
46012
46013         * lib/file-type.h: Use the version from diffutils-2.8.2.
46014         * lib/file-type.c: Likewise.
46015
46016 2002-06-07  Jim Meyering  <meyering@lucent.com>
46017
46018         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46019         They're needed at least for NetBSD 1.5.2.
46020         ($statxfs_includes): Include those same headers.
46021         ($statxfs_includes): Include sys/vfs.h if available.
46022         ($statxfs_includes): Likewise for sys/statvfs.h.
46023         Check for the following members in both structs statfs and statvfs:
46024         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46025
46026 2002-06-01  Jim Meyering  <meyering@lucent.com>
46027
46028         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46029         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46030
46031 2002-05-28  Jim Meyering  <meyering@lucent.com>
46032
46033         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46034         Reported by Volker Borchert.
46035
46036 2002-05-27  Jim Meyering  <meyering@lucent.com>
46037
46038         Fix a problem seen only on nonconforming systems whereby ls.c's
46039         use of localtime, and then of gettimeofday would cause trouble:
46040         the localtime call used to initialize rpl_gettimeofday's save
46041         mechanism would clobber ls's current local time information so
46042         that in any long listing the first file would always be listed
46043         with date 1970-01-01.  Analysis by Volker Borchert.
46044
46045         * lib/gettimeofday.c (localtime): Undefine.
46046         (rpl_localtime): New function.
46047
46048 2002-05-27  Jim Meyering  <meyering@lucent.com>
46049
46050         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46051         localtime.
46052
46053         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46054         use the replacement function; it wouldn't resolve at link time.
46055         Reported by Volker Borchert.
46056
46057 2002-05-22  Jim Meyering  <meyering@lucent.com>
46058
46059         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46060         file-type.h.
46061         * lib/file-type.h: New file.
46062         * lib/file-type.c (file_type): New file/function.  Extracted from
46063         diffutils.
46064
46065 2002-04-30  Jim Meyering  <meyering@lucent.com>
46066
46067         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46068
46069 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46070
46071         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46072
46073 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46074
46075         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46076         Do not check for alloca.h (no longer used) or stdbool.h (was never
46077         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46078
46079 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46080
46081         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46082
46083 2002-04-29  Jim Meyering  <meyering@lucent.com>
46084
46085         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46086         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46087         Use AC_FUNC_STRNLEN here instead.
46088
46089         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46090         With autoconf-2.53a, it's part of AC_PROG_CC.
46091
46092 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46093
46094         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46096
46097 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46098
46099         * lib/sig2str.h, lib/sig2str.c: New files.
46100         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46101
46102 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46103
46104         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46105         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46106         of 127, since 64 is the largest conceivable number for ancient
46107         nonstandard hosts.
46108         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46109
46110 2002-04-28  Jim Meyering  <meyering@lucent.com>
46111
46112         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46113
46114 2002-04-24  Jim Meyering  <meyering@lucent.com>
46115
46116         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46117         (jm_PREREQ): Use it.
46118
46119         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46120         mach/mach.h fcntl.h.
46121         Check for this function: setlocale.
46122
46123 2002-04-24  Jim Meyering  <meyering@lucent.com>
46124
46125         * lib/gettext.h: New file, from Gettext.
46126         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46127         (libfetish_a_SOURCES): Add gettext.h.
46128
46129 2002-04-16  Jim Meyering  <meyering@lucent.com>
46130
46131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46132         ut_pid, ut_id, ut_exit.
46133
46134 2002-04-16  Jim Meyering  <meyering@lucent.com>
46135
46136         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46137         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46138         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46139
46140 2002-04-12  Jim Meyering  <meyering@lucent.com>
46141
46142         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46143         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46144         existence of the getmntinfo function.  Needed for Darwin 5.3.
46145
46146         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46147         This is necessary at least on Darwin 5.3.
46148
46149         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46150         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46151         strnlen.o in the library, and that makes some versions of ranlib
46152         object.
46153
46154 2002-04-12  Jim Meyering  <meyering@lucent.com>
46155
46156         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46157
46158 2002-04-09  Jim Meyering  <meyering@lucent.com>
46159
46160         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46161         to be more precise.  Rather than saying we're checking whether the
46162         function `works', say what we're testing.
46163         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46164         Reported by Bruno Haible.
46165
46166 2002-03-10  Jim Meyering  <meyering@lucent.com>
46167
46168         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46169         Suggestion from Santiago Vila.
46170
46171 2002-03-08  Jim Meyering  <meyering@lucent.com>
46172
46173         * lib/rename.c: Mention that this wrapper is needed also on
46174         mips-dec-ultrix4.4 systems.
46175
46176 2002-03-02  Jim Meyering  <meyering@lucent.com>
46177
46178         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46179         not HAVE_CLOCK_SETTIME.
46180
46181 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46182
46183         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46184         Check for clock_settime.
46185
46186 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46187
46188         * lib/nanosleep.h: Rename to....
46189         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46190
46191         * lib/gettime.c: New file.
46192         * lib/settime.c: New file.
46193         * lib/stime.c: Remove.
46194
46195         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46196         timespec.h.  Remove nanosleep.h.
46197
46198 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46199
46200         * m4/acl.m4: New file.
46201         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46202         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46203
46204 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46205
46206         * lib/acl.c, lib/acl.h: New files.
46207         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46208
46209 2002-02-24  Jim Meyering  <meyering@lucent.com>
46210
46211         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46212         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46213         cause trouble.  Reported by Nelson Beebe.
46214
46215 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46216
46217         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46218         compilers that don't know that xalloc_die never returns.
46219
46220 2002-02-20  Jim Meyering  <meyering@lucent.com>
46221
46222         * lib/getdate.c: Regenerate using bison-1.33.
46223
46224 2002-02-17  Jim Meyering  <meyering@lucent.com>
46225
46226         * config/config.guess (main): Don't use `head -1'; it's no longer
46227         portable. Use `sed 1q' instead.
46228
46229 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46230
46231         * m4/codeset.m4: Upgrade to gettext-0.11.
46232         * m4/gettext.m4: Upgrade to gettext-0.11.
46233         * m4/glibc21.m4: Upgrade to gettext-0.11.
46234         * m4/iconv.m4: Upgrade to gettext-0.11.
46235         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46236         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46237         * m4/lib-ld.m4: New file, from gettext-0.11.
46238         * m4/lib-link.m4: New file, from gettext-0.11.
46239         * m4/lib-prefix.m4: New file, from gettext-0.11.
46240         * m4/progtest.m4: Upgrade to gettext-0.11.
46241
46242 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46243
46244         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46245         (jm_PREREQ): Use it.
46246
46247 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46248
46249         * lib/posixver.c, lib/posixver.h: New files.
46250         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46251
46252 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46253             Bruno Haible  <bruno@clisp.org>
46254
46255         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46256         (fwrite_success_callback): New declaration.
46257         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46258         print_unicode_char. Call failure callback instead of error.
46259         (fwrite_success_callback): New function.
46260         (exit_failure_callback): New function.
46261         (fallback_failure_callback): New function.
46262         (print_unicode_char): Call unicode_to_mb.
46263
46264 2002-01-26  Jim Meyering  <meyering@lucent.com>
46265
46266         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46267         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46268
46269 2002-01-26  Jim Meyering  <meyering@lucent.com>
46270
46271         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46272
46273 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46274
46275         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46276
46277 2002-01-22  Jim Meyering  <meyering@lucent.com>
46278
46279         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46280         Otherwise, some versions of automake would omit the rule that makes
46281         Makefile from Makefile.in.
46282
46283 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46284
46285         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46286         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46287         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46288         (memcoll): Set errno to zero if there is no error.
46289
46290         * lib/quotearg.c (quotearg_buffer_restyled):
46291         Fix bug with quoting buffers containing NUL when backslashing escapes.
46292         This bug was exposed by the other changes in this patch.
46293         (quotearg_n_options): New arg ARGSIZE.
46294         All callers changed.
46295         (quoting_options_from_style): New function.
46296         (quotearg_n_style): Use it.
46297         (quotearg_n_style_mem): New function.
46298
46299         * lib/quotearg.h (quotearg_n_style_mem): New function.
46300
46301 2002-01-19  Jim Meyering  <meyering@lucent.com>
46302
46303         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46304         Remove useless quotes: DF_PROG="df".
46305         * m4/strnlen.m4: New file.
46306
46307 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46308
46309         * lib/backupfile.c (ISDIGIT): Comment fix.
46310         * lib/getdate.y (ISDIGIT): Likewise.
46311         * lib/posixtm.c (ISDIGIT, year): Likewise.
46312         * lib/strverscmp.c (ISDIGIT): Likewise.
46313         * lib/userspec.c (ISDIGIT): Likewise.
46314
46315 2002-01-16  Jim Meyering  <meyering@lucent.com>
46316
46317         * lib/getdate.y: Add three semicolons, each just before a closing
46318         brace. Bison (as of version 1.31) no longer papers over that mistake.
46319
46320 2002-01-05  Jim Meyering  <meyering@lucent.com>
46321
46322         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46323
46324 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46325
46326         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46327         not silently exit merely because the output buffer happens to
46328         have nothing pending.
46329
46330 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46331
46332         See the big note in ../ChangeLog.
46333         * lib/human.c (suffixes): Prefer K to k for 1024.
46334         (generate_suffix_backwards): New function.
46335         (human_readable_inexact): Use it.
46336         * lib/xstrtol.c (__xstrtol): If there is no number but there
46337         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46338         Accept 'K' as well as 'k'.
46339
46340 2001-12-15  Jim Meyering  <meyering@lucent.com>
46341
46342         * lib/regex.h (__restrict_arr): Update from libc.
46343
46344         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46345         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46346         (STREQ): Define.
46347
46348 2001-12-14  Jim Meyering  <meyering@lucent.com>
46349
46350         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46351         Suggestion from Bruno Haible.
46352
46353 2001-12-10  Jim Meyering  <meyering@lucent.com>
46354
46355         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46356         xrealloc, Instead, include "xalloc.h".
46357         (initbuffer): Don't cast xmalloc return value to char*.
46358         (readline): Reword comment.
46359         Don't cast xrealloc return value to char*
46360         Return NULL, not 0.
46361
46362 2001-12-09  Jim Meyering  <meyering@lucent.com>
46363
46364         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46365         about `signed and unsigned type in conditional expression'.
46366         * lib/posixtm.c (posix_time_parse): Likewise.
46367
46368         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46369
46370         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46371         to avoid a pedantic warning.
46372
46373         * lib/getstr.c: Don't include assert.h.
46374         (getstr): Remove warning-evoking assertions.
46375         Return -1 if offset parameter is out of bounds.
46376         Change the type of a local from int to size_t.
46377
46378         * lib/strftime.c (my_strftime_localtime_r): Include this function
46379         definition in the `#if ! HAVE_TM_GMTOFF' block.
46380
46381         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46382         Include xalloc.h instead.
46383
46384 2001-12-02  Jim Meyering  <meyering@lucent.com>
46385
46386         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46387         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46388         included.
46389
46390         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46391         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46392
46393 2001-11-30  Akim Demaille  <akim@epita.fr>
46394
46395         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46396         before being defined.
46397
46398 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46399
46400         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46401         First arg is int, not unsigned.
46402         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46403         (SIZE_MAX, UINT_MAX): New macros.
46404         (quotearg_n_options): Abort if N is negative.
46405         Avoid overflow check on hosts where size_t is 64 bits and int
46406         is 32 bits, as overflow is impossible there.
46407         Fix off-by-one typo that caused unnecessary reallocation.
46408
46409 2001-11-27  Jim Meyering  <meyering@lucent.com>
46410
46411         * lib/tempname.c: Merge with version from libc.
46412         * lib/regex.c: Likewise.
46413
46414         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46415         systems for which STDC_HEADERS is 0, it was not included, resulting in
46416         a warning about an integer-to-pointer conversion problem with getenv.
46417         Reported by Volker Borchert.
46418
46419 2001-11-26  Jim Meyering  <meyering@lucent.com>
46420
46421         * lib/gtod.h: Remove file.
46422         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46423         * lib/gettimeofday.c: Don't include gtod.h.
46424         (GTOD_init): Remove function.
46425         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46426         Suggestion from Volker Borchert.
46427
46428 2001-11-23  Jim Meyering  <meyering@lucent.com>
46429
46430         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46431         it.
46432         * lib/hash.c (struct hash_table): Define it here instead.
46433
46434 2001-11-22  Jim Meyering  <meyering@lucent.com>
46435
46436         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46437
46438 2001-11-20  Jim Meyering  <meyering@lucent.com>
46439
46440         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46441         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46442
46443 2001-11-19  Jim Meyering  <meyering@lucent.com>
46444
46445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46446         directory.  Use "conftestXXXXXX" as the template.
46447         Suggestion from Paul Eggert.
46448
46449         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46450         immediately, so the test doesn't mistakenly hit the max-open-files
46451         limit.
46452
46453 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46454
46455         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46456         (TEMPORARIES): New macro.
46457         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46458         removes an artificial limitation (e.g. HP-UX 10.20, where
46459         TMP_MAX is 17576).
46460
46461 2001-11-18  Jim Meyering  <meyering@lucent.com>
46462
46463         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46464
46465 2001-11-18  Jim Meyering  <meyering@lucent.com>
46466
46467         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46468         on SunOS 4.
46469
46470         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46471         files will be created before anything else.
46472
46473 2001-11-17  Paul Eggert  <eggert@twinsun.com>
46474
46475         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46476         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46477
46478 2001-11-17  Jim Meyering  <meyering@lucent.com>
46479
46480         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46481         Prompted by a report from Bob Proulx.
46482
46483         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46484         Instead, require UTILS_FUNC_MKSTEMP.
46485
46486 2001-11-17  Jim Meyering  <meyering@lucent.com>
46487
46488         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46489         Now, that's done as part of AC_FUNC_STRTOD.
46490
46491 2001-11-17  Jim Meyering  <meyering@lucent.com>
46492
46493         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46494         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46495         rather than group writable.  Patch by Juan F. Codagnone.
46496
46497         * lib/readtokens.c: Remove explicit declarations of xmalloc and
46498         xrealloc, Instead, include "xalloc.h".
46499
46500         * lib/mountlist.c: Include unlocked-io.h after all system headers.
46501         Remove explicit declarations of xmalloc, xrealloc,
46502         and xstrdup.  Instead, include "xalloc.h".
46503
46504         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46505         unlocked-io.h.
46506         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46507         Likewise.
46508         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46509
46510         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46511         Reported by Padraig Brady.
46512
46513         * lib/mkstemp.c: #undef mkstemp.
46514         Include config.h.
46515         (rpl_mkstemp): Rename from mkstemp.
46516         Protoize.
46517
46518 2001-11-16  Jim Meyering  <meyering@lucent.com>
46519
46520         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46521         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46522         determine the amount of total physical memory, use pstat_getstatic.
46523         HPUX-11 doesn't define _SC_PHYS_PAGES.
46524         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46525         If sysconf couldn't be used to determine the amount of available
46526         physical memory, use both pstat_getstatic and pstat_getdynamic.
46527         Based on a patch from Bob Proulx.
46528
46529 2001-11-10  Jim Meyering  <meyering@lucent.com>
46530
46531         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46532         (jm_PREREQ): Use it.
46533
46534 2001-11-09  Jim Meyering  <meyering@lucent.com>
46535
46536         * m4/jm-macros.m4: Require autoconf-2.52f.
46537         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46538         Use these AC_-prefixed names, not the AM_-prefixed ones.
46539
46540         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
46541
46542 2001-11-05  Jim Meyering  <meyering@lucent.com>
46543
46544         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46545
46546 2001-11-04  Jim Meyering  <meyering@lucent.com>
46547
46548         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46549         $DEFS.
46550
46551 2001-11-03  Jim Meyering  <meyering@lucent.com>
46552
46553         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46554         of AC_DEFUN.
46555
46556         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46557         know the name of the variable in the macro definition.
46558
46559 2001-11-03  Jim Meyering  <meyering@lucent.com>
46560
46561         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46562         in argmatch_to_argument call.
46563
46564         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46565         argument.
46566
46567         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46568         e.g., a fault due to an attempt to free a NULL pointer.
46569
46570 2001-11-01  Jim Meyering  <meyering@lucent.com>
46571
46572         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46573         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46574
46575 2001-11-01  Jim Meyering  <meyering@lucent.com>
46576
46577         * lib/dirfd.c, lib/dirfd.h: New files.
46578         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46579
46580         * lib/hash.c (hash_print) [TESTING]: Clean up.
46581
46582 2001-10-22  Paul Eggert  <eggert@twinsun.com>
46583
46584         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46585         to avoid a warning if -Wall.
46586
46587 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
46588
46589         * README: New file
46590         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46591         (per RMS's instructions, this is now the canonical source)
46592         * lgpl/, gpl/: New directories.
46593
46594 2001-10-21  Paul Eggert  <eggert@twinsun.com>
46595
46596         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46597
46598 2001-10-21  Jim Meyering  <meyering@lucent.com>
46599
46600         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
46601         this code would end up calling gettext even in packages built
46602         with --disable-nls.
46603         * lib/getopt.c (_): Likewise.
46604         * lib/regex.c (_): Likewise.
46605
46606 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46607
46608         * m4/error.m4 (jm_PREREQ_ERROR):
46609         Do not invoke AC_CHECK_FUNCS with strerror_r, as
46610         AC_FUNC_STRERROR_R does that.
46611         Check for strerror declaration.
46612
46613         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
46614         are supposed to have them these days.
46615         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
46616         Merge changes from latest Autoconf CVS.
46617         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
46618         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
46619         POSIX decided to standardize on the int flavor of strerror_r.
46620
46621 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46622
46623         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
46624         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
46625         Use strerror_r that is only a macro, even if it is not a function.
46626         (strerror): Check for HAVE_DECL_STRERROR before declaring.
46627         (private_strerror): Use prototypes, not old-style function definition.
46628         (print_errno_message): New function.
46629         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
46630         char*-flavored one.
46631         (error_tail, error, error_at_line): Use it.
46632
46633 2001-10-11  Jim Meyering  <meyering@lucent.com>
46634
46635         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
46636         and quote_n (1, ... to avoid clobbering a buffer.
46637
46638 2001-10-05  Jim Meyering  <meyering@lucent.com>
46639
46640         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
46641         hash-pjw.h.
46642         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
46643         * lib/hash-pjw.h: New file.
46644
46645 2001-09-30  Jim Meyering  <meyering@lucent.com>
46646
46647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
46648         `struct fsstat' has the `f_fstypename' member.
46649         Use that to define FS_TYPE, which is now used to make
46650         the getfsstat link test tighter.
46651
46652 2001-09-30  Jim Meyering  <meyering@lucent.com>
46653
46654         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
46655         Include <sys/ucred.h>, for Apple Darwin.
46656         Include sys/mount.h and sys/fs_types.h only if available.
46657         (FS_TYPE): Define.
46658         (read_filesystem_list): Use FS_TYPE.
46659
46660 2001-09-29  Paul Eggert  <eggert@twinsun.com>
46661
46662         * lib/exclude.c (excluded_filename): 0 -> false, since it's
46663         a boolean context.
46664
46665 2001-09-29  Jim Meyering  <meyering@lucent.com>
46666
46667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46668         [one-argument getmntent function]): Include stdio.h before mntent.h.
46669         SunOS 4.1.x needs it for the declaration of `FILE'.
46670         Patch by Volker Borchert.
46671
46672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46673         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
46674         sys/fs_types.h, and make the link-test for getfsstat guard #include
46675         directives with appropriate #if HAVE_*_H tests so that we can
46676         detect getfsstat on Apple Darwin1.3.7 systems.
46677         Reported by Nelson Beebe.
46678         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
46679
46680 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46681
46682         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46683         #defines strtoimax.  Also treat the other strto* functions
46684         like strtoimax.
46685
46686         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46687         Check for strtoul and strtoumax,
46688         as those declarations are made even in the signed case.
46689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
46690         Likewise, for strtol and strtoimax.
46691
46692 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46693
46694         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46695         #defines strtoimax.  Also treat the other strto* functions
46696         like strtoimax.
46697
46698         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
46699         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
46700         (strtoimax, strtoumax): Do not declare if already defined as a macro.
46701
46702 2001-09-26  Jim Meyering  <meyering@lucent.com>
46703
46704         Most macros in unlocked-io.h had the wrong number of arguments.
46705         * lib/gen-uio: New script.
46706         (USE_UNLOCKED_IO): Define to 1 if not already defined.
46707         * lib/unlocked-io.hin: Remove file.
46708         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
46709         rather than trying to embed it here.
46710         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
46711         Reported by Padraig Brady.
46712
46713 2001-09-25  Volker Borchert  <bt@teknon.de>
46714
46715         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
46716         `result'.
46717
46718 2001-09-24  Jim Meyering  <meyering@lucent.com>
46719
46720         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
46721
46722 2001-09-23  Jim Meyering  <meyering@lucent.com>
46723
46724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
46725         instead of the mere test for existence of mntent.h.  The latter
46726         would get a false-positive on AIX 3.4 systems.
46727         In the outer getmntent if-block, don't die if neither of the getmntent
46728         tests succeeds.  Instead, just fall through and continue with the
46729         remaining tests.
46730
46731 2001-09-23  Jim Meyering  <meyering@lucent.com>
46732
46733         * lib/mountlist.c: Remove useless parentheses in #if directives.
46734         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
46735         the deprecated MOUNTED symbol is no longer defined in mntent.h.
46736
46737 2001-09-22  Jim Meyering  <meyering@lucent.com>
46738
46739         * m4/gettext.m4: New file.  From gettext.
46740         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
46741         * m4/progtest.m4: Likewise
46742         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
46743         * m4/glibc21.m4: Likewise.
46744
46745         * m4/libintl.m4: Remove.  No longer used.
46746
46747 2001-09-22  Jim Meyering  <meyering@lucent.com>
46748
46749         * lib/localcharset.c: Update from latest gettext.
46750         * lib/config.charset: Likewise.
46751
46752 2001-09-20  Jim Meyering  <meyering@lucent.com>
46753
46754         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
46755         strtoimax.
46756         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
46757         strtoumax.
46758
46759 2001-09-20  Jim Meyering  <meyering@lucent.com>
46760
46761         * lib/xstrtol.c (strtoimax): Guard declaration with
46762         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
46763         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
46764         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
46765         (strtoumax): Likewise, for completeness (it wasn't necessary).
46766
46767 2001-09-17  Paul Eggert  <eggert@twinsun.com>
46768
46769         * lib/strtoimax.c (HAVE_LONG_LONG):
46770         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
46771         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
46772         to work around bug in IBM C compiler.
46773
46774 2001-09-17  Jim Meyering  <meyering@lucent.com>
46775
46776         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
46777         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
46778         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
46779         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
46780         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
46781         whenever the right hand side need not be expanded by the shell.
46782
46783 2001-09-16  Paul Eggert  <eggert@twinsun.com>
46784
46785         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
46786         library.  It's not correct, as some older glibcs are buggy.
46787         fnmatch wasn't fixed until glibc 2.2.
46788
46789         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
46790         special shell magic here.
46791
46792 2001-09-16  Jim Meyering  <meyering@lucent.com>
46793
46794         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
46795         * m4/jm-macros.m4: Require it.
46796
46797 2001-09-16  Jim Meyering  <meyering@lucent.com>
46798
46799         * lib/mkdir.c: New file.
46800
46801 2001-09-15  Jim Meyering  <meyering@lucent.com>
46802
46803         * m4/jm-macros.m4: Check for help2man.
46804
46805 2001-09-11  Jim Meyering  <meyering@lucent.com>
46806
46807         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
46808         The body, by Paul Eggert, was moved here from configure.in.
46809         * m4/jm-macros.m4: Require UTILS_HOST_OS.
46810
46811 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46812
46813         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
46814         (jm_PREREQ): Use it.
46815
46816 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46817
46818         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
46819         Use ssize_t, not int, to store result of readlink.
46820         Check for ssize_t overflow as well as size_t overflow,
46821         as POSIX says the result of readlink is implementation-defined
46822         when ssize_t overflows.
46823         Remove unnecessary cast to char*.
46824         Use free+malloc instead of realloc, as the storage doesn't need
46825         to be preserved and it's clearer and can be more efficient that way.
46826         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
46827         * lib/xreadlink.h (xreadlink): Update prototype.
46828
46829 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46830
46831         * lib/xgetcwd.c: Revert some of the previous change; intead,
46832         fix the HAVE_GETCWD_NULL code to behave more like the
46833         !HAVE_GETCWD_NULL code used to.
46834
46835         Include "xalloc.h".
46836         (xgetcwd): Do not return NULL when memory is exhausted; instead,
46837         invoke xalloc_die.
46838
46839 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46840
46841         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
46842         sys/param.h, as pathmax.h includes them.
46843
46844 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46845
46846         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
46847         (jm_PREREQ_XGETCWD): New macro.
46848
46849         * m4/getcwd.m4: New file.
46850
46851 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46852
46853         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
46854         like the HAVE_GETCWD_NULL code.
46855         Include pathmax.h if not HAVE_GETCWD.
46856         Do not include xalloc.h.
46857         (INITIAL_BUFFER_SIZE): New symbol.
46858         Do not use xmalloc / xrealloc, since the caller is responsible for
46859         handling errors.  Preserve errno around `free' during failure.
46860         Do not overrun buffer when using getwd.
46861
46862 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46863
46864         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
46865         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
46866         getcwd (NULL, 0).
46867
46868 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46869
46870         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
46871         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
46872         spotted by Jim Meyering.
46873
46874 2001-09-03  Jim Meyering  <meyering@lucent.com>
46875
46876         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
46877         failure.
46878
46879 2001-09-02  Jim Meyering  <meyering@lucent.com>
46880
46881         * lib/error.c: Update from GNU libc.
46882
46883 2001-09-01  Jim Meyering  <meyering@lucent.com>
46884
46885         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
46886         Used by df.
46887
46888 2001-09-01  Jim Meyering  <meyering@lucent.com>
46889
46890         * lib/xreadlink.c: New file.
46891         * lib/xreadlink.h: New file.
46892         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
46893         xreadlink.h.
46894
46895         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
46896         doesn't conflict with sparc Solaris 7's definition in
46897         /usr/include/sys/int_types.h.
46898
46899         * lib/exclude.c: Use `""', not `<>' to #include non-system header
46900         files.
46901         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
46902         and strncasecmp as r-values.  Unixware didn't have declarations.
46903
46904 2001-08-31  Paul Eggert  <eggert@twinsun.com>
46905
46906         * lib/xstrtol.h: Add copyright notice.
46907         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
46908         LONGINT_INVALID_SUFFIX_CHAR.
46909
46910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
46911
46912         * lib/xstrtol.c (strtoimax): New decl.
46913
46914 2001-08-31  Paul Eggert  <eggert@twinsun.com>
46915
46916         * lib/xgetcwd.c: Don't include pathmax.h.
46917         Include stdlib.h and unistd.h if available.
46918         Include xalloc.h.
46919         (xmalloc, xstrdup, free): Remove decls.
46920         (xgetcwd): Don't assume sizes fit in unsigned.
46921         Check for overflow when computing sizes.
46922         Simplify reallocation code.
46923
46924 2001-08-31  Paul Eggert  <eggert@twinsun.com>
46925
46926         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
46927         a directory's st_size can have an arbitrary value, so the old
46928         usage could waste an arbitrary amount of memory.  All uses
46929         changed.
46930         * lib/savedir.h: Update prototype.
46931
46932 2001-08-31  Paul Eggert  <eggert@twinsun.com>
46933
46934         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
46935
46936         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
46937         old strtoimax.c.
46938
46939         Also, make the following further changes to make this file's
46940         configuration more similar to that of strtol.c:
46941         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
46942         (strtoumax, uintmax_t, strtoull, strtol): Remove.
46943         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
46944         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
46945         changed to signed values.
46946
46947         And make the following changes as well:
46948         Fix copyright notice, as 1999 was missing.
46949         (verify): New macro.
46950         (strtoimax): Check sizes at compile-time, not run-time.
46951         Prefer strtol to strtoll if both work.
46952         (main): Remove; it was not that useful and was a pain to maintain.
46953
46954         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
46955
46956 2001-08-31  Jim Meyering  <meyering@lucent.com>
46957
46958         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
46959         Use an initial, malloc'd, buffer of length 128 rather than
46960         a statically allocated one of length 1024.
46961
46962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
46963
46964         Simplify code, partly by assuming autoconf 2.52 semantics.
46965
46966         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
46967
46968         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
46969         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
46970         All uses removed.
46971         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
46972         Move AC_REQUIRE to next-to-top level, to avoid confusion.
46973         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
46974         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
46975         jm_AC_HEADER_INTTYPES_H.
46976         * m4/jm-macros.m4 (jm_MACROS): Likewise.
46977
46978         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
46979
46980         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46981         Quote first arg of AC_DEFUN.
46982         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
46983         since they are needed to parse the include file even if we need
46984         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
46985         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
46986         but with opposite signedness.
46987
46988 2001-08-30  Paul Eggert  <eggert@twinsun.com>
46989
46990         Merge 'exclude' changes from tar 1.13.22.
46991         This fixes one or two unlikely storage allocation overflow bugs,
46992         but doesn't change user-visible behavior otherwise.
46993
46994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
46995
46996         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
46997         (jm_PREREQ_EXCLUDE): New macro.
46998
46999 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47000
47001         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47002         tm to be declared.
47003
47004 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47005
47006         * lib/hash.c: Remove '2001' from copyright notice.
47007
47008 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47009
47010         * lib/full-write.h: New file.
47011         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47012         * lib/full-write.c: Correct credits, as cccp.c no longer
47013         exists and anyway it was so heavily changed from the old cccp
47014         code as to be unrecognizable.  Include full-write.h.
47015         (full_write) Return size_t, with short writes meaning failure.
47016         All callers changed.  This fixes a bug with large buffers
47017         on 64-bit hosts.
47018         * lib/utime.c: Include full-write.h.
47019
47020 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47021
47022         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47023         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47024         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47025         Include if available.
47026         (<xalloc.h>): Include
47027         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47028         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47029         collide with FNM macros.
47030         (struct patopts): New struct.
47031         (struct exclude): Use it, as exclude patterns now come with options.
47032         (new_exclude): Support above changes.
47033         (new_exclude, add_exclude_file):
47034         Initial size must now be a power of two to simplify overflow checking.
47035         (free_exclude, fnmatch_no_wildcards): New function.
47036         (excluded_filename): No longer requires options arg, as the options
47037         are determined by add_exclude.  Now returns bool, not int.
47038         (excluded_filename, add_exclude):
47039         Add support for the fancy new exclusion options.
47040         (add_exclude, add_exclude_file): Now takes int options arg.
47041         Check for arithmetic overflow when computing sizes.
47042         (add_exclude_file): xrealloc might modify errno, so don't
47043         realloc until after errno might be used.
47044
47045         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47046         New macros.
47047         (free_exclude): New decl.
47048         (add_exclude, add_exclude_file): Now takes int options arg.
47049         (excluded_filename): No longer requires options arg, as the options
47050         are determined by add_exclude.  Now returns bool, not int.
47051
47052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47053
47054         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47055
47056 2001-08-27  Jim Meyering  <meyering@lucent.com>
47057
47058         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47059
47060         * lib/version-etc.c (N_): Remove definition.
47061         Revert most of last change.
47062         Instead, simply don't mark the `Copyright...' string for translation.
47063         Based on advice from Paul Eggert.
47064
47065         * lib/strtoxmax.c: Tweak comment.
47066
47067 2001-08-26  Jim Meyering  <meyering@lucent.com>
47068
47069         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47070
47071         * m4/xstrtoimax.m4: New file.
47072         * m4/xstrtoumax.m4: Add comments explaining why we
47073         AC_REPLACE_FUNCS(strtol).
47074
47075 2001-08-26  Jim Meyering  <meyering@lucent.com>
47076
47077         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47078         of copyright with `%s' so translators don't get an untranslated
47079         message in 2002.
47080         (COPYRIGHT_YEAR): Define.
47081         (version_etc): Use fprintf rather than fputs.
47082         Suggestion from Ulrich Drepper.
47083
47084         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47085
47086         * lib/strtoll.c: New file, from GNU libc.
47087         * lib/xstrtoimax.c: New file.
47088
47089         * lib/xstrtol.h: Add xstrtoimax.
47090         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47091         * lib/strtoimax.c: New file.  Likewise, but first define
47092         STRTOUXMAX_SIGNED.
47093
47094         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47095         ...
47096         * lib/strtoxmax.c: ... then renamed to this.
47097
47098 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47099
47100         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47101         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47102         (jm_AC_TYPE_INTMAX_T): New macro.
47103         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47104
47105         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47106
47107         * m4/longlong.m4: Renamed from ulonglong.m4.
47108         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47109         * m4/uintmax_t.m4: Removed.
47110
47111 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47112
47113         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47114         Port to Solaris 8, where 'sed' requires a space after the 'r'
47115         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47116         Redirect output to $tmp just once.
47117
47118 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47119
47120         * lib/addext.c (<errno.h>): Include.
47121         (errno): Declare if not defined.
47122         (addext): Work correctly when pathconf returns -1 and leaves
47123         errno alone because there is no limit.  Also, work even if
47124         pathconf returns a value greater than SIZE_MAX.
47125
47126 2001-08-12  Jim Meyering  <meyering@lucent.com>
47127
47128         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47129         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47130         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47131         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47132         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47133         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47134         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47135         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47136         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47137         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47138         utime.m4, utimes.m4, xstrtoumax.m4:
47139         Quote the first argument in each use of AC_DEFUN.
47140
47141 2001-08-12  Jim Meyering  <meyering@lucent.com>
47142
47143         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47144         Simply `return getcwd (NULL, 0);'.
47145         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47146         Use 1300 as initial value for length, not PATH_MAX.
47147
47148         * lib/pathmax.h: Clean up cpp syntax.
47149
47150 2001-08-12  Jim Meyering  <meyering@lucent.com>
47151
47152         * lib/gettimeofday.c: New file.
47153         * lib/gtod.h: New file.
47154         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47155
47156 2001-08-05  Jim Meyering  <meyering@lucent.com>
47157
47158         * m4/jm-macros.m4: Require autoconf-2.52.
47159
47160 2001-08-04  Jim Meyering  <meyering@lucent.com>
47161
47162         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47163         stmt, to get in sync with glibc.
47164
47165 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47166
47167         The following changes are from gettext 0.10.39 as maintained by
47168         Bruno Haible.
47169
47170         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47171         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47172         with inverted sense.  All uses changed.
47173
47174         * lib/mbswidth.c: Don't include <limits.h>.
47175         Include <stdlib.h> and <string.h> unconditionally.
47176         (iswcntrl, mbsinit, ISCNTRL): New macros.
47177         (mbsnwidth): Use K&R style function declarations.
47178         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47179         can optimize it when MB_CUR_MAX == 1.
47180         The width of control characters is zero, not 1.
47181
47182 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47183
47184         The following changes are from gettext 0.10.39 as maintained by
47185         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47186
47187         * m4/codeset.m4: Upgrade to serial AM1.
47188         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47189         all uses changed.  Quote first arg of AC_DEFUN.
47190         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47191
47192         * m4/iconv.m4: Upgrade to serial AM2.
47193         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47194         Add --with-libconv-prefix.
47195         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47196         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47197         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47198         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47199         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47200
47201         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47202         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47203         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47204         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47205         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47206         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47207         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47208         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47209         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47210
47211         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47212         string.h any more.
47213
47214         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47215         not the default value.
47216
47217         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47218         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47219         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47220         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47221         Also check for iswcntrl, used for wcwidth fallback.
47222         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47223         to Autoconf 2.13.
47224
47225 2001-08-03  Jim Meyering  <meyering@lucent.com>
47226
47227         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47228         as it was in the original.  Reported by Paul Eggert.
47229
47230 2001-07-16  Jim Meyering  <meyering@lucent.com>
47231
47232         * m4/gettimeofday.m4: New file.
47233         Prompted by a report from Bernhard Baehr.
47234
47235 2001-07-15  Jim Meyering  <meyering@lucent.com>
47236
47237         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47238         stuff. Now it's in ../Makefile.cfg.
47239
47240 2001-07-15  Jim Meyering  <meyering@lucent.com>
47241
47242         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47243         (BUILT_SOURCES): Add unlocked-io.h.
47244         (io_functions): Define.
47245         (unlocked-io.h): New rule.
47246         (DISTCLEANFILES): Add unlocked-io.h.
47247         (all-local): Depend on unlocked-io.h, to ensure it is created.
47248
47249         * lib/unlocked-io.hin: New file
47250
47251         * lib/regex.c: Update from glibc.
47252
47253 2001-07-05  Jim Meyering  <meyering@lucent.com>
47254
47255         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47256         recommendation.
47257         (libfetish_a_SOURCES): Put all .h files here instead.
47258         Remove a thus-exposed (better checks in automake) duplicate and
47259         two unnecessary .h files.
47260
47261 2001-07-04  Jim Meyering  <meyering@lucent.com>
47262
47263         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47264         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47265         distcheck failure.
47266
47267 2001-07-02  Jim Meyering  <meyering@lucent.com>
47268
47269         The following changes were prompted by suggestions from Bruno Haible.
47270
47271         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47272         is now generated.
47273         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47274         definition of EXTRA_DIST.
47275         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47276         ensure that the generated file is created/updated whenever the list
47277         of $(unlocked_functions) is changed.
47278         (jm-glibc-io.m4): New rule.
47279         (unlocked-io.h): New rule -- currently unused.
47280
47281 2001-06-24  Jim Meyering  <meyering@lucent.com>
47282
47283         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47284         unmatched right bracket, rather than kludging it with an extra,
47285         falsely-matching quote in a comment.  Patch by Akim Demaille.
47286
47287 2001-06-11  Jim Meyering  <meyering@lucent.com>
47288
47289         * lib/regex.c: Update from GNU libc.
47290
47291 2001-05-27  Jim Meyering  <meyering@lucent.com>
47292
47293         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47294         Check for ut_type in struct utmp.
47295
47296 2001-05-27  Jim Meyering  <meyering@lucent.com>
47297
47298         * lib/readutmp.h (UT_TYPE): Define.
47299
47300 2001-05-24  Jim Meyering  <meyering@lucent.com>
47301
47302         * lib/argmatch.c: Include "quote.h".
47303         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47304         quote function.  Reported by Göran Uddeborg.
47305
47306 2001-05-22  Jim Meyering  <meyering@lucent.com>
47307
47308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47309         now that we use the package-supplied version unconditionally.
47310         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47311
47312 2001-05-21  Jim Meyering  <meyering@lucent.com>
47313
47314         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47315         shell syntax errors.
47316
47317 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47318
47319         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47320
47321 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47322
47323         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47324         Don't bother to check library strftime, since
47325         we'll be using our own my_strftime function anyway.
47326         Define my_strftime instead of strftime.
47327
47328 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47329
47330         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47331         which is not yet declared.
47332
47333 2001-05-15  Jim Meyering  <meyering@lucent.com>
47334
47335         * m4/regex.m4: Use proper quoting so brackets appear in the test
47336         program.
47337         Reported by, and with help from, Bruno Haible.
47338
47339 2001-05-13  Jim Meyering  <meyering@lucent.com>
47340
47341         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47342         undefined.
47343
47344 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47345
47346         dirname code cleanup.  base_name now behaves more compatibly
47347         with POSIX basename when given file names that have trailing
47348         slashes, and similarly for dir_name.  Add new primitives
47349         base_len and dir_len.  Put the directory-name-related decls
47350         into dirname.h.
47351
47352         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47353         * lib/backupfile.c (base_name): Likewise.
47354         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47355         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47356         * lib/makepath.c (strip_trailing_slashes): Likewise.
47357         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47358         ISSLASH): Likewise.
47359         * lib/rename.c (strip_trailing_slashes): Likewise.
47360         * lib/same.c (base_name): Likewise.
47361         * lib/stripslash.c (ISSLASH): Likewise.
47362
47363         * lib/addext.c: Include <dirname.h> after size_t is defined.
47364         * lib/backupfile.c: Likewise.
47365
47366         * lib/addext.c (addext): Use base_len to trim redundant
47367         trailing slashes instead of doing it ourselves.
47368         But do not trim the last slash if it is not redundant.
47369
47370         * lib/backupfile.c (find_backup_file_name,
47371         max_backup_version): Use base_len instead of rolling it ourselves.
47372         Handle the case of "" and (on DOS) "C:" correctly.
47373
47374         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47375         needed. Include <string.h>, <dirname.h>.
47376         (base_name): Allow file names ending in slashes, other than names
47377         that are all slashes.  In this case, return the basename followed
47378         by the slashes.  This is more general, and can be used in places
47379         where the original base_name purposely had an assertion failure.
47380         (base_len): New function.
47381
47382         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47383         Do not include <assert.h>; no longer needed.
47384         Include xalloc.h.
47385         (memrchr): Remove decl.
47386         (dir_name_r): Remove.
47387         (dir_len): Renamed from dirlen.  All callers changed.
47388         Rewrite in terms of base_name, for simplicity and consistency.
47389         (dir_name): Never return NULL.  All callers changed.
47390         Do not include <stdlib.h> in test program; no longer needed.
47391         return 0; is fine for test program.
47392
47393         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47394         New macros.
47395         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47396
47397         * lib/path-concat.c (path_concat): Use base_len to compute
47398         base length, not strlen; this means we cannot rely on memcpy
47399         to null-terminate.
47400
47401         * lib/same.c (STREQ): Remove.
47402         (same_name): Handle the case where the basename ends in trailing '/'.
47403
47404         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47405         a slash was stripped.  Do not strip the last slash after a
47406         file system prefix.
47407
47408 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47409
47410         * lib/Makefile.am (libfetish_a_SOURCES):
47411         Add strftime.c, since we now compile it on all hosts.
47412
47413         * lib/strftime.c (my_strftime):
47414         Define to nstrftime if emacs, but only if my_strftime is not defined.
47415         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47416         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47417         Add one more extra argument: a nanoseconds value.
47418         All uses changed.
47419         (ns): New macro.
47420         (my_strftime function): Add %N format.
47421         (emacs_strftimeu): Renamed from emacs_strftime,
47422         with extra ut argument.
47423
47424 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47425
47426         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47427
47428 2001-04-21  Jim Meyering  <meyering@lucent.com>
47429
47430         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47431         doesn't interfere.
47432
47433 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47434
47435         * m4/ftruncate.m4: Check for chsize.
47436         Link with ftruncate.o unconditionally if ftruncate is missing.
47437         This was required when cross-compiling to i586-mingw32msvc.
47438
47439 2001-04-08  Jim Meyering  <meyering@lucent.com>
47440
47441         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47442         recomputed; that's necessary when the offset spans a DST transition.
47443         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47444
47445 2001-04-02  Jim Meyering  <meyering@lucent.com>
47446
47447         * lib/regex.h, regex.c: Update from GNU libc.
47448
47449 2001-03-24  Jim Meyering  <meyering@lucent.com>
47450
47451         * m4/jm-macros.m4: Require autoconf-2.49d.
47452
47453 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47454
47455         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47456
47457 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47458
47459         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47460
47461 2001-03-17  Jim Meyering  <meyering@lucent.com>
47462
47463         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47464         now that the version in autoconf is equivalent.
47465         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47466
47467         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47468         Suggestion from Akim Demaille.
47469
47470         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47471         (jm_PREREQ_TEMPNAME): New function.
47472
47473 2001-03-16  Paul Eggert  <eggert@twinsun.com>
47474
47475         * lib/tempname.c (uint64_t): Define to uintmax_t if
47476         not defined, and if UINT64_MAX is not defined.
47477         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47478         Reported by John David Anglin.
47479
47480 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
47481
47482         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47483         resolve alias if codeset is empty.
47484         * lib/config.charset (BeOS): Use wildcard syntax.
47485
47486 2001-03-13  Jim Meyering  <meyering@lucent.com>
47487
47488         * lib/path-concat.c (path_concat)
47489         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47490         concatenating e.g., `C:' and `foo'.
47491         From Bruno Haible.
47492
47493 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47494
47495         * lib/localcharset.c (locale_charset): Don't use
47496         setlocale(LC_CTYPE,NULL). Don't return NULL.
47497         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47498
47499 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47500
47501         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47502         support for DOS/DJGPP.
47503
47504 2001-03-01  Paul Eggert  <eggert@twinsun.com>
47505
47506         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47507         lacks mkstemp.  Compile our own tempname.c if we compile our own
47508         mkstemp.c, as mkstemp relies on tempname.
47509
47510 2001-03-01  Jim Meyering  <meyering@lucent.com>
47511
47512         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47513         AH_VERBATIM really does output its argument verbatim.
47514
47515 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47516
47517         * lib/Makefile.am (libfetish_a_SOURCES):
47518         Add dup-safer.c, fopen-safer.c.
47519         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47520
47521         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47522         * lib/unistd-safer.h: New files.
47523
47524 2001-02-25  Paul Eggert  <eggert@twinsun.com>
47525
47526         The mkstemp replacement is taken from glibc 2.2.2, with some
47527         portability fixes for use outside glibc, as follows:
47528
47529         * lib/tempname.c (struct_stat64): New macro.
47530         (direxists, __gen_tempname): Use it.
47531         This avoids a portability problem with Solaris 8.
47532
47533         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47534         (<stddef.h>, <stdint.h>, <string.h>):
47535         Include only if STDC_HEADERS || _LIBC.
47536         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47537         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47538         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47539         (__set_errno): Define this macro if <errno.h> doesn't.
47540         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47541         Define these macros if <stdio.h> doesn't.
47542         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47543         Define these macros if <sys/stat.h>
47544         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47545         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47546         __xstat64): Define if not _LIBC.
47547         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47548         (__gen_tempname): Invoke gettimeofday only if
47549         HAVE_GETTIMEOFDAY || _LIBC;
47550         otherwise, fall back on plain "time".
47551         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47552
47553         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47554
47555         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47556
47557 2001-02-18  Paul Eggert  <eggert@twinsun.com>
47558
47559         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47560
47561 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47562
47563         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47564         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47565         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47567
47568 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47569
47570         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47571         Remove workaround macros for hosts that have mbrtowc but not
47572         mbstate_t, as we now insist on proper declarations for both
47573         before using mbrtowc.
47574
47575 2001-02-17  Jim Meyering  <meyering@lucent.com>
47576
47577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47578         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47579         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47580         UnixWare 7.1.1.
47581
47582         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47583         rather than AC_CACHE_VAL.
47584
47585 2001-02-17  Jim Meyering  <meyering@lucent.com>
47586
47587         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
47588         around included file name.
47589
47590         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47591
47592         * lib/strftime.c: Update from GNU libc (the only changes were to
47593         comments).
47594
47595 2001-02-17  Jim Meyering  <meyering@lucent.com>
47596
47597         * lib/regex.c: Update from libc.
47598
47599 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
47600
47601         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47602         clash.
47603
47604 2001-02-16  Paul Eggert  <eggert@twinsun.com>
47605
47606         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47607         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
47608         Reported by Mark Hounschell via Paul Eggert.
47609
47610 2001-02-07  Jim Meyering  <meyering@lucent.com>
47611
47612         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
47613
47614 2001-02-05  Jim Meyering  <meyering@lucent.com>
47615
47616         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
47617         it includes the patch required for `large file' support with at least
47618         HP-UX's 10.20 /bin/cc.
47619
47620 2001-02-03  Jim Meyering  <meyering@lucent.com>
47621
47622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
47623         AS_IF, now that it works once again (mysteriously).
47624         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47625
47626 2001-01-30  Jim Meyering  <meyering@lucent.com>
47627
47628         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
47629         * m4/chown.m4: Rename conftestchown to conftest.chown.
47630         * m4/rename.m4: s/conftestdir/conftest.d1/ and
47631         s/conftestdir2/conftest.d2/.
47632         * m4/utimes.m4: s/conftestdata/conftest.data/
47633         Inspired by Pavel Roskin's change in autoconf.
47634
47635 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
47636
47637         * lib/config.charset: Update for FreeBSD 4.2.
47638
47639 2001-01-27  Jim Meyering  <meyering@lucent.com>
47640
47641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
47642         a use of AS_IF.
47643         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47644
47645 2001-01-26  Jim Meyering  <meyering@lucent.com>
47646
47647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
47648         quotearg.c includes it.
47649
47650 2001-01-26  Jim Meyering  <meyering@lucent.com>
47651
47652         * lib/quotearg.c: Include stddef.h.
47653         * lib/quote.c: Include stddef.h.
47654         Reported by Axel Kittenberger.
47655
47656         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
47657         line in double quotes so that it evokes a better diagnostic.
47658         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
47659         Reported by Axel Kittenberger.
47660
47661 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
47662
47663         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
47664         as if it was a `charset'.
47665
47666 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47667
47668         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
47669         has const.
47670
47671 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47672
47673         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
47674         to avoid a warning.  Add back 'const' to inptr.
47675
47676 2001-01-20  Jim Meyering  <meyering@lucent.com>
47677
47678         Be sure that headers are checked before used in code compiled
47679         for the type checks.
47680         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
47681         In place of that, invoke jm_CHECK_ALL_TYPES.
47682         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
47683         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
47684         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
47685         The check for ssize_t was mistakenly run before the test for unistd.h.
47686
47687         The configure-time check for stdbool.h was missing.
47688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
47689         (jm_PREREQ_HASH): New function.
47690
47691 2001-01-17  Jim Meyering  <meyering@lucent.com>
47692
47693         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
47694         for autoconf-2.49c.
47695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
47696
47697 2001-01-16  Jim Meyering  <meyering@lucent.com>
47698
47699         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
47700         From Bruno Haible.
47701
47702 2001-01-14  Jim Meyering  <meyering@lucent.com>
47703
47704         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
47705         foo and bar.  Create conftestdir/ in the script, not in the C code.
47706         Remove directories in the script, not in the C code.
47707         Remove conftestdir{,2} before trying to create the directory.
47708         Make the entire configure script fail if the mkdir fails.
47709
47710 2001-01-14  Jim Meyering  <meyering@lucent.com>
47711
47712         * lib/rename.c: New file.  From Volker Borchert.
47713         Include stdlib.h, string.h or strings.h, and xalloc.h.
47714         Use strip_trailing_slashes rather than open-coding it.
47715
47716 2001-01-03  Paul Eggert  <eggert@twinsun.com>
47717
47718         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
47719
47720 2001-01-03  Jim Meyering  <meyering@lucent.com>
47721
47722         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
47723         of local `inptr' to avoid warning with some system declarations of
47724         iconv.
47725
47726 2001-01-02  Volker Borchert  <bt@teknon.de>
47727
47728         * m4/rename.m4: New file.
47729         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
47730
47731 2001-01-01  Jim Meyering  <meyering@lucent.com>
47732
47733         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
47734         even on systems with utmpx.h.  It's necessary for the declaration of
47735         utmp's ut_user member.  Reported by Andreas Jaeger.
47736
47737         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
47738         available. They are required for the declarations of getgrgid and
47739         getpwuid resp.
47740         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
47741         Reported by Andreas Jaeger.
47742
47743 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
47744
47745         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
47746         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
47747         so `make install' also works in VPATH builds.
47748
47749 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
47750
47751         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
47752         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
47753         can be used in subdirectories.
47754
47755 2000-12-29  Paul Eggert  <eggert@twinsun.com>
47756
47757         * lib/modechange.c: Do not assume that mode_t uses the
47758         traditional octal encoding.  E.g. "chmod 1 FOO" should set
47759         the other-execute bit of FOO even if S_IXOTH != 1.
47760
47761         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
47762         WOTH, XOTH, ALLM): New macros.
47763         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
47764          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
47765         Use them.
47766         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
47767         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
47768         (mode_compile):
47769         No need to use uintmax_t; unsigned long is long enough.
47770         Don't bother to get suffix since we don't use it.
47771
47772 2000-12-26  Jim Meyering  <meyering@lucent.com>
47773
47774         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
47775         better with autoheader.
47776
47777 2000-12-24  Jim Meyering  <meyering@lucent.com>
47778
47779         * lib/hash.c (is_prime): Return explicit boolean values.
47780         (hash_get_first): Return NULL to appease Irix5.6's 89.
47781         Reported by Nelson Beebe.
47782
47783 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
47784
47785         * lib/localcharset.c (locale_charset): Add support for Win32.
47786
47787 2000-12-18  Paul Eggert  <eggert@twinsun.com>
47788
47789         * lib/physmem.h, lib/physmem.c: New files.
47790
47791         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
47792         (noinst_HEADERS): Add physmem.h.
47793
47794         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
47795         't' for compatibility with Solaris 8 sort.
47796
47797 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
47798
47799         * lib/config.charset: Add support for BeOS.
47800
47801 2000-12-17  Jim Meyering  <meyering@lucent.com>
47802
47803         * m4/dos.m4 (jm_AC_DOS): New file and macro.
47804         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
47805
47806 2000-12-16  Jim Meyering  <meyering@lucent.com>
47807
47808         This bug had a serious impact on chown: `chown N:M FILE' (for integer
47809         N and M) would have treated it like `chown N:N FILE'.
47810
47811         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
47812
47813 2000-12-16  Jim Meyering  <meyering@lucent.com>
47814
47815         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
47816         SHELLS_FILE to a file name that's useful on djgpp systems.
47817         Include stdlib.h.
47818         (ADDITIONAL_DEFAULT_SHELLS): Define.
47819         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
47820         Based mostly on a patch from Prashant TR.
47821
47822 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
47823
47824         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
47825         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
47826         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
47827
47828 2000-12-08  Andreas Schwab  <schwab@suse.de>
47829
47830         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
47831         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
47832
47833 2000-12-07  Jim Meyering  <meyering@lucent.com>
47834
47835         * lib/stripslash.c (ISSLASH): Define.
47836         (strip_trailing_slashes): Use ISSLASH rather than comparing against
47837         `/'.
47838         From Prashant TR.
47839
47840         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
47841         (dir_name_r): Declare this function as static.
47842         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
47843         manifest itself on a name containing a mix of slashes and
47844         backslashes.
47845         Make this function work with names starting with a DOS-style
47846         drive letter and colon prefix.
47847         (dir_name): Append `.' if necessary.
47848         Based mostly on patches from Prashant TR and Eli Zaretskii.
47849
47850         * lib/dirname.h (dir_name_r): Remove prototype.
47851
47852 2000-12-06  Paul Eggert  <eggert@twinsun.com>
47853
47854         * m4/off_t-format.m4: Remove this file.
47855         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
47856
47857 2000-12-06  Jim Meyering  <meyering@lucent.com>
47858
47859         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
47860         replacement strtoull, we may well need the replacement strtoul, too.
47861         Check for declarations of strtoul and strtoull.
47862         Check for strtol.  Mainly as a cue to cause automake to include
47863         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
47864         Check for limits.h -- strtol.c needs it.
47865
47866 2000-12-05  Jim Meyering  <meyering@lucent.com>
47867
47868         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
47869
47870 2000-12-04  Jim Meyering  <meyering@lucent.com>
47871
47872         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
47873         Also include memory.h, stdlib.h, unistd.h if appropriate.
47874         Reported by Andreas Jaeger (conflicting declaration of malloc).
47875
47876 2000-12-02  Jim Meyering  <meyering@lucent.com>
47877
47878         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
47879         * m4/jm-macros.m4 (jm_MACROS): require it.
47880
47881 2000-12-02  Jim Meyering  <meyering@lucent.com>
47882
47883         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
47884
47885 2000-12-01  Paul Eggert  <eggert@twinsun.com>
47886
47887         * lib/memrchr.c: Include <config.h> before any system include file.
47888
47889 2000-11-30  Jim Meyering  <meyering@lucent.com>
47890
47891         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
47892
47893 2000-11-30  Jim Meyering  <meyering@lucent.com>
47894
47895         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
47896
47897 2000-11-29  Paul Eggert  <eggert@twinsun.com>
47898
47899         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
47900
47901 2000-11-26  Jim Meyering  <meyering@lucent.com>
47902
47903         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
47904
47905 2000-11-22  Paul Eggert  <eggert@twinsun.com>
47906
47907         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
47908         size of (size_t) -1; it's not portable.
47909
47910 2000-11-17  Jim Meyering  <meyering@lucent.com>
47911
47912         * lib/strstr.c: Update from GNU libc.
47913
47914 2000-11-17  Akim Demaille  <akim@epita.fr>
47915
47916         * lib/obstack.h: Formatting changes.
47917         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
47918         prevent type checking.
47919         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
47920         cast the value to (void *): assigning a `foo *' to a `void *'
47921         variable is valid.
47922         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
47923
47924 2000-11-16  Jim Meyering  <meyering@lucent.com>
47925
47926         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
47927
47928 2000-11-11  Jim Meyering  <meyering@lucent.com>
47929
47930         * lib/error.c: Add a couple #includes, merging from GNU libc version.
47931
47932 2000-11-10  Jim Meyering  <meyering@lucent.com>
47933
47934         * lib/obstack.h: Update from GNU libc.
47935         * lib/obstack.c: Likewise.
47936
47937 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
47938
47939         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
47940
47941 2000-11-06  Paul Eggert  <eggert@twinsun.com>
47942
47943         * lib/getusershell.c (setusershell): Use rewind rather than
47944         fseek/fseeko, to avoid configuration hassles with fseeko.
47945         Don't bother opening SHELLS_FILE if shellstream is NULL;
47946         it's not necessary.
47947
47948 2000-11-05  Jim Meyering  <meyering@lucent.com>
47949
47950         * lib/makepath.h (make_dir): Declare.
47951         * lib/makepath.c (make_dir): Remove `static' attribute.
47952         Tweak a comment.
47953
47954 2000-11-04  Jim Meyering  <meyering@lucent.com>
47955
47956         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
47957
47958 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
47959
47960         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
47961         last one in a bucket, advance to the next bucket.
47962
47963 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
47964
47965         * lib/fnmatch.c: Do not comment out all the code if we are using
47966         the GNU C library, because in some cases we are replacing buggy
47967         code in the GNU C library itself.
47968
47969 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
47970
47971         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
47972         (regex_compile): Catch bogus \(\1\).
47973
47974 2000-10-30  Paul Eggert  <eggert@twinsun.com>
47975
47976         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
47977         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
47978         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
47979
47980 2000-10-30  Paul Eggert  <eggert@twinsun.com>
47981
47982         * lib/error.h, getline.h, modechange.h:
47983         Remove "2000" from Copyright line, as the file hasn't been
47984         changed this year other than in the copyright notice.
47985
47986         * lib/xalloc.h: Add "2000" to Copyright line, as this file
47987         was changed this year.
47988
47989 2000-10-29  Jim Meyering  <meyering@lucent.com>
47990
47991         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
47992         renaming.
47993         * m4/ls-mntd-fs.m4: Likewise
47994
47995 2000-10-29  Jim Meyering  <meyering@lucent.com>
47996
47997         * lib/xstat.in: Fix grammar in comment.
47998
47999 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48000
48001         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48002         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48003         doesn't define __restrict_arr.
48004
48005 2000-10-28  Jim Meyering  <meyering@lucent.com>
48006
48007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48008         (jm_PREREQ_MEMCHR): New function.
48009
48010 2000-10-28  Jim Meyering  <meyering@lucent.com>
48011
48012         * lib/memchr.c: Update from libc.
48013         Adjust for portability:
48014         [HAVE_STDLIB_H]: Include stdlib.h.
48015         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48016         Undef __memchr, too.
48017         [!weak_alias]: Define __memchr to memchr.
48018
48019         * lib/regex.c: Update from libc.
48020         * lib/regex.h: Likewise.
48021         * lib/getopt1.c: Likewise.
48022         * lib/memcmp.c: Likewise.
48023
48024         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48025         Avoid using fseek, when possible -- it's broken by design.
48026         Patch by Ulrich Drepper.
48027
48028 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48029
48030         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48031         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48032         Giving in to popular pressure to shut up the compiler with casts.
48033
48034 2000-10-26  Jim Meyering  <meyering@lucent.com>
48035
48036         * lib/strftime.c: Update from libc.
48037
48038 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48039
48040         * regex.c: More `unsigned char' -> `re_char' changes.
48041         Also change several `int' into `re_wchar_t'.
48042         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48043         (PUSH_FAILURE_POINTER): Don't cast any more.
48044         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48045         We want GCC to complain, since this piece of code makes
48046         re_match non-reentrant, which *should* be fixed.
48047         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48048         (EXTEND_BUFFER): Use RETALLOC.
48049         (SET_LIST_BIT): Don't cast.
48050         (re_wchar_t): New type.
48051         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48052         that those two functions will always properly return.
48053         (IMMEDIATE_QUIT_CHECK): Cast to void.
48054         (analyse_first): Use recursion rather than an explicit stack.
48055         (re_compile_fastmap): Can't fail anymore.
48056         (re_search_2): Don't check re_compile_fastmap for failure.
48057         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48058         Now also sets the new value (passed in a new argument).
48059         (re_match_2_internal): Use it.
48060         Also, use a new var `reg' of type size_t when looping through regs
48061         rather than reuse the inappropriate `mcnt'.
48062
48063 2000-10-25  Jim Meyering  <meyering@lucent.com>
48064
48065         * lib/obstack.c: Update from libc.
48066
48067 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48068
48069         * regex.c (regex_compile): Change the way of handling a range from
48070         a char less than 256 to a char not less than 256.
48071
48072 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48073
48074         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48075         NT-Emacs only.
48076         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48077         so that re_search functions only quit when callers expect them to.
48078
48079 2000-10-23  Jim Meyering  <meyering@lucent.com>
48080
48081         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48082         wrong.  That set_locale call must not have any side effects.
48083         From Paul Eggert.
48084
48085 2000-10-22  Jim Meyering  <meyering@lucent.com>
48086
48087         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48088         [CYCLIC]: Remove now-unused definition.
48089
48090         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48091         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48092         Suggestion from Ulrich Drepper.
48093
48094 2000-10-21  Jim Meyering  <meyering@lucent.com>
48095
48096         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48097         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48098         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48099
48100 2000-10-21  Jim Meyering  <meyering@lucent.com>
48101
48102         * lib/dirname.c (memrchr): Declare if necessary.
48103         (dir_name): Remove the restriction that there be no
48104         trailing slashes.  Now, this code skips past them, effectively
48105         ignoring them.
48106         [TEST_DIRNAME] (main): New unit tests.
48107
48108         * lib/memrchr.c: New file from GNU libc.
48109         Undef __memrchr, too.
48110         [!weak_alias]: Define __memrchr to memrchr.
48111         Guard weak_alias use with `#ifdef weak_alias'.
48112
48113 2000-10-21  Jim Meyering  <meyering@lucent.com>
48114
48115         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48116         (dir_name): Use dir_name_r.
48117         * lib/dirname.h (dir_name_r): Declare it.
48118
48119 2000-10-17  Jim Meyering  <meyering@lucent.com>
48120
48121         * lib/quote.h (PARAMS): Define and use.
48122         Reported by Akim Demaille.
48123
48124         * lib/getopt.c: Update from libc.
48125
48126 2000-10-16  Jim Meyering  <meyering@lucent.com>
48127
48128         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48129         setlocale.
48130         From Jan Fedak.
48131
48132 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48133
48134         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48135
48136 2000-09-25  Jim Meyering  <meyering@lucent.com>
48137
48138         * lib/md5.h (rol): Define (from GnuPG).
48139
48140         * lib/sha.c: Give credit (GnuPG) where due.
48141         (M): Use rol rather than open-coding it.
48142         Add a FIXME comment.
48143
48144 2000-09-21  Jim Meyering  <meyering@lucent.com>
48145
48146         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48147         Reported by Michael Stone.
48148
48149 2000-09-20  Jim Meyering  <meyering@lucent.com>
48150
48151         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48152         (noinst_HEADERS): Add sha.h.
48153         Based on code from Scott G. Miller and from GnuPG.
48154
48155 2000-09-18  Jim Meyering  <meyering@lucent.com>
48156
48157         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48158         LIBS. Otherwise, everyone ends up linking with -lelf for some
48159         configurations.
48160         Reported by Mike Stone.
48161
48162 2000-09-15  Jim Meyering  <meyering@lucent.com>
48163
48164         * lib/regex.c: Update from libc.
48165
48166 2000-09-10  Jim Meyering  <meyering@lucent.com>
48167
48168         * lib/getopt.c (_getopt_internal): Update from glibc.
48169
48170 2000-09-09  Jim Meyering  <meyering@lucent.com>
48171
48172         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48173         think it should be used as a general replacement for isascii.
48174         * lib/fnmatch.c: Likewise.
48175         * lib/mbswidth.c: Likewise
48176         * lib/regex.c: Likewise.
48177
48178         Don't use atoi.
48179         * lib/userspec.c: Include sys/param.h and limits.h.
48180         Include xstrtol.h.
48181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48182         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48183         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48184         UID, GID.  Check range.
48185
48186 2000-09-06  Jim Meyering  <meyering@lucent.com>
48187
48188         * lib/getopt.c (_getopt_internal): Update from glibc.
48189
48190 2000-08-30  Jim Meyering  <meyering@lucent.com>
48191
48192         * lib/strftime.c: Merge in changes from GNU libc.
48193
48194 2000-08-26  Jim Meyering  <meyering@lucent.com>
48195
48196         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48197         * m4/fpending.m4: New file.
48198
48199 2000-08-26  Jim Meyering  <meyering@lucent.com>
48200
48201         * lib/closeout.c: Include "__fpending.h".
48202         (close_stdout_status): Return right away if there's nothing to flush.
48203
48204         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48205         * lib/__fpending.c: New file.
48206         * lib/__fpending.h: New file.
48207
48208 2000-08-20  Jim Meyering  <meyering@lucent.com>
48209
48210         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48211         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48212         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48213
48214 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48215
48216         Improve fileutils installation on systems where running
48217         programs (like install) can't be unlinked.
48218         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48219         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48220
48221 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48222
48223         Standardize on "memory exhausted" instead of "Memory exhausted"
48224         or "virtual memory exhausted".
48225         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48226         "virtual memory exhausted".
48227         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48228         our own message.
48229         * lib/userspec.c (parse_user_spec): Likewise.
48230         * lib/bumpalloc.h: comment fix
48231         * lib/same.c, userspec.c: Include xalloc.h.
48232
48233         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48234         not char *const and pointing to a constant array.
48235         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48236         (xrealloc): Comment fix.
48237
48238         * lib/userspec.c (parse_user_spec):
48239         Don't translate a message until just before returning,
48240         to avoid unnecessary translation.
48241
48242 2000-08-07  Jim Meyering  <meyering@lucent.com>
48243
48244         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48245         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48246         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48247         getgroups.c, gethostname.c, getopt.h, group-member.c,
48248         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48249         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48250         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48251         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48252         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48253         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48254         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48255         yesno.c: Back out Copyright date changes for each file with no change
48256         this year.  This eases coordination with other programs using the same
48257         source code modules.  From Paul Eggert.
48258
48259 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48260
48261         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48262         not char, for compatibility with glibc 2.1.3 strftime.c.
48263
48264 2000-08-03  Greg McGary  <greg@mcgary.org>
48265
48266         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48267         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48268         (EXTEND_BUFFER): Use them.
48269
48270 2000-08-01  Jim Meyering  <meyering@lucent.com>
48271
48272         * lib/dirname.c (ISSLASH): Define.
48273         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48274         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48275         both `\' and `/' may be use as path separators.
48276         Based on a patch from Prashant TR.
48277
48278 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48279
48280         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48281         slot vector a constant, since it might get modified.
48282
48283 2000-07-31  Jim Meyering  <meyering@lucent.com>
48284
48285         * lib/xmalloc.c: Use `virtual memory exhausted', not
48286         `Memory exhausted'.
48287         * lib/obstack.c (print_and_abort): Likewise.
48288
48289 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48290
48291         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48292         buffer, so that the caller can always quote one small
48293         component of a "memory exhausted" message in slot 0.
48294         From a suggestion by Jim Meyering.
48295
48296 2000-07-30  Jim Meyering  <meyering@lucent.com>
48297
48298         * lib/makepath.c (make_path): Quote the other instance, too.
48299
48300         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48301         (STATIC_BUF_SIZE): Define.
48302         (quotearg_n_options): Use only statically allocated storage when
48303         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48304         than STATIC_BUF_SIZE.
48305
48306 2000-07-29  Jim Meyering  <meyering@lucent.com>
48307
48308         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48309         * lib/dirname.c (dir_name): Likewise.
48310
48311         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48312         `/'.
48313
48314         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48315         (dir_name): Assert that there are no trailing slashes.
48316
48317 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48318
48319         * lib/mbswidth.h (mbswidth): Add a flags argument.
48320         (mbswidth): New declaration.
48321         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48322         * lib/mbswidth.c (mbswidth): Add a flags argument.
48323         (mbsnwidth): New function.
48324
48325 2000-07-24  Jim Meyering  <meyering@lucent.com>
48326
48327         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48328
48329 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48330
48331         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48332
48333 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48334
48335         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48336         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48337         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48338         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48339         invoke multibyte primitives.
48340
48341 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48342
48343         * lib/quotearg.c:
48344         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48345         so that mbstate_t is always defined.
48346
48347         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48348         be 1 in at least one GCC installation, and this configuration
48349         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48350         performance on hosts that have mbrtowc but have only unibyte
48351         locales, but I assume these hosts are rare.
48352
48353 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48354
48355         * lib/mbswidth.c (_XOPEN_SOURCE):
48356         Don't define; this causes problems on Solaris 7.
48357         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48358
48359 2000-07-23  Jim Meyering  <meyering@lucent.com>
48360
48361         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48362         too: getgrgid, getpwuid, getuid.
48363
48364 2000-07-23  Jim Meyering  <meyering@lucent.com>
48365
48366         * lib/basename.c (base_name): Add an assertion.
48367
48368 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48369
48370         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48371         shadow its mbsinit function.
48372
48373 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48374
48375         * lib/mbswidth.h: New file.
48376         * lib/mbswidth.c: New file.
48377         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48378         (noinst_HEADERS): Add mbswidth.h.
48379
48380 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48381
48382         * lib/config.charset: Add support for FreeBSD. Improve support for
48383         HP-UX and IRIX 6.
48384
48385 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48386
48387         * m4/mbswidth.m4: New file.
48388         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48389
48390 2000-07-15  Jim Meyering  <meyering@lucent.com>
48391
48392         * lib/makepath.c: Include quote.h.
48393         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48394         corresponding argument in a `quote (...)' call.
48395         Give better diagnostics.
48396
48397         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48398         (noinst_HEADERS): Add quote.h.
48399
48400         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48401         from tar's src/misc.c.
48402         * lib/quote.h: New file.  Prototypes for same.
48403
48404 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48405
48406         From a suggestion by Bruno Haible.
48407         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48408         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48409         to decide whether to define the BeOS workaround macro;
48410         this adjusts to the change to AC_MBSTATE_T.
48411
48412 2000-07-14  Jim Meyering  <meyering@lucent.com>
48413
48414         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48415         jm_AC_TYPE_UINTMAX_T.
48416
48417 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48418
48419         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48420
48421         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48422         quotearg_buffer_restyled): Add support for
48423         clocale_quoting_style.  Undo previous change to
48424         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48425         and "{RIGHT QUOTATION MARK}" msgids.
48426
48427 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48428
48429         From a suggestion by Bruno Haible.
48430         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48431         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48432         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48433         and mbstate_t, to a single-part test that simply defines mbstate_t.
48434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48435         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48436
48437 2000-07-10  Jim Meyering  <meyering@lucent.com>
48438
48439         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48440
48441         * m4/gnu-source.m4: Output to confdefs.h directly.
48442         Suggestion from Akim Demaille.
48443
48444 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48445
48446         The old behavior of quoting `like this' doesn't look good with
48447         newer, ISO-style fonts.  See:
48448         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48449
48450         Instead, quote "like this" by default.  Let the translator
48451         tailor the locale-specific quoting behavior by providing
48452         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48453
48454         * lib/quotearg.c (N_): New macro.
48455         (gettext_default): New function.
48456         (quotearg_buffer_restyled): Use
48457         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48458         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48459
48460 2000-07-09  Jim Meyering  <meyering@lucent.com>
48461
48462         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48463         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48464
48465         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48467
48468 2000-07-09  Jim Meyering  <meyering@lucent.com>
48469
48470         * lib/Most files: Update copyright dates to include 2000.
48471
48472 2000-07-08  Jim Meyering  <meyering@lucent.com>
48473
48474         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48475         if not defined.
48476         (xgethostname): Remove now-unnecessary #ifdef.
48477         Move declaration of `err' into loop where it's used.
48478
48479 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48480         and Bruno Haible  <haible@clisp.cons.org>
48481
48482         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48483         only if the test for an object-type mbstate_t fails.  This
48484         prevents us from mistakenly reporting that mbstate_t is a
48485         system object type after we "#define mbstate_t int" to work
48486         around its lack.
48487
48488 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48489         and Bruno Haible  <haible@clisp.cons.org>
48490
48491         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48492
48493 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48494
48495         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48496         to strerror_r.
48497         Include <ctype.h> for use of isalpha.
48498
48499 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48500
48501         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48502         by allocating a larger buffer. Test the gethostname return value for
48503         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
48504         returns an error and ENAMETOOLONG isn't defined.
48505
48506 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48507
48508         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48509         dimension.
48510
48511 2000-07-04  Jim Meyering  <meyering@lucent.com>
48512
48513         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48514         of the deprecated AC_CHECKING.
48515
48516 2000-07-04  Jim Meyering  <meyering@lucent.com>
48517
48518         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48519         Reported by Bruno Haible.
48520
48521 2000-07-04  Jim Meyering  <meyering@lucent.com>
48522
48523         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48524         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
48525         lacks mbrtowc.
48526
48527 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48528
48529         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48530         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48531
48532 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48533         and Bruno Haible  <haible@clisp.cons.org>
48534
48535         * lib/quotearg.c (mbrtowc):
48536         Assign to *pwc, and return 1 only if result is nonzero.
48537         (iswprint): Use ISPRINT when substituting our own mbrtowc.
48538
48539 2000-07-03  Jim Meyering  <meyering@lucent.com>
48540
48541         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48542
48543 2000-07-03  Jim Meyering  <meyering@lucent.com>
48544
48545         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48546         This is necessary to get a definition of e.g., UTMP_FILE on
48547         HP-UX 10.20.
48548         From Bob Proulx.
48549
48550 2000-07-02  Jim Meyering  <meyering@lucent.com>
48551
48552         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48553
48554         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48555         AC_LIBOBJ(function_name).
48556         * m4/chown.m4: Likewise.
48557         * m4/fnmatch.m4: Likewise.
48558         * m4/ftruncate.m4: Likewise.
48559         * m4/getgroups.m4: Likewise.
48560         * m4/getline.m4: Likewise.
48561         * m4/group-member.m4: Likewise.
48562         * m4/jm-macros.m4: Likewise.
48563         * m4/lstat.m4: Likewise.
48564         * m4/malloc.m4: Likewise.
48565         * m4/memcmp.m4: Likewise.
48566         * m4/nanosleep.m4: Likewise.
48567         * m4/putenv.m4: Likewise.
48568         * m4/realloc.m4: Likewise.
48569         * m4/regex.m4: Likewise.
48570         * m4/stat.m4: Likewise.
48571         * m4/strftime.m4: Likewise.
48572
48573 2000-07-02  Jim Meyering  <meyering@lucent.com>
48574
48575         * lib/quotearg.c (mbstate_t): Don't define here.
48576
48577 2000-07-02  Jim Meyering  <meyering@lucent.com>
48578
48579         * lib/nanosleep.c (SIGCONT): Define if not already defined.
48580
48581 2000-07-01  Jim Meyering  <meyering@lucent.com>
48582
48583         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48584
48585 2000-07-01  Jim Meyering  <meyering@lucent.com>
48586
48587         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48588         problem.
48589
48590 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48591
48592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48593         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48594
48595 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48596
48597         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48598         per change in ../m4/ls-mntd-fs.m4.
48599         (read_filesystem_list): Ignore symbolic links.
48600
48601 2000-06-29  Jim Meyering  <meyering@lucent.com>
48602
48603         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48604         for declaration of strcmp.
48605
48606         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48607
48608         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
48609         Avoid warning by casting result to `char *' to remove `const'.
48610
48611 2000-06-28  Jim Meyering  <meyering@lucent.com>
48612
48613         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
48614         included by quotearg.c, for which we perform this test.  From
48615         Bruno Haible.
48616
48617 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48618
48619         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
48620         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
48621         <utmpx.h> exists, put readutmp.o into LIBOBJS.
48622
48623 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48624
48625         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
48626
48627 2000-06-26  Paul Eggert  <eggert@twinsun.com>
48628
48629         savedir now sets errno on failure and invokes xmalloc to get memory.
48630         Fix a couple of other minor bugs while we're at it.
48631
48632         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
48633         (NAMLEN): Remove macro.
48634         (malloc, realloc): Remove decls.
48635         (stpcpy): Likewise.
48636         ("xalloc.h"): Include.
48637         (NAME_SIZE_DEFAULT): New macro.
48638         (savedir): Use xmalloc / xrealloc to allocate memory.
48639         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
48640         Skip "" directory entries.
48641         Use strlen to calculate directory entry length, since the old method
48642         is rarely used these days and isn't worth supporting.
48643         Don't use a pointer after freeing it.
48644         Check for integer overflow when calculating allocation size.
48645         Use memcpy to copy entries, instead of stpcpy.
48646         Set errno properly when returning NULL.
48647         Check for readdir error.
48648
48649 2000-06-26  Jim Meyering  <meyering@lucent.com>
48650
48651         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
48652
48653 2000-06-25  Jim Meyering  <meyering@lucent.com>
48654
48655         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
48656         Linux header bug when _XOPEN_SOURCE is defined to 500.
48657
48658 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48659
48660         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
48661         deficiency.
48662
48663 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48664
48665         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
48666         Include xalloc.h.
48667         Don't include <stdlib.h>.  Don't declare malloc, realloc.
48668
48669 2000-06-24  Jim Meyering  <meyering@lucent.com>
48670
48671         * m4/strerror_r.m4: Revive this file -- to try out an experimental
48672         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
48673         for which strerror does return char*, but which lacks a conveniently
48674         accessible declaration of the function.  If the compile-test says
48675         strerror_r doesn't work, then resort to a `run'-test that works on
48676         BeOS and segfaults on DEC Unix.
48677
48678 2000-06-24  Jim Meyering  <meyering@lucent.com>
48679
48680         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
48681
48682 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48683
48684         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
48685         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
48686
48687 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48688
48689         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
48690         (mbrtowc, mbstate_t): Define substitutes if
48691         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
48692         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
48693         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
48694
48695 2000-06-23  Jim Meyering  <meyering@lucent.com>
48696
48697         * m4/afs.m4: Add missing AC_MSG_RESULT.
48698         Reported by Bruno Haible.
48699
48700         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
48701         Suggestion from Bruno Haible.
48702
48703 2000-06-23  Jim Meyering  <meyering@lucent.com>
48704
48705         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
48706
48707 2000-06-21  Jim Meyering  <meyering@lucent.com>
48708
48709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
48710
48711 2000-06-21  Jim Meyering  <meyering@lucent.com>
48712
48713         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
48714         (noinst_HEADERS): Add getstr.h.
48715
48716         * lib/getline.c (getstr): Move into a separate file.
48717         * lib/getstr.c (getstr): New file, extracted from getline.c, with
48718         the following changes: new parameter, delim2; both delim[12]
48719         parameters have type `int', not `char'.  The latter would lose
48720         with 8-bit delimiters.
48721         * lib/getstr.h: New file.
48722
48723 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48724
48725         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
48726         than 1024, return a memory chunk of least possible size, instead
48727         of size PATH_MAX + 2. In the loop, increment the size proportionally.
48728         Use free/xmalloc instead of xrealloc to avoid copying for very long
48729         paths.
48730
48731 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48732
48733         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
48734         the empty string.
48735
48736 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48737
48738         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
48739         address, not strdup.  Include <stdlib.h> and don't declare free().
48740
48741 2000-06-19  Jim Meyering  <meyering@lucent.com>
48742
48743         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
48744
48745 2000-06-18  Jim Meyering  <meyering@lucent.com>
48746
48747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
48748
48749         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
48750         `checking whether...' message to be consistent with that of the
48751         lstat test.
48752
48753 2000-06-18  Jim Meyering  <meyering@lucent.com>
48754
48755         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
48756         Besides, these days every porting target provides a mkdir function.
48757
48758         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
48759         needed. (this snippet comes from src/system.h).
48760
48761 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
48762
48763         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
48764
48765 2000-06-15  Paul Eggert  <eggert@twinsun.com>
48766
48767         * lib/human.c (adjust_value): New function.
48768         (human_readable_inexact): Apply rounding style even when
48769         printing approximate values.
48770
48771 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48772
48773         * lib/human.c (human_readable_inexact): Allow an input block
48774         size that is not a multiple of the output block size, and vice versa.
48775         Reported by Piergiorgio Sartor.
48776
48777 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48778
48779         * lib/getdate.y (get_date): Apply relative times after time
48780         zone indicator, not before.  Reported by Todd A. Jacobs.
48781
48782 2000-06-13  Jim Meyering  <meyering@lucent.com>
48783
48784         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
48785
48786         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
48787
48788 2000-06-12  Paul Eggert  <eggert@twinsun.com>
48789
48790         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
48791
48792 2000-06-12  Jim Meyering  <meyering@lucent.com>
48793
48794         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
48795         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
48796         optional argument.
48797         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
48798         the optional argument, `lib'.
48799
48800 2000-06-08  Jim Meyering  <meyering@lucent.com>
48801
48802         * m4/largefile.m4: Remove file (now that it's part of autoconf).
48803
48804 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48805
48806         Rewrite largefile configuration so that we don't need to run
48807         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
48808         AC_CANONICAL_HOST in configure.in -- jmm]
48809
48810         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
48811         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
48812         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
48813         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
48814         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
48815         All uses changed.
48816         Instead of inspecting the output of getconf, try to compile the
48817         test program without and with the macro definition.
48818         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
48819         for getconf.  Instead, check for the needed flags by compiling
48820         test programs.
48821
48822 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48823
48824         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
48825
48826 2000-06-04  Jim Meyering  <meyering@lucent.com>
48827
48828         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
48829         SunOS 4.1.4 for which gid_t is an unsigned type.
48830
48831 2000-06-03  Jim Meyering  <meyering@lucent.com>
48832
48833         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
48834         now that autoconf requires that.
48835
48836         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
48837         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
48838         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
48839
48840 2000-06-03  Jim Meyering  <meyering@lucent.com>
48841
48842         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
48843
48844 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48845
48846         * m4/glibc21.m4: New file.
48847         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
48848
48849 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48850
48851         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
48852         newer, don't install charset.alias.
48853         * lib/config.charset: Change the Linux/glibc rules so they become empty
48854         on glibc-2.1 or newer.
48855
48856 2000-06-02  Jim Meyering  <meyering@lucent.com>
48857
48858         * lib/mountlist.c: Back out last change.  Instead, do this...
48859         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
48860         me_dummy member using the same `ignore'-testing code.
48861         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
48862         fs_type strings.
48863         From Mark D. Roth.
48864
48865 2000-05-29  Jim Meyering  <meyering@lucent.com>
48866
48867         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
48868         mounts with the `ignore' attribute.  Based on a patch from
48869         Mark D. Roth.
48870
48871 2000-05-28  Jim Meyering  <meyering@lucent.com>
48872
48873         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
48874         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48875         * m4/stat.m4: Likewise.
48876         * m4/lstat.m4: Likewise.
48877         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
48878
48879         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
48880         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
48881
48882 2000-05-26  Jim Meyering  <meyering@lucent.com>
48883
48884         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
48885
48886 2000-05-24  Jim Meyering  <meyering@lucent.com>
48887
48888         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
48889         autoconf requires that.
48890         * m4/lib-check.m4: Likewise.
48891         * m4/jm-macros.m4: Likewise.
48892         * m4/strftime.m4: Likewise.
48893
48894         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
48895         AC_CHECK_DECLS, now that autoconf requires that.
48896
48897 2000-05-22  Jim Meyering  <meyering@lucent.com>
48898
48899         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48900         * m4/lstat.m4: Likewise.
48901
48902 2000-05-22  Jim Meyering  <meyering@lucent.com>
48903
48904         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
48905
48906 2000-05-20  Jim Meyering  <meyering@lucent.com>
48907
48908         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
48909         (jm_PREREQ): Use it.
48910
48911 2000-05-18  Jim Meyering  <meyering@lucent.com>
48912
48913         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
48914         back, too, since it may have been modified by allocate_entry.
48915         (hash_delete): Rewrite to use neither the assignment operator
48916         nor the comma operator in an if-expression.
48917
48918 2000-05-15  Paul Eggert  <eggert@twinsun.com>
48919
48920         * lib/closeout.c:
48921         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
48922         Remove; no longer needed.
48923         "quotearg.h": Add include.
48924         (file_name): Do not bother to explicitly initialize to NULL; it's less
48925         efficient on some hosts.
48926         (close_stdout_status): Remove test as to whether stdout was already
48927         closed; it breaks for the case "echo x | sort >&-".
48928         Quote file name colons.
48929         Do not assume that _("write error") lacks format strings.
48930
48931 2000-05-15  Jim Meyering  <meyering@lucent.com>
48932
48933         * lib/version-etc.c (version_etc_copyright): Update the copyright
48934         string used in all --version output.
48935
48936 2000-05-14  Jim Meyering  <meyering@lucent.com>
48937
48938         * lib/closeout.c (close_stdout_set_file_name): New function.
48939         (close_stdout_status): Use new file-scoped global.
48940         Return right away if fstat says the stdout file descriptor is invalid.
48941         * lib/closeout.h (close_stdout_set_file_name): Declare.
48942
48943 2000-05-10  Jim Meyering  <meyering@lucent.com>
48944
48945         * lib/closeout.c [default_exit_status]: New file-scoped variable.
48946         (close_stdout_set_status): New function.
48947         * lib/closeout.h (close_stdout_set_status): Declare.
48948
48949 2000-05-09  Jim Meyering  <meyering@lucent.com>
48950
48951         * m4/gettext.m4: Rename this...
48952         * m4/libintl.m4: ...to this.
48953
48954 2000-05-08  Jim Meyering  <meyering@lucent.com>
48955
48956         * lib/long-options.c: Don't include closeout.h.
48957         (parse_long_options): Don't call close_stdout for --version.
48958
48959 2000-05-06  Paul Eggert  <eggert@twinsun.com>
48960
48961         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
48962         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
48963         2.1.3 bug.  This avoids a clash when files like regex.c define
48964         _GNU_SOURCE.
48965
48966 2000-05-06  Jim Meyering  <meyering@lucent.com>
48967
48968         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
48969         (AC_REPLACE_FUNCS): Add strnlen.
48970
48971         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
48972         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
48973
48974         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
48975         AC_SEARCH_LIBS call for nanosleep.
48976         (LIB_NANOSLEEP): Set and AC_SUBST.
48977
48978 2000-05-06  Jim Meyering  <meyering@lucent.com>
48979
48980         * lib/strnlen.c: Undefine __strnlen and strnlen.
48981         [!weak_alias]: Define __strnlen to strnlen.
48982
48983         * lib/atexit.c: New file, from libiberty.
48984
48985 2000-05-06  Jim Meyering  <meyering@lucent.com>
48986
48987         * lib/closeout.c (close_stdout_status): Also check for errors on the
48988         stderr stream.
48989
48990 2000-05-05  Jim Meyering  <meyering@lucent.com>
48991
48992         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
48993         AC_SEARCH_LIBS call for clock_gettime.
48994         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
48995
48996         * m4/search-libs.m4: Update from autoconf.
48997
48998         su doesn't work on Solaris 2.6.
48999         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49000         <shadow.h>.  Reported by Dragos Harabor.
49001
49002 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49003
49004         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49005         memcpy instead of xmalloc, xrealloc, path_concat.
49006         (locale_charset): Treat empty environment variables as absent.
49007         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49008
49009 2000-05-04  Jim Meyering  <meyering@lucent.com>
49010
49011         * lib/getopt.c: Update from glibc.
49012         * lib/obstack.c: Likewise.
49013         * lib/obstack.h: Likewise.
49014         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49015         file
49016
49017         * lib/regex.h: Likewise.
49018         * lib/strndup.c: Likewise.
49019         * lib/strnlen.c: New file, from glibc.
49020
49021 2000-05-03  Jim Meyering  <meyering@lucent.com>
49022
49023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49024
49025 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49026
49027         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49028         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49029         compile-time test, rather than inspecting host and OS, to
49030         decide whether to define _LARGEFILE_SOURCE.
49031
49032 2000-05-01  Jim Meyering  <meyering@lucent.com>
49033
49034         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49035
49036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49037         Based on a patch from Bruno Haible.
49038
49039 2000-05-01  Jim Meyering  <meyering@lucent.com>
49040
49041         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49042
49043 2000-04-29  Jim Meyering  <meyering@lucent.com>
49044
49045         * lib/path-concat.c: Declare strdup only if it's not defined.
49046         * lib/canon-host.c: Likewise.
49047
49048 2000-04-28  Jim Meyering  <meyering@lucent.com>
49049
49050         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49051         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49052         is included first, then limits.h is included by locale.h by libintl.h.
49053         From John David Anglin.
49054
49055 2000-04-25  Jim Meyering  <meyering@lucent.com>
49056
49057         * lib/makepath.c (S_IRWXUGO): Define.
49058         (make_path): Always perform explicit chmod if MODE specifies any
49059         of the `special' permission bits.  Prompted by a bug report against
49060         install from Mate Wierdl and Joost van Baal.
49061
49062 2000-04-18  Jim Meyering  <meyering@lucent.com>
49063
49064         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49065         (jm_PREREQ): Use it.
49066
49067 2000-04-18  Jim Meyering  <meyering@lucent.com>
49068
49069         * lib/README: New file.
49070
49071         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49072         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49073
49074 2000-04-17  Jim Meyering  <meyering@lucent.com>
49075
49076         Get it right :-)
49077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49078         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49079         Suggestion from Akim Demaille.
49080
49081 2000-04-17  Jim Meyering  <meyering@lucent.com>
49082
49083         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49084         the definition of it to rpl_strftime also defined-away the system's
49085         declaration.
49086
49087 2000-04-15  Jim Meyering  <meyering@lucent.com>
49088
49089         Use `C' to denote so-called `contiguous' files, the same way
49090         that tar does.
49091         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49092         (ftypelet): Use S_ISCTG.
49093         From Michael Deutschmann.
49094
49095 2000-04-14  Jim Meyering  <meyering@lucent.com>
49096
49097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49098         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49099         clobbered.
49100
49101 2000-04-14  Jim Meyering  <meyering@lucent.com>
49102
49103         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49104
49105 2000-04-13  Jim Meyering  <meyering@lucent.com>
49106
49107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49108         AH_VERBATIM to insert required #ifndef into config.h.in.
49109         Suggestion from Akim Demaille.
49110
49111 2000-04-12  Jim Meyering  <meyering@lucent.com>
49112
49113         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49114         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49115         Christian Krackowizer.
49116
49117         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49118         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49119         (AC_SYS_LARGEFILE): Require.
49120         (AM_C_PROTOTYPES): Require.
49121
49122 2000-04-08  Jim Meyering  <meyering@lucent.com>
49123
49124         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49125         names don't conflict.  Reported by Eli Zaretskii.
49126
49127 2000-04-07  Jim Meyering  <meyering@lucent.com>
49128
49129         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49130         sys/types.h, to work around system header problems on AIX 3.2.5.
49131         From Bruno Haible.
49132
49133 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49134
49135         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49136         bug.  Deal with the different error behavior of Irix iconv.
49137
49138 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49139
49140         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49141         IRIX if the installer said otherwise.
49142
49143 2000-04-05  Jim Meyering  <meyering@lucent.com>
49144
49145         Portability tweaks required for ultrix4.3.
49146         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49147         (jm_CHECK_DECLS): Add getutent to the list of functions.
49148         (_jm_DECL_HEADERS): Add utmpx.h.
49149         From John David Anglin.
49150
49151         * m4/strftime.m4: Back out the 2000-04-02 change.
49152         Instead of that change, simply undefine putenv in the test program.
49153
49154 2000-04-05  Jim Meyering  <meyering@lucent.com>
49155
49156         Portability tweaks required for ultrix4.3.
49157         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49158         getutent.
49159         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49160         * lib/canon-host.c: Declare strdup.
49161         * lib/path-concat.c: Likewise.
49162         From John David Anglin.
49163
49164 2000-04-04  Jim Meyering  <meyering@lucent.com>
49165
49166         Be more DOS 8.3-friendly.
49167         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49168         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49169         * lib/Makefile.am: Reflect renaming.
49170         Reported by Eli Zaretskii.
49171
49172         Use a temporary file name that won't clash with `charset.alias'
49173         in the DOS 8.3 name space.
49174         * lib/Makefile.am (charset_tmp): Define.
49175         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49176         (uninstall-local): Likewise.
49177         Reported by Eli Zaretskii.
49178
49179 2000-04-03  Jim Meyering  <meyering@lucent.com>
49180
49181         * m4/gettext.m4: Fix typo in comment.
49182
49183         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49184         textutils/configure.in).  Suggestion from Paul Eggert.
49185         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49186
49187 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49188
49189         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49190         variable in the shell rather than using putenv, which isn't
49191         portable.  This avoids the configure-time inter-test dependency
49192         on the potentially-renamed putenv function.
49193
49194 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49195
49196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49197         before checking struct stat.st_blksize, so that
49198         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49199
49200 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49201
49202         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49203         since strftime.c uses HAVE_STRFTIME to decide whether to use
49204         the underlying strftime.
49205
49206 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49207
49208         * lib/time/strftime.c (my_strftime): Make sure we call the system
49209         strftime, not ourselves, when invoking the underlying strftime.
49210
49211 2000-03-24  Jim Meyering  <meyering@lucent.com>
49212
49213         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49214         (charset_alias): Define.
49215         (install-exec-local): Factor out common code.
49216         (uninstall-local): Split lines longer than 80.
49217         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49218         (SUFFIXES): Define.
49219         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49220         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49221
49222 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49223
49224         * lib/config.charset: Output a line containing "Packages using this
49225         file".
49226         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49227         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49228         ref-del.sed): New rules.
49229
49230 2000-03-17  Jim Meyering  <meyering@lucent.com>
49231
49232         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49233         Otherwise, include <strings.h>
49234
49235 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49236
49237         * lib/unicodeio.c (utf8_wctomb): New function.
49238         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49239         format instead of in UCS-4 with platform dependent endianness.
49240
49241 2000-03-10  Jim Meyering  <meyering@lucent.com>
49242
49243         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49244         From Marco Franzen.
49245
49246 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49247
49248         * lib/savedir.c (savedir): Work even if directory size is
49249         negative; this can happen with some screwy NFS configurations.
49250
49251 2000-03-06  Jim Meyering  <meyering@lucent.com>
49252
49253         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49254         if it's NULL (because we ran out of memory).  From Bruno Haible.
49255
49256 2000-03-05  Jim Meyering  <meyering@lucent.com>
49257
49258         * lib/localcharset.c ("path-concat.h"): Include.
49259         (get_charset_aliases): Use path_concat instead of ANSI string
49260         concatenation.
49261
49262         * lib/unicodeio.h (PARAMS): Define.
49263         Use it to guard prototype.
49264
49265 2000-03-04  Jim Meyering  <meyering@lucent.com>
49266
49267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49268         for lib/localcharset.c.
49269
49270 2000-03-04  Jim Meyering  <meyering@lucent.com>
49271
49272         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49273         installing into it.
49274         (uninstall-local): Uncomment this rule so `make distcheck' works
49275         once again.
49276
49277         * lib/unicodeio.c (<errno.h>): Include it.
49278         (errno): Declare if not defined.
49279
49280         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49281
49282         * lib/config.charset: New version, incorporating remarks from a linux
49283         i18n mailing list.  From Bruno Haible.
49284
49285 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49286
49287         * m4/codeset.m4: New file.
49288         * m4/iconv.m4: New file.
49289         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49290
49291 2000-03-03  Jim Meyering  <meyering@lucent.com>
49292
49293         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49294
49295 2000-03-02  Jim Meyering  <meyering@lucent.com>
49296
49297         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49298         the messages come out on separate lines.
49299
49300         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49301         rather than jm_CHECK_DECLARATIONS.
49302         * m4/decl.m4: Remove now-unused file.
49303
49304         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49305         geteuid.
49306
49307 2000-03-02  Jim Meyering  <meyering@lucent.com>
49308
49309         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49310
49311 2000-03-01  Jim Meyering  <meyering@lucent.com>
49312
49313         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49314         * lib/unicodeio.c: Likewise.
49315
49316 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49317
49318         * lib/config.charset: New file.
49319         * lib/localcharset.c: New file.
49320         * lib/unicodeio.h, lib/unicodeio.c: New files.
49321         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49322         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49323         (noinst_HEADERS): Add unicodeio.h.
49324         (all-local, install-exec-local, charset.alias): New targets.
49325
49326 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49327
49328         * lib/quotearg.c (ALERT_CHAR): New macro.
49329         (quotearg_buffer_restyled): Use it.
49330
49331 2000-02-27  Jim Meyering  <meyering@lucent.com>
49332
49333         * m4/check-decl.m4: Add getenv to the list.
49334
49335 2000-02-27  Jim Meyering  <meyering@lucent.com>
49336
49337         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49338         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49339
49340         * lib/backupfile.c: Guard inclusion of stdlib.h with
49341         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49342         Declare malloc if needed.
49343
49344         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49345         `#ifndef HAVE_DECL..'
49346         now that autoconf always defines the HAVE_DECL_ symbols.
49347         * lib/human.c: Likewise.
49348         * lib/same.c: Likewise.
49349         * lib/strtoumax.c: Likewise.
49350
49351         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49352         declaration check was not run.
49353         * lib/hash.c: Likewise.
49354         * lib/human.c: Likewise.
49355         * lib/same.c: Likewise.
49356         * lib/strtoumax.c: Likewise.
49357
49358         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49359         `.', then first look up the entire `.'-containing string as a login
49360         name.
49361
49362 2000-02-23  Jim Meyering  <meyering@lucent.com>
49363
49364         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49365         in place of my hack.
49366
49367 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49368
49369         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49370         (textint): New typedef.
49371         (parser_control): Member year changed from int to textint.
49372         All uses changed.
49373         (YYSTYPE): Removed; replaced by %union with int and textint members.
49374         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49375         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49376         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49377         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49378         (date, number, to_year): Use width of number in digits, not its value,
49379         to determine whether it's a 2-digit year, or a 2-digit time.
49380         (yylex): Store number of digits of numeric tokens.
49381         Reported by John Kendall.
49382
49383         (parser_control): Changed from struct parser_control to typedef (for
49384         consistency).  All uses changed.
49385
49386         (tID): Removed; not used.
49387         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49388
49389 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49390
49391         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49392         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49393
49394 2000-02-12  Jim Meyering  <meyering@lucent.com>
49395
49396         * lib/userspec.c (ISDIGIT): Define it.
49397         (isdigit): Remove definition.
49398         (is_number): Use ISDIGIT, not isdigit.
49399         <libintl.h>: Include.
49400         (_ and N_): Define.
49401         (parse_user_spec): Mark translatable strings.
49402
49403 2000-02-10  Jim Meyering  <meyering@lucent.com>
49404
49405         With these changes, nanosleep.[ch] are finally enough like the other
49406         lib/* replacement files to compile on a few more losing systems.
49407
49408         * lib/nanosleep.h: Don't include config.h.
49409         Remove prototype from declaration of nanosleep.
49410         (PARAMS): Remove now-unneeded definition.
49411         * lib/nanosleep.c: #undef nanosleep.
49412         (rpl_nanosleep): Rename from nanosleep.
49413
49414 2000-02-10  Jim Meyering  <meyering@lucent.com>
49415
49416         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49417         gnu_nanosleep to rpl_nanosleep.
49418
49419 2000-02-09  Jim Meyering  <meyering@lucent.com>
49420
49421         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49422         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49423
49424 2000-02-08  Akim Demaille  <akim@epita.fr>
49425
49426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49427         `[' and `]' and remove uses of `changequote'.
49428         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49429         (AC_SYS_LARGEFILE): Likewise.
49430         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49431         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49432         of changequote.
49433         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49434         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49435         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49436         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49437
49438 2000-02-05  Jim Meyering  <meyering@lucent.com>
49439
49440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49441         Remove explicit use of AC_HEADER_TIME.  It is required by
49442         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49443         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49444         in autoconf whereby the expansion of the latter ended up preceding
49445         the expansion of its prerequisite, AC_HEADER_TIME.
49446         Reported by Volker Borchert.
49447
49448 2000-02-03  Jim Meyering  <meyering@lucent.com>
49449
49450         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49451
49452 2000-02-03  Jim Meyering  <meyering@lucent.com>
49453
49454         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49455         rather than with `#if HAVE_UTMPNAME'.
49456
49457 2000-02-02  Jim Meyering  <meyering@lucent.com>
49458
49459         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49460         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49461         Reported by Eli Zaretskii.
49462
49463 2000-02-01  Jim Meyering  <meyering@lucent.com>
49464
49465         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49466
49467 2000-01-31  Jim Meyering  <meyering@lucent.com>
49468
49469         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49470         functions.  Add the time.h and sys/time.h headers along with the
49471         AC_REQUIRE'ment of AC_HEADER_TIME.
49472
49473 2000-01-31  Jim Meyering  <meyering@lucent.com>
49474
49475         * lib/nanosleep.h (nanosleep): Guard declaration with
49476         `#if ! HAVE_DECL_NANOSLEEP'.
49477         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49478         the declaration in that vendor's sys/timers.h.
49479         Reported by Christian Krackowizer.
49480
49481         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49482         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49483         (ISPRINT): Likewise.
49484         Reported by Tom Tromey.
49485
49486 2000-01-30  Jim Meyering  <meyering@lucent.com>
49487
49488         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49489
49490         * m4/prereq.m4 (utmp_includes): Define.
49491         Check for ut_user and ut_name members in both struct utmpx
49492         and struct utmp.
49493
49494 2000-01-30  Jim Meyering  <meyering@lucent.com>
49495
49496         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49497         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
49498         header files where only utmpx.ut_user is declared.
49499
49500         * lib/readutmp.h (UT_USER): Define.
49501
49502 2000-01-29  Jim Meyering  <meyering@lucent.com>
49503
49504         * m4/lib-check.m4: New file containing library-related checks from
49505         fileutils and sh-utils (textutils had none).
49506
49507 2000-01-28  Jim Meyering  <meyering@lucent.com>
49508
49509         * m4/perl.m4: Change format of warning message to look more like that
49510         from the missing script.  Suggestion from François Pinard.
49511
49512 2000-01-25  Jim Meyering  <meyering@lucent.com>
49513
49514         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49515         well as time.h in the compile check.
49516         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49517         Fix typo in cross-compiling case: s/yes/no/.
49518
49519 2000-01-23  Jim Meyering  <meyering@lucent.com>
49520
49521         * m4/jm-macros.m4: Move df-related tests here from
49522         fileutils/configure.in
49523
49524         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49525         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49526
49527         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
49528         s/space/ac_fsusage_space/.
49529         (jm_FILE_SYSTEM_USAGE): Take two parameters.
49530
49531         * m4/ftruncate.m4: New file (derived from part of
49532         fileutils/configure.in).
49533         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49534         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49535
49536         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49537         AC_SUBST these here, rather than just in sh-util/configure.in, so
49538         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49539         all the same.
49540         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49541         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49542         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49543         (AC_SUBST(POW_LIBM)): Likewise.
49544         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49545
49546 2000-01-23  Jim Meyering  <meyering@lucent.com>
49547
49548         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49549         obstack.c.
49550
49551 2000-01-22  Jim Meyering  <meyering@lucent.com>
49552
49553         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49554
49555         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49556
49557         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49558         configure.in
49559         (AC_CHECK_HEADERS): Likewise for sh-utils.
49560         (AC_CHECK_HEADERS): Likewise for textutils.
49561         Merge the three lists of headers.
49562
49563         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
49564         from fileutils' configure.in.
49565
49566         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49567         code. Moved tests into their own function (_jm_DECL_HEADERS) in
49568         check-decl.m4.
49569
49570         * m4/check-decl.m4: Use #if rather than #ifdef.
49571         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49572         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49573         (_jm_DECL_HEADERS): Define new function.
49574         (jm_CHECK_DECLARATIONS): Require it.
49575
49576 2000-01-22  Jim Meyering  <meyering@lucent.com>
49577
49578         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49579         [! HAVE_DECL_STRTOULL]: Declare strtoull.
49580         Required for some AIX systems.  Reported by Christian Krackowizer.
49581         [TESTING] (main): New function.
49582
49583         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
49584         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49585         letters.
49586
49587         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49588         iswprint.
49589
49590         * lib/strverscmp.c (ISDIGIT): Define.
49591         (strverscmp): Use ISDIGIT, not isdigit.
49592
49593 2000-01-19  Jim Meyering  <meyering@lucent.com>
49594
49595         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49596         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
49597         defines `struct timespec' in <sys/time.h>
49598
49599         * m4/c-bs-a.m4: Remove uses of changequote altogether.
49600         Thanks to Akim for explaining.
49601
49602 2000-01-17  Paul Eggert  <eggert@twinsun.com>
49603
49604         * lib/nanosleep.c (nanosleep):
49605         Don't use SA_INTERRUPT to decide whether to call sigaction, as
49606         POSIX.1 doesn't require SA_INTERRUPT and some systems
49607         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
49608         it's been part of POSIX.1 since day 1 (in 1988).
49609
49610 2000-01-17  Jim Meyering  <meyering@lucent.com>
49611
49612         * lib/interlock: Remove unused file.  Reported by François Pinard.
49613
49614 2000-01-16  Paul Eggert  <eggert@twinsun.com>
49615
49616         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
49617         alert, backslash, formfeed, and vertical tab unnecessarily in
49618         shell quoting style.
49619
49620 2000-01-16  Jim Meyering  <meyering@lucent.com>
49621
49622         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
49623         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
49624         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
49625         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
49626
49627 2000-01-16  Jim Meyering  <meyering@lucent.com>
49628
49629         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
49630         because the latter didn't work.
49631
49632 2000-01-15  Jim Meyering  <meyering@lucent.com>
49633
49634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
49635         (AC_REPLACE_FUNCS): Add memcpy and memset.
49636         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
49637         Add strpbrk.
49638         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
49639
49640 2000-01-12  Jim Meyering  <meyering@lucent.com>
49641
49642         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
49643         (jm_PREREQ): Use it.
49644         (jm_PREREQ_READUTMP): New macro.
49645         (jm_PREREQ): Use it.
49646
49647 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49648
49649         Quote multibyte characters correctly.
49650         * m4/c-bs-a.m4: New file.
49651         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
49652         (jm_PREREQ): Use it.
49653
49654 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49655
49656         * m4/uintmax_t.m4: Port to autoconf 2.13.
49657
49658 2000-01-08  Jim Meyering  <meyering@ascend.com>
49659
49660         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
49661         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
49662
49663 2000-01-04  Jim Meyering  <meyering@ascend.com>
49664
49665         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
49666         jm_STRUCT_DIRENT_D_TYPE.
49667         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
49668         jm_STRUCT_DIRENT_D_INO.
49669         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
49670         jm_STRUCT_UTIMBUF.
49671         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
49672         renamings.
49673         * m4/utime.m4: Likewise.
49674
49675         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
49676         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
49677
49678 2000-01-03  Paul Eggert  <eggert@twinsun.com>
49679
49680         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
49681         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
49682
49683 2000-01-02  Jim Meyering  <meyering@ascend.com>
49684
49685         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
49686         remember if this is necessary.
49687
49688 1999-12-26  Jim Meyering  <meyering@ascend.com>
49689
49690         * m4/jm-macros.m4: Use it here.
49691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
49692
49693 1999-12-23  Jim Meyering  <meyering@ascend.com>
49694
49695         * m4/jm-macros.m4: Check for clock_gettime (moved from
49696         fileutils/configure.in)
49697         Check for gettimeofday.
49698
49699 1999-12-20  Jim Meyering  <meyering@ascend.com>
49700
49701         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
49702         autoconf-2.14a-1999-12-20.
49703
49704 1999-12-19  Jim Meyering  <meyering@ascend.com>
49705
49706         * m4/lstat-slash.m4: New file.
49707         * m4/jm-macros.m4: Use the new macro:
49708         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49709
49710 1999-12-07  Jim Meyering  <meyering@ascend.com>
49711
49712         * m4/perl.m4: Require that File::Compare be available, too.
49713         Too many systems seem to lack it.
49714
49715         * m4/strftime.m4: Add checks for most of the cpp macros tested in
49716         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
49717
49718 1999-11-18  Paul Eggert  <eggert@twinsun.com>
49719
49720         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
49721         problem with the QNX 4.25 shell, which doesn't propagate exit
49722         status of failed commands inside shell assignments.
49723
49724 1999-11-17  Jim Meyering  <meyering@ascend.com>
49725
49726         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
49727
49728 1999-11-07  Jim Meyering  <meyering@ascend.com>
49729
49730         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
49731
49732 1999-11-06  Jim Meyering  <meyering@ascend.com>
49733
49734         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
49735         * m4/jm-macros.m4 (jm_MACROS): Use it here.
49736
49737 1999-11-05  Jim Meyering  <meyering@ascend.com>
49738
49739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
49740         configure.in of textutils, fileutils, and sh-utils into this one
49741         (shared between those packages) file.
49742         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
49743         AC_STRUCT_ST_BLKSIZE.
49744
49745 1999-11-03  Jim Meyering  <meyering@ascend.com>
49746
49747         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
49748         of AC_CHECK_TYPE checks includes unistd.h.
49749         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
49750         Suggestion from Akim Demaille.
49751
49752 1999-10-30  Jim Meyering  <meyering@ascend.com>
49753
49754         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
49755         m4-quoted string.
49756         * m4/ls-mntd-fs.m4: Likewise.
49757         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
49758         * m4/jm-winsz1.m4: Likewise.
49759
49760         * m4/const.m4: Remove file, since the fix made it into the experimental
49761         version of autoconf.
49762         * m4/mktime.m4: Likewise.
49763
49764         * m4/check-type.m4: Remove file, now that the latest version of
49765         AC_CHECK_TYPE takes a third arg to specify additional #includes.
49766
49767         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
49768         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
49769         AC_CHECK_TYPE.
49770
49771 1999-10-04  Jim Meyering  <meyering@ascend.com>
49772
49773         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
49774
49775 1999-09-22  Paul Eggert  <eggert@twinsun.com>
49776
49777         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
49778         2.95.1 bug with HP-UX 10.20.
49779
49780 1999-09-17  Jim Meyering  <meyering@ascend.com>
49781
49782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
49783         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
49784         due to missing strdup (against sh-utils-2.0).
49785
49786 1999-08-29  Jim Meyering  <meyering@ascend.com>
49787
49788         * m4/jm-macros.m4: Require jm_BISON.
49789         * m4/bison.m4: New file.
49790
49791 1999-08-17  Paul Eggert  <eggert@twinsun.com>
49792
49793         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
49794         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
49795
49796 1999-08-05  Jim Meyering  <meyering@ascend.com>
49797
49798         * m4/getline.m4: Rename test file from conftestdata to conftest.data
49799         to avoid conflicts with `conftest' on 8+3 filesystems.
49800         Suggestion from Eli Zaretskii.
49801
49802 1999-08-04  Jim Meyering  <meyering@ascend.com>
49803
49804         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
49805         fileutils and sh-utils (textutils's getline test was inadequate).
49806         (AM_FUNC_GETLINE): Run this test.
49807         (AC_CHECK_FUNCS): Check for getdelim.
49808         Reported by Bob Proulx.
49809
49810 1999-08-02  Jim Meyering  <meyering@ascend.com>
49811
49812         * m4/jm-macros.m4: Add a comment.
49813
49814 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49815
49816         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
49817         <inttypes.h> defines strtoumax as a macro (and not as a
49818         function).
49819
49820 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49821
49822         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
49823         that we can shift, multiply and divide unsigned long long
49824         values; Ultrix cc can't do it.
49825
49826 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49827
49828         * m4/mktime.m4: New file, which is a preview of what should appear
49829         in the next public autoconf release.
49830
49831 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49832
49833         * m4/lfs.m4: Remove this file.
49834         * m4/largefile.m4: New file.  It contains the old contents of
49835         lfs.m4, except that all names with prefix AC_LFS have been
49836         changed to use the prefix AC_SYS_LARGEFILE instead, to be
49837         compatible with future autoconf versions.  Also, some minor m4
49838         quoting problems have been fixed.
49839
49840 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49841
49842         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
49843         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
49844         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
49845         and simplify the shell code.
49846
49847 1999-08-01  Jim Meyering  <meyering@ascend.com>
49848
49849         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
49850         m4.
49851
49852 1999-07-20  Jim Meyering  <meyering@ascend.com>
49853
49854         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
49855
49856 1999-07-15  Jim Meyering  <meyering@ascend.com>
49857
49858         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
49859
49860 1999-05-22  Jim Meyering  <meyering@ascend.com>
49861
49862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
49863
49864 1999-05-20  Jim Meyering  <meyering@ascend.com>
49865
49866         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
49867         Add a colon after each `then' in case $4 is empty.
49868
49869 1999-05-16  Jim Meyering  <meyering@ascend.com>
49870
49871         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
49872
49873 1999-05-10  Jim Meyering  <meyering@ascend.com>
49874
49875         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
49876
49877         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
49878         AC_FUNC_MKTIME.
49879
49880 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
49881
49882         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
49883
49884 1999-05-04  Paul Eggert  <eggert@twinsun.com>
49885
49886         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
49887         not CPPFLAGS, so that linking works correctly in IRIX.
49888
49889 1999-04-30  Paul Eggert  <eggert@twinsun.com>
49890
49891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
49892
49893 1999-04-20  Paul Eggert  <eggert@twinsun.com>
49894
49895         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
49896         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
49897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
49898         jm_AC_TYPE_UNSIGNED_LONG_LONG.
49899         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
49900
49901         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
49902
49903 1999-04-20  Jim Meyering  <meyering@ascend.com>
49904
49905         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
49906         AC_REPLACE xstroull if necessary.  From Paul Eggert.
49907         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
49908
49909 1999-04-18  Jim Meyering  <meyering@ascend.com>
49910
49911         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
49912         * m4/jm-macros.m4: Use it.
49913
49914 1999-04-06  Jim Meyering  <meyering@ascend.com>
49915
49916         * m4/strftime.m4: Remove test for %f.
49917
49918 1999-03-29  Jim Meyering  <meyering@ascend.com>
49919
49920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
49921         superset of the AC_TYPE_* checks in the textutils, fileutils,
49922         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
49923         AC_TYPE_PID_T.
49924
49925 1999-03-28  Jim Meyering  <meyering@ascend.com>
49926
49927         * m4/jm-macros.m4: Define GNU_PACKAGE here.
49928         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
49929         replaced e.g., in the *.sh files of the sh-utils.
49930
49931 1999-03-20  Jim Meyering  <meyering@ascend.com>
49932
49933         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
49934         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
49935         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
49936
49937 1999-03-19  Jim Meyering  <meyering@ascend.com>
49938
49939         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
49940
49941 1999-03-12  Jim Meyering  <meyering@ascend.com>
49942
49943         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
49944
49945 1999-03-07  Jim Meyering  <meyering@ascend.com>
49946
49947         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
49948         declared.
49949
49950 1999-02-17  Jim Meyering  <meyering@ascend.com>
49951
49952         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
49953         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
49954
49955 1999-02-07  Jim Meyering  <meyering@ascend.com>
49956
49957         * m4/group-member.m4: New file -- extracted from sh-utils'
49958         configure.in.
49959
49960         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
49961         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
49962
49963 1999-02-06  Jim Meyering  <meyering@ascend.com>
49964
49965         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
49966         * m4/fnmatch.m4: Likewise.
49967         * m4/getgroups.m4: Likewise.
49968         * m4/lstat.m4: Likewise.
49969         * m4/malloc.m4: Likewise.
49970         * m4/putenv.m4: Likewise.
49971         * m4/realloc.m4: Likewise.
49972         * m4/regex.m4: Likewise.
49973         * m4/stat.m4: Likewise.
49974         * m4/strftime.m4: Likewise.
49975         Suggestion from Alain Magloire.
49976
49977         * m4/chown.m4: Use `.$ac_objext', not `.o'.
49978         * m4/fnmatch.m4: Likewise.
49979         * m4/getgroups.m4: Likewise.
49980         * m4/getline.m4: Likewise.
49981         * m4/lstat.m4: Likewise.
49982         * m4/malloc.m4: Likewise.
49983         * m4/memcmp.m4: Likewise.
49984         * m4/putenv.m4: Likewise.
49985         * m4/realloc.m4: Likewise.
49986         * m4/regex.m4: Likewise.
49987         * m4/stat.m4: Likewise.
49988         * m4/strftime.m4: Likewise.
49989         Suggestion from Alain Magloire.
49990
49991         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
49992         an argument.
49993
49994         * m4/regex.m4: Add a run-time Test for proper operation of
49995         re_compile_pattern.
49996
49997 1999-01-31  Jim Meyering  <meyering@ascend.com>
49998
49999         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50000
50001 1999-01-30  Jim Meyering  <meyering@ascend.com>
50002
50003         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50004
50005         * m4/jm-mktime.m4: Make this a wrapper around the official
50006         AM_FUNC_MKTIME rather than my private copy, now that the official one
50007         is up to date.
50008         * m4/mktime.m4: Remove file.
50009
50010         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50011         * m4/uptime.m4: Likewise.
50012         * m4/uintmax_t.m4: Likewise.
50013
50014 1999-01-28  Jim Meyering  <meyering@ascend.com>
50015
50016         * m4/jm-macros.m4: Use jm_AFS.
50017         * m4/afs.m4: New file (from fileutils' configure.in).
50018
50019         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50020         * m4/chown.m4: Likewise.
50021         * m4/d-ino.m4: Likewise.
50022         * m4/d-type.m4: Likewise.
50023         * m4/fnmatch.m4: Likewise.
50024         * m4/getgroups.m4: Likewise.
50025         * m4/gettext.m4: Likewise.
50026         * m4/jm-mktime.m4: Likewise.
50027         * m4/jm-winsz2.m4: Likewise.
50028         * m4/lcmessage.m4: Likewise.
50029         * m4/ls-mntd-fs.m4: Likewise.
50030         * m4/malloc.m4: Likewise.
50031         * m4/memcmp.m4: Likewise.
50032         * m4/putenv.m4: Likewise.
50033         * m4/realloc.m4: Likewise.
50034         * m4/st_mtim.m4: Likewise.
50035         * m4/strftime.m4: Likewise.
50036
50037 1999-01-16  Jim Meyering  <meyering@ascend.com>
50038
50039         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50040         (ARGMATCH_DIE_DECL): Define.
50041
50042 1999-01-12  Jim Meyering  <meyering@ascend.com>
50043
50044         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50045         Reported by Lars Hecking.
50046
50047 1999-01-10  Jim Meyering  <meyering@ascend.com>
50048
50049         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50050         gross kludge.
50051         * m4/inttypes_h.m4: Likewise.
50052         * m4/lstat.m4: Likewise.
50053         * m4/malloc.m4: Likewise.
50054         * m4/readdir.m4: Likewise.
50055         * m4/realloc.m4: Likewise.
50056         * m4/st_dm_mode.m4: Likewise.
50057         * m4/stat.m4: Likewise.
50058         * m4/utimbuf.m4: Likewise.
50059         * m4/utimes.m4: Likewise.
50060
50061         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50062         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50063         comments in config.h.in are meaningful.
50064
50065         * m4/jm-macros.m4: Require autoconf-2.13 here.
50066
50067         * m4/regex.m4: By default, don't use the included regex.c on systems
50068         with glibc 2.  Suggestion from Uli Drepper.
50069
50070 1999-01-02  Jim Meyering  <meyering@ascend.com>
50071
50072         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50073
50074 1998-12-18  Jim Meyering  <meyering@ascend.com>
50075
50076         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50077         Based on a suggestion from Lars Hecking.
50078
50079 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50080
50081         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50082
50083 1998-11-16  Jim Meyering  <meyering@ascend.com>
50084
50085         * m4/lfs.m4: Double-quote the `uname...` expression.
50086
50087 1998-11-14  Jim Meyering  <meyering@ascend.com>
50088
50089         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50090         * m4/stat.m4: Likewise.
50091
50092 1998-11-03  Jim Meyering  <meyering@ascend.com>
50093
50094         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50095         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50096
50097 1998-10-18  Jim Meyering  <meyering@ascend.com>
50098
50099         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50100
50101 1998-10-17  Jim Meyering  <meyering@ascend.com>
50102
50103         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50104         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50105         calls for those previously hard-coded headers.  Instead, take a new
50106         parameter.
50107         (jm_CHECK_DECLARATIONS): Reflect interface change.
50108         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50109         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50110
50111         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50112
50113 1998-10-14  Jim Meyering  <meyering@ascend.com>
50114
50115         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50116         instead of "TZ=America/Vancouver".  From Paul Eggert.
50117
50118 1998-10-11  Jim Meyering  <meyering@ascend.com>
50119
50120         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50121         This adds a test for a recently added compatibility fix for mktime.c.
50122         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50123
50124 1998-09-27  Jim Meyering  <meyering@ascend.com>
50125
50126         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50127
50128         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50129         ../configure.in, including a change from Gordon Matzigkeit to allow
50130         cross-compiling for the Hurd.
50131
50132         * m4/glibc.m4: New file/macro to test for the GNU C Library
50133         versions 1 and 2.  From Gordon Matzigkeit.
50134         Indent.
50135
50136 1998-09-21  Jim Meyering  <meyering@ascend.com>
50137
50138         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50139
50140 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50141
50142         Port nanosecond-resolution times to UnixWare 2.1.2 and
50143         pedantic Solaris 2.6.
50144
50145         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50146         AC_STRUCT_ST_MTIM.
50147         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50148         Generate name of ns member, instead of just 1 or undef.
50149         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50150
50151 1998-08-15  Jim Meyering  <meyering@ascend.com>
50152
50153         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50154         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50155         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50156         instead of jm_TYPE_SSIZE_T.
50157
50158 1998-08-12  Jim Meyering  <meyering@ascend.com>
50159
50160         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50161
50162 1998-08-02  Jim Meyering  <meyering@ascend.com>
50163
50164         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50165         in acconfig.h manually.
50166
50167 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50168
50169         * m4/st_mtim.m4: New file.
50170
50171 1998-07-28  Jim Meyering  <meyering@ascend.com>
50172
50173         * m4/utimes.m4: Undef stat.
50174
50175 1998-07-25  Jim Meyering  <meyering@ascend.com>
50176
50177         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50178         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50179
50180 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50181
50182         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50183         uid and gid actually remain unchanged.
50184
50185 1998-07-07  Jim Meyering  <meyering@ascend.com>
50186
50187         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50188
50189 1998-07-04  Jim Meyering  <meyering@ascend.com>
50190
50191         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50192         to prove that this macro can be used in packages without regex.c.
50193
50194 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50195
50196         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50197         is to be used.
50198
50199 1998-07-03  Jim Meyering  <meyering@ascend.com>
50200
50201         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50202
50203         * m4/gettext.m4: New file -- from gettext-0.10.35.
50204         * m4/lcmessage.m4: Likewise.
50205         * m4/progtest.m4: Likewise.
50206
50207         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50208         * m4/jm-macros.m4: Require the new macro.
50209
50210 1998-06-29  Jim Meyering  <meyering@ascend.com>
50211
50212         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50213         for the definition of NGROUPS (used in a system header included
50214         by sys/mount.h).
50215
50216 1998-06-28  Jim Meyering  <meyering@ascend.com>
50217
50218         * m4/ls-mntd-fs.m4: New file.
50219         * m4/fstypename.m4: New file.
50220
50221         * m4/jm-macros.m4: Require the new macro.
50222         * m4/jm-glibc-io.m4: New file.
50223
50224 1998-05-19  Jim Meyering  <meyering@ascend.com>
50225
50226         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50227         * m4/lchown.m4: New file.
50228
50229         * m4/Makefile.am.in: New file.
50230         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50231
50232 1998-05-14  Jim Meyering  <meyering@ascend.com>
50233
50234         * m4/Makefile.am (EXTRA_DIST): Add them.
50235         * m4/jm-macros.m4: New file.
50236         * m4/utimbuf.m4: New file.
50237
50238 1998-05-12  Jim Meyering  <meyering@ascend.com>
50239
50240         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50241
50242 1998-05-11  Jim Meyering  <meyering@ascend.com>
50243
50244         * m4/isc-posix.m4: New file.
50245
50246 1998-05-10  Jim Meyering  <meyering@ascend.com>
50247
50248         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50249
50250 1998-05-09  Jim Meyering  <meyering@ascend.com>
50251
50252         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50253         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50254         with automake.
50255
50256         * m4/ssize_t.m4: New file.
50257         * m4/mktime.m4: Remove file -- the new automake has this now.
50258
50259 1998-04-26  Jim Meyering  <meyering@ascend.com>
50260
50261         * m4/assert.m4: New file.
50262         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50263
50264 1998-04-05  Jim Meyering  <meyering@ascend.com>
50265
50266         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50267         (jm_PREREQ): Use it here.
50268
50269 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50270
50271         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50272         in acconfig.h.
50273
50274 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50275
50276         * m4/prereq.m4: New file.
50277         * m4/error.m4: New file.
50278         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50279
50280 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50281
50282         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50283         cache-check for the same variable -- that defeated the purpose of
50284         the test; the test program was never run.  This was a problem only
50285         on systems with losing getline functions -- HP-UX 10.20 is one.
50286         Reported by Bjorn Helgaas.
50287
50288 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50289
50290         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50291
50292 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50293
50294         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50295
50296         * m4/const.m4: New file.  Use an initializer in this declaration
50297         typedef int charset[2]; const charset x;
50298         Reported by Bob Glickstein.
50299
50300 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50301
50302         * m4/chown.m4: Fix reversed types on -1 args to chown.
50303         From Kaveh Ghazi.
50304
50305 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50306
50307         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50308         Add lseek and memchr.
50309
50310         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50311         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50312         have a 20-character limit on names.
50313
50314 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50315
50316         * m4/inttypes_h.m4: New file.
50317         * m4/uintmax_t.m4: New file.
50318         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50319
50320
50321         -----
50322
50323         Local Variables:
50324         coding: utf-8
50325         End:
50326
50327         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50328
50329         Copying and distribution of this file, with or without
50330         modification, are permitted provided the copyright notice
50331         and this notice are preserved.